-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
158 lines (132 loc) · 2.97 KB
/
styles.css
File metadata and controls
158 lines (132 loc) · 2.97 KB
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
@import 'https://fonts.googleapis.com/css?family=Lato:400,700&display=swap';
:root {
--color-green: rgb(125, 199, 41);
--color-rocket: #715649;
}
* { /*zerar valores do próprio navegador*/
margin:0;
padding:0;
border:0;
}
body {
background: rgb(35, 45, 100);
color: var(--color-green);
font-family: 'Lato', sans-serif;
}
header{
/*background-color: royalblue;*/
padding: 32px;
border-bottom: 1px solid rgb(126, 150, 38);
background: rgba(216, 81, 81, 0.644)
}
.links { /*cascata*/
text-align: center;
}
.links a { /*. pra referenciar uma classe*/
color: white; /*pinta de branco o texto*/
font-size: 18px; /*muda o tamanho da fonte*/
line-height: 28px; /*altera a altura que o texto está*/
margin: 0 16px; /*margem de cada palavra a (16px pros lados)*/
text-decoration: none; /*retira underline (já que é link)*/
}
.links a:hover{ /*altera o botão de link ao passar o mouse*/
color: #50fa7b;
transition: color 700ms;
}
#wrapper {
text-align: center;
padding: 32px; /*padding é espaçamento*/
}
#wrapper img {
border-radius: 900px;
border: 5px solid #349240;
margin-bottom: 32px;
height: 300px;
}
#wrapper h1 {
font-size: 42px;
line-height: 52px;
font-weight: bold;
}
#wrapper h2 {
font-size: 24px;
line-height: 34px;
font-weight: normal;
margin-top: 8px;
opacity: 0.8;
}
#wrapper p {
max-width: 300px;
margin: 5px auto; /*faz o texto ficar centralizado automaticamente*/
font-size: 20px;
line-height: 34px;
}
#links-footer a{
/*text-decoration: underline;*/
border-bottom: 1px solid var(--color-green);
}
/*====CARDS====*/
.cards {
max-width: 800px;
margin: 0 auto;
display: grid;
grid-template-columns: 1fr 1fr 1fr; /*3 colunas*/
gap: 20px;
}
.card {
background-color: #120324;
}
.card__image-container img{
width: 100%;
filter:grayscale();
}
.card__content,
.card__info {
padding: 24px;
}
.card__info {
display: grid;
grid-template-columns: 1fr 1fr; /*Deixa com 2 colunas (fr -> flexivel em tamnho)*/
}
.card__price {
background-color: var(--color-rocket);
filter: brightness(90%);
padding: 5px 20px;
border-radius: 20px;
text-align: center;
}
/*===MODAL===*/
.modal-overlay {
background-color: rgba(0,0,0,0.7);
width:100%;
height:100%;
position: fixed;
top: 0;
opacity: 0;
visibility: hidden;
}
.modal {
background-color: white;
width: 90%;
height: 90%;
margin: 5vh auto;
position: relative; /*fica relativo, de forma que o close-modal respeite-o*/
}
.modal .close-modal {
color: black;
position: absolute;
right: 8px;
top: 8px;
cursor: pointer; /*faz o mouse virar mãozinha ao passar*/
}
/*===MODAL.ACTIVE===*/
.modal-overlay.active {
opacity: 1;
visibility: visible;
}
iframe {
width: 100%;
height:90%;
position: absolute;
top: 5%;
}