-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
161 lines (137 loc) · 2.38 KB
/
styles.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
* {
margin: 0;
padding: 0;
border: none;
box-sizing: border-box;
}
body {
width: 100vw;
height: 100vh;
background-color: #282f59;
text-align: center;
margin-top: 3rem;
font-family: popins, sans-serif;
font-weight: 300;
line-height: 1.5;
}
button {
padding: 1rem 3rem;
font-size: 1rem;
transition: all 300ms ease;
}
button:hover {
opacity: 0.9;
cursor: pointer;
}
/* Modal Start */
.modal {
width: 100%;
height: 100%;
position: fixed;
display: grid;
place-items: center;
background: rgba(0, 0, 0, 0.5);
top: 0;
left: 0;
display: none;
animation: openModal 500ms linear forwards;
}
.modal .card {
background: rgb(155, 153, 153);
width: 50rem;
display: flex;
align-items: center;
gap: 2rem;
padding: 2rem;
position: relative;
}
.modal .card #close {
position: absolute;
top: 2rem;
right: 2rem;
font-size: 1.3rem;
cursor: pointer;
}
.modal .card #close:hover {
font-weight: bold;
transform: scale(1.4);
transition: transform .3s ease;
}
.modal .card .brand {
width: 30rem;
}
.modal .card .brand img {
display: block;
width: 100%;
/* height: 200px; */
}
.modal .card h2 {
margin-bottom: 2rem;
}
.modal .card form {
margin-top: 2rem;
width: 100%;
display: flex;
justify-content: space-between;
}
.modal .card input[type="email"] {
background: rgb(189, 188, 188);
width: 100%;
padding: 1rem;
outline: none;
}
.modal .card input[type="submit"] {
background: #f24438;
color: white;
padding: 0 1.6rem;
}
/* open modal animation */
@keyframes openModal {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.close-modal-animation {
animation: closeModal 500ms linear forwards;
}
/* close modal Animation */
@keyframes closeModal {
from {
opacity: 1;
}
to {
opacity: 0;
}
}
@media screen and (max-width: 800px) {
.modal .card {
flex-direction: column;
width: 80vw;
text-align: center;
}
.modal .card .brand {
width: 15rem;
height: 15rem;
border-radius: 50%;
overflow: hidden;
margin-top: 4rem;
}
.modal .card form {
display: block;
}
.modal .card form input[type="email"],
.modal .card form input[type="email"]::placeholder {
text-align: center;
}
.modal .card form input[type="submit"] {
display: block;
width: 100%;
padding: 1rem 0;
margin-top: 0.6rem;
background: rgb(155, 153, 153);
}
}
/* Modal End */