Advertisement
dfghgfhplkjbv

src/components/News/News.module.scss

Feb 28th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.84 KB | None | 0 0
  1. @import 'src/styles/utility';
  2.  
  3. .root {
  4. @include container();
  5.  
  6. background-color: #fff;
  7. padding-bottom: 35px;
  8. padding-top: 35px;
  9. }
  10.  
  11. .article {
  12. h5 {
  13. @include base-font();
  14.  
  15. font-size: 1.125rem;
  16. font-weight: 400;
  17. line-height: 1.4;
  18. margin-left: auto;
  19. margin-right: auto;
  20.  
  21. max-width: $article-width;
  22. text-transform: uppercase;
  23. }
  24.  
  25. p {
  26. @include base-font();
  27.  
  28. font-size: 1.125rem;
  29. font-weight: 400;
  30. line-height: 1.5;
  31. margin-left: auto;
  32. margin-right: auto;
  33. margin-top: 0;
  34. margin-bottom: 18px;
  35.  
  36. max-width: $article-width;
  37. }
  38.  
  39. h2 {
  40. @include base-font();
  41.  
  42. font-weight: 600;
  43. margin-left: auto;
  44. margin-right: auto;
  45. max-width: $article-width;
  46. }
  47.  
  48. strong {
  49. @include base-font();
  50.  
  51. display: inline-block;
  52. font-size: 1.125rem;
  53.  
  54. font-weight: 600;
  55. line-height: 1.4;
  56. }
  57.  
  58. img {
  59. height: auto;
  60. max-width: 100%;
  61.  
  62. @media (max-width: $md) {
  63. left: 50%;
  64. margin-left: -50vw;
  65. max-width: initial;
  66. position: relative;
  67. width: 100vw;
  68. }
  69. }
  70.  
  71. blockquote {
  72. color: #8b8b8b;
  73. font-style: italic;
  74. -webkit-margin-end: 0;
  75. -webkit-margin-start: 0;
  76.  
  77. p {
  78. padding-left: 2rem;
  79. position: relative;
  80. &:before {
  81. position: absolute;
  82. top: 50%;
  83. transform: translateY(-50%);
  84. left: 0;
  85. content: '';
  86. height: 90%;
  87. width: 3px;
  88. background-color: #00d280;
  89. }
  90.  
  91. @media (max-width: $sm) {
  92. &:before {
  93. height: 100%;
  94. }
  95. }
  96. }
  97. }
  98.  
  99. a {
  100. color: #000;
  101.  
  102. &:hover {
  103. color: royalblue;
  104. }
  105. }
  106.  
  107. ul {
  108. max-width: $article-width;
  109. margin: 0 auto 18px;
  110. }
  111. }
  112.  
  113. .meta {
  114. margin-top: 2rem;
  115. }
  116.  
  117. .meta,
  118. .buttonContainer {
  119. max-width: $article-width;
  120.  
  121. @media (max-width: $container) {
  122. margin-left: auto;
  123. margin-right: auto;
  124. }
  125. @media (max-width: $md) {
  126. margin-left: 0;
  127. }
  128. }
  129.  
  130. .author,
  131. .photographer {
  132. margin-top: 25px;
  133.  
  134. span {
  135. @include base-font();
  136. font-size: 1rem;
  137. font-weight: 400;
  138. line-height: 1.3;
  139. }
  140.  
  141. @media (max-width: $md) {
  142. strong {
  143. display: block;
  144. margin-bottom: 5px;
  145. }
  146.  
  147. span {
  148. display: inline-block;
  149. margin-bottom: 5px;
  150. }
  151.  
  152. @media (max-width: 768px) {
  153. display: flex;
  154. flex-direction: column;
  155. }
  156. }
  157.  
  158. strong {
  159. display: inline-block;
  160. font-size: 1.125rem;
  161. font-style: normal;
  162. font-weight: 700;
  163. min-width: 200px;
  164. text-transform: uppercase;
  165. }
  166. }
  167.  
  168. .inner {
  169. display: flex;
  170. flex-wrap: wrap;
  171. justify-content: space-between;
  172.  
  173. @media (max-width: $xl) {
  174. flex-flow: column-reverse;
  175. }
  176. }
  177.  
  178. .ad {
  179. position: sticky;
  180. height: 150vh;
  181. width: 390px;
  182. max-width: 100%;
  183.  
  184. @media (max-width: $xl) {
  185. flex-basis: 100%;
  186. margin: auto;
  187. width: $article-width;
  188. height: auto;
  189. }
  190.  
  191. @media (max-width: $md) {
  192. width: auto;
  193. }
  194. }
  195.  
  196. .buttonContainer {
  197. margin-top: 40px;
  198. position: relative;
  199. }
  200.  
  201. .button {
  202. display: flex;
  203. border: 0;
  204. justify-content: center;
  205. align-items: center;
  206. width: 100%;
  207. max-width: 320px;
  208. background: black;
  209. color: #00d280;
  210. height: 74px;
  211. font-size: 1rem;
  212. font-weight: 600;
  213. cursor: pointer;
  214. letter-spacing: 0.1rem;
  215.  
  216. &:last-child {
  217. margin: 0;
  218. }
  219.  
  220. &:active {
  221. transform: translateY(1px);
  222. filter: saturate(150%);
  223. }
  224.  
  225. &:focus {
  226. outline: none;
  227. }
  228.  
  229. @media (max-width: 700px) {
  230. margin-right: 0;
  231. margin-bottom: 20px;
  232. }
  233. }
  234.  
  235. .buttonText {
  236. margin-right: 15px;
  237. text-transform: uppercase;
  238. }
  239.  
  240. .share {
  241. position: static;
  242. }
  243.  
  244. .offline-mode {
  245. pointer-events: none;
  246. opacity: 0.3;
  247. }
  248.  
  249. .sticky {
  250. height: auto;
  251. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement