@sp-days-framework/create-sp-days 1.1.0-beta1 → 1.1.0-beta2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/advanced-config.mdx +37 -12
- package/docs/changelog.mdx +23 -0
- package/docs/index.mdx +2 -1
- package/lib/.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/templates/addon-resources/resources/index.mdx +1 -1
- package/templates/page-course/README.md +37 -12
- package/templates/page-course/docusaurus.config.ts +67 -22
- package/templates/page-course/src/css/sp-days-theme.scss +428 -211
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
|
|
9
9
|
// Functions to calculate color variations using the modern color.scale approach
|
|
10
10
|
@function lighten-percentage($color, $percentage) {
|
|
11
|
-
|
|
11
|
+
@return color.scale($color, $lightness: $percentage * 1%);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
@function darken-percentage($color, $percentage) {
|
|
15
|
-
|
|
15
|
+
@return color.scale($color, $lightness: -$percentage * 1%);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
// Define base colors for light and dark themes
|
|
@@ -25,7 +25,7 @@ $danger-color-light-theme: #fa383e;
|
|
|
25
25
|
$secondary-color-light-theme: #ebedf0;
|
|
26
26
|
|
|
27
27
|
// Dark theme colors
|
|
28
|
-
$primary-color-dark-theme: #
|
|
28
|
+
$primary-color-dark-theme: #6cace4;
|
|
29
29
|
$success-color-dark-theme: #88e36b;
|
|
30
30
|
$info-color-dark-theme: #5dccf0;
|
|
31
31
|
$warning-color-dark-theme: #ffc93d;
|
|
@@ -34,150 +34,339 @@ $secondary-color-dark-theme: #afafaf;
|
|
|
34
34
|
|
|
35
35
|
// Code syntax highlighting theme
|
|
36
36
|
:root {
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
--docusaurus-highlighted-code-line-bg: rgb(143 142 69 / 11%);
|
|
38
|
+
// --ifm-code-font-size: 95%;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
/* You can override the default Infima variables here. */
|
|
42
42
|
:root {
|
|
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
|
-
|
|
43
|
+
// Primary color and its variations
|
|
44
|
+
--ifm-color-primary: #{$primary-color-light-theme};
|
|
45
|
+
--ifm-color-primary-dark: #{darken-percentage($primary-color-light-theme, 5)};
|
|
46
|
+
--ifm-color-primary-darker: #{darken-percentage(
|
|
47
|
+
$primary-color-light-theme,
|
|
48
|
+
10
|
|
49
|
+
)};
|
|
50
|
+
--ifm-color-primary-darkest: #{darken-percentage(
|
|
51
|
+
$primary-color-light-theme,
|
|
52
|
+
15
|
|
53
|
+
)};
|
|
54
|
+
--ifm-color-primary-light: #{lighten-percentage(
|
|
55
|
+
$primary-color-light-theme,
|
|
56
|
+
5
|
|
57
|
+
)};
|
|
58
|
+
--ifm-color-primary-lighter: #{lighten-percentage(
|
|
59
|
+
$primary-color-light-theme,
|
|
60
|
+
10
|
|
61
|
+
)};
|
|
62
|
+
--ifm-color-primary-lightest: #{lighten-percentage(
|
|
63
|
+
$primary-color-light-theme,
|
|
64
|
+
30
|
|
65
|
+
)};
|
|
66
|
+
--ifm-color-primary-contrast-background: #{lighten-percentage(
|
|
67
|
+
$primary-color-light-theme,
|
|
68
|
+
95
|
|
69
|
+
)};
|
|
70
|
+
--ifm-color-primary-contrast-foreground: #{darken-percentage(
|
|
71
|
+
$primary-color-light-theme,
|
|
72
|
+
95
|
|
73
|
+
)};
|
|
74
|
+
|
|
75
|
+
// // Secondary color and its variations
|
|
76
|
+
// --ifm-color-secondary: #{$secondary-color-light-theme};
|
|
77
|
+
// --ifm-color-secondary-dark: #{darken-percentage($secondary-color-light-theme, 5)};
|
|
78
|
+
// --ifm-color-secondary-darker: #{darken-percentage($secondary-color-light-theme, 10)};
|
|
79
|
+
// --ifm-color-secondary-darkest: #{darken-percentage($secondary-color-light-theme, 15)};
|
|
80
|
+
// --ifm-color-secondary-light: #{lighten-percentage($secondary-color-light-theme, 5)};
|
|
81
|
+
// --ifm-color-secondary-lighter: #{lighten-percentage($secondary-color-light-theme, 10)};
|
|
82
|
+
// --ifm-color-secondary-lightest: #{lighten-percentage($secondary-color-light-theme, 15)};
|
|
83
|
+
// --ifm-color-secondary-contrast-background: #{lighten-percentage($secondary-color-light-theme, 95)};
|
|
84
|
+
// --ifm-color-secondary-contrast-foreground: #{darken-percentage($secondary-color-light-theme, 95)};
|
|
85
|
+
|
|
86
|
+
// Success color and its variations
|
|
87
|
+
--ifm-color-success: #{$success-color-light-theme};
|
|
88
|
+
--ifm-color-success-dark: #{darken-percentage($success-color-light-theme, 5)};
|
|
89
|
+
--ifm-color-success-darker: #{darken-percentage(
|
|
90
|
+
$success-color-light-theme,
|
|
91
|
+
10
|
|
92
|
+
)};
|
|
93
|
+
--ifm-color-success-darkest: #{darken-percentage(
|
|
94
|
+
$success-color-light-theme,
|
|
95
|
+
15
|
|
96
|
+
)};
|
|
97
|
+
--ifm-color-success-light: #{lighten-percentage(
|
|
98
|
+
$success-color-light-theme,
|
|
99
|
+
10
|
|
100
|
+
)};
|
|
101
|
+
--ifm-color-success-lighter: #{lighten-percentage(
|
|
102
|
+
$success-color-light-theme,
|
|
103
|
+
20
|
|
104
|
+
)};
|
|
105
|
+
--ifm-color-success-lightest: #{lighten-percentage(
|
|
106
|
+
$success-color-light-theme,
|
|
107
|
+
30
|
|
108
|
+
)};
|
|
109
|
+
--ifm-color-success-contrast-background: #{lighten-percentage(
|
|
110
|
+
$success-color-light-theme,
|
|
111
|
+
95
|
|
112
|
+
)};
|
|
113
|
+
--ifm-color-success-contrast-foreground: #{darken-percentage(
|
|
114
|
+
$success-color-light-theme,
|
|
115
|
+
95
|
|
116
|
+
)};
|
|
117
|
+
|
|
118
|
+
// Info color and its variations
|
|
119
|
+
--ifm-color-info: #{$info-color-light-theme};
|
|
120
|
+
--ifm-color-info-dark: #{darken-percentage($info-color-light-theme, 5)};
|
|
121
|
+
--ifm-color-info-darker: #{darken-percentage($info-color-light-theme, 10)};
|
|
122
|
+
--ifm-color-info-darkest: #{darken-percentage($info-color-light-theme, 15)};
|
|
123
|
+
--ifm-color-info-light: #{lighten-percentage($info-color-light-theme, 5)};
|
|
124
|
+
--ifm-color-info-lighter: #{lighten-percentage($info-color-light-theme, 10)};
|
|
125
|
+
--ifm-color-info-lightest: #{lighten-percentage($info-color-light-theme, 20)};
|
|
126
|
+
--ifm-color-info-contrast-background: #{lighten-percentage(
|
|
127
|
+
$info-color-light-theme,
|
|
128
|
+
95
|
|
129
|
+
)};
|
|
130
|
+
--ifm-color-info-contrast-foreground: #{darken-percentage(
|
|
131
|
+
$info-color-light-theme,
|
|
132
|
+
95
|
|
133
|
+
)};
|
|
134
|
+
|
|
135
|
+
// Warning color and its variations
|
|
136
|
+
--ifm-color-warning: #{$warning-color-light-theme};
|
|
137
|
+
--ifm-color-warning-dark: #{darken-percentage($warning-color-light-theme, 5)};
|
|
138
|
+
--ifm-color-warning-darker: #{darken-percentage(
|
|
139
|
+
$warning-color-light-theme,
|
|
140
|
+
10
|
|
141
|
+
)};
|
|
142
|
+
--ifm-color-warning-darkest: #{darken-percentage(
|
|
143
|
+
$warning-color-light-theme,
|
|
144
|
+
15
|
|
145
|
+
)};
|
|
146
|
+
--ifm-color-warning-light: #{lighten-percentage(
|
|
147
|
+
$warning-color-light-theme,
|
|
148
|
+
5
|
|
149
|
+
)};
|
|
150
|
+
--ifm-color-warning-lighter: #{lighten-percentage(
|
|
151
|
+
$warning-color-light-theme,
|
|
152
|
+
10
|
|
153
|
+
)};
|
|
154
|
+
--ifm-color-warning-lightest: #{lighten-percentage(
|
|
155
|
+
$warning-color-light-theme,
|
|
156
|
+
20
|
|
157
|
+
)};
|
|
158
|
+
--ifm-color-warning-contrast-background: #{lighten-percentage(
|
|
159
|
+
$warning-color-light-theme,
|
|
160
|
+
95
|
|
161
|
+
)};
|
|
162
|
+
--ifm-color-warning-contrast-foreground: #{darken-percentage(
|
|
163
|
+
$warning-color-light-theme,
|
|
164
|
+
95
|
|
165
|
+
)};
|
|
166
|
+
|
|
167
|
+
// Danger color and its variations
|
|
168
|
+
--ifm-color-danger: #{$danger-color-light-theme};
|
|
169
|
+
--ifm-color-danger-dark: #{darken-percentage($danger-color-light-theme, 5)};
|
|
170
|
+
--ifm-color-danger-darker: #{darken-percentage($danger-color-light-theme, 10)};
|
|
171
|
+
--ifm-color-danger-darkest: #{darken-percentage(
|
|
172
|
+
$danger-color-light-theme,
|
|
173
|
+
15
|
|
174
|
+
)};
|
|
175
|
+
--ifm-color-danger-light: #{lighten-percentage($danger-color-light-theme, 5)};
|
|
176
|
+
--ifm-color-danger-lighter: #{lighten-percentage(
|
|
177
|
+
$danger-color-light-theme,
|
|
178
|
+
10
|
|
179
|
+
)};
|
|
180
|
+
--ifm-color-danger-lightest: #{lighten-percentage(
|
|
181
|
+
$danger-color-light-theme,
|
|
182
|
+
20
|
|
183
|
+
)};
|
|
184
|
+
--ifm-color-danger-contrast-background: #{lighten-percentage(
|
|
185
|
+
$danger-color-light-theme,
|
|
186
|
+
95
|
|
187
|
+
)};
|
|
188
|
+
--ifm-color-danger-contrast-foreground: #{darken-percentage(
|
|
189
|
+
$danger-color-light-theme,
|
|
190
|
+
95
|
|
191
|
+
)};
|
|
108
192
|
}
|
|
109
193
|
|
|
110
194
|
/* For readability concerns, you should choose a lighter palette in dark mode. */
|
|
111
|
-
[data-theme=
|
|
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
|
-
|
|
195
|
+
[data-theme="dark"] {
|
|
196
|
+
// Primary color and its variations for dark mode
|
|
197
|
+
--ifm-color-primary: #{$primary-color-dark-theme};
|
|
198
|
+
--ifm-color-primary-dark: #{darken-percentage($primary-color-dark-theme, 10)};
|
|
199
|
+
--ifm-color-primary-darker: #{darken-percentage(
|
|
200
|
+
$primary-color-dark-theme,
|
|
201
|
+
15
|
|
202
|
+
)};
|
|
203
|
+
--ifm-color-primary-darkest: #{darken-percentage(
|
|
204
|
+
$primary-color-dark-theme,
|
|
205
|
+
30
|
|
206
|
+
)};
|
|
207
|
+
--ifm-color-primary-light: #{lighten-percentage(
|
|
208
|
+
$primary-color-dark-theme,
|
|
209
|
+
10
|
|
210
|
+
)};
|
|
211
|
+
--ifm-color-primary-lighter: #{lighten-percentage(
|
|
212
|
+
$primary-color-dark-theme,
|
|
213
|
+
15
|
|
214
|
+
)};
|
|
215
|
+
--ifm-color-primary-lightest: #{lighten-percentage(
|
|
216
|
+
$primary-color-dark-theme,
|
|
217
|
+
30
|
|
218
|
+
)};
|
|
219
|
+
--ifm-color-primary-contrast-background: #{darken-percentage(
|
|
220
|
+
$primary-color-dark-theme,
|
|
221
|
+
90
|
|
222
|
+
)};
|
|
223
|
+
--ifm-color-primary-contrast-foreground: #{lighten-percentage(
|
|
224
|
+
$primary-color-dark-theme,
|
|
225
|
+
90
|
|
226
|
+
)};
|
|
227
|
+
|
|
228
|
+
// Secondary color and its variations
|
|
229
|
+
--ifm-color-secondary: #{$secondary-color-dark-theme};
|
|
230
|
+
--ifm-color-secondary-dark: #{darken-percentage(
|
|
231
|
+
$secondary-color-dark-theme,
|
|
232
|
+
5
|
|
233
|
+
)};
|
|
234
|
+
--ifm-color-secondary-darker: #{darken-percentage(
|
|
235
|
+
$secondary-color-dark-theme,
|
|
236
|
+
10
|
|
237
|
+
)};
|
|
238
|
+
--ifm-color-secondary-darkest: #{darken-percentage(
|
|
239
|
+
$secondary-color-dark-theme,
|
|
240
|
+
15
|
|
241
|
+
)};
|
|
242
|
+
--ifm-color-secondary-light: #{lighten-percentage(
|
|
243
|
+
$secondary-color-dark-theme,
|
|
244
|
+
5
|
|
245
|
+
)};
|
|
246
|
+
--ifm-color-secondary-lighter: #{lighten-percentage(
|
|
247
|
+
$secondary-color-dark-theme,
|
|
248
|
+
10
|
|
249
|
+
)};
|
|
250
|
+
--ifm-color-secondary-lightest: #{lighten-percentage(
|
|
251
|
+
$secondary-color-dark-theme,
|
|
252
|
+
15
|
|
253
|
+
)};
|
|
254
|
+
--ifm-color-secondary-contrast-background: #{darken-percentage(
|
|
255
|
+
$secondary-color-dark-theme,
|
|
256
|
+
90
|
|
257
|
+
)};
|
|
258
|
+
--ifm-color-secondary-contrast-foreground: #{lighten-percentage(
|
|
259
|
+
$secondary-color-dark-theme,
|
|
260
|
+
90
|
|
261
|
+
)};
|
|
262
|
+
|
|
263
|
+
// Success color for dark mode
|
|
264
|
+
--ifm-color-success: #{$success-color-dark-theme};
|
|
265
|
+
--ifm-color-success-dark: #{darken-percentage($success-color-dark-theme, 10)};
|
|
266
|
+
--ifm-color-success-darker: #{darken-percentage(
|
|
267
|
+
$success-color-dark-theme,
|
|
268
|
+
15
|
|
269
|
+
)};
|
|
270
|
+
--ifm-color-success-darkest: #{darken-percentage(
|
|
271
|
+
$success-color-dark-theme,
|
|
272
|
+
35
|
|
273
|
+
)};
|
|
274
|
+
--ifm-color-success-light: #{lighten-percentage(
|
|
275
|
+
$success-color-dark-theme,
|
|
276
|
+
10
|
|
277
|
+
)};
|
|
278
|
+
--ifm-color-success-lighter: #{lighten-percentage(
|
|
279
|
+
$success-color-dark-theme,
|
|
280
|
+
15
|
|
281
|
+
)};
|
|
282
|
+
--ifm-color-success-lightest: #{lighten-percentage(
|
|
283
|
+
$success-color-dark-theme,
|
|
284
|
+
30
|
|
285
|
+
)};
|
|
286
|
+
--ifm-color-success-contrast-background: #{darken-percentage(
|
|
287
|
+
$success-color-dark-theme,
|
|
288
|
+
90
|
|
289
|
+
)};
|
|
290
|
+
--ifm-color-success-contrast-foreground: #{lighten-percentage(
|
|
291
|
+
$success-color-dark-theme,
|
|
292
|
+
90
|
|
293
|
+
)};
|
|
294
|
+
|
|
295
|
+
// Info color and its variations
|
|
296
|
+
--ifm-color-info: #{$info-color-dark-theme};
|
|
297
|
+
--ifm-color-info-dark: #{darken-percentage($info-color-dark-theme, 10)};
|
|
298
|
+
--ifm-color-info-darker: #{darken-percentage($info-color-dark-theme, 15)};
|
|
299
|
+
--ifm-color-info-darkest: #{darken-percentage($info-color-dark-theme, 30)};
|
|
300
|
+
--ifm-color-info-light: #{lighten-percentage($info-color-dark-theme, 10)};
|
|
301
|
+
--ifm-color-info-lighter: #{lighten-percentage($info-color-dark-theme, 15)};
|
|
302
|
+
--ifm-color-info-lightest: #{lighten-percentage($info-color-dark-theme, 30)};
|
|
303
|
+
--ifm-color-info-contrast-background: #{darken-percentage(
|
|
304
|
+
$info-color-dark-theme,
|
|
305
|
+
90
|
|
306
|
+
)};
|
|
307
|
+
--ifm-color-info-contrast-foreground: #{lighten-percentage(
|
|
308
|
+
$info-color-dark-theme,
|
|
309
|
+
90
|
|
310
|
+
)};
|
|
311
|
+
|
|
312
|
+
// Warning color and its variations
|
|
313
|
+
--ifm-color-warning: #{$warning-color-dark-theme};
|
|
314
|
+
--ifm-color-warning-dark: #{darken-percentage($warning-color-dark-theme, 10)};
|
|
315
|
+
--ifm-color-warning-darker: #{darken-percentage(
|
|
316
|
+
$warning-color-dark-theme,
|
|
317
|
+
15
|
|
318
|
+
)};
|
|
319
|
+
--ifm-color-warning-darkest: #{darken-percentage(
|
|
320
|
+
$warning-color-dark-theme,
|
|
321
|
+
30
|
|
322
|
+
)};
|
|
323
|
+
--ifm-color-warning-light: #{lighten-percentage(
|
|
324
|
+
$warning-color-dark-theme,
|
|
325
|
+
10
|
|
326
|
+
)};
|
|
327
|
+
--ifm-color-warning-lighter: #{lighten-percentage(
|
|
328
|
+
$warning-color-dark-theme,
|
|
329
|
+
15
|
|
330
|
+
)};
|
|
331
|
+
--ifm-color-warning-lightest: #{lighten-percentage(
|
|
332
|
+
$warning-color-dark-theme,
|
|
333
|
+
30
|
|
334
|
+
)};
|
|
335
|
+
--ifm-color-warning-contrast-background: #{darken-percentage(
|
|
336
|
+
$warning-color-dark-theme,
|
|
337
|
+
90
|
|
338
|
+
)};
|
|
339
|
+
--ifm-color-warning-contrast-foreground: #{lighten-percentage(
|
|
340
|
+
$warning-color-dark-theme,
|
|
341
|
+
90
|
|
342
|
+
)};
|
|
343
|
+
|
|
344
|
+
// Danger color and its variations
|
|
345
|
+
--ifm-color-danger: #{$danger-color-dark-theme};
|
|
346
|
+
--ifm-color-danger-dark: #{darken-percentage($danger-color-dark-theme, 10)};
|
|
347
|
+
--ifm-color-danger-darker: #{darken-percentage($danger-color-dark-theme, 15)};
|
|
348
|
+
--ifm-color-danger-darkest: #{darken-percentage($danger-color-dark-theme, 30)};
|
|
349
|
+
--ifm-color-danger-light: #{lighten-percentage($danger-color-dark-theme, 10)};
|
|
350
|
+
--ifm-color-danger-lighter: #{lighten-percentage(
|
|
351
|
+
$danger-color-dark-theme,
|
|
352
|
+
15
|
|
353
|
+
)};
|
|
354
|
+
--ifm-color-danger-lightest: #{lighten-percentage(
|
|
355
|
+
$danger-color-dark-theme,
|
|
356
|
+
30
|
|
357
|
+
)};
|
|
358
|
+
--ifm-color-danger-contrast-background: #{darken-percentage(
|
|
359
|
+
$danger-color-dark-theme,
|
|
360
|
+
90
|
|
361
|
+
)};
|
|
362
|
+
--ifm-color-danger-contrast-foreground: #{lighten-percentage(
|
|
363
|
+
$danger-color-dark-theme,
|
|
364
|
+
90
|
|
365
|
+
)};
|
|
177
366
|
}
|
|
178
367
|
|
|
179
368
|
.navbar-github-link::before {
|
|
180
|
-
content:
|
|
369
|
+
content: "";
|
|
181
370
|
width: 24px;
|
|
182
371
|
height: 24px;
|
|
183
372
|
display: flex;
|
|
@@ -187,57 +376,63 @@ $secondary-color-dark-theme: #afafaf;
|
|
|
187
376
|
|
|
188
377
|
// Custom styles for resource landing page
|
|
189
378
|
.resourceLandingPage {
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
379
|
+
display: flex;
|
|
380
|
+
align-items: center;
|
|
381
|
+
justify-content: center;
|
|
382
|
+
margin: 0 80px;
|
|
383
|
+
width: min-content;
|
|
195
384
|
}
|
|
196
385
|
|
|
197
386
|
// Styles for preview components
|
|
198
387
|
.preview {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
388
|
+
position: relative;
|
|
389
|
+
margin-top: 2rem;
|
|
390
|
+
// margin-bottom: 2rem;
|
|
391
|
+
display: flex;
|
|
392
|
+
justify-content: center;
|
|
204
393
|
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
394
|
+
&::before {
|
|
395
|
+
content: "Preview";
|
|
396
|
+
position: absolute;
|
|
397
|
+
top: -0.75rem;
|
|
398
|
+
left: 50%;
|
|
399
|
+
transform: translateX(-50%);
|
|
400
|
+
padding: 0 0.5rem;
|
|
401
|
+
background-color: var(--ifm-background-surface-color);
|
|
402
|
+
font-size: 0.875rem;
|
|
403
|
+
font-weight: 500;
|
|
404
|
+
color: var(--ifm-color-emphasis-700);
|
|
405
|
+
z-index: 1;
|
|
406
|
+
}
|
|
218
407
|
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
408
|
+
.container {
|
|
409
|
+
border: 1px solid var(--ifm-color-emphasis-300);
|
|
410
|
+
border-radius: 8px;
|
|
411
|
+
// padding-bottom: 1.5rem;
|
|
412
|
+
padding-top: 1.5rem;
|
|
413
|
+
width: fit-content;
|
|
414
|
+
position: relative;
|
|
415
|
+
}
|
|
227
416
|
}
|
|
228
417
|
|
|
229
|
-
[data-theme=
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
}
|
|
418
|
+
[data-theme="dark"] {
|
|
419
|
+
.preview {
|
|
420
|
+
&::before {
|
|
421
|
+
background-color: var(--ifm-background-color);
|
|
234
422
|
}
|
|
423
|
+
}
|
|
235
424
|
}
|
|
236
425
|
|
|
237
|
-
//
|
|
238
|
-
$
|
|
426
|
+
// Title logo styles - unified system for sidebar and navbar logos
|
|
427
|
+
$title-logo-icon-size: 20px;
|
|
239
428
|
|
|
240
|
-
|
|
429
|
+
// Mixin for adding logo icons to sidebar items
|
|
430
|
+
@mixin title-logo-sidebar {
|
|
431
|
+
// Only target the immediate menu link for the matching item, not its children
|
|
432
|
+
> .menu__link,
|
|
433
|
+
> .menu__list-item-collapsible > .menu__link,
|
|
434
|
+
> .menu__list-item-collapsible > a,
|
|
435
|
+
> div > a {
|
|
241
436
|
display: flex;
|
|
242
437
|
align-items: center;
|
|
243
438
|
gap: 8px;
|
|
@@ -245,53 +440,75 @@ $sidebar-logo-icon-size: 20px;
|
|
|
245
440
|
min-width: 0;
|
|
246
441
|
|
|
247
442
|
&::before {
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
443
|
+
content: "";
|
|
444
|
+
display: inline-block;
|
|
445
|
+
width: $title-logo-icon-size;
|
|
446
|
+
height: $title-logo-icon-size;
|
|
447
|
+
background-image: var(--title-logo-image, none);
|
|
448
|
+
background-size: contain;
|
|
449
|
+
background-repeat: no-repeat;
|
|
450
|
+
background-position: center;
|
|
451
|
+
flex-shrink: 0;
|
|
257
452
|
}
|
|
453
|
+
}
|
|
258
454
|
}
|
|
259
455
|
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
456
|
+
// Mixin for adding logo icons to navbar items
|
|
457
|
+
@mixin title-logo-navbar {
|
|
458
|
+
display: flex;
|
|
459
|
+
align-items: center;
|
|
460
|
+
gap: 8px;
|
|
461
|
+
|
|
462
|
+
&::before {
|
|
463
|
+
content: "";
|
|
464
|
+
display: inline-block;
|
|
465
|
+
width: $title-logo-icon-size;
|
|
466
|
+
height: $title-logo-icon-size;
|
|
467
|
+
background-image: var(--title-logo-image, none);
|
|
468
|
+
background-size: contain;
|
|
469
|
+
background-repeat: no-repeat;
|
|
470
|
+
background-position: center;
|
|
471
|
+
flex-shrink: 0;
|
|
472
|
+
}
|
|
269
473
|
}
|
|
270
474
|
|
|
271
|
-
|
|
272
|
-
|
|
475
|
+
// Apply sidebar logo styles to elements with title-logo-sidebar-* classes
|
|
476
|
+
[class*="title-logo-sidebar-"] {
|
|
477
|
+
@include title-logo-sidebar;
|
|
273
478
|
}
|
|
274
479
|
|
|
275
|
-
|
|
276
|
-
|
|
480
|
+
// Apply navbar logo styles to elements with title-logo-navbar-* classes
|
|
481
|
+
[class*="title-logo-navbar-"] {
|
|
482
|
+
@include title-logo-navbar;
|
|
277
483
|
}
|
|
278
484
|
|
|
279
|
-
|
|
280
|
-
|
|
485
|
+
// Legacy support - map old sidebar-logo-* classes to new system
|
|
486
|
+
.sidebar-logo,
|
|
487
|
+
[class*="sidebar-logo-"] {
|
|
488
|
+
@include title-logo-sidebar;
|
|
281
489
|
}
|
|
282
490
|
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
491
|
+
// Logo definitions - shared between sidebar and navbar
|
|
492
|
+
// Slidev logo
|
|
493
|
+
.title-logo-sidebar-slidev,
|
|
494
|
+
.title-logo-navbar-slidev {
|
|
495
|
+
--title-logo-image: url(../../static/img/sidebar/slidev.svg);
|
|
287
496
|
}
|
|
288
497
|
|
|
289
|
-
|
|
290
|
-
|
|
498
|
+
// Docusaurus logo
|
|
499
|
+
.title-logo-sidebar-docusaurus,
|
|
500
|
+
.title-logo-navbar-docusaurus {
|
|
501
|
+
--title-logo-image: url(../../static/img/sidebar/docusaurus.svg);
|
|
291
502
|
}
|
|
292
503
|
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
}
|
|
504
|
+
// SP Days logo (with theme support)
|
|
505
|
+
.title-logo-sidebar-sp-days,
|
|
506
|
+
.title-logo-navbar-sp-days {
|
|
507
|
+
--title-logo-image: url(../../static/img/sp-days-logo-color-light.svg);
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
// SP Days Plugin logo (with theme support)
|
|
511
|
+
.title-logo-sidebar-sp-days-plugin,
|
|
512
|
+
.title-logo-navbar-sp-days-plugin {
|
|
513
|
+
--title-logo-image: url(../../static/img/sp-days-plugin-color-light.svg);
|
|
514
|
+
}
|