Advertisement
dfghgfhplkjbv

src/components/SingleAdvice/SingleAdvice.module.scss

Mar 5th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.76 KB | None | 0 0
  1. @import 'src/styles/utility';
  2.  
  3. .advice {
  4. position: relative;
  5. padding: 7rem 0;
  6. overflow: hidden;
  7.  
  8. @media (max-width: $xl) {
  9. padding-top: 5rem;
  10. padding-bottom: 5rem;
  11. }
  12.  
  13. @media (max-width: $sm) {
  14. padding: 2rem 0;
  15. }
  16. }
  17. .inner {
  18. @include container();
  19. position: relative;
  20. z-index: 10;
  21. }
  22.  
  23. .adviceCategoryLink {
  24. text-decoration: none;
  25. color: black;
  26. }
  27.  
  28. .categoryTitle {
  29. @include base-transition();
  30.  
  31. position: relative;
  32. font-size: 1.125rem;
  33. font-weight: 600;
  34. text-transform: uppercase;
  35. width: max-content;
  36.  
  37. &:after {
  38. @include base-transition();
  39.  
  40. position: absolute;
  41. content: '';
  42. bottom: -6px;
  43. left: 0;
  44. height: 2px;
  45. width: 0;
  46. background-color: black;
  47. }
  48.  
  49. &:hover {
  50. &:after {
  51. content: '';
  52. width: 100%;
  53. }
  54. }
  55.  
  56. @media (max-width: $md) {
  57. margin-top: 0;
  58. }
  59. }
  60.  
  61. .title {
  62. @include reset-webkit-margin();
  63. @include base-font();
  64.  
  65. font-size: 3.75rem;
  66. margin: 0;
  67. @media (max-width: $md) {
  68. font-size: 2.375rem;
  69. text-overflow: ellipsis;
  70. overflow: hidden;
  71. }
  72. }
  73.  
  74. .content {
  75. @include container;
  76. padding: 7rem 0;
  77.  
  78. @media (max-width: $xl) {
  79. padding-top: 5rem;
  80. padding-bottom: 5rem;
  81. }
  82.  
  83. @media (max-width: $sm) {
  84. padding-top: 2rem;
  85. padding-bottom: 2rem;
  86. }
  87.  
  88. p {
  89. @include base-font();
  90. font-size: 1.5rem;
  91. font-weight: 400;
  92. line-height: 1.5;
  93. width: 100%;
  94. &:first-child {
  95. margin-top: 0;
  96. }
  97.  
  98. @media (max-width: $md) {
  99. font-size: 1.2rem;
  100. }
  101. }
  102. }
  103.  
  104. .text {
  105. margin-bottom: 40px;
  106. }
  107.  
  108. .ad {
  109. position: sticky;
  110. width: 390px;
  111. max-width: 100%;
  112. height: 150vh;
  113.  
  114. @media (max-width: $xl) {
  115. width: $article-width;
  116. flex-basis: 100%;
  117. margin: auto;
  118. height: auto;
  119. margin-bottom: 30px;
  120. }
  121.  
  122. @media (max-width: $md) {
  123. width: auto;
  124. }
  125. }
  126.  
  127. .imgPosition {
  128. position: absolute;
  129. left: 80%;
  130. top: 20px;
  131. }
  132.  
  133. .image {
  134. clip-path: url('#mask');
  135. width: 1000px;
  136. height: 500px;
  137. object-fit: contain;
  138. position: absolute;
  139.  
  140. @media (max-width: $md) {
  141. display: none;
  142. }
  143. }
  144. .button {
  145. display: flex;
  146. justify-content: center;
  147. align-items: center;
  148. width: 100%;
  149. max-width: 320px;
  150. height: 74px;
  151. border: 0;
  152. background: black;
  153. color: #00d280;
  154. font-size: 1rem;
  155. font-weight: 600;
  156. cursor: pointer;
  157. letter-spacing: 0.1rem;
  158.  
  159. &:active {
  160. transform: translateY(1px);
  161. filter: saturate(150%);
  162. }
  163.  
  164. &:focus {
  165. outline: none;
  166. }
  167.  
  168. @media (max-width: 700px) {
  169. margin-right: 0;
  170. margin-bottom: 20px;
  171. }
  172. }
  173.  
  174. .buttonText {
  175. margin-right: 15px;
  176. text-transform: uppercase;
  177. }
  178.  
  179. .offline-mode {
  180. pointer-events: none;
  181. opacity: 0.3;
  182. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement