Advertisement
dfghgfhplkjbv

src/components/Subscribe/Subscribe.module.scss

Mar 1st, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.37 KB | None | 0 0
  1. @import '../../styles/utility';
  2.  
  3. .wrap {
  4. position: relative;
  5. background-color: #fff;
  6. margin-top: 88px;
  7. border-top: 1px solid #e8e8e8;
  8. border-bottom: 1px solid #eee;
  9. }
  10.  
  11. .root {
  12. @include container();
  13.  
  14. position: relative;
  15. display: flex;
  16. flex-flow: row nowrap;
  17. margin-bottom: $vertical-margin;
  18. margin-top: $vertical-margin;
  19.  
  20. @media (max-width: $lg) {
  21. align-items: center;
  22. flex-flow: column-reverse nowrap;
  23. margin-top: 0;
  24. }
  25. }
  26.  
  27. .image {
  28. width: 570px;
  29. img {
  30. height: 100%;
  31. object-fit: cover;
  32. width: 100%;
  33. }
  34.  
  35. @media (max-width: $xl) and (orientation: portrait) {
  36. height: 60vh;
  37. }
  38.  
  39. @media (max-width: $xl) and (orientation: landscape) {
  40. height: 60vw;
  41. }
  42.  
  43. @media (max-width: $lg) {
  44. display: none;
  45. }
  46. }
  47. .content {
  48. display: flex;
  49. flex-flow: column;
  50. justify-content: center;
  51. padding-left: 32px;
  52. padding-right: 32px;
  53. width: calc(100% - 570px);
  54.  
  55. @media (max-width: $lg) {
  56. margin-bottom: 6rem;
  57. padding-top: 32px;
  58. padding-bottom: 32px;
  59. width: initial;
  60. }
  61.  
  62. @media (max-width: $md) {
  63. margin-bottom: 0;
  64. margin-top: 2rem;
  65. padding: 16px;
  66. }
  67. }
  68.  
  69. .form {
  70. display: flex;
  71. padding-bottom: 10px;
  72. margin-top: 35px;
  73. align-items: flex-end;
  74. @media (max-width: $xl) {
  75. flex-flow: column;
  76. align-items: unset;
  77. }
  78. }
  79. .formInnerContainer {
  80. display: flex;
  81. flex-flow: column;
  82. position: relative;
  83. }
  84.  
  85. .button {
  86. @include base-font();
  87. @include base-transition();
  88.  
  89. background-color: white;
  90. border: 2px solid #161616;
  91. box-shadow: 4px 4px 0 0 #161616;
  92. color: $black;
  93. cursor: pointer;
  94. font-size: 18px;
  95. font-style: normal;
  96. font-weight: 600;
  97. height: $input-height;
  98. left: -4px;
  99. padding: 0 1rem;
  100. position: relative;
  101. white-space: nowrap;
  102.  
  103. &:hover {
  104. box-shadow: 0 0 0 0 $black;
  105. transform: translate(2px, 2px);
  106. }
  107.  
  108. @media (max-width: $lg) {
  109. width: 100%;
  110. }
  111. }
  112.  
  113. .input {
  114. @include base-font();
  115. @include base-transition();
  116. background-color: #f4f4f4;
  117. border: 2px solid #f4f4f4;
  118. font-size: 18px;
  119. font-style: normal;
  120. font-weight: normal;
  121. height: $input-height;
  122. line-height: 22px;
  123. margin-right: 20px;
  124. margin-top: 0;
  125. min-width: initial;
  126. padding-left: 16px;
  127. padding-right: 24px;
  128. &:focus {
  129. border-color: $black;
  130. box-shadow: none;
  131. outline: none;
  132. }
  133.  
  134. @media (max-width: $xl) {
  135. margin-bottom: 1rem;
  136. width: 100%;
  137. }
  138. }
  139.  
  140. .success {
  141. border: 2px solid lightgreen;
  142. }
  143.  
  144. .error {
  145. border: 2px solid tomato;
  146. }
  147.  
  148. .title {
  149. @include base-font();
  150. color: $black;
  151. font-size: 3rem;
  152. line-height: 1.3;
  153. margin-bottom: 50px;
  154.  
  155. @media (max-width: $xl) {
  156. font-size: 2.5rem;
  157. }
  158.  
  159. @media (max-width: $sm) {
  160. font-size: 2rem;
  161. }
  162. @media (max-width: $md) {
  163. margin-bottom: 1rem;
  164. }
  165. }
  166.  
  167. .description {
  168. @include base-font();
  169. color: $black;
  170. font-size: 1.125rem;
  171. font-style: normal;
  172. font-weight: normal;
  173. line-height: 150%;
  174. margin-bottom: 20px;
  175.  
  176. @media (max-width: $md) {
  177. line-height: 1.8;
  178. margin-bottom: 2rem;
  179. }
  180. }
  181.  
  182. .under {
  183. @include base-font();
  184. color: #333333;
  185. font-size: 12px;
  186. font-style: normal;
  187. font-weight: normal;
  188. line-height: 14px;
  189. @media (max-width: $lg) {
  190. margin-top: 1rem;
  191. }
  192. }
  193.  
  194. .status {
  195. position: absolute;
  196. top: -22px;
  197. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement