slidev-theme-the-unnamed 0.0.13 → 0.0.14
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 +4 -0
- package/layouts/two-cols.vue +25 -0
- package/package.json +1 -1
- package/styles/layout.css +14 -0
package/changelog.md
CHANGED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
const props = defineProps({
|
|
3
|
+
class: {
|
|
4
|
+
type: String,
|
|
5
|
+
},
|
|
6
|
+
layoutClass: {
|
|
7
|
+
type: String,
|
|
8
|
+
},
|
|
9
|
+
});
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<template>
|
|
13
|
+
<div
|
|
14
|
+
class="slidev-layout two-columns w-full h-full grid grid-cols-2"
|
|
15
|
+
:class="props.layoutClass"
|
|
16
|
+
>
|
|
17
|
+
<div class="col-left" :class="props.class">
|
|
18
|
+
<slot />
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
<div class="col-right" :class="props.class">
|
|
22
|
+
<slot name="right" />
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
</template>
|
package/package.json
CHANGED
package/styles/layout.css
CHANGED
|
@@ -153,6 +153,7 @@
|
|
|
153
153
|
.slidev-layout.intro,
|
|
154
154
|
.slidev-layout.default,
|
|
155
155
|
.slidev-layout.center,
|
|
156
|
+
.slidev-layout.two-columns,
|
|
156
157
|
.slidev-layout[layout="default"],
|
|
157
158
|
.about-me {
|
|
158
159
|
h1 {
|
|
@@ -320,6 +321,19 @@
|
|
|
320
321
|
}
|
|
321
322
|
}
|
|
322
323
|
|
|
324
|
+
/* Two columns */
|
|
325
|
+
.slidev-layout.two-columns {
|
|
326
|
+
background: var(--slidev-theme-default-background);
|
|
327
|
+
|
|
328
|
+
h1 {
|
|
329
|
+
color: var(--slidev-theme-default-headingColor);
|
|
330
|
+
|
|
331
|
+
&::before {
|
|
332
|
+
background: var(--slidev-theme-default-headingBg);
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
|
|
323
337
|
/* About me slide */
|
|
324
338
|
.about-me {
|
|
325
339
|
background: var(--slidev-theme-aboutme-background);
|