@scalemule/news-publication 0.0.8 → 0.0.10
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/dist/{chunk-PYCU2T5O.js → chunk-5QHNNRVQ.js} +1 -1
- package/dist/{chunk-R33MJWND.js → chunk-AYSBXLOT.js} +1 -1
- package/dist/{chunk-YQXS2KQI.js → chunk-C7ZPLH2K.js} +10 -1
- package/dist/chunk-NQD3M7ZY.js +283 -0
- package/dist/{chunk-TJ7RL3PV.js → chunk-RNXTBN5Z.js} +7 -0
- package/dist/cookie-consent-banner.js +2 -2
- package/dist/cookie-settings-view.cjs +7 -0
- package/dist/cookie-settings-view.js +2 -2
- package/dist/index.cjs +308 -0
- package/dist/index.d.cts +44 -2
- package/dist/index.d.ts +44 -2
- package/dist/index.js +5 -4
- package/dist/{marketplace-Ch7mdJZv.d.cts → marketplace-CpGWPbFk.d.cts} +20 -1
- package/dist/{marketplace-Ch7mdJZv.d.ts → marketplace-CpGWPbFk.d.ts} +20 -1
- package/dist/marketplace-forms.js +1 -1
- package/dist/marketplace-view.cjs +30 -3
- package/dist/marketplace-view.d.cts +3 -2
- package/dist/marketplace-view.d.ts +3 -2
- package/dist/marketplace-view.js +28 -4
- package/dist/theme-toggle.cjs +258 -0
- package/dist/theme-toggle.d.cts +22 -0
- package/dist/theme-toggle.d.ts +22 -0
- package/dist/theme-toggle.js +2 -0
- package/marketplace.css +2 -0
- package/package.json +7 -2
- package/tokens/broadsheet.css +177 -1
package/tokens/broadsheet.css
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
--pub-rule: #d7dcd7;
|
|
14
14
|
--pub-soft: #f5f6f3;
|
|
15
15
|
--pub-sponsor: #173d32;
|
|
16
|
+
--pub-selection-bg: #f6dcdd;
|
|
16
17
|
--pub-serif: var(--font-editorial), Georgia, "Times New Roman", serif;
|
|
17
18
|
--pub-editorial: var(--font-editorial), Georgia, "Times New Roman", serif;
|
|
18
19
|
--pub-sans: var(--font-inter), Arial, Helvetica, sans-serif;
|
|
@@ -43,7 +44,51 @@
|
|
|
43
44
|
line-height: 1.5;
|
|
44
45
|
min-height: 100dvh;
|
|
45
46
|
overflow-wrap: break-word;
|
|
47
|
+
transition: background-color 0.2s ease, color 0.2s ease;
|
|
46
48
|
}
|
|
49
|
+
|
|
50
|
+
/* Explicit Light Mode Override */
|
|
51
|
+
:root[data-theme="light"] .publication,
|
|
52
|
+
.publication[data-theme="light"] {
|
|
53
|
+
--pub-paper: #ffffff;
|
|
54
|
+
--pub-ink: #171917;
|
|
55
|
+
--pub-muted: #545c55;
|
|
56
|
+
--pub-accent: #bb171d;
|
|
57
|
+
--pub-rule: #d7dcd7;
|
|
58
|
+
--pub-soft: #f5f6f3;
|
|
59
|
+
--pub-sponsor: #173d32;
|
|
60
|
+
--pub-selection-bg: #f6dcdd;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* Broadsheet Evening Edition: Dark Mode */
|
|
64
|
+
:root[data-theme="dark"] .publication,
|
|
65
|
+
.publication[data-theme="dark"],
|
|
66
|
+
[data-theme="dark"] {
|
|
67
|
+
--pub-paper: #131514;
|
|
68
|
+
--pub-ink: #eaece8;
|
|
69
|
+
--pub-muted: #959e96;
|
|
70
|
+
--pub-accent: #e54b51;
|
|
71
|
+
--pub-rule: #29302a;
|
|
72
|
+
--pub-soft: #1a1e1b;
|
|
73
|
+
--pub-sponsor: #244b3e;
|
|
74
|
+
--pub-selection-bg: #52191d;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* System Preference Mode (Default when not explicitly forced) */
|
|
78
|
+
@media (prefers-color-scheme: dark) {
|
|
79
|
+
:root:not([data-theme="light"]) .publication,
|
|
80
|
+
.publication:not([data-theme="light"]) {
|
|
81
|
+
--pub-paper: #131514;
|
|
82
|
+
--pub-ink: #eaece8;
|
|
83
|
+
--pub-muted: #959e96;
|
|
84
|
+
--pub-accent: #e54b51;
|
|
85
|
+
--pub-rule: #29302a;
|
|
86
|
+
--pub-soft: #1a1e1b;
|
|
87
|
+
--pub-sponsor: #244b3e;
|
|
88
|
+
--pub-selection-bg: #52191d;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
47
92
|
.publication *, .publication *::before, .publication *::after { box-sizing: border-box; }
|
|
48
93
|
.publication :focus-visible { outline: 3px solid #a95c00; outline-offset: 4px; }
|
|
49
94
|
.publication a, .publication button, .publication summary { touch-action: manipulation; }
|
|
@@ -55,7 +100,138 @@
|
|
|
55
100
|
text-wrap: pretty;
|
|
56
101
|
}
|
|
57
102
|
.publication [id] { scroll-margin-top: 24px; }
|
|
58
|
-
.publication ::selection { background: #f6dcdd; color: var(--pub-ink); }
|
|
103
|
+
.publication ::selection { background: var(--pub-selection-bg, #f6dcdd); color: var(--pub-ink); }
|
|
59
104
|
@media (min-width: 960px) {
|
|
60
105
|
.publication { --pub-width: 1280px; }
|
|
61
106
|
}
|
|
107
|
+
|
|
108
|
+
/*
|
|
109
|
+
* Broadsheet Theme Toggle Controls
|
|
110
|
+
*/
|
|
111
|
+
.pub-theme-toggle-container {
|
|
112
|
+
display: inline-flex;
|
|
113
|
+
flex-direction: column;
|
|
114
|
+
position: relative;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.pub-theme-toggle {
|
|
118
|
+
display: inline-flex;
|
|
119
|
+
align-items: center;
|
|
120
|
+
gap: 2px;
|
|
121
|
+
padding: 2px;
|
|
122
|
+
border: 1px solid var(--pub-rule);
|
|
123
|
+
background: var(--pub-soft);
|
|
124
|
+
border-radius: 4px;
|
|
125
|
+
font-family: var(--pub-sans);
|
|
126
|
+
line-height: 1;
|
|
127
|
+
user-select: none;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.pub-theme-toggle button {
|
|
131
|
+
display: inline-flex;
|
|
132
|
+
align-items: center;
|
|
133
|
+
justify-content: center;
|
|
134
|
+
gap: 5px;
|
|
135
|
+
padding: 4px 8px;
|
|
136
|
+
height: 26px;
|
|
137
|
+
border: 0;
|
|
138
|
+
background: transparent;
|
|
139
|
+
color: var(--pub-muted);
|
|
140
|
+
font-size: 11px;
|
|
141
|
+
font-weight: 500;
|
|
142
|
+
cursor: pointer;
|
|
143
|
+
border-radius: 3px;
|
|
144
|
+
transition: background 0.15s ease, color 0.15s ease;
|
|
145
|
+
text-decoration: none;
|
|
146
|
+
line-height: 1;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.pub-theme-toggle button:hover {
|
|
150
|
+
color: var(--pub-ink);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.pub-theme-toggle button[aria-pressed="true"],
|
|
154
|
+
.pub-theme-toggle button[data-active="true"] {
|
|
155
|
+
background: var(--pub-paper);
|
|
156
|
+
color: var(--pub-ink);
|
|
157
|
+
font-weight: 600;
|
|
158
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.pub-theme-toggle svg {
|
|
162
|
+
width: 14px;
|
|
163
|
+
height: 14px;
|
|
164
|
+
flex-shrink: 0;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/* Compact variant (ideal for top utility bar) */
|
|
168
|
+
.pub-theme-toggle[data-variant="compact"] {
|
|
169
|
+
padding: 1px;
|
|
170
|
+
gap: 1px;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.pub-theme-toggle[data-variant="compact"] button {
|
|
174
|
+
padding: 3px 6px;
|
|
175
|
+
height: 22px;
|
|
176
|
+
min-width: 24px;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.pub-theme-toggle[data-variant="compact"] svg {
|
|
180
|
+
width: 13px;
|
|
181
|
+
height: 13px;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/* Inline variant (for reading toolbar on article pages) */
|
|
185
|
+
.pub-theme-toggle[data-variant="inline"] {
|
|
186
|
+
border-color: var(--pub-rule);
|
|
187
|
+
background: transparent;
|
|
188
|
+
padding: 0;
|
|
189
|
+
border-radius: 0;
|
|
190
|
+
gap: 0;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.pub-theme-toggle[data-variant="inline"] button {
|
|
194
|
+
height: 30px;
|
|
195
|
+
padding: 4px 10px;
|
|
196
|
+
border: 1px solid var(--pub-rule);
|
|
197
|
+
border-radius: 0;
|
|
198
|
+
background: var(--pub-paper);
|
|
199
|
+
font-size: 12px;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.pub-theme-toggle[data-variant="inline"] button:not(:first-child) {
|
|
203
|
+
margin-left: -1px;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.pub-theme-toggle[data-variant="inline"] button[aria-pressed="true"],
|
|
207
|
+
.pub-theme-toggle[data-variant="inline"] button[data-active="true"] {
|
|
208
|
+
background: var(--pub-soft);
|
|
209
|
+
color: var(--pub-ink);
|
|
210
|
+
border-color: var(--pub-ink);
|
|
211
|
+
z-index: 1;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/* Reader promotion / device sync prompt banner */
|
|
215
|
+
.pub-theme-promo {
|
|
216
|
+
position: absolute;
|
|
217
|
+
top: calc(100% + 6px);
|
|
218
|
+
left: 0;
|
|
219
|
+
z-index: 40;
|
|
220
|
+
min-width: 240px;
|
|
221
|
+
max-width: 320px;
|
|
222
|
+
padding: 8px 12px;
|
|
223
|
+
font-size: 11px;
|
|
224
|
+
line-height: 1.4;
|
|
225
|
+
border: 1px solid var(--pub-rule);
|
|
226
|
+
background: var(--pub-paper);
|
|
227
|
+
color: var(--pub-ink);
|
|
228
|
+
border-radius: 4px;
|
|
229
|
+
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.pub-theme-promo a {
|
|
233
|
+
color: var(--pub-accent);
|
|
234
|
+
font-weight: 600;
|
|
235
|
+
text-decoration: underline;
|
|
236
|
+
text-underline-offset: 3px;
|
|
237
|
+
}
|