slidev-theme-neversink 0.3.1 → 0.3.2
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/layouts/side-title.vue
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
<script setup lang="
|
|
2
|
-
import { computed
|
|
1
|
+
<script setup lang="js">
|
|
2
|
+
import { computed } from 'vue'
|
|
3
3
|
import { compute_alignment, compute_column_size } from '../layoutHelper'
|
|
4
4
|
|
|
5
|
-
const slots = useSlots()
|
|
6
|
-
|
|
7
5
|
const props = defineProps({
|
|
8
6
|
side: {
|
|
9
7
|
default: 'l',
|
|
@@ -55,15 +53,15 @@ const colorscheme = computed(() => {
|
|
|
55
53
|
<p>
|
|
56
54
|
There are three parameters: <code>color</code>, <code>columns</code> and <code>align</code>. Currently:
|
|
57
55
|
<code>color: {{ props.color }}</code
|
|
58
|
-
>, <code>columns: {{ props.
|
|
56
|
+
>, <code>columns: {{ props.titlewidth }}</code> and <code>align: {{ props.align }}</code
|
|
59
57
|
>.
|
|
60
58
|
</p>
|
|
61
59
|
<p>The "slots" of the page are default and <code>:: content ::</code></p>
|
|
62
60
|
<p>
|
|
63
|
-
Options for <code>
|
|
64
|
-
column is 1/12 wide and the the right columns is 11/12 wide. The component admits a short had of only
|
|
65
|
-
the left column (<code>
|
|
66
|
-
<code>
|
|
61
|
+
Options for <code>titlewidth</code> are divided into 12 column units. So with <code>titlewidth: is-1-11</code> the
|
|
62
|
+
left column is 1/12 wide and the the right columns is 11/12 wide. The component admits a short had of only
|
|
63
|
+
specifying the left column (<code>titlewidth: is-1</code> does the same thing). In addition there are short hands
|
|
64
|
+
like <code>titlewidth: is-one-quarter</code> which resolves to <code>is-3-9</code>, etc...
|
|
67
65
|
</p>
|
|
68
66
|
<p>
|
|
69
67
|
Here are a bunch of examples:
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
<script setup lang="
|
|
2
|
-
import { computed
|
|
1
|
+
<script setup lang="js">
|
|
2
|
+
import { computed } from 'vue'
|
|
3
3
|
import { compute_alignment, compute_column_size } from '../layoutHelper'
|
|
4
4
|
|
|
5
|
-
const slots = useSlots()
|
|
6
|
-
|
|
7
5
|
const props = defineProps({
|
|
8
6
|
columns: {
|
|
9
7
|
default: 'is-one-half',
|
|
@@ -59,7 +57,7 @@ const colorscheme = computed(() => {
|
|
|
59
57
|
|
|
60
58
|
<p>The <code>color</code> parameter determines color of the title.</p>
|
|
61
59
|
</div>
|
|
62
|
-
<
|
|
60
|
+
<div v-else>
|
|
63
61
|
<div class="flex flex-col h-full w-full">
|
|
64
62
|
<div class="w-full h-fit min-h-13 pt-2 pb-2 slidecolor" :class="colorscheme">
|
|
65
63
|
<div class="slidev-layout toptitle title p-0 ml-6 mr-6 mt-auto mb-auto" :class="alignment.t">
|
|
@@ -80,7 +78,7 @@ const colorscheme = computed(() => {
|
|
|
80
78
|
<slot name="default" />
|
|
81
79
|
</div>
|
|
82
80
|
</div>
|
|
83
|
-
</
|
|
81
|
+
</div>
|
|
84
82
|
</template>
|
|
85
83
|
|
|
86
84
|
<style>
|
package/layouts/top-title.vue
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
<script setup lang="
|
|
2
|
-
import { computed
|
|
3
|
-
import { compute_alignment
|
|
4
|
-
|
|
5
|
-
const slots = useSlots()
|
|
1
|
+
<script setup lang="js">
|
|
2
|
+
import { computed } from 'vue'
|
|
3
|
+
import { compute_alignment } from '../layoutHelper'
|
|
6
4
|
|
|
7
5
|
const props = defineProps({
|
|
8
6
|
color: {
|
|
@@ -41,7 +39,7 @@ const colorscheme = computed(() => {
|
|
|
41
39
|
|
|
42
40
|
<p>The <code>color</code> parameter determines color of the title.</p>
|
|
43
41
|
</div>
|
|
44
|
-
<
|
|
42
|
+
<div v-else>
|
|
45
43
|
<div class="flex flex-col h-full w-full">
|
|
46
44
|
<div class="w-full h-fit min-h-13 pt-2 pb-2 slidecolor" :class="colorscheme">
|
|
47
45
|
<div class="slidev-layout toptitle title p-0 pt-0 ml-6 mr-6 mt-auto mb-auto" :class="alignment">
|
|
@@ -55,7 +53,7 @@ const colorscheme = computed(() => {
|
|
|
55
53
|
<slot name="default" />
|
|
56
54
|
</div>
|
|
57
55
|
</div>
|
|
58
|
-
</
|
|
56
|
+
</div>
|
|
59
57
|
</template>
|
|
60
58
|
|
|
61
59
|
<style>
|
package/layouts/two-cols.vue
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
<script setup lang="
|
|
2
|
-
import { computed
|
|
1
|
+
<script setup lang="js">
|
|
2
|
+
import { computed } from 'vue'
|
|
3
3
|
import { compute_alignment, compute_column_size } from '../layoutHelper'
|
|
4
4
|
|
|
5
|
-
const slots = useSlots()
|
|
6
|
-
|
|
7
5
|
const props = defineProps({
|
|
8
6
|
columns: {
|
|
9
7
|
default: 'is-one-half',
|