Advertisement
dfghgfhplkjbv

src/components/SingleAdvice/SingleAdvice.module.scss

Mar 5th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. @import 'src/styles/utility';
  2.  
  3. .advice {
  4. position: relative;
  5. margin-bottom: 40px;
  6. padding: 5rem 0 0;
  7.  
  8. @media (max-width: $sm) {
  9. padding: 2rem 1rem;
  10. }
  11. }
  12. .inner {
  13. @include container();
  14. }
  15.  
  16. .categoryTitle {
  17. font-size: 1.125rem;
  18. font-weight: 600;
  19. text-transform: uppercase;
  20. }
  21.  
  22. .title {
  23. @include reset-webkit-margin();
  24. @include base-font();
  25.  
  26. font-size: 3.75rem;
  27. margin: 0;
  28. @media (max-width: $md) {
  29. font-size: 2.375rem;
  30. text-overflow: ellipsis;
  31. overflow: hidden;
  32. }
  33. }
  34.  
  35. .content {
  36. @include container;
  37. margin-bottom: 20px;
  38. p {
  39. @include base-font();
  40.  
  41. font-size: 1.125rem;
  42. font-weight: 400;
  43. line-height: 1.5;
  44. margin-left: auto;
  45. margin-right: auto;
  46.  
  47. max-width: $article-width;
  48.  
  49. &:first-child {
  50. margin-top: 0;
  51. }
  52. }
  53. }
  54.  
  55. .text {
  56. margin-right: 20px;
  57. }
  58.  
  59. .ad {
  60. position: sticky;
  61. width: 390px;
  62. max-width: 100%;
  63. height: 150vh;
  64.  
  65. @media (max-width: $xl) {
  66. width: $article-width;
  67. flex-basis: 100%;
  68. margin: auto;
  69. height: auto;
  70. margin-bottom: 30px;
  71. }
  72.  
  73. @media (max-width: $md) {
  74. width: auto;
  75. }
  76. }
  77.  
  78. .imgPosition {
  79. max-height: 150px;
  80. position: relative;
  81. overflow: hidden;
  82. }
  83.  
  84. .image {
  85. width: 300px;
  86. height: 300px;
  87. object-fit: contain;
  88. border-radius: 50%;
  89. position: absolute;
  90. bottom: 10%;
  91. left: -4%;
  92.  
  93. @media (max-width: $sm) {
  94. display: none;
  95. }
  96. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement