_section.scss 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. .section {
  2. &__card {
  3. padding: 1rem 0.75rem 2rem 0.75rem;
  4. position: relative;
  5. @media only screen and (max-width: 960px) {
  6. [data-mobile="false"] {
  7. display: none;
  8. }
  9. }
  10. @media only screen and (min-width: 960px) {
  11. [data-mobile="true"] {
  12. display: none;
  13. }
  14. }
  15. &--header {
  16. position: relative;
  17. margin: 2rem 0;
  18. @include flexbox();
  19. }
  20. &--title {
  21. z-index: z('section-title');
  22. font-weight: 700;
  23. font-family: $title-font;
  24. }
  25. &--subtitle {
  26. font-weight: bold;
  27. font-family: $title-font;
  28. margin-bottom: 1.5rem;
  29. text-align: center;
  30. }
  31. &--main {
  32. padding: 0.5rem 0;
  33. @include flexbox();
  34. }
  35. &--item {
  36. width: 33.33%;
  37. text-decoration: none;
  38. @include flex-grow(1);
  39. &:not(:first-child):not(:last-child) {
  40. margin: 0 1rem;
  41. }
  42. &:first-child {
  43. margin: 0 1rem 0 0;
  44. }
  45. &:last-child {
  46. margin: 0 0 0 1rem;
  47. }
  48. }
  49. &--img {
  50. margin: auto;
  51. display: block;
  52. &-wrapper {
  53. width: 100%;
  54. margin-bottom: 1rem;
  55. }
  56. }
  57. &--content {
  58. margin-bottom: 0.75rem;
  59. font-size: 1.125rem;
  60. word-wrap: break-word;
  61. }
  62. @media only screen and (max-width: 960px) {
  63. &--item {
  64. width: 100%;
  65. margin: 0.5rem 0 2rem 0 !important;
  66. @include flexbox();
  67. }
  68. &--main {
  69. @include flexbox();
  70. @include flex-direction(column);
  71. @include align-items(flex-start);
  72. }
  73. &--subtitle {
  74. text-align: left;
  75. }
  76. &--img {
  77. display: inline-block;
  78. width: 100%;
  79. &-wrapper {
  80. min-width: 112px;
  81. max-width: 112px;
  82. margin-right: 1rem;
  83. }
  84. }
  85. &--content {
  86. margin-bottom: 1.5rem;
  87. }
  88. }
  89. }
  90. &__normal {
  91. position: relative;
  92. @include flexbox();
  93. &--content {
  94. margin-bottom: 0.75rem;
  95. font-size: 1.125rem;
  96. word-wrap: break-word;
  97. }
  98. &--subtitle {
  99. font-weight: bold;
  100. font-family: $title-font;
  101. margin: 2rem 0;
  102. }
  103. &--img {
  104. width: 100%;
  105. min-width: 100px;
  106. height: 100%;
  107. &-wrapper {
  108. margin: auto 0;
  109. padding: 0 1rem;
  110. &[data-position="left"] {
  111. margin-right: 5rem;
  112. }
  113. &[data-position="right"] {
  114. margin-left: 5rem;
  115. }
  116. }
  117. }
  118. @media only screen and (max-width: 600px) {
  119. @include flex-direction(column);
  120. &--img {
  121. &-wrapper {
  122. &[data-position="left"] {
  123. margin: 0 2rem;
  124. }
  125. &[data-position="right"] {
  126. margin: 0 2rem;
  127. }
  128. }
  129. }
  130. }
  131. }
  132. &__highlight {
  133. z-index: z('highlight');
  134. position: absolute;
  135. left: 0;
  136. bottom: -0.25rem;
  137. width: 100%;
  138. height: 20px;
  139. }
  140. &__btn {
  141. width: 100%;
  142. cursor: pointer;
  143. border: none;
  144. outline: none;
  145. border-radius: 0.25rem;
  146. @include on-event {
  147. border: 1px solid white;
  148. }
  149. &--micro {
  150. height: 20px;
  151. font-size: 14px;
  152. line-height: 14px;
  153. }
  154. &--mini {
  155. height: 24px;
  156. font-size: 15px;
  157. line-height: 15px;
  158. }
  159. &--small {
  160. height: 28px;
  161. font-size: 16px;
  162. }
  163. &--medium {
  164. height: 32px;
  165. font-size: 17px;
  166. line-height: 17px;
  167. }
  168. &--large {
  169. height: 36px;
  170. font-size: 18px;
  171. }
  172. }
  173. }