slidev-theme-the-unnamed 0.0.6 → 0.0.8
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/changelog.md +8 -0
- package/package.json +1 -1
- package/setup/shiki.ts +3 -3
- package/styles/layout.css +39 -43
package/changelog.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.8] - 2023-02-07
|
|
4
|
+
|
|
5
|
+
- [#2](https://github.com/estruyf/slidev-theme-the-unnamed/pull/2): Fix in Shiki path by [liaobinbin](https://github.com/liaobinbin)
|
|
6
|
+
|
|
7
|
+
## [0.0.7] - 2023-02-06
|
|
8
|
+
|
|
9
|
+
- [#1](https://github.com/estruyf/slidev-theme-the-unnamed/pull/1): Fix css comments by [liaobinbin](https://github.com/liaobinbin)
|
|
10
|
+
|
|
3
11
|
## [0.0.6] - 2023-02-02
|
|
4
12
|
|
|
5
13
|
- Documentation update
|
package/package.json
CHANGED
package/setup/shiki.ts
CHANGED
|
@@ -4,8 +4,8 @@ import { defineShikiSetup } from '@slidev/types'
|
|
|
4
4
|
export default defineShikiSetup(async ({ loadTheme }) => {
|
|
5
5
|
return {
|
|
6
6
|
theme: {
|
|
7
|
-
dark: await loadTheme(
|
|
8
|
-
light: await loadTheme(
|
|
7
|
+
dark: await loadTheme(require.resolve(`slidev-theme-the-unnamed/public/theme/theunnamed-dark-theme.json`)),
|
|
8
|
+
light: await loadTheme(require.resolve(`slidev-theme-the-unnamed/public/theme/theunnamed-dark-theme.json`))
|
|
9
9
|
},
|
|
10
10
|
}
|
|
11
|
-
})
|
|
11
|
+
})
|
package/styles/layout.css
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
--slidev-theme-primary: #
|
|
2
|
+
/* default theme color */
|
|
3
|
+
/* can be overrided by uses `themeConfig` option */
|
|
4
|
+
--slidev-theme-primary: #161c2c;
|
|
5
5
|
|
|
6
6
|
/* Custom colors*/
|
|
7
|
-
--slidev-theme-color: #
|
|
8
|
-
--slidev-theme-background: #
|
|
7
|
+
--slidev-theme-color: #f3eff5;
|
|
8
|
+
--slidev-theme-background: #161c2c;
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
--slidev-theme-code-background: #
|
|
10
|
+
/* Code colors */
|
|
11
|
+
--slidev-theme-code-background: #0f131e;
|
|
12
12
|
--slidev-theme-code-border: #242d34;
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
/* Accent colors */
|
|
15
15
|
--slidev-theme-accents-rose: #f141a8;
|
|
16
|
-
--slidev-theme-accents-teal: #
|
|
17
|
-
--slidev-theme-accents-yellow: #
|
|
18
|
-
--slidev-theme-accents-red: #
|
|
19
|
-
--slidev-theme-accents-lightblue: #
|
|
20
|
-
--slidev-theme-accents-blue: #
|
|
21
|
-
--slidev-theme-accents-vulcan: #
|
|
22
|
-
|
|
23
|
-
|
|
16
|
+
--slidev-theme-accents-teal: #44ffd2;
|
|
17
|
+
--slidev-theme-accents-yellow: #ffe45e;
|
|
18
|
+
--slidev-theme-accents-red: #fe4a49;
|
|
19
|
+
--slidev-theme-accents-lightblue: #15c2cb;
|
|
20
|
+
--slidev-theme-accents-blue: #5eadf2;
|
|
21
|
+
--slidev-theme-accents-vulcan: #0e131f;
|
|
22
|
+
|
|
23
|
+
/* Default */
|
|
24
24
|
--slidev-theme-default-headingBg: var(--slidev-theme-accents-yellow);
|
|
25
25
|
--slidev-theme-default-headingColor: var(--slidev-theme-accents-vulcan);
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
/* Center */
|
|
28
28
|
--slidev-theme-center-headingBg: var(--slidev-theme-accents-blue);
|
|
29
29
|
--slidev-theme-center-headingColor: var(--slidev-theme-accents-vulcan);
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
/* Cover */
|
|
32
32
|
--slidev-theme-cover-headingBg: var(--slidev-theme-accents-teal);
|
|
33
33
|
--slidev-theme-cover-headingColor: var(--slidev-theme-accents-vulcan);
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
/* Section */
|
|
36
36
|
--slidev-theme-section-headingBg: var(--slidev-theme-accents-lightblue);
|
|
37
37
|
--slidev-theme-section-headingColor: var(--slidev-theme-accents-vulcan);
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
/* About me */
|
|
40
40
|
--slidev-theme-aboutme-bg: var(--slidev-theme-color);
|
|
41
41
|
--slidev-theme-aboutme-color: var(--slidev-theme-background);
|
|
42
42
|
--slidev-theme-aboutme-helloBg: var(--slidev-theme-accents-yellow);
|
|
@@ -44,14 +44,14 @@
|
|
|
44
44
|
--slidev-theme-aboutme-nameColor: var(--slidev-theme-accents-red);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
/* The unnamed styles */
|
|
47
|
+
/* The unnamed styles */
|
|
48
48
|
.dark #slide-content,
|
|
49
49
|
.dark .bg-main {
|
|
50
50
|
background: var(--slidev-theme-background);
|
|
51
51
|
color: var(--slidev-theme-color);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
|
|
54
|
+
/* General layout styles */
|
|
55
55
|
.slidev-layout {
|
|
56
56
|
h1 + p {
|
|
57
57
|
opacity: 1;
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
align-items: center;
|
|
63
63
|
background: var(--slidev-theme-code-background);
|
|
64
64
|
color: var(--slidev-theme-color);
|
|
65
|
-
border-color: #
|
|
65
|
+
border-color: #f141a8;
|
|
66
66
|
border-left-width: 3px;
|
|
67
67
|
font-size: 1.1em;
|
|
68
68
|
}
|
|
@@ -100,13 +100,13 @@
|
|
|
100
100
|
@apply mt-4;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
p + h2,
|
|
104
|
-
ul + h2,
|
|
105
|
-
table + h2,
|
|
106
|
-
p + blockquote,
|
|
107
|
-
h2 + blockquote,
|
|
108
|
-
h3 + blockquote,
|
|
109
|
-
h4 + blockquote,
|
|
103
|
+
p + h2,
|
|
104
|
+
ul + h2,
|
|
105
|
+
table + h2,
|
|
106
|
+
p + blockquote,
|
|
107
|
+
h2 + blockquote,
|
|
108
|
+
h3 + blockquote,
|
|
109
|
+
h4 + blockquote,
|
|
110
110
|
h5 + blockquote {
|
|
111
111
|
@apply mt-8;
|
|
112
112
|
}
|
|
@@ -159,8 +159,7 @@
|
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
|
|
163
|
-
// Default
|
|
162
|
+
/* Default */
|
|
164
163
|
.slidev-layout.default,
|
|
165
164
|
.slidev-layout[layout="default"] {
|
|
166
165
|
h1 {
|
|
@@ -172,11 +171,10 @@
|
|
|
172
171
|
}
|
|
173
172
|
}
|
|
174
173
|
|
|
175
|
-
|
|
174
|
+
/* Cover */
|
|
176
175
|
.slidev-layout.cover {
|
|
177
|
-
|
|
178
176
|
&::before {
|
|
179
|
-
background: rgba(15, 19, 30, 0.
|
|
177
|
+
background: rgba(15, 19, 30, 0.4);
|
|
180
178
|
content: " ";
|
|
181
179
|
position: absolute;
|
|
182
180
|
top: 0;
|
|
@@ -201,7 +199,7 @@
|
|
|
201
199
|
|
|
202
200
|
h1 {
|
|
203
201
|
color: var(--slidev-theme-cover-headingColor);
|
|
204
|
-
padding: .25em .5em;
|
|
202
|
+
padding: 0.25em 0.5em;
|
|
205
203
|
margin: 0;
|
|
206
204
|
|
|
207
205
|
&::before {
|
|
@@ -220,8 +218,8 @@
|
|
|
220
218
|
}
|
|
221
219
|
|
|
222
220
|
h2 {
|
|
223
|
-
margin: .5em 0 0;
|
|
224
|
-
padding-left: .5em;
|
|
221
|
+
margin: 0.5em 0 0;
|
|
222
|
+
padding-left: 0.5em;
|
|
225
223
|
}
|
|
226
224
|
|
|
227
225
|
code {
|
|
@@ -230,7 +228,7 @@
|
|
|
230
228
|
}
|
|
231
229
|
}
|
|
232
230
|
|
|
233
|
-
|
|
231
|
+
/* Section */
|
|
234
232
|
.slidev-layout.section {
|
|
235
233
|
display: flex;
|
|
236
234
|
flex-direction: column;
|
|
@@ -264,7 +262,7 @@
|
|
|
264
262
|
}
|
|
265
263
|
}
|
|
266
264
|
|
|
267
|
-
|
|
265
|
+
/* Center */
|
|
268
266
|
.slidev-layout.center {
|
|
269
267
|
h1 {
|
|
270
268
|
width: fit-content;
|
|
@@ -279,8 +277,6 @@
|
|
|
279
277
|
background: transparent !important;
|
|
280
278
|
}
|
|
281
279
|
}
|
|
282
|
-
|
|
283
|
-
|
|
284
280
|
}
|
|
285
281
|
|
|
286
282
|
/* About me slide */
|
|
@@ -307,4 +303,4 @@
|
|
|
307
303
|
p {
|
|
308
304
|
margin-bottom: 0;
|
|
309
305
|
}
|
|
310
|
-
}
|
|
306
|
+
}
|