-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
53 lines (43 loc) · 852 Bytes
/
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
*{
box-sizing: border-box;
margin: 0;
padding: 0;
}
:root {
--repeat: auto-fit;
}
body{
text-align: center;
font-size: 16px;
font-family: 'Cabin', sans-serif;
}
.header h1{
padding: 1em;
}
.container{
display: grid;
padding: 0 2.5em;
/* grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); */
grid-template-columns: repeat(var(--repeat, auto-fit), minmax(calc(250px * 1) , 1fr));
row-gap: 1.5em;
column-gap: 1em;
}
.content img{
width: 100%;
border-radius: 15px;
padding-bottom: 0.5em;
}
.content a{
text-decoration: none;
color: black;
}
.content:hover{
opacity: 0.5;
}
.attribution { font-size: 11px; text-align: center; margin-top: 5em;}
.attribution a { color: hsl(228, 45%, 44%); }
@media (min-width: 1393px){
:root{
--repeat: 4;
}
}