dfghgfhplkjbv

src/components/AllAdvices/Item.module.scss

Mar 5th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.30 KB | None | 0 0
  1. @import 'src/styles/utility';
  2.  
  3. .root {
  4. height: 50vh;
  5. position: sticky;
  6. top: 0;
  7. right: 0;
  8. left: 0;
  9. font-size: 3.75rem;
  10. overflow: hidden;
  11. display: flex;
  12. flex-direction: column;
  13. justify-content: center;
  14.  
  15. @media (max-width: $md) {
  16. position: relative;
  17. min-height: 50vh;
  18. }
  19.  
  20. @media (max-width: $sm) {
  21. position: relative;
  22. height: auto;
  23. }
  24. }
  25.  
  26. .generalWrapper {
  27. position: relative;
  28. }
  29.  
  30. .inner {
  31. position: absolute;
  32. top: 50%;
  33. transform: translateY(-50%);
  34. margin-left: 150px;
  35. max-width: 900px;
  36. z-index: 5;
  37.  
  38. @media (max-width: $md) {
  39. margin-left: 0;
  40. position: unset;
  41. left: auto;
  42. top: auto;
  43. transform: none;
  44. padding-left: 2rem;
  45. padding-right: 2rem;
  46. }
  47. @media (max-width: $md) {
  48. padding: 2rem;
  49. }
  50. }
  51.  
  52. .categoryTitle {
  53. @include base-transition();
  54.  
  55. position: relative;
  56. font-size: 1.125rem;
  57. font-weight: 600;
  58. text-transform: uppercase;
  59. width: max-content;
  60.  
  61. &:after {
  62. @include base-transition();
  63.  
  64. position: absolute;
  65. content: '';
  66. bottom: -6px;
  67. left: 0;
  68. height: 2px;
  69. width: 0;
  70. background-color: #353533;
  71. }
  72.  
  73. &:hover {
  74. &:after {
  75. content: '';
  76. width: 100%;
  77. }
  78. }
  79.  
  80. @media (max-width: $md) {
  81. margin-top: 0;
  82. }
  83. }
  84.  
  85. .title {
  86. @include reset-webkit-margin();
  87. @include base-font();
  88.  
  89. margin: 0;
  90. position: relative;
  91. font-size: 3rem;
  92. margin-bottom: 20px;
  93. font-weight: 700;
  94. word-break: break-word;
  95. text-decoration: none;
  96. color: #161616;
  97. padding-top: 20px;
  98. @media (max-width: $sm) {
  99. font-size: 2rem;
  100. }
  101. }
  102.  
  103. .visible-wrapper {
  104. position: relative;
  105. }
  106.  
  107. .adviceCategoryLink {
  108. text-decoration: none;
  109. }
  110.  
  111. .link {
  112. @include base-transition();
  113.  
  114. text-decoration: none;
  115. font-size: 1rem;
  116. display: block;
  117. font-size: 1.125rem;
  118. text-transform: uppercase;
  119. font-weight: 600;
  120. padding: 20px 30px;
  121. border-radius: 3px;
  122. max-width: 215px;
  123. text-align: center;
  124. border: 2px solid transparent;
  125. margin-top: 20px;
  126.  
  127. &:hover {
  128. background: transparent !important;
  129. color: #353533 !important;
  130. border: 2px solid #353533;
  131. }
  132. }
  133.  
  134. .isFirstItem {
  135. height: 85vh;
  136. z-index: 0;
  137. }
  138.  
  139. .visibleWrapper {
  140. @media (max-width: $md) {
  141. display: none;
  142. }
  143. }
Advertisement
Add Comment
Please, Sign In to add comment