Advertisement
dfghgfhplkjbv

src/components/NewsList/NewsList.module.scss

Mar 5th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. @import 'src/styles/utility';
  2.  
  3. .root {
  4. margin-bottom: 120px;
  5. position: relative;
  6. min-height: 44vh;
  7. }
  8.  
  9. .inner {
  10. @include container;
  11. display: flex;
  12. flex-flow: row nowrap;
  13.  
  14. h2 {
  15. @include header-style;
  16. color: #000;
  17.  
  18. padding: 0;
  19. position: absolute;
  20. top: -103px;
  21.  
  22. @media (max-width: $sm) {
  23. top: -63px;
  24. }
  25.  
  26. @media (max-width: $xs) {
  27. top: -54px;
  28. }
  29. }
  30.  
  31. @media (max-width: $lg) {
  32. display: block;
  33. }
  34.  
  35. @media (max-width: $md) {
  36. h2 {
  37. text-align: center;
  38. }
  39. }
  40. }
  41.  
  42. .wrap {
  43. display: block;
  44. padding-top: 4rem;
  45.  
  46. @media (max-width: $md) {
  47. padding-top: 2rem;
  48. }
  49. @media (max-width: $sm) {
  50. padding-top: 0;
  51. }
  52. }
  53.  
  54. .news {
  55. align-items: flex-end;
  56. display: flex;
  57. flex-flow: column nowrap;
  58. justify-content: center;
  59. position: relative;
  60. width: 50%;
  61.  
  62. &:first-child {
  63. align-items: flex-start;
  64. }
  65.  
  66. @media (max-width: $lg) {
  67. width: 100%;
  68. }
  69. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement