varvara-typedoc-theme 0.3.0 → 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/README.md +8 -8
- package/assets/overrides.css +15 -30
- package/dist/index.js +26 -13
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -71,31 +71,31 @@ Varvara CSS provides variables to customize the theme appearance:
|
|
|
71
71
|
|
|
72
72
|
@media (prefers-color-scheme: light) {
|
|
73
73
|
:root {
|
|
74
|
-
--va-color-
|
|
75
|
-
--va-color-
|
|
74
|
+
--va-foreground-color-default: DimGray;
|
|
75
|
+
--va-background-color-default: WhiteSmoke;
|
|
76
76
|
--va-border-color: Gainsboro;
|
|
77
77
|
--va-space-ratio: 0.5;
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
@media (prefers-color-scheme: dark) {
|
|
81
81
|
:root {
|
|
82
|
-
--va-color-
|
|
83
|
-
--va-color-
|
|
82
|
+
--va-foreground-color-default: Silver;
|
|
83
|
+
--va-background-color-default: MidnightBlue;
|
|
84
84
|
--va-border-color: RoyalBlue;
|
|
85
85
|
--va-space-ratio: 0.5;
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
[data-theme='light'] {
|
|
90
|
-
--va-color-
|
|
91
|
-
--va-color-
|
|
90
|
+
--va-foreground-color-default: DimGray;
|
|
91
|
+
--va-background-color-default: WhiteSmoke;
|
|
92
92
|
--va-border-color: Gainsboro;
|
|
93
93
|
--va-space-ratio: 0.5;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
[data-theme='dark'] {
|
|
97
|
-
--va-color-
|
|
98
|
-
--va-color-
|
|
97
|
+
--va-foreground-color-default: Silver;
|
|
98
|
+
--va-background-color-default: MidnightBlue;
|
|
99
99
|
--va-border-color: RoyalBlue;
|
|
100
100
|
--va-space-ratio: 0.5;
|
|
101
101
|
}
|
package/assets/overrides.css
CHANGED
|
@@ -23,11 +23,6 @@
|
|
|
23
23
|
flex: 1;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
body {
|
|
27
|
-
background-color: var(--va-color-background);
|
|
28
|
-
color: var(--va-color-foreground);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
26
|
a {
|
|
32
27
|
color: var(--va-color-primary);
|
|
33
28
|
}
|
|
@@ -40,8 +35,8 @@ a {
|
|
|
40
35
|
position: absolute;
|
|
41
36
|
right: 0;
|
|
42
37
|
bottom: 0;
|
|
43
|
-
background-color: var(--va-
|
|
44
|
-
color: var(--va-color-
|
|
38
|
+
background-color: var(--va-foreground-color-muted);
|
|
39
|
+
color: var(--va-background-color-default);
|
|
45
40
|
padding: var(--va-space-1);
|
|
46
41
|
font-size: var(--va-font-size-0);
|
|
47
42
|
}
|
|
@@ -61,37 +56,23 @@ a {
|
|
|
61
56
|
}
|
|
62
57
|
|
|
63
58
|
dialog {
|
|
64
|
-
background-color: var(--va-color-
|
|
59
|
+
background-color: var(--va-background-color-default);
|
|
65
60
|
}
|
|
66
61
|
|
|
67
62
|
.navigation-links a span {
|
|
68
63
|
flex: 1;
|
|
69
64
|
}
|
|
70
65
|
|
|
71
|
-
.
|
|
72
|
-
margin-top:
|
|
73
|
-
text-transform: none;
|
|
74
|
-
font-size: var(--va-font-size-0);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.settings ul {
|
|
78
|
-
list-style: none;
|
|
79
|
-
padding-left: 0;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.settings .va-select {
|
|
83
|
-
width: 100%;
|
|
84
|
-
border-left-color: transparent;
|
|
85
|
-
border-right: 0;
|
|
86
|
-
border-bottom: 0;
|
|
66
|
+
.site-menu {
|
|
67
|
+
margin-top: 0;
|
|
87
68
|
}
|
|
88
69
|
|
|
89
|
-
.
|
|
90
|
-
|
|
70
|
+
.tsd-filter-input {
|
|
71
|
+
margin: 0;
|
|
91
72
|
}
|
|
92
73
|
|
|
93
|
-
.
|
|
94
|
-
margin-
|
|
74
|
+
.tsd-filter-item:not(:last-child) {
|
|
75
|
+
margin-bottom: 0;
|
|
95
76
|
}
|
|
96
77
|
|
|
97
78
|
.tsd-signature,
|
|
@@ -109,7 +90,7 @@ footer {
|
|
|
109
90
|
}
|
|
110
91
|
|
|
111
92
|
.container {
|
|
112
|
-
padding: 0 var(--va-space-
|
|
93
|
+
padding: 0 var(--va-space-4);
|
|
113
94
|
}
|
|
114
95
|
|
|
115
96
|
@media (max-width: 769px) {
|
|
@@ -123,7 +104,7 @@ footer {
|
|
|
123
104
|
flex-direction: column;
|
|
124
105
|
}
|
|
125
106
|
html .col-sidebar {
|
|
126
|
-
background-color: var(--va-color-
|
|
107
|
+
background-color: var(--va-background-color-default);
|
|
127
108
|
}
|
|
128
109
|
}
|
|
129
110
|
|
|
@@ -136,6 +117,10 @@ footer {
|
|
|
136
117
|
.container {
|
|
137
118
|
padding: 0 var(--va-space-8);
|
|
138
119
|
}
|
|
120
|
+
|
|
121
|
+
#tsd-toolbar-menu-trigger {
|
|
122
|
+
display: none;
|
|
123
|
+
}
|
|
139
124
|
}
|
|
140
125
|
|
|
141
126
|
@media (min-width: 1200px) {
|
package/dist/index.js
CHANGED
|
@@ -29,9 +29,11 @@ function footer(context) {
|
|
|
29
29
|
class: "tsd-generator"
|
|
30
30
|
}, pre, /* @__PURE__ */ JSX.createElement("a", {
|
|
31
31
|
href: "https://typedoc.org/",
|
|
32
|
+
class: "va-link",
|
|
32
33
|
target: "_blank"
|
|
33
34
|
}, "TypeDoc"), " & ", /* @__PURE__ */ JSX.createElement("a", {
|
|
34
35
|
href: "https://varvara.js.org/",
|
|
36
|
+
class: "va-link",
|
|
35
37
|
target: "_blank"
|
|
36
38
|
}, "Varvara CSS"), post);
|
|
37
39
|
}
|
|
@@ -110,13 +112,9 @@ function settings(context) {
|
|
|
110
112
|
return /* @__PURE__ */ JSX3.createElement("details", {
|
|
111
113
|
class: "va-collapse settings tsd-accordion",
|
|
112
114
|
open: false
|
|
113
|
-
}, /* @__PURE__ */ JSX3.createElement("summary", null, i18n3.theme_settings()), visibilityOptions.length && /* @__PURE__ */ JSX3.createElement("
|
|
114
|
-
class: "
|
|
115
|
-
}, /* @__PURE__ */ JSX3.createElement("span", {
|
|
116
|
-
class: "settings-label"
|
|
117
|
-
}, i18n3.theme_member_visibility()), /* @__PURE__ */ JSX3.createElement("ul", {
|
|
118
|
-
id: "tsd-filter-options"
|
|
119
|
-
}, ...visibilityOptions)), /* @__PURE__ */ JSX3.createElement("label", null, /* @__PURE__ */ JSX3.createElement("span", null, i18n3.theme_theme()), /* @__PURE__ */ JSX3.createElement("select", {
|
|
115
|
+
}, /* @__PURE__ */ JSX3.createElement("summary", null, i18n3.theme_settings()), visibilityOptions.length && /* @__PURE__ */ JSX3.createElement("details", {
|
|
116
|
+
class: "va-collapse"
|
|
117
|
+
}, /* @__PURE__ */ JSX3.createElement("summary", null, i18n3.theme_member_visibility()), ...visibilityOptions), /* @__PURE__ */ JSX3.createElement("label", null, /* @__PURE__ */ JSX3.createElement("span", null, i18n3.theme_theme()), /* @__PURE__ */ JSX3.createElement("select", {
|
|
120
118
|
id: "tsd-theme",
|
|
121
119
|
class: "va-select"
|
|
122
120
|
}, /* @__PURE__ */ JSX3.createElement("option", {
|
|
@@ -161,17 +159,16 @@ function buildSectionNavigation(context, headings) {
|
|
|
161
159
|
finalizeLevel(true);
|
|
162
160
|
return levels[0];
|
|
163
161
|
}
|
|
164
|
-
function buildFilterItem(
|
|
165
|
-
return /* @__PURE__ */ JSX3.createElement("
|
|
162
|
+
function buildFilterItem(_context, name, displayName, defaultValue) {
|
|
163
|
+
return /* @__PURE__ */ JSX3.createElement("label", {
|
|
166
164
|
class: "tsd-filter-item"
|
|
167
|
-
}, /* @__PURE__ */ JSX3.createElement("
|
|
168
|
-
class: "tsd-filter-input"
|
|
169
|
-
}, /* @__PURE__ */ JSX3.createElement("input", {
|
|
165
|
+
}, /* @__PURE__ */ JSX3.createElement("span", null, displayName), /* @__PURE__ */ JSX3.createElement("input", {
|
|
166
|
+
class: "tsd-filter-input va-checkbox",
|
|
170
167
|
type: "checkbox",
|
|
171
168
|
id: `tsd-filter-${name}`,
|
|
172
169
|
name,
|
|
173
170
|
checked: defaultValue
|
|
174
|
-
})
|
|
171
|
+
}));
|
|
175
172
|
}
|
|
176
173
|
function pageNavigation(context) {
|
|
177
174
|
return (props) => {
|
|
@@ -226,6 +223,22 @@ function toolbar(context) {
|
|
|
226
223
|
stroke: "currentColor"
|
|
227
224
|
}, /* @__PURE__ */ JSX4.createElement("path", {
|
|
228
225
|
d: "m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"
|
|
226
|
+
}))), /* @__PURE__ */ JSX4.createElement("a", {
|
|
227
|
+
href: "#",
|
|
228
|
+
class: "va-button",
|
|
229
|
+
id: "tsd-toolbar-menu-trigger",
|
|
230
|
+
"data-toggle": "menu",
|
|
231
|
+
"aria-label": i18n4.theme_menu()
|
|
232
|
+
}, /* @__PURE__ */ JSX4.createElement("svg", {
|
|
233
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
234
|
+
fill: "none",
|
|
235
|
+
viewBox: "0 0 24 24",
|
|
236
|
+
"stroke-width": "2.5",
|
|
237
|
+
width: "16",
|
|
238
|
+
height: "16",
|
|
239
|
+
stroke: "currentColor"
|
|
240
|
+
}, /* @__PURE__ */ JSX4.createElement("path", {
|
|
241
|
+
d: "M3.75 9h16.5m-16.5 6.75h16.5"
|
|
229
242
|
})))), /* @__PURE__ */ JSX4.createElement("div", {
|
|
230
243
|
class: "navigation-links va-button-group"
|
|
231
244
|
}, Object.entries(context.options.getValue("navigationLinks")).map(([label, url]) => /* @__PURE__ */ JSX4.createElement("a", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "varvara-typedoc-theme",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"author": "Marc Mariné <shenobi@gmail.com>",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
],
|
|
16
16
|
"license": "MIT",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"varvara-css": "
|
|
18
|
+
"varvara-css": "workspace:*"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@types/bun": "latest"
|