forked from tursics/opendataday2025
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
115 lines (93 loc) · 1.93 KB
/
index.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
:root {
color-scheme: light dark;
scroll-behavior: smooth;
font-size: clamp(1em, 0.9em + 1vw, 1.25em);
line-sizing: normal;
-moz-text-size-adjust: none;
-webkit-text-size-adjust: none;
text-size-adjust: none;
/*
I love this color scheme:
Flexoki by Steph Ango https://stephango.com/flexoki
*/
--flexoki-black: #100F0F;
--flexoki-paper: #FFFCF0;
--flexoki-blue-900: #12253B;
}
body {
margin: 0;
padding: 2rem 2rem 4rem;
font-family: system-ui, sans-serif;
-webkit-font-smoothing: antialiased;
background-color: light-dark(var(--flexoki-paper), var(--flexoki-blue-900));
color: light-dark(var(--flexoki-blue-900), var(--flexoki-paper));
}
body > header,
body > footer {
text-align: center;
}
body > header {
margin-bottom: 4rem;
}
:is(body > header, body > footer) ul {
li { display: inline; }
li + li::before { content: " • "; }
a {
font-weight: bold;
}
}
h1 > div {
font-size: 0.8em;
}
h2 {
font-size: 1.15em;
}
img {
display: block;
width: 100%;
height: auto;
aspect-ratio: 4/3;
object-fit: cover;
border: 1px solid CanvasText;
}
.items {
display: grid;
grid-template-columns: repeat( auto-fit, minmax(19ch, 1fr) );
grid-gap: max(1.5rem, 3vw);
}
.items h2 {
overflow:hidden;
text-overflow:ellipsis;
white-space: nowrap;
width: 98%;
}
.items > div {
margin-bottom: 2rem;
position: relative;
a {
display: block;
margin-bottom: 2rem;
color: inherit;
}
a::before {
position: absolute;
top: 0;
left: 0;
content: " ";
width: 100%;
height: 100%;
background-color: transparent;
z-index: 1;
}
img {
filter:saturate(0.3);
transition: filter 0.3s;
}
&:hover,
&:active,
&:focus {
img {
filter: saturate(1);
}
}
}