-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
220 lines (176 loc) · 3.83 KB
/
style.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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:wght@300;600;700&display=swap');
*,
*::before,
*::after {box-sizing:border-box;}
/* CUSTOM PROPERTIES */
:root {
--ff-sans:'Libre Franklin', sans-serif;
--fw-light: 300;
--fw-reg : 600;
--fw-bold : 700;
--fs-body : 20px;
--fs-att : 11px;
--clr-white :hsl(0, 0%, 100%);
--clr-primary-blue : hsl(223, 87%, 63%);
--clr-secondary-blue: hsl(223, 100%, 88%);
--clr-secondary-red: hsl(354, 100%, 66%);
--clr-neutral-gray:hsl(0, 0%, 59%);
--clr-neutral-dark-blue: hsl(209, 33%, 12%);
--clr-a: hsl(228, 45%, 44%);
}
body {
font-family: var(--ff-sans);
font-size:var(--fs-body);
font-weight:var(--fw-light);
color: var(--clr-neutral-gray);
margin : 0 auto;
}
.inner {text-align:center;}
h1 {color: var(--clr-neutral-dark-blue);}
/* HEADER */
header {margin: 5rem auto 3rem auto;}
header > img{
height: 1.5rem;
width: auto;
}
/* MAIN */
.title {font-size: 1.5rem;}
.title > span {
color:var(--clr-neutral-gray);
font-weight:var(--fw-light);
}
.sub-title {
font-size: 1rem;
margin-bottom:2rem;
color: var(--clr-neutral-dark-blue);
}
/* FORM */
form {position:relative;}
input {
margin: 0 auto;
font:inherit;
font-size:1rem;
padding: 1.5rem 2em;
border-radius: 50px;
border: 2px solid var(--clr-secondary-blue);
width: 60%;
min-width: 18rem;
height: 1rem;
color: var(--clr-neutral-dark-blue);
}
input::placeholder{color: var(--clr-secondary-blue);}
.btn {
display:block;
padding: 1rem;
height:3rem;
text-align:center;
border:none;
cursor:pointer;
font:inherit;
}
.btn-blue {
font-weight: var(--fw-reg);
box-shadow: 1px 1px 10px 3px var(--clr-secondary-blue);
width: 60%;
min-width: 18rem;
font-size: 0.975rem;
color:var(--clr-white);
background-color:var(--clr-primary-blue);
border-radius: 50px;
margin: 0.5rem auto;
}
.btn-blue:hover,
.btn-blue:focus{
background-color: hsl(223, 87%, 55%);
}
.toast-success {
margin: 0 auto;
background-color: var(--clr-secondary-blue);
padding: 1rem;
color: var(--clr-neutral-dark-blue);
width: 15rem;
border-radius: 50px;
font-size: 0.8rem;
display:none;
}
.show {display:block;}
/* ERROR */
small {
position:absolute;
left: 19%;
top: 35%;
color: var(--clr-secondary-red);
font-size: 0.875rem;
font-style: italic;
display:none;
}
.error small {display:block;}
.error input {border:1px solid var(--clr-secondary-red);}
.error .btn-blue {margin: 3rem auto;}
/* HERO IMAGE */
figure {margin: 5rem 2rem 3rem 2rem;}
figure > img { width: 100%;}
/* FOOTER */
.socials > i {
margin: 0.5rem;
color:var(--clr-primary-blue);
border-color: var(--clr-secondary-blue);
cursor: pointer;
transition: color 500ms linear , background-color 1s ease-out;
}
.socials >i:hover {
background-color: var(--clr-primary-blue);
color: var(--clr-white);
border-color:transparent;
}
.copyright {
font-size: 1rem;
margin: 2rem auto;
}
.att {
font-size: var(--fs-att);
margin: 0.5rem auto;
text-align:center;
opacity: 0.5;
}
.footer a {color : var(--clr-a);}
@media (min-width: 650px ) {
header {margin: 3rem auto;}
.wide-centered {
width: 80%;
margin: 0 auto;
}
.sub-title{margin-bottom: 2rem;}
input[type="email"] {
display:inline-block;
width: 40%;
max-width: 20rem;
height: 3rem;
padding: 1.5rem;
font-size: 1rem;
margin-right: 0.5rem;
}
figure {margin: 3rem 2rem 0rem 2rem;}
figure > img {width: 75%;}
small {
top: 100%;
left: 28%;
}
.error .btn-blue {margin: 0.5rem auto;}
.btn-blue {
display:inline-block;
width: 20%;
min-width: 10rem;
height: 3rem;
text-align:center;
font-size: 1rem;
}
.copyright {
margin: 1rem auto;
font-size: 1rem;
}
}
@media (min-width: 1200px) {
.wide-centered {width: 60%;}
figure > img {width: 60%;}
}