Repository navigation
Expand file tree
/
Copy pathoptions.css
More file actions
130 lines (104 loc) · 2.11 KB
/
Copy pathoptions.css
File metadata and controls
130 lines (104 loc) · 2.11 KB
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
:root {
--rgh-red: #cf222e;
--content-width: 750px; /* Sync with media query below */
--viewport-margin: 30px;
max-width: none;
}
body {
margin: 0;
}
form {
max-width: var(--content-width);
margin: auto;
padding-block: 1em;
}
html::after {
/* Add some extra scroll to the page to reduce section toggle jumps/scroll */
content: '';
display: block;
height: 50vh;
background: url('icon.png') center no-repeat;
filter: opacity(0.1) saturate(0) brightness(1.2);
}
@media (prefers-color-scheme: dark) {
:root {
--rgh-red: #f85149;
}
}
p,
ul {
margin-top: 0;
}
/* :not() due to https://github.com/refined-github/refined-github/issues/8062 */
p:last-child:not(.info p, background-status p),
ul:last-child {
margin-bottom: 0;
}
ul {
padding-left: 0;
list-style: none;
}
storage-usage {
font-style: italic;
}
details {
margin-bottom: 1em;
--border-radius: 6px;
border: solid 1px transparent;
border-radius: var(--border-radius);
/* Sync with --content-width */
@media (width <= 750px) {
border-width: 0;
}
&[open] {
border-color: light-dark(#d2d9e0, #3d444d);
}
}
details[open]::details-content {
padding: 10px;
}
summary {
--summary-padding: 10px;
position: sticky;
top: 0;
z-index: 1;
background: light-dark(#f6f8fa, #141415);
list-style: none;
padding: var(--summary-padding);
[open] & {
border-top-left-radius: var(--border-radius);
border-top-right-radius: var(--border-radius);
}
}
summary::-webkit-details-marker {
display: none; /* Just for Safari. Chrome uses `list-style` */
}
summary:hover {
background: light-dark(#e3e9ef, #0e1012);
}
.text-code {
font-size: 11px;
}
.text-italics {
font-style: italic;
}
.error-banner {
padding: 1em;
border: 1px solid var(--rgh-red);
background: color-mix(in srgb, var(--rgh-red) 10%, transparent);
}
#js-failed {
animation: show 0s 1s both;
white-space: pre-line;
box-sizing: border-box;
max-width: var(--content-width);
margin: var(--viewport-margin) auto;
}
@keyframes show {
from {
display: none;
/* Freaking firefox still does not support discrete animations */
/* https://caniuse.com/wf-display-animation */
opacity: 0;
}
}