-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
259 lines (219 loc) · 4.34 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
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
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
.intro-content {
position: relative;
/*top: -8rem;*/
display: grid;
grid-template-columns: 1fr 1.5fr;
gap: var(--gap);
min-height: 100vh;
}
.intro-text-content,
.intro-img {
display: flex;
flex-flow: row wrap;
justify-content: center;
}
.intro-img img,
.intro-img svg {
max-width: 100%;
min-height: auto;
}
.top3-content {
max-width: 64rem;
display: flex;
flex-direction: column;
flex-wrap: nowrap;
justify-content: center;
min-height: 100vh;
text-align: center;
}
.grid-one-content {
display: flex;
flex-flow: column wrap;
justify-content: center;
min-height: 100vh;
}
.grid-main-heading {
margin-bottom: 1rem;
}
.grid-description {
padding-bottom: 5rem;
}
.grid {
display: grid;
grid-template-columns: repeat (3, 1fr);
gap: var(--gap);
counter-reset: gridCounter;
}
.grid h3 {
font-size: 3rem;
position: relative;
padding-left: 5rem;
padding-bottom: 2rem;
}
.grid h3::before {
counter-increment: gridCounter;
content: counter(gridCounter);
position: absolute;
font-size: 8rem;
font-style: italic;
top: -4rem;
left: -2rem;
transform: rotate(5deg);
}
.gallery-img {
width: 100%;
max-width: 36rem;
max-height: 36rem;
overflow: hidden;
}
.gallery-img img {
transition: all 300ms ease-in-out;
}
.gallery-img img:hover {
transform: translate(-3%, 3%) scale(1.2) rotate(5deg);
}
.contact-form {
grid-column: span 2;
}
.contact-form .form-grid {
border: none;
display: flex;
flex-direction: row; /*pode por flex-flow: row wrap;*/
flex-wrap: wrap; /*pode por flex-flow: row wrap;*/
gap: var(--gap);
}
.form-grid legend {
font-style: italic;
font-size: 1.6rem;
margin-bottom: 3rem;
}
.form-group {
flex: 1 1 320px;
}
.form-group label {
display: block;
margin-bottom: 1rem;
}
.form-group input,
.form-group textarea {
border: none;
background: var(--white-color);
padding: 1.5rem 2rem;
width: 100%;
font-size: 3rem;
outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
box-shadow: 0 0 10px 2px var(--secondary-color);
}
.form-group button {
border: 0.5rem solid var(--white-color);
background: none;
color: var(--white-color);
padding: 1.5rem 2rem;
font-size: 3rem;
cursor: pointer; /*cursor quando passa o mouse*/
transition: all 300ms ease-in-out; /*efeito ao passar o mouse*/
}
.form-group button:hover {
/*efeito inverter cores*/
background: var(--white-color);
color: var(--primary-color);
}
.form-group ::placeholder {
color: var(--light-gray-color);
}
.footer {
text-align: center; /*alinhar o texto no centro*/
font-size: 1.6rem;
}
.footer a {
color: var(--primary-color);
}
.heart {
color: var(--secondary-color);
}
.footer p {
margin: 0;
padding: 3rem;
}
.close-menu { /*sobrepor todas as telas position: fixed;
z-index: 2;
top: 0;
left: 0;*/
display: none;
}
.back-to-top { /*botao voltar para o topo*/
position: fixed;
bottom: 2rem;
right: 2rem;
background: var(--white-color);
width: 5rem;
height: 5rem;
display: flex;
justify-content: center;
align-items: center;
border-radius: 50%;
color: var(--primary-color);
transform: rotate(-90deg);
border: 0.1rem solid var(--primary-color);
text-decoration: none;
}
@media (max-width: 800px) {
.intro-content,
.grid {
grid-template-columns: 1fr;
}
.gallery-img {
width: 100%;
max-width: 100%;
min-width: 100%;
overflow: hidden;
}
.gallery-img img {
width: 100%;
}
.grid-one-content {
display: block;
}
.menu { /*alinhar menu para mobile*/
bottom: 0;
text-align: center;
}
.menu-content, .menu-content ul {
flex-direction: column; /*responrividade mobile*/
justify-content: center;
}
.menu-content { /*menu no meio da tela*/
height: 100vh;
}
.menu {
display: none;
}
.close-menu-label::after {
content: '☰'; /*tres riscos do menu*/
position: fixed;
z-index: 2;
top: 1rem;
right: 2rem;
background: var(--primary-color);
color: var(--white-color);
font-size: 3rem;
line-height: 3rem;
width: 3rem;
height: 3rem;
text-align: center;
padding: 0.5rem;
cursor: pointer;
}
.close-menu:checked~.menu { /*×*/
display: block;
}
.close-menu:checked~.close-menu-label::after {
content: '×'; /*tres riscos do menu vai mudar para X*/
}
.menu-spacing {
display: none;
}
}