Advertisement
Guest User

Untitled

a guest
May 26th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.35 KB | None | 0 0
  1. :root {
  2. --container-bg-color: #333;
  3. --left-bg-color: rgba(223, 39, 39, 0.7);
  4. --left-button-hover-color: rgba(161, 11, 11, 0.3);
  5. --right-bg-color: rgba(43, 43, 43, 0.8);
  6. --right-button-hover-color: rgba(92, 92, 92, 0.3);
  7. --hover-width: 75%;
  8. --other-width: 25%;
  9. --speed: 1000ms;
  10. }
  11.  
  12. html, body {
  13. padding:0;
  14. margin:0;
  15. font-family: 'Lato', 'Arial Narrow', Arial, sans-serif;
  16. width: 100%;
  17. height: 100%;
  18. overflow-x: hidden;
  19. }
  20.  
  21. h1 {
  22. font-size: 4rem;
  23. color: #fff;
  24. position: absolute;
  25. left: 50%;
  26. top: 20%;
  27. transform: translateX(-50%);
  28. white-space: nowrap;
  29. }
  30.  
  31. .button {
  32. display: block;
  33. position: absolute;
  34. left: 50%;
  35. top: 40%;
  36. height: 2.5rem;
  37. padding-top: 1.3rem;
  38. width: 15rem;
  39. text-align: center;
  40. color: #fff;
  41. border-bottom: : #fff solid 0.2rem;
  42. font-size: 1rem;
  43. font-weight: bold;
  44. text-transform: uppercase;
  45. text-decoration: none;
  46. transform: translateX(-50%);
  47. }
  48.  
  49. .split.left .button:hover {
  50. background-color: rgba(0,0,0,0);
  51. border-color: rgba(0,0,0,0);
  52. /*background-color: var(--left-button-hover-color);
  53. /*border-color: var(--left-button-hover-color);*/
  54. }
  55.  
  56. .split.right .button:hover {
  57. background-color: var(--right-button-hover-color);
  58. border-color: var(--right-button-hover-color);
  59. }
  60.  
  61.  
  62. .container {
  63. position: relative;
  64. width: 100%;
  65. height: 100%;
  66. background: var(--container-bg-color);
  67. }
  68.  
  69. .split {
  70. position: absolute;
  71. width: 50%;
  72. height: 100%;
  73. overflow: hidden;
  74. }
  75.  
  76. .split.left {
  77. left:0;
  78. background: url('https://foodrevolution.org/wp-content/uploads/2018/04/blog-featured-diabetes-20180406-1330.jpg') center center no-repeat;
  79. background-size: cover;
  80. }
  81.  
  82. .split.left:before {
  83. position:absolute;
  84. content: "";
  85. width: 100%;
  86. height: 100%;
  87. background: var(--left-bg-color);
  88. }
  89.  
  90. .split.right {
  91. right:0;
  92. background: url('https://elcaminoftlauderdale.com/wp-content/uploads/2017/12/Top-View-Table.jpg') center center no-repeat;
  93. background-size: cover;
  94. }
  95.  
  96. .split.right:before {
  97. position:absolute;
  98. content: "";
  99. width: 100%;
  100. height: 100%;
  101. background: var(--right-bg-color);
  102. }
  103.  
  104. .split.left, .split.right, .split.right:before, .split.left:before {
  105. transition: var(--speed) all ease-in-out;
  106. }
  107.  
  108. .hover-left .left {
  109. width: var(--hover-width);
  110. }
  111.  
  112. .hover-left .right {
  113. width: var(--other-width);
  114. }
  115.  
  116. .hover-left .right:before {
  117. z-index: 2;
  118. }
  119.  
  120.  
  121. .hover-right .right {
  122. width: var(--hover-width);
  123. }
  124.  
  125. .hover-right .left {
  126. width: var(--other-width);
  127. }
  128.  
  129. .hover-right .left:before {
  130. z-index: 2;
  131. }
  132.  
  133. @media(max-width: 800px) {
  134. h1 {
  135. font-size: 2rem;
  136. }
  137.  
  138. .button {
  139. width: 12rem;
  140. }
  141. }
  142.  
  143. @media(max-height: 700px) {
  144. .button {
  145. top: 70%;
  146. }
  147. }
  148.  
  149. .bg-modal{
  150. width: 100%;
  151. height: 100%;
  152. background-color: rgba(0, 0, 0, 0.7);
  153. position: absolute;
  154. top: 0;
  155. display: flex;
  156. justify-content: center;
  157. align-items: center;
  158.  
  159. }
  160.  
  161. #bg-modal-signup{
  162. display: none;
  163. }
  164. #bg-modal-login{
  165. display: none;
  166. }
  167.  
  168.  
  169. .modal-content{
  170. width: 500px;
  171. height: 300px;
  172. background-color: white;
  173. text-align: center;
  174. border-radius: 4px;
  175. position: relative;
  176. padding: 20px;
  177. }
  178.  
  179. .close{
  180. position: absolute;
  181. top: 0;
  182. right: 14px;
  183. font-size: 42px;
  184. color: black;
  185. transform: rotate(45deg);
  186. }
  187.  
  188. .close:hover {
  189. color: yellow;
  190. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement