-
-
Notifications
You must be signed in to change notification settings - Fork 181
/
Copy pathcatppuccin.user.less
335 lines (310 loc) Β· 22.8 KB
/
catppuccin.user.less
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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
/* ==UserStyle==
@name docs.rs Catppuccin
@namespace github.com/catppuccin/userstyles/styles/docs.rs
@homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/docs.rs
@version 2024.12.31
@updateURL https://github.com/catppuccin/userstyles/raw/main/styles/docs.rs/catppuccin.user.less
@supportURL https://github.com/catppuccin/userstyles/issues?q=is%3Aopen+is%3Aissue+label%3Adocs.rs
@description Soothing pastel theme for docs.rs
@author Catppuccin
@license MIT
@preprocessor less
@var select lightFlavor "Light Flavor" ["latte:Latte*", "frappe:FrappΓ©", "macchiato:Macchiato", "mocha:Mocha"]
@var select darkFlavor "Dark Flavor" ["latte:Latte", "frappe:FrappΓ©", "macchiato:Macchiato", "mocha:Mocha*"]
@var select accentColor "Accent" ["rosewater:Rosewater", "flamingo:Flamingo", "pink:Pink", "mauve:Mauve*", "red:Red", "maroon:Maroon", "peach:Peach", "yellow:Yellow", "green:Green", "teal:Teal", "blue:Blue", "sapphire:Sapphire", "sky:Sky", "lavender:Lavender", "subtext0:Gray"]
==/UserStyle== */
@-moz-document domain("docs.rs"), domain("doc.rust-lang.org") {
:root:not([data-docs-rs-theme]) {
@media (prefers-color-scheme: light) {
#catppuccin(@lightFlavor);
}
@media (prefers-color-scheme: dark) {
#catppuccin(@darkFlavor);
}
}
:root[data-docs-rs-theme="dark"] {
#catppuccin(@darkFlavor);
}
:root[data-docs-rs-theme="light"] {
#catppuccin(@lightFlavor);
}
#catppuccin(@flavor) {
@rosewater: @catppuccin[@@flavor][@rosewater];
@flamingo: @catppuccin[@@flavor][@flamingo];
@pink: @catppuccin[@@flavor][@pink];
@mauve: @catppuccin[@@flavor][@mauve];
@red: @catppuccin[@@flavor][@red];
@maroon: @catppuccin[@@flavor][@maroon];
@peach: @catppuccin[@@flavor][@peach];
@yellow: @catppuccin[@@flavor][@yellow];
@green: @catppuccin[@@flavor][@green];
@teal: @catppuccin[@@flavor][@teal];
@sky: @catppuccin[@@flavor][@sky];
@sapphire: @catppuccin[@@flavor][@sapphire];
@blue: @catppuccin[@@flavor][@blue];
@lavender: @catppuccin[@@flavor][@lavender];
@text: @catppuccin[@@flavor][@text];
@subtext1: @catppuccin[@@flavor][@subtext1];
@subtext0: @catppuccin[@@flavor][@subtext0];
@overlay2: @catppuccin[@@flavor][@overlay2];
@overlay1: @catppuccin[@@flavor][@overlay1];
@overlay0: @catppuccin[@@flavor][@overlay0];
@surface2: @catppuccin[@@flavor][@surface2];
@surface1: @catppuccin[@@flavor][@surface1];
@surface0: @catppuccin[@@flavor][@surface0];
@base: @catppuccin[@@flavor][@base];
@mantle: @catppuccin[@@flavor][@mantle];
@crust: @catppuccin[@@flavor][@crust];
@accent: @catppuccin[@@flavor][@@accentColor];
color-scheme: if(@flavor = latte, light, dark);
::selection {
background-color: fade(@accent, 30%);
}
input,
textarea {
&::placeholder {
color: @subtext0 !important;
}
}
--color-background-code: @mantle;
--color-background: @base;
--input-color: @text;
--input-box-shadow-focus: 0 0 8px 4px @accent;
--color-border-light: @surface2;
--color-border: @surface0;
--color-doc-link-background: @accent;
--color-doc-link-hover: @accent;
--color-error-hover: red;
--color-error: red;
--color-macro: red;
--color-menu-border: red;
--color-menu-header-background: red;
--color-navbar-standard: @text;
--color-standard: @subtext1;
--color-brand: @text;
--color-struct: red;
--color-type: @peach;
--color-url: @accent;
--color-warn-background: @peach;
--color-warn-msg: @crust;
--color-warn-hover: red;
--color-warn: @peach;
--color-background-input: @mantle;
--color-table-header-background: @surface0;
--color-table-header: @text;
--color-search-focus: red;
--chart-title-color: red;
--chart-grid: red;
--main-background-color: @base;
--main-color: @text;
--settings-input-color: @accent;
--settings-input-border-color: @surface0;
--settings-button-color: @text;
--settings-button-border-focus: @accent;
--sidebar-background-color: @mantle;
--sidebar-background-color-hover: @crust;
--source-sidebar-background-selected: @surface0;
--source-sidebar-background-hover: @base;
--code-block-background-color: @mantle;
--headings-border-bottom-color: @overlay1;
--border-color: @surface0;
--button-background-color: @mantle;
--right-side-color: @surface2;
--code-attribute-color: @yellow;
--toggles-color: @subtext1;
--search-input-focused-border-color: @accent;
--copy-path-button-color: @text;
--codeblock-error-hover-color: @red;
--codeblock-error-color: fade(@red, 70%);
--codeblock-ignore-hover-color: @red;
--codeblock-ignore-color: fade(@red, 70%);
--warning-border-color: red;
--type-link-color: @sky;
--trait-link-color: @mauve;
--assoc-item-link-color: @yellow;
--function-link-color: @green;
--macro-link-color: @green;
--keyword-link-color: @yellow;
--mod-link-color: @accent;
--link-color: @accent;
--sidebar-link-color: @accent;
--sidebar-current-link-background-color: @surface0;
--search-result-link-focus-background-color: fade(@accent, 20%);
--search-result-border-color: @surface0;
--search-color: @text;
--search-error-code-background-color: red;
--search-results-alias-color: red;
--search-results-grey-color: @subtext1;
--search-tab-title-count-color: @subtext0;
--search-tab-button-not-selected-border-top-color: @crust;
--search-tab-button-not-selected-background: @crust;
--search-tab-button-selected-border-top-color: @accent;
--search-tab-button-selected-background: @base;
--stab-background-color: @surface0;
--stab-code-color: @accent;
--code-highlight-kw-color: @mauve;
--code-highlight-kw-2-color: @mauve;
--code-highlight-lifetime-color: @blue;
--code-highlight-prelude-color: @yellow;
--code-highlight-prelude-val-color: @yellow;
--code-highlight-number-color: @peach;
--code-highlight-string-color: @green;
--code-highlight-literal-color: @red;
--code-highlight-attribute-color: @yellow;
--code-highlight-self-color: @red;
--code-highlight-macro-color: @blue;
--code-highlight-question-mark-color: @teal;
--code-highlight-comment-color: @overlay2;
--code-highlight-doc-comment-color: @overlay2;
--color-syntax-foreground: inherit;
--color-syntax-attribute: @yellow;
--color-syntax-background: @mantle;
--color-syntax-bool: @red;
--color-syntax-comment: @overlay2;
--color-syntax-doc-comment: @overlay2;
--color-syntax-keyword1: @mauve;
--color-syntax-keyword2: @mauve;
--color-syntax-lifetime: @blue;
--color-syntax-macro: @blue;
--color-syntax-number: @peach;
--color-syntax-prelude-ty: @yellow;
--color-syntax-prelude-val: @yellow;
--color-syntax-question-mark: @teal;
--color-syntax-self: @red;
--color-syntax-string: @green;
--src-line-numbers-span-color: @accent;
--src-line-number-highlighted-background-color: fade(@accent, 30%);
--test-arrow-color: #dedede;
--test-arrow-background-color: red;
--test-arrow-hover-color: #dedede;
--test-arrow-hover-background-color: red;
--target-background-color: fade(@accent, 10%);
--target-border-color: @accent;
--kbd-color: @text;
--kbd-background: @mantle;
--kbd-box-shadow-color: @surface1;
--crate-search-hover-border: red;
--src-sidebar-background-selected: @surface0;
--src-sidebar-background-hover: @surface1;
--table-alt-row-background-color: @mantle;
--codeblock-link-background: fade(@surface0, 50%);
--scrape-example-toggle-line-background: red;
--scrape-example-toggle-line-hover-background: red;
--scrape-example-code-line-highlight: fade(@accent, 40%);
--scrape-example-code-line-highlight-focus: fade(@accent, 40%);
--scrape-example-help-border-color: @subtext0;
--scrape-example-help-color: @subtext1;
--scrape-example-help-hover-border-color: @text;
--scrape-example-help-hover-color: @text;
--scrape-example-code-wrapper-background-start: @base;
--scrape-example-code-wrapper-background-end: @base;
--sidebar-resizer-hover: @sky;
--sidebar-resizer-active: @sapphire;
select {
background-color: @mantle;
border-color: @surface0;
}
hr {
border-color: @overlay1;
}
.rust-logo {
@svg: escape(
'<svg height="106" width="106" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g transform="translate(53 53)"><path stroke="@{text}" fill="@{crust}" stroke-linejoin="round" d="M-8.5-14.5h13c8 0 8 8 0 8h-13Zm-31 37h40v-11h-9v-8h10c11 0 5 19 14 19h25v-19h-6v2c0 8-9 7-10 2s-5-9-6-9c15-8 6-24-6-24h-47v11h10v26h-15Z"/><g mask="url(#a)"><circle r="43" fill="none" stroke="@{crust}" stroke-width="9"/><path id="b" stroke="@{crust}" stroke-width="3" stroke-linejoin="round" d="m46 3 5-3-5-3z"/><use xlink:href="#b" transform="rotate(11.25)"/><use xlink:href="#b" transform="rotate(22.5)"/><use xlink:href="#b" transform="rotate(33.75)"/><use xlink:href="#b" transform="rotate(45)"/><use xlink:href="#b" transform="rotate(56.25)"/><use xlink:href="#b" transform="rotate(67.5)"/><use xlink:href="#b" transform="rotate(78.75)"/><use xlink:href="#b" transform="rotate(90)"/><use xlink:href="#b" transform="rotate(101.25)"/><use xlink:href="#b" transform="rotate(112.5)"/><use xlink:href="#b" transform="rotate(123.75)"/><use xlink:href="#b" transform="rotate(135)"/><use xlink:href="#b" transform="rotate(146.25)"/><use xlink:href="#b" transform="rotate(157.5)"/><use xlink:href="#b" transform="rotate(168.75)"/><use xlink:href="#b" transform="rotate(180)"/><use xlink:href="#b" transform="rotate(191.25)"/><use xlink:href="#b" transform="rotate(202.5)"/><use xlink:href="#b" transform="rotate(213.75)"/><use xlink:href="#b" transform="rotate(225)"/><use xlink:href="#b" transform="rotate(236.25)"/><use xlink:href="#b" transform="rotate(247.5)"/><use xlink:href="#b" transform="rotate(258.75)"/><use xlink:href="#b" transform="rotate(270)"/><use xlink:href="#b" transform="rotate(281.25)"/><use xlink:href="#b" transform="rotate(292.5)"/><use xlink:href="#b" transform="rotate(303.75)"/><use xlink:href="#b" transform="rotate(315)"/><use xlink:href="#b" transform="rotate(326.25)"/><use xlink:href="#b" transform="rotate(337.5)"/><use xlink:href="#b" transform="rotate(348.75)"/><path id="c" stroke="@{crust}" stroke-width="6" stroke-linejoin="round" d="m-7-42 7 7 7-7z"/><use xlink:href="#c" transform="rotate(72)"/><use xlink:href="#c" transform="rotate(144)"/><use xlink:href="#c" transform="rotate(216)"/><use xlink:href="#c" transform="rotate(288)"/></g><mask id="a"><path fill="#fff" d="M-60-60H60V60H-60z"/><circle id="d" cy="-40" r="3"/><use xlink:href="#d" transform="rotate(72)"/><use xlink:href="#d" transform="rotate(144)"/><use xlink:href="#d" transform="rotate(216)"/><use xlink:href="#d" transform="rotate(288)"/></mask></g></svg>'
);
content: url("data:image/svg+xml,@{svg}");
}
img[alt="Change settings"] {
@svg: escape(
'<svg xmlns="http://www.w3.org/2000/svg" width="27.434" height="29.5" viewBox="0 0 27.434 29.5" fill="@{text}"><path d="M27.316 18.39a2.7 2.7 0 0 0-.98-1.46 1.6 1.6 0 0 1-.016-.762l.035-.176v-1.191c0-1.246-.003-1.278-.046-1.473a1.7 1.7 0 0 1 .007-.805c.477-.343.829-.859.997-1.472.257-.957.074-2.094-.508-3.117l-.594-1.032c-.746-1.304-1.965-2.117-3.18-2.117-.379 0-.75.078-1.086.235a1.96 1.96 0 0 1-.855-.391l-.102-.082-.117-.063-1.855-1.07-.094-.055-.106-.043c-.378-.156-.66-.41-.77-.554C17.919 1.172 16.349 0 14.297 0h-1.155c-2.043 0-3.61 1.152-3.75 2.723-.114.14-.391.382-.758.527l-.102.04-.094.05-1.94 1.066-.134.074-.117.094a2 2 0 0 1-.832.403 2.5 2.5 0 0 0-1.008-.211c-1.199 0-2.414.82-3.168 2.14l-.59 1.032c-.41.718-.64 1.523-.64 2.257-.004.953.36 1.758 1.012 2.258a1.9 1.9 0 0 1-.016.785c-.04.168-.063.282-.063 1.563 0 1.148 0 1.148.016 1.261l.008.075.015.074c.075.344.047.64.012.8-.644.5-1.004 1.302-.992 2.259.008.726.238 1.52.648 2.242l.59 1.027c.758 1.332 1.965 2.16 3.149 2.16.324 0 .644-.062.937-.187.168.039.492.156.813.418l.11.086.124.07 2.047 1.156.102.059.105.043c.363.144.648.379.766.52.164 1.519 1.718 2.632 3.746 2.632h1.156c2.035 0 3.598-1.133 3.746-2.672.117-.144.402-.394.773-.55l.114-.047.101-.063 1.961-1.156.106-.063.097-.078c.309-.246.653-.37.832-.398.313.136.66.21 1.016.21 1.2 0 2.41-.82 3.164-2.14l.594-1.031c.59-1.028.777-2.164.52-3.117Zm-2.043 2.247-.59 1.031c-.437.766-1.105 1.25-1.636 1.25a.7.7 0 0 1-.371-.094 1.15 1.15 0 0 0-.567-.129c-.593 0-1.382.297-2.007.797l-1.961 1.156c-1.016.426-1.848 1.293-1.848 1.93 0 .64-.898 1.16-1.996 1.16H13.14c-1.102 0-2-.515-2-1.14 0-.63-.832-1.477-1.852-1.887l-2.047-1.16c-.637-.512-1.426-.813-2.008-.813-.199 0-.379.035-.515.114a.65.65 0 0 1-.332.085c-.52 0-1.18-.5-1.621-1.273l-.59-1.031c-.543-.953-.555-1.98-.024-2.285.532-.305.782-1.434.551-2.504V14.8c0-1.09.02-1.18.02-1.18.238-1.074-.008-2.203-.551-2.516-.54-.304-.54-1.34.008-2.293l.59-1.03c.437-.766 1.101-1.255 1.636-1.255a.73.73 0 0 1 .364.094c.152.086.343.125.566.125.594 0 1.379-.297 2.004-.793l1.945-1.066c1.02-.407 1.856-1.278 1.856-1.934s.898-1.191 2-1.191h1.156c1.098 0 1.996.543 1.996 1.21 0 .669.832 1.555 1.848 1.973L20 6.012c.617.492 1.402.777 2.012.777.242 0 .453-.047.62-.14a.8.8 0 0 1 .403-.102c.55 0 1.223.476 1.652 1.23l.59 1.032c.543.953.52 2.004-.062 2.336-.574.332-.86 1.48-.625 2.554 0 0 .008.04.008 1.102v1.011c-.215 1.051.07 2.176.636 2.5.567.325.586 1.368.04 2.325Zm0 0"/><path d="M13.61 7.61a7.084 7.084 0 0 0-7.083 7.085 7.085 7.085 0 1 0 14.168 0A7.09 7.09 0 0 0 13.61 7.61m0 12.41a5.33 5.33 0 0 1-5.325-5.325 5.33 5.33 0 0 1 5.324-5.32 5.327 5.327 0 0 1 5.325 5.32 5.33 5.33 0 0 1-5.325 5.325Zm0 0"/><path d="M13.684 9.906a4.72 4.72 0 0 0-4.72 4.719 4.72 4.72 0 0 0 4.72 4.719 4.724 4.724 0 0 0 4.714-4.719 4.724 4.724 0 0 0-4.714-4.719m0 7.676a2.954 2.954 0 1 1 0-5.91 2.953 2.953 0 0 1 2.953 2.953 2.957 2.957 0 0 1-2.953 2.957m0 0"/></svg>'
);
content: url("data:image/svg+xml,@{svg}");
}
#settings-menu {
img[alt="Change settings"] {
@svg: escape(
'<svg xmlns="http://www.w3.org/2000/svg" width="27.434" height="29.5" viewBox="0 0 27.434 29.5" fill="@{text}"><path d="M27.316 18.39a2.7 2.7 0 0 0-.98-1.46 1.6 1.6 0 0 1-.016-.762l.035-.176v-1.191c0-1.246-.003-1.278-.046-1.473a1.7 1.7 0 0 1 .007-.805c.477-.343.829-.859.997-1.472.257-.957.074-2.094-.508-3.117l-.594-1.032c-.746-1.304-1.965-2.117-3.18-2.117-.379 0-.75.078-1.086.235a1.96 1.96 0 0 1-.855-.391l-.102-.082-.117-.063-1.855-1.07-.094-.055-.106-.043c-.378-.156-.66-.41-.77-.554C17.919 1.172 16.349 0 14.297 0h-1.155c-2.043 0-3.61 1.152-3.75 2.723-.114.14-.391.382-.758.527l-.102.04-.094.05-1.94 1.066-.134.074-.117.094a2 2 0 0 1-.832.403 2.5 2.5 0 0 0-1.008-.211c-1.199 0-2.414.82-3.168 2.14l-.59 1.032c-.41.718-.64 1.523-.64 2.257-.004.953.36 1.758 1.012 2.258a1.9 1.9 0 0 1-.016.785c-.04.168-.063.282-.063 1.563 0 1.148 0 1.148.016 1.261l.008.075.015.074c.075.344.047.64.012.8-.644.5-1.004 1.302-.992 2.259.008.726.238 1.52.648 2.242l.59 1.027c.758 1.332 1.965 2.16 3.149 2.16.324 0 .644-.062.937-.187.168.039.492.156.813.418l.11.086.124.07 2.047 1.156.102.059.105.043c.363.144.648.379.766.52.164 1.519 1.718 2.632 3.746 2.632h1.156c2.035 0 3.598-1.133 3.746-2.672.117-.144.402-.394.773-.55l.114-.047.101-.063 1.961-1.156.106-.063.097-.078c.309-.246.653-.37.832-.398.313.136.66.21 1.016.21 1.2 0 2.41-.82 3.164-2.14l.594-1.031c.59-1.028.777-2.164.52-3.117Zm-2.043 2.247-.59 1.031c-.437.766-1.105 1.25-1.636 1.25a.7.7 0 0 1-.371-.094 1.15 1.15 0 0 0-.567-.129c-.593 0-1.382.297-2.007.797l-1.961 1.156c-1.016.426-1.848 1.293-1.848 1.93 0 .64-.898 1.16-1.996 1.16H13.14c-1.102 0-2-.515-2-1.14 0-.63-.832-1.477-1.852-1.887l-2.047-1.16c-.637-.512-1.426-.813-2.008-.813-.199 0-.379.035-.515.114a.65.65 0 0 1-.332.085c-.52 0-1.18-.5-1.621-1.273l-.59-1.031c-.543-.953-.555-1.98-.024-2.285.532-.305.782-1.434.551-2.504V14.8c0-1.09.02-1.18.02-1.18.238-1.074-.008-2.203-.551-2.516-.54-.304-.54-1.34.008-2.293l.59-1.03c.437-.766 1.101-1.255 1.636-1.255a.73.73 0 0 1 .364.094c.152.086.343.125.566.125.594 0 1.379-.297 2.004-.793l1.945-1.066c1.02-.407 1.856-1.278 1.856-1.934s.898-1.191 2-1.191h1.156c1.098 0 1.996.543 1.996 1.21 0 .669.832 1.555 1.848 1.973L20 6.012c.617.492 1.402.777 2.012.777.242 0 .453-.047.62-.14a.8.8 0 0 1 .403-.102c.55 0 1.223.476 1.652 1.23l.59 1.032c.543.953.52 2.004-.062 2.336-.574.332-.86 1.48-.625 2.554 0 0 .008.04.008 1.102v1.011c-.215 1.051.07 2.176.636 2.5.567.325.586 1.368.04 2.325Zm0 0"/><path d="M13.61 7.61a7.084 7.084 0 0 0-7.083 7.085 7.085 7.085 0 1 0 14.168 0A7.09 7.09 0 0 0 13.61 7.61m0 12.41a5.33 5.33 0 0 1-5.325-5.325 5.33 5.33 0 0 1 5.324-5.32 5.327 5.327 0 0 1 5.325 5.32 5.33 5.33 0 0 1-5.325 5.325Zm0 0"/><path d="M13.684 9.906a4.72 4.72 0 0 0-4.72 4.719 4.72 4.72 0 0 0 4.72 4.719 4.724 4.724 0 0 0 4.714-4.719 4.724 4.724 0 0 0-4.714-4.719m0 7.676a2.954 2.954 0 1 1 0-5.91 2.953 2.953 0 0 1 2.953 2.953 2.957 2.957 0 0 1-2.953 2.957m0 0"/></svg>'
);
content: url("data:image/svg+xml,@{svg}");
}
> a:not(:has(img))::before {
@svg: escape(
'<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 12 12" fill="@{text}"><path d="M10.25 6c0-.124-.026-.241-.037-.363l1.608-1.554-1.25-2.166-2.132.61a4 4 0 0 0-.65-.37L7.25 0h-2.5l-.54 2.157a4 4 0 0 0-.649.37l-2.132-.61-1.25 2.166 1.608 1.554c-.01.122-.037.239-.037.363s.026.241.037.363L.179 7.917l1.25 2.166 2.132-.61q.307.213.65.37L4.75 12h2.5l.54-2.157a4 4 0 0 0 .649-.37l2.132.61 1.25-2.166-1.608-1.554c.01-.122.037-.239.037-.363M6 7.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3"/></svg>'
);
content: url("data:image/svg+xml,@{svg}");
}
}
.setting-check input:checked {
@svg: escape(
'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40"><path d="m7 23 10 7 16-20" fill="none" stroke="@{crust}" stroke-width="5"/></svg>'
);
content: url("data:image/svg+xml,@{svg}");
}
#copy-path {
@raw: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="25" viewBox="0 0 24 25" fill="%COLOR%"><path d="M18 20h2v3c0 1-1 2-2 2H2c-.998 0-2-1-2-2V5c0-.911.755-1.667 1.667-1.667h5A3.323 3.323 0 0 1 10 0a3.323 3.323 0 0 1 3.333 3.333h5A1.68 1.68 0 0 1 20 5v8.333h-2V9H2v14h16zM3 7h14c0-.911-.793-1.667-1.75-1.667H13.5c-.957 0-1.75-.755-1.75-1.666C11.75 2.755 10.957 2 10 2s-1.75.755-1.75 1.667c0 .911-.793 1.666-1.75 1.666H4.75C3.793 5.333 3 6.09 3 7"/><path d="M4 19h6v2H4zm8-8H4v2h8zm-8 6h4v-2H4zm11-2v-3l-4.5 4.5L15 21v-3l8.027-.032L23 15z"/></svg>';
@raw_before: '<svg xmlns="http://www.w3.org/2000/svg" width="19" height="18" viewBox="0 0 24 25" fill="%COLOR%"><path d="M18 20h2v3c0 1-1 2-2 2H2c-.998 0-2-1-2-2V5c0-.911.755-1.667 1.667-1.667h5A3.323 3.323 0 0 1 10 0a3.323 3.323 0 0 1 3.333 3.333h5A1.68 1.68 0 0 1 20 5v8.333h-2V9H2v14h16zM3 7h14c0-.911-.793-1.667-1.75-1.667H13.5c-.957 0-1.75-.755-1.75-1.666C11.75 2.755 10.957 2 10 2s-1.75.755-1.75 1.667c0 .911-.793 1.666-1.75 1.666H4.75C3.793 5.333 3 6.09 3 7"/><path d="M4 19h6v2H4zm8-8H4v2h8zm-8 6h4v-2H4zm11-2v-3l-4.5 4.5L15 21v-3l8.027-.032L23 15z"/></svg>';
> img {
@svg: escape(replace(@raw, "%COLOR%", @subtext0));
content: url("data:image/svg+xml,@{svg}");
filter: none;
}
&:hover > img {
@svg: escape(replace(@raw, "%COLOR%", @text));
content: url("data:image/svg+xml,@{svg}");
filter: none;
}
&:not(:has(> img)) {
&::before {
@svg: escape(replace(@raw_before, "%COLOR%", @subtext0));
content: url("data:image/svg+xml,@{svg}");
filter: none;
}
&:hover::before {
@svg: escape(replace(@raw_before, "%COLOR%", @text));
content: url("data:image/svg+xml,@{svg}");
filter: none;
}
}
}
details.toggle {
@plus: escape(
'<svg width="17" height="17" shape-rendering="crispEdges" stroke="@{text}" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5 2.5H2.5v12H5m7-12h2.5v12H12m-7-6h7M8.5 12V5"/></svg>'
);
@minus: escape(
'<svg width="17" height="17" shape-rendering="crispEdges" stroke="@{text}" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5 2.5H2.5v12H5m7-12h2.5v12H12m-7-6h7"/></svg>'
);
> summary::before {
background: url("data:image/svg+xml,@{plus}") no-repeat top left;
filter: none;
}
&[open] > summary::before {
background: url("data:image/svg+xml,@{minus}") no-repeat top left;
}
}
.src #sidebar-button > a::before {
@svg: escape(
'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22" fill="none" stroke="@{text}"><path d="M16 9V5h-6V4L8 2H4L2 4v16h13l6-11H6L2 19" stroke-width="1.25"/><path d="M15 7H4v3" stroke-width=".75"/><path d="M3.75 10v1.25" stroke-width=".375"/></svg>'
);
content: url("data:image/svg+xml,@{svg}");
}
.pure-menu-link {
color: @subtext0;
&:hover {
color: @text;
}
}
.pure-table {
&,
td,
th {
border-color: @surface0;
}
}
}
}
/* deno-fmt-ignore */
@catppuccin: {
@latte: { @rosewater: #dc8a78; @flamingo: #dd7878; @pink: #ea76cb; @mauve: #8839ef; @red: #d20f39; @maroon: #e64553; @peach: #fe640b; @yellow: #df8e1d; @green: #40a02b; @teal: #179299; @sky: #04a5e5; @sapphire: #209fb5; @blue: #1e66f5; @lavender: #7287fd; @text: #4c4f69; @subtext1: #5c5f77; @subtext0: #6c6f85; @overlay2: #7c7f93; @overlay1: #8c8fa1; @overlay0: #9ca0b0; @surface2: #acb0be; @surface1: #bcc0cc; @surface0: #ccd0da; @base: #eff1f5; @mantle: #e6e9ef; @crust: #dce0e8; };
@frappe: { @rosewater: #f2d5cf; @flamingo: #eebebe; @pink: #f4b8e4; @mauve: #ca9ee6; @red: #e78284; @maroon: #ea999c; @peach: #ef9f76; @yellow: #e5c890; @green: #a6d189; @teal: #81c8be; @sky: #99d1db; @sapphire: #85c1dc; @blue: #8caaee; @lavender: #babbf1; @text: #c6d0f5; @subtext1: #b5bfe2; @subtext0: #a5adce; @overlay2: #949cbb; @overlay1: #838ba7; @overlay0: #737994; @surface2: #626880; @surface1: #51576d; @surface0: #414559; @base: #303446; @mantle: #292c3c; @crust: #232634; };
@macchiato: { @rosewater: #f4dbd6; @flamingo: #f0c6c6; @pink: #f5bde6; @mauve: #c6a0f6; @red: #ed8796; @maroon: #ee99a0; @peach: #f5a97f; @yellow: #eed49f; @green: #a6da95; @teal: #8bd5ca; @sky: #91d7e3; @sapphire: #7dc4e4; @blue: #8aadf4; @lavender: #b7bdf8; @text: #cad3f5; @subtext1: #b8c0e0; @subtext0: #a5adcb; @overlay2: #939ab7; @overlay1: #8087a2; @overlay0: #6e738d; @surface2: #5b6078; @surface1: #494d64; @surface0: #363a4f; @base: #24273a; @mantle: #1e2030; @crust: #181926; };
@mocha: { @rosewater: #f5e0dc; @flamingo: #f2cdcd; @pink: #f5c2e7; @mauve: #cba6f7; @red: #f38ba8; @maroon: #eba0ac; @peach: #fab387; @yellow: #f9e2af; @green: #a6e3a1; @teal: #94e2d5; @sky: #89dceb; @sapphire: #74c7ec; @blue: #89b4fa; @lavender: #b4befe; @text: #cdd6f4; @subtext1: #bac2de; @subtext0: #a6adc8; @overlay2: #9399b2; @overlay1: #7f849c; @overlay0: #6c7086; @surface2: #585b70; @surface1: #45475a; @surface0: #313244; @base: #1e1e2e; @mantle: #181825; @crust: #11111b; };
};