varvara-typedoc-theme 0.1.1 → 0.1.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.
@@ -0,0 +1,217 @@
1
+ :root {
2
+ --va-collapse-tree-indentation: var(--va-space-4);
3
+ }
4
+
5
+ html[data-theme='light'] {
6
+ --va-color-foreground: #29353d;
7
+ --va-color-background: #f3f5f7;
8
+ --va-border-color: lightgray;
9
+ }
10
+ html[data-theme='dark'] {
11
+ --va-color-foreground: #b3ccd6;
12
+ --va-color-background: #2a303c;
13
+ }
14
+
15
+ @media (prefers-color-scheme: light) {
16
+ :root {
17
+ --va-color-foreground: #29353d;
18
+ --va-color-background: #f3f5f7;
19
+ --va-border-color: lightgray;
20
+ }
21
+ }
22
+
23
+ @media (prefers-color-scheme: dark) {
24
+ :root {
25
+ --va-color-foreground: #b3ccd6;
26
+ --va-color-background: #2a303c;
27
+ }
28
+ }
29
+
30
+ body {
31
+ background-color: var(--va-color-background);
32
+ color: var(--va-color-foreground);
33
+ }
34
+
35
+ .va-button:has(.version-badge) {
36
+ position: relative;
37
+ }
38
+
39
+ .version-badge {
40
+ position: absolute;
41
+ right: 0;
42
+ bottom: 0;
43
+ background-color: var(--va-surface-primary-alt);
44
+ color: var(--va-color-background);
45
+ padding: var(--va-space-1);
46
+ font-size: var(--va-font-size-0);
47
+ }
48
+
49
+ .page-toolbar {
50
+ grid-area: header;
51
+ }
52
+
53
+ .container-main {
54
+ gap: 1rem;
55
+ }
56
+
57
+ .search {
58
+ position: relative;
59
+ display: flex;
60
+ margin-bottom: 1rem;
61
+ }
62
+
63
+ #tsd-search.has-focus {
64
+ background-color: transparent;
65
+ }
66
+
67
+ .search input,
68
+ .search a:not([href='#']) {
69
+ flex: 1;
70
+ }
71
+
72
+ .search a[href='#'] {
73
+ display: none;
74
+ }
75
+
76
+ #tsd-search .field {
77
+ position: static;
78
+ width: 100%;
79
+ }
80
+
81
+ #tsd-search .field label {
82
+ position: static;
83
+ }
84
+
85
+ #tsd-search .field input {
86
+ top: auto;
87
+ font-size: 1rem;
88
+ opacity: 1; // Temporally
89
+ }
90
+
91
+ #tsd-search.has-focus .field input {
92
+ display: flex;
93
+ }
94
+
95
+ #tsd-search .results {
96
+ top: 100%;
97
+ z-index: 1;
98
+ }
99
+
100
+ .navigation-links a {
101
+ display: flex;
102
+ }
103
+ .navigation-links a span {
104
+ flex: 1;
105
+ }
106
+
107
+ .navigation-links a svg {
108
+ color: var(--va-color-foreground);
109
+ }
110
+
111
+ .navigation-links a:active svg {
112
+ color: currentColor;
113
+ }
114
+
115
+ .settings .settings-label {
116
+ margin-top: 1em;
117
+ text-transform: none;
118
+ font-size: var(--va-font-size-0);
119
+ }
120
+
121
+ .settings ul {
122
+ list-style: none;
123
+ padding-left: 0;
124
+ }
125
+
126
+ .settings .va-select {
127
+ width: 100%;
128
+ border-left: 0;
129
+ border-right: 0;
130
+ border-bottom: 0;
131
+ }
132
+
133
+ .settings .va-select-group {
134
+ padding-left: 0 !important;
135
+ }
136
+
137
+ .site-menu {
138
+ margin-top: 0;
139
+ }
140
+
141
+ .va-collapse {
142
+ overflow: hidden;
143
+ }
144
+
145
+ .va-button {
146
+ display: flex;
147
+ align-items: center;
148
+ }
149
+
150
+ .tsd-signature,
151
+ pre {
152
+ border: var(--va-border-width) solid var(--va-border-color);
153
+ }
154
+
155
+ pre {
156
+ border-radius: 0;
157
+ }
158
+
159
+ footer {
160
+ border-top: var(--va-border-width) solid var(--va-border-color);
161
+ padding: 0;
162
+ }
163
+
164
+ .container {
165
+ padding: 0 1.5rem;
166
+ }
167
+
168
+ @media (max-width: 769px) {
169
+ .page-toolbar {
170
+ margin-top: 1rem;
171
+ }
172
+ .search a[href='#'] {
173
+ display: inline-block;
174
+ }
175
+ .has-menu .col-sidebar {
176
+ padding: 1rem;
177
+ }
178
+ .container-main {
179
+ flex-direction: column;
180
+ }
181
+ html .col-sidebar {
182
+ background-color: var(--va-color-background);
183
+ }
184
+ }
185
+
186
+ @media (min-width: 770px) {
187
+ .container-main {
188
+ grid-template-areas: 'header content' 'sidebar content';
189
+ grid-auto-rows: auto 1fr;
190
+ }
191
+ .container {
192
+ padding: 0 2rem;
193
+ }
194
+ }
195
+
196
+ @media (min-width: 1200px) {
197
+ .container-main {
198
+ grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr) minmax(0, 20rem);
199
+ grid-template-areas:
200
+ 'header content toc'
201
+ 'sidebar content toc';
202
+ }
203
+ .page-menu,
204
+ .site-menu {
205
+ top: 2rem;
206
+ max-height: calc(100vh - 4rem);
207
+ }
208
+ }
209
+
210
+ @media (min-width: 770px) and (max-width: 1399px) {
211
+ .col-sidebar {
212
+ padding-top: 0;
213
+ }
214
+ .page-menu {
215
+ margin-bottom: 1rem;
216
+ }
217
+ }
package/dist/index.js CHANGED
@@ -441,7 +441,7 @@ class VarvaraTheme extends DefaultTheme2 {
441
441
  const destPath = path.resolve(this.application.options.getValue("out"), "assets/varvara.css");
442
442
  fs.mkdirSync(path.dirname(destPath), { recursive: true });
443
443
  fs.copyFileSync(varvaraCssPath, destPath);
444
- fs.cpSync(path.resolve(path.dirname(fileURLToPath(import.meta.url)), "../src/assets/"), path.resolve(this.application.options.getValue("out"), "assets/"), { recursive: true });
444
+ fs.cpSync(path.resolve(path.dirname(fileURLToPath(import.meta.url)), "../assets/"), path.resolve(this.application.options.getValue("out"), "assets/"), { recursive: true });
445
445
  });
446
446
  renderer.hooks.on("head.end", (event) => /* @__PURE__ */ JSX6.createElement(JSX6.Fragment, null, /* @__PURE__ */ JSX6.createElement("link", {
447
447
  rel: "stylesheet",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "varvara-typedoc-theme",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "author": "Marc Mariné <shenobi@gmail.com>",
5
5
  "repository": {
6
6
  "type": "git",
@@ -32,6 +32,7 @@
32
32
  ".": "./dist/index.js"
33
33
  },
34
34
  "files": [
35
- "dist"
35
+ "dist",
36
+ "assets"
36
37
  ]
37
38
  }