-
Notifications
You must be signed in to change notification settings - Fork 37
/
app.css
156 lines (147 loc) · 2.97 KB
/
app.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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
:root {
--night: #0b0b1b;
--blue: cornflowerblue;
--text-color: #ccc;
--sms-active-color: rgba(255, 255, 255, 0.1);
--sms-focus-border: 1pt solid cornflowerblue;
--sms-options-bg: rgb(33, 31, 47);
--sms-selected-bg: rgba(255, 255, 255, 0.2);
--sms-text-color: white;
--sms-disabled-bg: rgba(7, 1, 34, 0.87);
--sms-li-disabled-bg: black;
--sms-placeholder-color: lightgray;
--toc-mobile-bg: #1c0e3e;
--toc-li-padding: 3pt 1ex;
--toc-mobile-btn-color: white;
--toc-desktop-nav-margin: 0 0 0 1em;
--toc-active-bg: teal;
--zoo-github-corner-color: var(--night);
--zoo-github-corner-bg: white;
--zoo-example-margin: 1em auto;
}
body {
background: var(--night);
padding: calc(1ex + 2vw);
font-family: -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
color: var(--text-color);
line-height: 1.5;
}
main {
margin: auto;
margin-bottom: 3em;
width: 100%;
max-width: 50em;
}
button,
a.btn {
color: white;
cursor: pointer;
border: none;
border-radius: 3pt;
background-color: teal;
padding: 2pt 4pt;
font-size: 12pt;
line-height: initial;
transition: background-color 0.2s;
}
:is(button, a.btn):hover {
background-color: teal;
color: white;
}
a {
color: var(--blue);
text-decoration: none;
transition: 0.2s;
}
a:hover {
color: orange;
}
code {
overflow-wrap: break-word;
padding: 0 2pt;
border-radius: 2pt;
font-size: 12pt;
background-color: rgba(255, 255, 255, 0.15);
}
pre code {
background-color: transparent;
display: inline-block;
font-size: 10pt;
}
pre {
position: relative;
border-radius: 4pt;
background-color: rgba(255, 255, 255, 0.05);
padding: 1em;
overflow-x: auto;
}
ul {
padding-left: 1em;
}
label {
font-weight: bold;
cursor: pointer;
}
table {
border-collapse: collapse;
}
table :is(td, th) {
border: 1px dashed teal;
padding: 5pt 9pt;
}
table img {
vertical-align: middle;
}
tbody tr:nth-child(odd) {
background: black;
}
h1 {
display: flex;
font-size: clamp(2rem, 2rem + 2vw, 3rem);
place-items: center;
place-content: center;
margin: 1.2em 0;
}
:where(h2, h3, h4, h5, h6) {
scroll-margin-top: 50px;
transition: 0.3s;
}
:where(h2, h3, h4, h5, h6).toc-clicked {
color: orange;
}
/* style heading anchors added by rehype-autolink-headings, see svelte.config.js */
:where(h2, h3, h4, h5, h6) a[aria-hidden='true'] {
transition: 0.3s;
margin-left: 4pt;
opacity: 0;
}
:where(h2, h3, h4, h5, h6):hover a[aria-hidden='true'] {
opacity: 1;
}
blockquote {
border-left: 3pt solid var(--blue);
padding: 4pt 2pt 4pt 9pt;
margin: 1em auto;
background-color: rgba(255, 255, 255, 0.1);
}
blockquote p:last-child {
margin-bottom: 0;
}
blockquote p:first-child {
margin-top: 0;
}
div.multiselect.invalid {
border: 1px solid red !important;
}
/* svelte-toc styles */
aside.toc.desktop {
position: fixed;
top: 3em;
left: calc(50vw + 50em / 2);
max-width: 16em;
}
/* TODO remove this tmp style */
nav:has(+ div.code-example) > a,
section > aside > a.btn {
margin: 0;
}