blob: d21bd32cd899b6f0066ae89068fb629314d5bccb (
plain)
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
|
:root {
color-scheme: light dark;
--body-background: light-dark(
oklch(95% 0.01 250),
oklch(20% 0.01 250)
);
--text-color: light-dark(
oklch(5% 0.01 250),
oklch(90% 0.01 250)
);
--border-color: light-dark(
oklch(85% 0.01 250),
oklch(40% 0.01 250)
);
--shade-background: light-dark(
oklch(90% 0.01 250),
oklch(30% 0.01 250)
);
--link-color: light-dark(
oklch(50% 0.15 250),
oklch(60% 0.15 250)
);
}
body {
margin: 0 1rem;
font-family: Helvetica, Arial, sans-serif;
background: var(--body-background);
color: var(--text-color);
}
a {
text-decoration: none;
color: var(--link-color);
}
body > header, .box {
--box-padding: .5rem;
margin: 1rem 0;
border: 1px solid var(--border-color);
padding: var(--box-padding);
> *:first-child {
margin-top: 0;
}
> *:last-child {
margin-bottom: 0;
}
> header:first-child {
margin: calc(-1 * var(--box-padding));
margin-bottom: 0;
padding: .5rem;
border-bottom: 1px solid var(--border-color);
font-weight: bold;
}
}
footer {
margin-top: 1rem;
text-align: center;
}
.icon {
height: 1lh;
vertical-align: text-bottom;
}
@media (prefers-color-scheme: dark) {
.icon {
filter: brightness(0) invert(1);
}
}
.repo {
margin-bottom: 1rem;
font-size: 120%;
font-weight: bold;
}
.branch {
display: inline-block;
margin-right: 1rem;
padding: .2rem;
border: 1px solid var(--border-color);
}
.description {
margin-bottom: .2rem;
}
.count + .count {
margin-left: 1rem;
}
pre.box {
/* Instead of scrolling overflow for long lines, grow the box. */
width: fit-content;
}
.overview {
overflow-wrap: break-word;
&.box {
--box-padding: 1rem;
}
a {
text-decoration: underline;
}
h1, h2 {
border-bottom: 1px solid var(--border-color);
}
img {
max-width: 100%;
}
code {
background: var(--shade-background);
}
/* TODO Strip permalinks? */
svg.octicon-link {
display: none;
}
}
|