dfghgfhplkjbv

src/components/Home/Item.module.scss

Feb 21st, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.98 KB | None | 0 0
  1. @import 'src/styles/utility';
  2.  
  3. .root {
  4. display: flex;
  5. margin: 0 0 25px 0;
  6. position: relative;
  7.  
  8. @media (max-width: $lg) {
  9. flex-direction: column;
  10. }
  11. }
  12.  
  13. .cover {
  14. height: 464px;
  15. object-fit: cover;
  16. position: relative;
  17. width: 562px;
  18.  
  19. &:after {
  20. @include base-transition;
  21. // background: rgba(0, 0, 0, 0.4);
  22. content: '';
  23. height: 100%;
  24. left: 0;
  25. position: absolute;
  26. bottom: 0;
  27. right: 0;
  28. top: 0;
  29. width: 100%;
  30. mix-blend-mode: color;
  31. background-color: transparent;
  32. }
  33.  
  34. @media(max-width: 1024px){
  35. width: 485px;
  36. }
  37.  
  38. @media (max-width: $lg) {
  39. flex-direction: column;
  40. height: 360px;
  41. max-width: 100%;
  42. width: 100%;
  43. }
  44.  
  45. @media (max-width: $sm) {
  46. height: 280px;
  47. }
  48. }
  49.  
  50. .coverWithoutPreview {
  51. height: 464px;
  52. object-fit: cover;
  53. position: relative;
  54. width: 570px;
  55.  
  56. &:after {
  57. // @include base-transition;
  58. background: rgba(0, 0, 0, 0.4);
  59. content: '';
  60. height: 100%;
  61. left: 0;
  62. position: absolute;
  63. bottom: 0;
  64. right: 0;
  65. top: 0;
  66. width: 100%;
  67. }
  68.  
  69. @media (max-width: $lg) {
  70. flex-direction: column;
  71. height: 360px;
  72. max-width: 100%;
  73. width: 100%;
  74. }
  75.  
  76. @media (max-width: $sm) {
  77. height: 280px;
  78. }
  79. }
  80. .innerWithoutPreview {
  81. color: white;
  82. display: flex;
  83. flex-direction: column;
  84. justify-content: space-between;
  85. padding: 32px;
  86. width: 100%;
  87. position: absolute;
  88. bottom: 0;
  89.  
  90. h3 {
  91. @include reset-webkit-margin();
  92. color: #333;
  93.  
  94. font-size: 1.25rem;
  95. font-weight: normal;
  96. line-height: 1.5;
  97.  
  98. @media (max-width: $lg) {
  99. margin-bottom: 48px;
  100. margin-top: 48px;
  101. }
  102.  
  103. @media (max-width: $sm) {
  104. font-size: 1rem;
  105. }
  106. }
  107. }
  108.  
  109. .title {
  110. @include reset-webkit-margin();
  111. @include base-font();
  112. font-size: 2.1875rem;
  113. position: relative;
  114. bottom: 10px;
  115. width: 85%;
  116. font-weight: 700;
  117. color: black;
  118. text-decoration: none;
  119. @media (max-width: $sm) {
  120. font-size: 1.5rem;
  121. bottom: 5px;
  122. width: 90%;
  123. }
  124. }
  125.  
  126. .inner {
  127. background-color: #fff;
  128. color: #000;
  129. display: flex;
  130. flex-direction: column;
  131. justify-content: space-between;
  132. padding: 32px 32px 32px 46px;
  133. width: 100%;
  134. @media (max-width: 768px) {
  135. margin-top: 20px;
  136. }
  137.  
  138. h2 {
  139. @include reset-webkit-margin();
  140. @include base-font();
  141. font-size: 2.1875rem;
  142.  
  143. font-weight: 700;
  144.  
  145. @media (max-width: $sm) {
  146. font-size: 1.7rem;
  147. }
  148. }
  149.  
  150. h3 {
  151. @include reset-webkit-margin();
  152. color: #333;
  153.  
  154. font-size: 1.25rem;
  155. font-weight: normal;
  156. line-height: 1.5;
  157.  
  158. @media (max-width: $lg) {
  159. margin-bottom: 48px;
  160. margin-top: 48px;
  161. }
  162.  
  163. @media (max-width: $sm) {
  164. font-size: 1rem;
  165. }
  166. }
  167. @media (max-width: $sm) {
  168. padding: 24px 18px;
  169. }
  170. }
  171.  
  172. .tags {
  173. align-items: center;
  174. display: flex;
  175. justify-content: space-between;
  176. flex-wrap: wrap;
  177. .date,
  178. .tag {
  179. @include base-font();
  180. color: $green;
  181. font-size: 1rem;
  182.  
  183. font-weight: 600;
  184. letter-spacing: 0.1rem;
  185. }
  186. .tagWithoutContent {
  187. @include base-font();
  188. color: white;
  189. font-weight: normal;
  190. font-size: 0.9rem;
  191. border-bottom: 1px solid white;
  192. }
  193. .date {
  194. color: #aaa;
  195. }
  196. }
  197.  
  198. .link {
  199. display: block;
  200. text-decoration: none;
  201. // &:hover {
  202. // .coverWithoutPreview,
  203. // .cover {
  204. // &:after {
  205. // background-color: #64629e;
  206. // mix-blend-mode: color;
  207. // }
  208. // }
  209. // }
  210. }
  211.  
  212. .callToAction {
  213. position: absolute;
  214. top: 25px;
  215. left: 35px;
  216. display: flex;
  217. align-items: center;
  218. .tag {
  219. @include base-font();
  220. color: $green;
  221. font-size: 1rem;
  222.  
  223. font-weight: 600;
  224. letter-spacing: 0.1rem;
  225. @media (max-width: $sm) {
  226. display: none;
  227. }
  228. }
  229. @media (max-width: $sm) {
  230. top: 15px;
  231. left: 0;
  232. }
  233. }
  234.  
  235. .offline-mode {
  236. opacity: 0.3;
  237. pointer-events: none;
  238. }
Advertisement
Add Comment
Please, Sign In to add comment