Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :root {
- --container-bg-color: #333;
- --left-bg-color: rgba(223, 39, 39, 0.7);
- --left-button-hover-color: rgba(161, 11, 11, 0.3);
- --right-bg-color: rgba(43, 43, 43, 0.8);
- --right-button-hover-color: rgba(92, 92, 92, 0.3);
- --hover-width: 75%;
- --other-width: 25%;
- --speed: 1000ms;
- }
- html, body {
- padding:0;
- margin:0;
- font-family: 'Lato', 'Arial Narrow', Arial, sans-serif;
- width: 100%;
- height: 100%;
- overflow-x: hidden;
- }
- h1 {
- font-size: 4rem;
- color: #fff;
- position: absolute;
- left: 50%;
- top: 20%;
- transform: translateX(-50%);
- white-space: nowrap;
- }
- .button {
- display: block;
- position: absolute;
- left: 50%;
- top: 40%;
- height: 2.5rem;
- padding-top: 1.3rem;
- width: 15rem;
- text-align: center;
- color: #fff;
- border-bottom: : #fff solid 0.2rem;
- font-size: 1rem;
- font-weight: bold;
- text-transform: uppercase;
- text-decoration: none;
- transform: translateX(-50%);
- }
- .split.left .button:hover {
- background-color: rgba(0,0,0,0);
- border-color: rgba(0,0,0,0);
- /*background-color: var(--left-button-hover-color);
- /*border-color: var(--left-button-hover-color);*/
- }
- .split.right .button:hover {
- background-color: var(--right-button-hover-color);
- border-color: var(--right-button-hover-color);
- }
- .container {
- position: relative;
- width: 100%;
- height: 100%;
- background: var(--container-bg-color);
- }
- .split {
- position: absolute;
- width: 50%;
- height: 100%;
- overflow: hidden;
- }
- .split.left {
- left:0;
- background: url('https://foodrevolution.org/wp-content/uploads/2018/04/blog-featured-diabetes-20180406-1330.jpg') center center no-repeat;
- background-size: cover;
- }
- .split.left:before {
- position:absolute;
- content: "";
- width: 100%;
- height: 100%;
- background: var(--left-bg-color);
- }
- .split.right {
- right:0;
- background: url('https://elcaminoftlauderdale.com/wp-content/uploads/2017/12/Top-View-Table.jpg') center center no-repeat;
- background-size: cover;
- }
- .split.right:before {
- position:absolute;
- content: "";
- width: 100%;
- height: 100%;
- background: var(--right-bg-color);
- }
- .split.left, .split.right, .split.right:before, .split.left:before {
- transition: var(--speed) all ease-in-out;
- }
- .hover-left .left {
- width: var(--hover-width);
- }
- .hover-left .right {
- width: var(--other-width);
- }
- .hover-left .right:before {
- z-index: 2;
- }
- .hover-right .right {
- width: var(--hover-width);
- }
- .hover-right .left {
- width: var(--other-width);
- }
- .hover-right .left:before {
- z-index: 2;
- }
- @media(max-width: 800px) {
- h1 {
- font-size: 2rem;
- }
- .button {
- width: 12rem;
- }
- }
- @media(max-height: 700px) {
- .button {
- top: 70%;
- }
- }
- .bg-modal{
- width: 100%;
- height: 100%;
- background-color: rgba(0, 0, 0, 0.7);
- position: absolute;
- top: 0;
- display: flex;
- justify-content: center;
- align-items: center;
- }
- #bg-modal-signup{
- display: none;
- }
- #bg-modal-login{
- display: none;
- }
- .modal-content{
- width: 300px;
- height: 300px;
- background-color: white;
- text-align: center;
- border-radius: 4px;
- position: relative;
- padding: 100px;
- }
- .close{
- position: absolute;
- top: 0;
- right: 14px;
- font-size: 42px;
- color: black;
- transform: rotate(45deg);
- }
- .close:hover {
- color: yellow;
- }
- .avatar{
- width: 100px;
- height: 100px;
- border-radius: 50%;
- position: absolute;
- top: -50px;
- left: calc(50% - 50px);
- }
- h2{
- margin: 0;
- padding: 0 0 20px;
- text-align: 22px;
- }
- .modal-content p{
- margin: 0;
- padding: 0;
- font-weight: bold;
- text-align: left;
- }
- .modal-content input{
- width: 100%;
- margin-bottom: 2px;
- }
- .modal-content input[type="text"], input[type="password"]{
- border: none;
- border-bottom: 1px solid grey;
- background: transparent;
- outline: none;
- height: 40px;
- color: black;
- font-size: 16px;
- }
- .modal-content input[type="submit"]{
- border: none;
- outline: none;
- height: 40px;
- background: black;
- color: white;
- font-size: 18px;
- border-radius: 20px;
- }
- .modal-content input[type="submit"]:hover{
- cursor: pointer;
- background: red;
- color: #000;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement