-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
84 lines (68 loc) · 1.47 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
* {
font-family: "Poppins", sans-serif;
margin: 0;
padding: 0;
border: none;
text-decoration: none;
box-sizing: border-box;
}
body {
background-color: black;
color: white;
text-align: center;
}
#container {
margin-top: 100px;
width: 80%;
max-width: 400px; /* largura máxima */
/*
margin-left: auto;
margin-right: auto;
*/
margin-inline: auto; /* substitui as duas linhas acima */
}
h1 {
margin-top: 40px;
margin-bottom: 10px;
opacity: 0.9;
}
p {
margin-bottom: 40px;
opacity: 0.7;
}
input,
button {
display: block; /* coloca em modo block - um em baixo do outro onde cada elemento ocupa uma linha inteira */
width: 100%;
padding: 20px; /* top - right - bottom - left */
font-size: 20px;
border-radius: 4px;
}
input {
margin-bottom: 20px;
}
button {
border: none;
background-color: blueviolet;
color: white;
/* falando que a transição de nosso efeito abaixo é do tipo filter e é para demorar 0.2s para acontecer */
transition: filter 0.2s;
}
/* sempre que passar o mouse em cima */
button:hover {
filter: brightness(1.2);
cursor: pointer;
}
/* ======== RESPOSTA ======== */
#resposta {
margin-top: 30px;
/* fazendo a resposta surgir de forma suave */
transition: opacity 1s;
}
/* pegando dentro do id resposta a tag div */
#resposta div {
font-size: 16px;
font-weight: normal;
opacity: 0.9;
margin-bottom: 10px;
}