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 CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.0.14] - 2023-10-17
4
+
5
+ - Added styles for the two-column layout
6
+
3
7
  ## [0.0.13] - 2023-10-05
4
8
 
5
9
  - Remove backdrop if no background is set on cover
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slidev-theme-the-unnamed",
3
- "version": "0.0.13",
3
+ "version": "0.0.14",
4
4
  "keywords": [
5
5
  "slidev-theme",
6
6
  "slidev"
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);