dfghgfhplkjbv

src/components/Audio/Audio.module.scss

Mar 5th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.73 KB | None | 0 0
  1. @import 'src/styles/utility';
  2.  
  3. .root {
  4. margin-left: calc(-50vw + 50%);
  5. margin-bottom: 115px;
  6. padding-bottom: 20px;
  7. position: relative;
  8. width: 100vw;
  9.  
  10. &:before {
  11. @include base-transition();
  12. background-color: $black;
  13.  
  14. content: '';
  15. display: block;
  16. height: 370px;
  17. left: 0;
  18. position: absolute;
  19. top: 133px;
  20. width: 100%;
  21. z-index: 0;
  22.  
  23. @media (max-width: $xl) {
  24. height: 370px;
  25. }
  26. @media (max-width: $md) {
  27. height: 450px;
  28. top: 102px;
  29. }
  30.  
  31. @media (max-width: 460px) {
  32. height: 468px;
  33. }
  34. }
  35.  
  36. @media (max-width: $md) {
  37. margin-bottom: 75px;
  38. }
  39.  
  40. @media (max-width: $sm) {
  41. margin-bottom: 73px;
  42. }
  43. }
  44.  
  45. .inner {
  46. @include container();
  47. }
  48.  
  49. .header {
  50. align-items: center;
  51. display: flex;
  52. margin-bottom: 48px;
  53. padding: 10px 0;
  54. position: relative;
  55. @media (max-width: $lg) {
  56. padding: 0 0;
  57. }
  58.  
  59. h1 {
  60. @include reset-webkit-margin();
  61. @include base-transition();
  62. color: $black;
  63.  
  64. display: inline-block;
  65. font-size: 5.6875rem;
  66. font-weight: 700;
  67. position: relative;
  68. text-transform: uppercase;
  69. margin-top: 0;
  70.  
  71. &:after {
  72. background-color: $green;
  73. bottom: -7px;
  74. content: '';
  75. height: 8px;
  76. left: 0;
  77. position: absolute;
  78. width: 100%;
  79. }
  80.  
  81. @media (max-width: $sm) {
  82. font-size: 4rem;
  83. }
  84. }
  85. }
  86.  
  87. .hidden {
  88. display: none;
  89. }
  90.  
  91. .shown {
  92. display: block;
  93. }
  94.  
  95. .videos {
  96. display: flex;
  97. justify-content: space-between;
  98. margin-top: 56px;
  99. position: relative;
  100.  
  101. .video {
  102. flex-basis: 49%;
  103.  
  104. img {
  105. height: 320px;
  106. }
  107. }
  108. }
  109.  
  110. .main {
  111. display: flex;
  112. justify-content: space-between;
  113. position: relative;
  114. }
  115.  
  116. .mainVideo {
  117. margin-top: -146px;
  118. }
  119.  
  120. .description {
  121. border-bottom: 1px #fff dashed;
  122. color: #fff;
  123. display: flex;
  124. flex-basis: 30%;
  125. flex-direction: column;
  126. font-size: 2rem;
  127. font-weight: 700;
  128. justify-content: center;
  129. line-height: 140%;
  130. }
  131.  
  132. .duration {
  133. color: $green;
  134. display: block;
  135. font-size: 2rem;
  136. font-weight: 700;
  137. }
  138.  
  139. .video {
  140. flex-basis: 65%;
  141. position: relative;
  142. img {
  143. @include base-transition();
  144.  
  145. box-shadow: 4px 4px 0 0 $black;
  146. display: block;
  147. height: 440px;
  148. object-fit: cover;
  149. position: relative;
  150.  
  151. width: 100%;
  152.  
  153. &:hover {
  154. box-shadow: 0 0 0 0 $black;
  155. transform: translate(2px, 2px);
  156. }
  157. }
  158. }
  159.  
  160. .videoInfo {
  161. color: $black;
  162. font-size: 1.125rem;
  163. font-weight: 600;
  164.  
  165. span {
  166. color: $green;
  167. }
  168. }
  169.  
  170. .play {
  171. @include reset-btn();
  172. left: 50%;
  173.  
  174. position: absolute;
  175. top: 50%;
  176. transform: translate(-50%, -50%);
  177. z-index: 10;
  178. }
Advertisement
Add Comment
Please, Sign In to add comment