-
Notifications
You must be signed in to change notification settings - Fork 0
/
site.css
101 lines (83 loc) · 1.23 KB
/
site.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
body {
max-width: 780px;
margin: 0 auto;
padding: 20px;
}
:root {
--padding: 20px;
}
h1 {
font-weight: normal;
}
header {
text-align: center;
}
footer {
margin-left: auto;
margin-right: auto;
text-align: center;
}
li, p {
line-height: 1.5;
}
li {
margin-bottom: 1em;
}
.img-grid {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
}
.img-grid a {
align-items: flex-end;
display: flex;
margin-bottom: 40px;
margin-bottom: var(--padding);
max-height: min(calc(100vh - 80px), calc(100vw - 40px));
max-height: min(calc(100vh - 80px), calc(100vw - var(--padding)));
overflow: hidden;
}
.img-grid img {
display: block;
height: 100%;
margin-left: auto;
margin-right: auto;
max-width: 100%;
}
.img-view {
align-items: center;
display: flex;
flex-direction: column;
}
.img-view img {
height: 100%;
max-height: 100vh;
max-width: 100%;
}
div.nav {
display: flex;
justify-content: space-between;
width: 100%;
}
@media(min-width:600px) {
header {
text-align: left;
}
}
@media(min-width:820px) {
:root {
--padding: min(40px, calc((100vw - 820px) / 2 + 20px));
}
}
@media(prefers-color-scheme: dark) {
body {
background: #333;
color: #ccc;
}
a {
color: #8af;
}
a:visited {
color: #c8f;
}
}