slidev-theme-neversink 0.1.1 → 0.2.0
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/layoutHelper.ts +12 -12
- package/layouts/side-title.vue +1 -1
- package/layouts/top-title-two-cols.vue +1 -1
- package/layouts/top-title.vue +1 -1
- package/layouts/two-cols-title.vue +1 -1
- package/layouts/two-cols.vue +1 -1
- package/package.json +1 -1
- package/styles/base.css +0 -44
- package/styles/neversink-c.css +40 -0
package/layoutHelper.ts
CHANGED
|
@@ -34,29 +34,29 @@ export function handleBackground(background?: string, dim = false): CSSPropertie
|
|
|
34
34
|
export function compute_alignment(val) {
|
|
35
35
|
switch (val) {
|
|
36
36
|
case 'ct':
|
|
37
|
-
return 'center top'
|
|
37
|
+
return 'ns-c-center ns-c-top'
|
|
38
38
|
case 'cm':
|
|
39
|
-
return 'center middle'
|
|
39
|
+
return 'ns-c-center ns-c-middle'
|
|
40
40
|
case 'cb':
|
|
41
|
-
return 'center bottom'
|
|
41
|
+
return 'ns-c-center ns-c-bottom'
|
|
42
42
|
case 'lt':
|
|
43
|
-
return 'left top'
|
|
43
|
+
return 'ns-c-left ns-c-top'
|
|
44
44
|
case 'lm':
|
|
45
|
-
return 'left middle'
|
|
45
|
+
return 'ns-c-left ns-c-middle'
|
|
46
46
|
case 'lb':
|
|
47
|
-
return 'left bottom'
|
|
47
|
+
return 'ns-c-left ns-c-bottom'
|
|
48
48
|
case 'rt':
|
|
49
|
-
return 'right top'
|
|
49
|
+
return 'ns-c-right ns-c-top'
|
|
50
50
|
case 'rm':
|
|
51
|
-
return 'right middle'
|
|
51
|
+
return 'ns-c-right ns-c-middle'
|
|
52
52
|
case 'rb':
|
|
53
|
-
return 'right bottom'
|
|
53
|
+
return 'ns-c-right ns-c-bottom'
|
|
54
54
|
case 'c':
|
|
55
|
-
return 'center top'
|
|
55
|
+
return 'ns-c-center ns-c-top'
|
|
56
56
|
case 'l':
|
|
57
|
-
return 'left top'
|
|
57
|
+
return 'ns-c-left ns-c-top'
|
|
58
58
|
case 'r':
|
|
59
|
-
return 'right top'
|
|
59
|
+
return 'ns-c-right ns-c-top'
|
|
60
60
|
default:
|
|
61
61
|
return 'error'
|
|
62
62
|
}
|
package/layouts/side-title.vue
CHANGED
|
@@ -50,7 +50,7 @@ const colorscheme = computed(() => {
|
|
|
50
50
|
</script>
|
|
51
51
|
<template>
|
|
52
52
|
<div v-if="side == 'error' || colwidth == 'error'" class="slidev-layout default error">
|
|
53
|
-
<span class="warning"><b>Error</b>: invalid layout params.</span>
|
|
53
|
+
<span class="ns-c-warning"><b>Error</b>: invalid layout params.</span>
|
|
54
54
|
<hr />
|
|
55
55
|
<p>
|
|
56
56
|
There are three parameters: <code>color</code>, <code>columns</code> and <code>align</code>. Currently:
|
|
@@ -32,7 +32,7 @@ const colorscheme = computed(() => {
|
|
|
32
32
|
v-if="colwidth == 'error' || alignment.t == 'error' || alignment.l == 'error' || alignment.r == 'error'"
|
|
33
33
|
class="slidev-layout default error"
|
|
34
34
|
>
|
|
35
|
-
<span class="warning"><b>Error</b>: invalid layout params.</span>
|
|
35
|
+
<span class="ns-c-warning"><b>Error</b>: invalid layout params.</span>
|
|
36
36
|
<hr />
|
|
37
37
|
<p>
|
|
38
38
|
There are three parameters: <code>columns</code>, <code>align</code>, and <code>color</code>. Currently:
|
package/layouts/top-title.vue
CHANGED
|
@@ -23,7 +23,7 @@ const colorscheme = computed(() => {
|
|
|
23
23
|
</script>
|
|
24
24
|
<template>
|
|
25
25
|
<div v-if="alignment == 'error'" class="slidev-layout default error">
|
|
26
|
-
<span class="warning"><b>Error</b>: invalid layout params.</span>
|
|
26
|
+
<span class="ns-c-warning"><b>Error</b>: invalid layout params.</span>
|
|
27
27
|
<hr />
|
|
28
28
|
<p>
|
|
29
29
|
There are two parameters: <code>color</code> <code>align</code>. Currently:
|
|
@@ -54,7 +54,7 @@ const flexclass = computed(() => {
|
|
|
54
54
|
v-if="colwidth == 'error' || alignment.t == 'error' || alignment.l == 'error' || alignment.r == 'error'"
|
|
55
55
|
class="slidev-layout default error"
|
|
56
56
|
>
|
|
57
|
-
<span class="warning"><b>Error</b>: invalid layout params.</span>
|
|
57
|
+
<span class="ns-c-warning"><b>Error</b>: invalid layout params.</span>
|
|
58
58
|
<hr />
|
|
59
59
|
<p>
|
|
60
60
|
There are four parameters: <code>columns</code>, <code>align</code>, <code>color</code>, and
|
package/layouts/two-cols.vue
CHANGED
|
@@ -35,7 +35,7 @@ const colorscheme = computed(() => {
|
|
|
35
35
|
v-if="colwidth == 'error' || alignment.l == 'error' || alignment.r == 'error'"
|
|
36
36
|
class="slidev-layout default error"
|
|
37
37
|
>
|
|
38
|
-
<span class="warning"><b>Error</b>: invalid layout params.</span>
|
|
38
|
+
<span class="ns-c-warning"><b>Error</b>: invalid layout params.</span>
|
|
39
39
|
<hr />
|
|
40
40
|
<p>
|
|
41
41
|
There are two parameters: <code>columns</code> and <code>align</code>. Currently:
|
package/package.json
CHANGED
package/styles/base.css
CHANGED
|
@@ -129,50 +129,6 @@
|
|
|
129
129
|
margin-top: 1.5em;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
/* columns stuff */
|
|
133
|
-
.warning {
|
|
134
|
-
color: red;
|
|
135
|
-
}
|
|
136
|
-
.error {
|
|
137
|
-
font-size: 0.9em;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.left {
|
|
141
|
-
justify-content: left; /* Left align the content */
|
|
142
|
-
text-align: left;
|
|
143
|
-
align-items: start;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.center {
|
|
147
|
-
justify-content: center; /* Horizontally center the content */
|
|
148
|
-
text-align: center;
|
|
149
|
-
align-items: center;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
.right {
|
|
153
|
-
justify-content: right; /* Right align the content */
|
|
154
|
-
text-align: right;
|
|
155
|
-
align-items: end;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
.top {
|
|
159
|
-
margin-top: 0;
|
|
160
|
-
margin-bottom: auto;
|
|
161
|
-
}
|
|
162
|
-
.middle {
|
|
163
|
-
margin-top: auto;
|
|
164
|
-
margin-bottom: auto;
|
|
165
|
-
}
|
|
166
|
-
.bottom {
|
|
167
|
-
margin-top: auto;
|
|
168
|
-
margin-bottom: 0;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
/* a new tight bullet list */
|
|
172
|
-
/* .tight {
|
|
173
|
-
margin-top: 1em;
|
|
174
|
-
} */
|
|
175
|
-
|
|
176
132
|
.bwimg {
|
|
177
133
|
filter: grayscale(100%) contrast(150%) brightness(120%);
|
|
178
134
|
display: inline;
|
package/styles/neversink-c.css
CHANGED
|
@@ -45,6 +45,46 @@
|
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
*/
|
|
48
|
+
|
|
49
|
+
/* columns stuff */
|
|
50
|
+
.ns-c-warning {
|
|
51
|
+
color: red;
|
|
52
|
+
}
|
|
53
|
+
.ns-c-error {
|
|
54
|
+
font-size: 0.9em;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.ns-c-left {
|
|
58
|
+
justify-content: left; /* Left align the content */
|
|
59
|
+
text-align: left;
|
|
60
|
+
align-items: start;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.ns-c-center {
|
|
64
|
+
justify-content: center; /* Horizontally center the content */
|
|
65
|
+
text-align: center;
|
|
66
|
+
align-items: center;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.ns-c-right {
|
|
70
|
+
justify-content: right; /* Right align the content */
|
|
71
|
+
text-align: right;
|
|
72
|
+
align-items: end;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.ns-c-top {
|
|
76
|
+
margin-top: 0;
|
|
77
|
+
margin-bottom: auto;
|
|
78
|
+
}
|
|
79
|
+
.ns-c-middle {
|
|
80
|
+
margin-top: auto;
|
|
81
|
+
margin-bottom: auto;
|
|
82
|
+
}
|
|
83
|
+
.ns-c-bottom {
|
|
84
|
+
margin-top: auto;
|
|
85
|
+
margin-bottom: 0;
|
|
86
|
+
}
|
|
87
|
+
|
|
48
88
|
/* adds a modifier class which reduces the space between bullets */
|
|
49
89
|
.ns-c-tight li {
|
|
50
90
|
line-height: normal;
|