-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmaneReset.css
86 lines (72 loc) · 2.07 KB
/
maneReset.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
/*importando fontes
*/
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito&family=Roboto&display=swap');
/*sim, eu sei que n eh boa pratica importar fontes que eu n vou usar, mas eu importo pq fica mais
facil na hora de fazer os projetos para estudo, diminui a redundancia
(no caso, transformei as fontes nao usadas em fontes backdrop)
*/
/* Inicializando variaveis de cores*/
:root
{
--blackShadow: rgba(0, 0, 0, 0.250);
--almostWhite: rgb(221, 221, 221);
}
/* Setando border box como padrao, para evitar problemas de padding aumentado tamanhos de box*/
*, *::before, *::after {
box-sizing: border-box;
}
/*
Tirando margens
Align items como start para flexbox
Tamanho padrao de fonte eh 10px, para melhor calculo de rem
Setando fonte padrao
*/
*
{
margin: 0;
align-items: start;
font-size: 10px;
font-family: 'Roboto', 'Nunito', 'Arial', 'Verdana','Tahoma', 'Trebuchet MS', sans-serif;
}
/*Colocando o quase-branco como cor padrao de fundo
Setando line height maior para melhor leitura */
body
{
background-color: var(--almostWhite);
line-height: 1.5;
}
/*Padronizando inputs e buttons*/
input,button
{
outline-color: none;
border: none;
padding: 5px 10px;
border-radius: 5px;
}
/* Alterando o pointer quando der hover*/
button:hover
{
cursor: pointer;
}
/* Coloquei isso aqui pq em algum artigo que eu li falava que ficava melhor para leitura de multimidia*/
img, picture, video, canvas, svg {
display: block;
max-width: 100%;
}
/* Evitando overflow, pulando p proxima linha quando n tiver espaco*/
p,h1,h2,h3,h4,h5,h6
{
overflow-wrap: break-word;
word-break: break-all;
}
/* Remover o spin button do input type number*/
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
/* display: none; <- Crashes Chrome on hover */
-webkit-appearance: none;
margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}
input[type=number] {
-moz-appearance:textfield; /* Firefox */
}