-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
196 lines (141 loc) · 3.04 KB
/
styles.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
/* Reseta o css */
*{
margin:0;
padding: 0;
box-sizing: border-box;
}
/* Define estilo do corpo */
body{
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
/* Define estilo do container */
.container{
width: 96vw;
height: 90vh;
display: grid;
margin-top: 1rem;
grid-template-columns: 1fr 1fr 1fr;
grid-template-rows: 24% 24% 24% 24%;
grid-gap: 1rem;
grid-template-areas: "grand-card card1 card2"
"grand-card card1 card2"
"grand-card card3 card4"
"banner card3 card4";
}
/* Duração do efeito transition nas classes adicionadas */
.item, .item:hover, .grand-card, .grand-card:hover{
transition: 1000ms;
}
/* Define estilo dos items */
.item{
min-width:200px;
min-height:120px;
}
/* adicona sombra e alinhamento aos items */
.shadow-and-align{
box-shadow: 1px 1px 20px 1px rgb(219, 177, 177);
display: flex;
flex-direction: column;
gap: 1rem;
}
/* Define o GRID-AREA dos items e seu background-colo */
.card1{
grid-area:card1;
background-color: #d8e2dc;
}
.card2{
grid-area:card2;
background-color:#fec89a;
}
.card3{
grid-area:card3;
background-color:#ffe5d9;
}
.card4{
grid-area:card4;
background-color:#ffd7ba
}
.card5{
grid-area:card5;
background-color: e8e8e4;
}
.card6{
grid-area:card6;
background-color: gray;
}
.grand-card{
grid-area:grand-card;
background-color:#ffcdb2;
}
/* Adicona movimento (scala) aos items */
.grand-card:hover{
transform: scale(1.1);
}
.item:hover{
min-width:200px;
min-height:120px;
transform: scale(1.1);
}
/* Estilza os textos */
.text{
display: flex;
align-items: center;
justify-content: center;
text-align: center;
font-size: 1.2rem;
padding: 1rem;
}
.autor{
font-size:0.8rem;
}
/* Resposividade */
@media (max-width: 992px) {
.container{
padding:10px;
width: 96vw;
height: 88vh;
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: 22% 22% 22% 22%;
grid-gap: 1rem;
grid-template-areas: "grand-card card1 "
"grand-card card2"
"grand-card card3"
"card4 card5";
}
.item{
min-width:200px;
min-height:120px;
max-width: 430px;
max-height: 140px;
}
}
@media (max-width: 800px) {
.container{
width: 96vw;
height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
gap: 2rem;
}
.item{
min-width:300px;
min-height:120px;
max-width: 400px;
max-height: 140px;
padding: 1rem;
}
.grand-card{
min-width:300px;
min-height:120px;
max-width: 400px;
max-height: 140px;
}
.card6{
display: grid;
}
}