-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.css
152 lines (121 loc) · 2.66 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
header,
section h2,
section h3,
form button {
font-family: 'Bungee', cursive;
font-weight: normal;
}
body, input, textarea {
font-family: 'Roboto', sans-serif;
}
header {
padding: 16px;
background-color: #182C61;
color: #ecf0f1;
}
header nav li {
display: inline;
margin-left: 16px;
font-size: 18px;
}
header nav li a {
color: #ecf0f1;
text-decoration: none;
padding: 8px;
}
/*Não funciona só acrescentar a cor no nav li, precisa ser no nav li a */
.container {
max-width: 1280px;
width: 100%;
margin: 0 auto;
}
/* a tela disponivel tem 1280px, e o conteudo ocupara 100% dessa largura, passando disso ficará márgens. O que é bom para
telas muito grandes, pois o conteúdo não vai ficar de ponta a ponta da tela.*/
/*para centralizar é a margen, 0 = cima e embaixo, auto esquerda e direita */
header .container,
section .container {
display: flex;
align-items: center;
justify-content: space-between;
}
.brands-list img {
height: 24px;
}
.brands-list li {
display: inline;
margin-right: 8px;
}
section .container {
align-items: flex-start;
}
section {
padding: 24px 0;
color: #182C61;
}
section h2 {
margin-bottom: 16px;
}
section p {
margin-bottom: 8px;
}
.store-front {
margin-right: 32px;
}
.social-links img{
height: 24px;
}
.social-links li {
display: inline;
margin-right: 8px;
}
.social-links li a {
text-decoration: none;
}
#contact .container{
display: block;
}
.contact-methods {
display: flex;
justify-content: space-between;
}
form input,
form textarea,
form button {
display: block;
width: 320px;
margin-bottom: 8px;
padding: 8px;
}
form textarea {
resize: none;
height: 180px;
}
/* resize: none --> a caixa de mandar mensagem no site tinha a possibilidade de redimensionar o seu tamanho pelo mouse, com essa propriedade resizr e valor none, retira
isso, pois se permitisse, bagunçaria o layout do site. */
section h3 {
margin-bottom: 16px;
}
form button {
background-color: #182C61;
color: #ecf0f1;
border: none;
cursor: pointer; /*faz a setinha virar a mãosinha*/
}
form button:hover {
background-color: #2c468e;
}
/* button:hover = faz o botão ficar mais claro quando passa o mouse em cima */
input:focus, textarea:focus {
outline-color: #182C61;
}
/* focus = quando estiver "em foco" No caso acima, ao clicar na caixa de input ou textarea a borda fica mais escura, o professor usou o recurso para mudar essa cor de evidência */
footer {
background-color: #182C61;
color: #ecf0f1;
padding: 16px 0;
}