-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.css
156 lines (133 loc) · 2.25 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
153
154
155
156
* {
box-sizing: border-box;
}
html {
font-family: 'Roboto Mono', monospace;
min-height: 100vh;
background: #1b1f23;
color: white;
}
body {
width: 90vw;
display: flex;
justify-content: center;
margin: auto;
flex-direction: column;
}
header {
margin-top: 2rem;
width: 100%;
height: 20vh;
display: flex;
}
header h1 {
text-align: center;
margin: auto;
}
main {
display: flex;
flex-direction: column;
align-items: center;
}
p {
text-align: center;
}
#add-url {
margin-top: 2rem;
width: 80vw;
height: 2.5rem;
}
.botao {
margin-top: 2rem;
width: 18rem;
height: 3rem;
background: white;
color: #1b1f23;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
}
.botao p {
margin: 0;
font-size: clamp(0.7rem, 0.8rem, 1rem);
}
#images {
width: 100%
}
/* Grid de imagens */
#row {
margin-top: 2rem;
margin-bottom: 2rem;
display: -ms-flexbox; /* IE10 */
display: flex;
-ms-flex-wrap: wrap; /* IE10 */
flex-wrap: wrap;
padding: 0 4px;
}
/* Create four equal columns that sits next to each other */
.column {
-ms-flex: 25%; /* IE10 */
flex: 25%;
max-width: 25%;
padding: 0 4px;
}
.column img {
margin-top: 8px;
vertical-align: middle;
width: 100%;
}
footer {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 100%;
height: 20vh;
}
/* Responsive layout - makes a two column-layout instead of four columns */
@media screen and (max-width: 800px) {
.column {
-ms-flex: 50%;
flex: 50%;
max-width: 50%;
}
}
/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
.column {
-ms-flex: 100%;
flex: 100%;
max-width: 100%;
}
}
@media screen and (max-width: 450px) {
header {
margin-top: 2rem;
width: 100%;
height: 20vh;
display: flex;
}
main {
margin-top: 5em;
display: flex;
flex-direction: column;
align-items: center;
}
#add-url {
margin-top: 2rem;
width: 80vw;
height: 3rem;
}
.botao {
margin-top: 2rem;
width: 10rem;
height: 3rem;
background: white;
color: #1b1f23;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
}
}