@abreen/tada 1.4.0 → 1.4.1

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.
@@ -132,8 +132,22 @@ export function injectAssetTags(
132
132
  )
133
133
  .join('');
134
134
 
135
+ const fontPreloadTags = [
136
+ 'inter/InterVariable.woff2',
137
+ 'google-sans-code/GoogleSansCodeVariable.woff2',
138
+ ]
139
+ .filter(f => fs.existsSync(path.join(distDir, f)))
140
+ .map(
141
+ f =>
142
+ `<link rel="preload" href="${applyBasePath('/' + f)}" as="font" type="font/woff2" crossorigin>`,
143
+ )
144
+ .join('');
145
+
135
146
  return html
136
- .replace('<head>', `<head>${criticalTags}${asyncLinkTags}`)
147
+ .replace(
148
+ '<head>',
149
+ `<head>${fontPreloadTags}${criticalTags}${asyncLinkTags}`,
150
+ )
137
151
  .replace('</head>', `${scriptTags}</head>`);
138
152
  }
139
153
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abreen/tada",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "type": "module",
5
5
  "description": "A static site generator",
6
6
  "license": "MIT",
@@ -97,6 +97,7 @@ header summary .to-top-container {
97
97
  height: var(--header-collapsed-height);
98
98
  pointer-events: none;
99
99
  white-space: nowrap;
100
+ padding: 0 var(--gap) 0 0;
100
101
 
101
102
  &:has(.is-visible) {
102
103
  display: flex;
@@ -116,7 +117,7 @@ header summary .search-controls {
116
117
  display: flex;
117
118
  align-items: center;
118
119
  height: var(--header-collapsed-height);
119
- padding: 0 var(--gap);
120
+ padding: 0 var(--gap) 0 0;
120
121
  min-width: 0;
121
122
 
122
123
  input.search {
@@ -10,10 +10,6 @@
10
10
  background: none !important;
11
11
  }
12
12
 
13
- main {
14
- padding-top: 0;
15
- }
16
-
17
13
  hr {
18
14
  height: 0;
19
15
  border-bottom: 2px solid gray;
@@ -27,11 +23,8 @@
27
23
  display: none !important;
28
24
  }
29
25
 
30
- main {
31
- max-width: none;
32
- width: 100%;
33
- margin: 0;
34
- padding: 0;
26
+ body > .container {
27
+ margin-top: 0;
35
28
  }
36
29
 
37
30
  body {
@@ -14,3 +14,22 @@ span.next-prev-day {
14
14
  align-items: center;
15
15
  gap: 4px;
16
16
  }
17
+
18
+ @media print {
19
+ .timezone-wrapper .icon-button {
20
+ display: none;
21
+ }
22
+
23
+ select.time-zone {
24
+ appearance: none;
25
+ border: none;
26
+ background: none;
27
+ padding: 0;
28
+ font: inherit;
29
+ color: inherit;
30
+
31
+ option {
32
+ display: none;
33
+ }
34
+ }
35
+ }