-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.css
192 lines (158 loc) · 2.86 KB
/
main.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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Roboto', sans-serif;
}
html {
overflow-x: hidden;
}
.container {
max-width: 1024px;
width: 100%;
margin: 0 auto;
}
header {
position: sticky;
top: 0;
left: 0;
z-index: 1;
}
header, footer{
background-color: #192a56;
padding-top: 16px;
color: #fff;
}
header > .container,
footer > .container {
justify-content: space-between;
align-items: center;
padding-bottom: 16px;
}
nav {
background-color: #575fcf;
padding: 16px 0;
display: none;
}
nav li {
list-style: none;
display: inline;
margin-right: 16px;
font-size: 18px;
font-weight: bold;
text-transform: uppercase;
}
nav li a {
color: #fff;
text-decoration: none;
}
.menu-hamburguer{
width: 32px;
cursor: pointer;
}
.menu-hamburguer span{
height: 2px;
width: 100%;
background-color: #fff;
display: block;
margin-bottom: 4px;
}
.container-flex {
display: flex;
}
.store-about img {
max-width: 400px;
margin-right: 24px;
}
section {
padding: 48px 0;
}
section h2 {
margin-bottom: 16px;
}
/*.vehicles-list {
justify-content: space-between;
}
Se adicionasse mais 2 itens, teria um espaço vazio
entre os dois na linha de baixo.
*/
.vehicles-list{
flex-wrap: wrap;
}
.vehicles-list li {
list-style: none;
max-width: 30%;
margin-bottom: 24px;
}
.vehicles-list img {
max-width: 100%;
}
.vehicles-list li h3 {
margin: 16px 0;
}
.central-item{
margin: 0 5%;
}
/* 5% por que 3 x 30% da 90%, então temos 10%
de espaço em branco sobrando, dividimos o espaço
em branco à direita e à esquerda do item central.
*/
button {
display: block;
width: 100%;
padding: 8px 0;
border: none;
background-color: #119759;
color: #fff;
font-size: 16px;
font-weight: bold;
font-style: italic;
cursor: pointer;
border-radius: 6px;
}
.price {
margin: 16px 0;
display: block;
}
/*
.vehicles-list li strong {
margin: 16px 0;
display: block;
}
strong é um elemento inline, por isso mudamos
para display block
*/
.price del {
color: #ccc;
font-size: 14px;
}
.form-field{
margin-bottom: 16px;
}
.form-field label {
font-weight: bold;
display: block;
}
.form-field input,
.form-field textarea {
width: 100%;
display: block;
padding: 8px;
}
.form-field textarea {
resize: none;
height: 120px;
}
form {
max-width: 360px;
}
form button {
max-width: 120px;
}
footer li {
list-style: none;
margin-left: 16px;
}
footer li img {
height: 32px;
}