@skerbis/nativecss 0.0.0-stage → 1.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/CHANGELOG.md +61 -0
- package/LICENSE +28 -0
- package/README.md +145 -2
- package/dist/base.css +225 -0
- package/dist/browser-fixes.css +32 -0
- package/dist/colors.css +288 -0
- package/dist/components/accordion-split.css +269 -0
- package/dist/components/alert.css +179 -0
- package/dist/components/app-shell.css +266 -0
- package/dist/components/audio-player.css +697 -0
- package/dist/components/audio.css +35 -0
- package/dist/components/aurora.css +132 -0
- package/dist/components/avatar.css +102 -0
- package/dist/components/back-to-top.css +120 -0
- package/dist/components/backdrop.css +94 -0
- package/dist/components/badge.css +95 -0
- package/dist/components/breadcrumb.css +58 -0
- package/dist/components/card.css +721 -0
- package/dist/components/code-block.css +234 -0
- package/dist/components/combobox.css +103 -0
- package/dist/components/command-palette.css +351 -0
- package/dist/components/comments.css +243 -0
- package/dist/components/compare.css +218 -0
- package/dist/components/count-up.css +140 -0
- package/dist/components/countdown.css +74 -0
- package/dist/components/cover.css +45 -0
- package/dist/components/curtain.css +116 -0
- package/dist/components/dialog-close.css +44 -0
- package/dist/components/disclosure.css +37 -0
- package/dist/components/downloads.css +47 -0
- package/dist/components/dropdown.css +260 -0
- package/dist/components/dropzone.css +181 -0
- package/dist/components/effects.css +236 -0
- package/dist/components/empty-state.css +74 -0
- package/dist/components/events.css +165 -0
- package/dist/components/expand-panels.css +220 -0
- package/dist/components/filter.css +179 -0
- package/dist/components/floating-label.css +69 -0
- package/dist/components/footer.css +56 -0
- package/dist/components/hero.css +139 -0
- package/dist/components/hovercard.css +146 -0
- package/dist/components/input-group.css +67 -0
- package/dist/components/kbd.css +44 -0
- package/dist/components/leaders.css +99 -0
- package/dist/components/lightbox.css +165 -0
- package/dist/components/lists.css +221 -0
- package/dist/components/livesearch.css +106 -0
- package/dist/components/map.css +245 -0
- package/dist/components/marginnote.css +109 -0
- package/dist/components/marquee.css +119 -0
- package/dist/components/modal.css +385 -0
- package/dist/components/morph.css +317 -0
- package/dist/components/nav-drilldown.css +190 -0
- package/dist/components/nav-priority.css +157 -0
- package/dist/components/nav.css +600 -0
- package/dist/components/notification.css +290 -0
- package/dist/components/off-canvas.css +107 -0
- package/dist/components/overlay.css +122 -0
- package/dist/components/pagination.css +139 -0
- package/dist/components/pill-group.css +143 -0
- package/dist/components/placeholder.css +28 -0
- package/dist/components/preferences-fonts.css +65 -0
- package/dist/components/preferences.css +283 -0
- package/dist/components/pricing.css +220 -0
- package/dist/components/rating.css +121 -0
- package/dist/components/reveal-pin.css +165 -0
- package/dist/components/roadmap.css +173 -0
- package/dist/components/scroll-frames.css +97 -0
- package/dist/components/scroll-horizontal.css +141 -0
- package/dist/components/scroll-progress.css +63 -0
- package/dist/components/scroll-stack.css +363 -0
- package/dist/components/scroll-video.css +172 -0
- package/dist/components/scrolly.css +190 -0
- package/dist/components/search.css +52 -0
- package/dist/components/segmented.css +209 -0
- package/dist/components/select.css +186 -0
- package/dist/components/slideshow.css +441 -0
- package/dist/components/sortable.css +186 -0
- package/dist/components/sparkline.css +50 -0
- package/dist/components/spinner.css +50 -0
- package/dist/components/split.css +85 -0
- package/dist/components/spotlight.css +111 -0
- package/dist/components/stat.css +82 -0
- package/dist/components/stepper.css +217 -0
- package/dist/components/subnav.css +151 -0
- package/dist/components/table-sort.css +111 -0
- package/dist/components/tabs.css +304 -0
- package/dist/components/tag.css +130 -0
- package/dist/components/testimonial.css +188 -0
- package/dist/components/text-reveal.css +141 -0
- package/dist/components/theme-toggle.css +62 -0
- package/dist/components/tile.css +53 -0
- package/dist/components/timeline.css +211 -0
- package/dist/components/toolbar.css +139 -0
- package/dist/components/tooltip.css +89 -0
- package/dist/components/topbar.css +92 -0
- package/dist/components/video-bg.css +176 -0
- package/dist/components/video-card.css +145 -0
- package/dist/components/video-float.css +142 -0
- package/dist/components/video-player.css +1116 -0
- package/dist/components/video-text.css +91 -0
- package/dist/components/video.css +65 -0
- package/dist/fonts/README.md +29 -0
- package/dist/fonts/atkinson-hyperlegible-next/OFL.txt +93 -0
- package/dist/fonts/atkinson-hyperlegible-next/atkinson-hyperlegible-next.woff2 +0 -0
- package/dist/fonts/lexend/OFL.txt +93 -0
- package/dist/fonts/lexend/lexend.woff2 +0 -0
- package/dist/fonts/opendyslexic/OFL.txt +94 -0
- package/dist/fonts/opendyslexic/OpenDyslexic-Bold.woff2 +0 -0
- package/dist/fonts/opendyslexic/OpenDyslexic-Regular.woff2 +0 -0
- package/dist/helpers/a11y.css +71 -0
- package/dist/helpers/animations.css +206 -0
- package/dist/helpers/elevation.css +87 -0
- package/dist/helpers/float.css +135 -0
- package/dist/helpers/forms.css +503 -0
- package/dist/helpers/icons.css +130 -0
- package/dist/helpers/layout.css +549 -0
- package/dist/helpers/media.css +77 -0
- package/dist/helpers/reveal.css +172 -0
- package/dist/helpers/scroll-shadow.css +129 -0
- package/dist/helpers/scroll.css +163 -0
- package/dist/helpers/surfaces.css +87 -0
- package/dist/helpers/tables.css +85 -0
- package/dist/helpers/typography.css +347 -0
- package/dist/helpers/visibility.css +134 -0
- package/dist/integrations/fontawesome-font-display-fix.css +67 -0
- package/dist/integrations/webawesome-bridge.css +195 -0
- package/dist/js/audio-player.js +942 -0
- package/dist/js/backdrop.js +119 -0
- package/dist/js/code-block.js +238 -0
- package/dist/js/combobox.js +382 -0
- package/dist/js/command-fallback.js +35 -0
- package/dist/js/command-palette.js +477 -0
- package/dist/js/compare.js +73 -0
- package/dist/js/content-observer.js +82 -0
- package/dist/js/count-up.js +150 -0
- package/dist/js/countdown.js +185 -0
- package/dist/js/dialog-light-dismiss.js +123 -0
- package/dist/js/dismiss.js +144 -0
- package/dist/js/downloads.js +181 -0
- package/dist/js/dropdown.js +300 -0
- package/dist/js/dropzone.js +304 -0
- package/dist/js/events.js +501 -0
- package/dist/js/filter.js +177 -0
- package/dist/js/hero-video-motion.js +37 -0
- package/dist/js/hide-on-scroll-fallback.js +102 -0
- package/dist/js/hovercard.js +228 -0
- package/dist/js/icon.js +166 -0
- package/dist/js/ics.js +290 -0
- package/dist/js/lightbox.js +144 -0
- package/dist/js/livesearch.js +253 -0
- package/dist/js/map.js +625 -0
- package/dist/js/marquee.js +108 -0
- package/dist/js/modal-router.js +298 -0
- package/dist/js/nav-drilldown.js +250 -0
- package/dist/js/nav-priority.js +221 -0
- package/dist/js/nav.js +242 -0
- package/dist/js/ncss-container.js +117 -0
- package/dist/js/notification.js +372 -0
- package/dist/js/page-transitions-quiet.js +44 -0
- package/dist/js/preferences-early.js +51 -0
- package/dist/js/preferences.js +346 -0
- package/dist/js/reveal.js +79 -0
- package/dist/js/scroll-frames.js +284 -0
- package/dist/js/scroll-horizontal.js +121 -0
- package/dist/js/scroll-stack-fallback.js +250 -0
- package/dist/js/scroll-video.js +332 -0
- package/dist/js/scrolly.js +109 -0
- package/dist/js/slideshow.js +416 -0
- package/dist/js/sortable.js +530 -0
- package/dist/js/sparkline.js +199 -0
- package/dist/js/spotlight.js +104 -0
- package/dist/js/subnav.js +163 -0
- package/dist/js/table-sort.js +312 -0
- package/dist/js/tabs.js +243 -0
- package/dist/js/text-reveal.js +108 -0
- package/dist/js/theme-toggle-early.js +28 -0
- package/dist/js/theme-toggle.js +135 -0
- package/dist/js/toolbar.js +130 -0
- package/dist/js/tooltip.js +214 -0
- package/dist/js/video-bg.js +193 -0
- package/dist/js/video-card.js +80 -0
- package/dist/js/video-float.js +119 -0
- package/dist/js/video-player.js +1267 -0
- package/dist/js/view-transitions.js +118 -0
- package/dist/js/wa-close-on-scroll.js +56 -0
- package/dist/ncss.css +165 -0
- package/dist/page-transitions.css +150 -0
- package/dist/reset.css +196 -0
- package/dist/theme.css +112 -0
- package/dist/tokens.css +238 -0
- package/package.json +52 -4
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ncss - Web Awesome Bridge (Layer "webawesome-bridge", höchste Priorität - siehe
|
|
3
|
+
* ncss.css für die Layer-Order, die das seitenweit garantiert, unabhängig von <link>-
|
|
4
|
+
* Reihenfolge im HTML).
|
|
5
|
+
*
|
|
6
|
+
* Zweck: Web Awesome NICHT mit eigenen, parallelen Farb-/Abstands-/Typografie-Werten
|
|
7
|
+
* laufen lassen - stattdessen werden Web Awesomes eigene CSS Custom Properties hier auf
|
|
8
|
+
* unsere ncss-Tokens gemappt. ncss-Tokens (tokens.css/colors.css) bleiben die EINZIGE
|
|
9
|
+
* Quelle der Wahrheit; diese Datei ist reine Übersetzung, keine zweite Werteliste.
|
|
10
|
+
*
|
|
11
|
+
* Web Awesomes Komponenten (Button, Badge, Input, Tooltip, Dialog, ...) beziehen ihre
|
|
12
|
+
* Farben/Radien/Schriften fast ausschließlich aus genau diesen globalen "semantischen"
|
|
13
|
+
* Tokens (--wa-color-{familie}-{fill|border|on}-{quiet|normal|loud}, --wa-font-*,
|
|
14
|
+
* --wa-space-*, --wa-border-radius-*) - siehe vendor/webawesome/dist-cdn/styles/themes/
|
|
15
|
+
* default.css. Kein Component-CSS selbst anfassen, kein ::part()-Gefrickel nötig, um den
|
|
16
|
+
* Look zu übernehmen - EIN Bridge-Layer auf :root reicht für die große Mehrheit der Fälle.
|
|
17
|
+
*
|
|
18
|
+
* Web Awesomes eigenes Theme schaltet Light/Dark über Klassen (.wa-light/.wa-dark) um -
|
|
19
|
+
* ncss dagegen über light-dark() + color-scheme (siehe colors.css). Statt beide Mechanismen
|
|
20
|
+
* synchron zu halten (fragil, zwei Zustände die auseinanderlaufen können), übersteuern wir
|
|
21
|
+
* hier direkt auf die FERTIGEN, bereits theme-fähigen ncss-Tokens - die WA-Klassen werden
|
|
22
|
+
* dadurch für die gemappten Werte irrelevant, ncss' color-scheme entscheidet.
|
|
23
|
+
*
|
|
24
|
+
* "quiet/normal/loud" ~ unsere 100/300/500(-900)-Farbskala: quiet = dezente Fläche
|
|
25
|
+
* (Badge-/Callout-Hintergrund), normal = etwas kräftiger (Rahmen/Hover/gefüllte Buttons je
|
|
26
|
+
* nach Komponente - Web Awesome nutzt "normal" z.B. für <wa-button appearance="filled">),
|
|
27
|
+
* loud = die volle Markenfarbe. "on-*" ist die dazu passende Textfarbe.
|
|
28
|
+
*
|
|
29
|
+
* WICHTIG (per echtem Dark-Mode-Screenshot als Bug gefunden, dann behoben): on-quiet/
|
|
30
|
+
* on-normal NICHT auf einen einzelnen fixen Wert wie X-700 mappen. X-100/-300 sind seit
|
|
31
|
+
* colors.css' Fix selbst light-dark()-gewrappt (dezent im Light Mode Richtung weiß, im
|
|
32
|
+
* Dark Mode Richtung schwarz gemischt) - ein Text, der im Light Mode auf der hellen
|
|
33
|
+
* X-100/300-Fläche funktioniert (dunkel, z.B. X-700), wäre im Dark Mode auf der jetzt
|
|
34
|
+
* DUNKLEN X-100/300-Fläche selbst wieder unlesbar. Beide brauchen daher das ebenfalls in
|
|
35
|
+
* colors.css zentral definierte --ncss-color-X-on-soft (selbst light-dark(X-700, X) -
|
|
36
|
+
* im Dark Mode reicht die Basisfarbe X als Text, die dort ohnehin schon hell/leuchtend
|
|
37
|
+
* ist). Gilt genauso für den Fall OHNE Füllung (appearance="outlined"/"plain", Text sitzt
|
|
38
|
+
* direkt auf Seite/Card statt auf einem Chip) - dieselbe Logik passt zufällig auch dort,
|
|
39
|
+
* weil beide Fälle "dunkler Text im Light Mode, heller Text im Dark Mode" wollen. Derselbe
|
|
40
|
+
* -on-soft-Token wird auch von components/badge.css und demo/landing.css verwendet -
|
|
41
|
+
* eine Definition statt der Formel an mehreren Stellen dupliziert.
|
|
42
|
+
*/
|
|
43
|
+
|
|
44
|
+
:root, :host {
|
|
45
|
+
/* --- Oberflächen/Text/Rahmen ------------------------------------------------------ */
|
|
46
|
+
--wa-color-surface-default: var(--ncss-color-bg);
|
|
47
|
+
--wa-color-surface-raised: var(--ncss-color-surface);
|
|
48
|
+
--wa-color-surface-lowered: var(--ncss-color-bg-subtle);
|
|
49
|
+
--wa-color-surface-border: var(--ncss-color-border);
|
|
50
|
+
|
|
51
|
+
--wa-color-text-normal: var(--ncss-color-text);
|
|
52
|
+
--wa-color-text-quiet: var(--ncss-color-text-muted);
|
|
53
|
+
--wa-color-text-link: var(--ncss-color-brand);
|
|
54
|
+
|
|
55
|
+
--wa-color-focus: var(--ncss-color-focus-ring);
|
|
56
|
+
--wa-focus-ring: solid var(--ncss-focus-ring-width) var(--ncss-color-focus-ring);
|
|
57
|
+
|
|
58
|
+
/* Gleiches Token wie .ncss-modal::backdrop (components/modal.css, colors.css) - Web
|
|
59
|
+
Awesomes eigene Dialog-/Drawer-Overlays sollen optisch nicht von unseren nativen
|
|
60
|
+
<dialog>s abweichen. */
|
|
61
|
+
--wa-color-overlay-modal: var(--ncss-color-overlay);
|
|
62
|
+
--wa-color-overlay-inline: var(--ncss-color-overlay);
|
|
63
|
+
--wa-color-shadow: color-mix(in oklab, var(--ncss-color-text) 12%, transparent);
|
|
64
|
+
|
|
65
|
+
/* --- Brand ------------------------------------------------------------------------- */
|
|
66
|
+
--wa-color-brand-fill-quiet: var(--ncss-color-brand-100);
|
|
67
|
+
--wa-color-brand-fill-normal: var(--ncss-color-brand-300);
|
|
68
|
+
--wa-color-brand-fill-loud: var(--ncss-color-brand);
|
|
69
|
+
--wa-color-brand-border-quiet: var(--ncss-color-brand-100);
|
|
70
|
+
--wa-color-brand-border-normal: var(--ncss-color-brand-300);
|
|
71
|
+
--wa-color-brand-border-loud: var(--ncss-color-brand);
|
|
72
|
+
--wa-color-brand-on-quiet: var(--ncss-color-brand-on-soft);
|
|
73
|
+
--wa-color-brand-on-normal: var(--ncss-color-brand-on-soft);
|
|
74
|
+
--wa-color-brand-on-loud: var(--ncss-color-brand-contrast);
|
|
75
|
+
|
|
76
|
+
/* --- Neutral ------------------------------------------------------------------------ */
|
|
77
|
+
--wa-color-neutral-fill-quiet: var(--ncss-color-neutral-100);
|
|
78
|
+
--wa-color-neutral-fill-normal: var(--ncss-color-neutral-300);
|
|
79
|
+
--wa-color-neutral-fill-loud: var(--ncss-color-neutral-900);
|
|
80
|
+
--wa-color-neutral-border-quiet: var(--ncss-color-border);
|
|
81
|
+
--wa-color-neutral-border-normal: var(--ncss-color-neutral-300);
|
|
82
|
+
--wa-color-neutral-border-loud: var(--ncss-color-neutral-700);
|
|
83
|
+
--wa-color-neutral-on-quiet: var(--ncss-color-neutral-on-soft);
|
|
84
|
+
--wa-color-neutral-on-normal: var(--ncss-color-neutral-on-soft);
|
|
85
|
+
/* --ncss-color-brand-contrast trotz Namens bereits ncss' etablierte "lesbarer Text auf
|
|
86
|
+
lauter/gesättigter Füllung"-Konvention (siehe .ncss-btn--danger in helpers/forms.css,
|
|
87
|
+
das denselben Token für seinen roten Hintergrund wiederverwendet statt eigenem Wert). */
|
|
88
|
+
--wa-color-neutral-on-loud: var(--ncss-color-brand-contrast);
|
|
89
|
+
|
|
90
|
+
/* --- Success/Warning/Danger --------------------------------------------------------- */
|
|
91
|
+
--wa-color-success-fill-quiet: var(--ncss-color-success-100);
|
|
92
|
+
--wa-color-success-fill-normal: var(--ncss-color-success-300);
|
|
93
|
+
--wa-color-success-fill-loud: var(--ncss-color-success);
|
|
94
|
+
--wa-color-success-border-quiet: var(--ncss-color-success-100);
|
|
95
|
+
--wa-color-success-border-normal: var(--ncss-color-success-300);
|
|
96
|
+
--wa-color-success-border-loud: var(--ncss-color-success);
|
|
97
|
+
--wa-color-success-on-quiet: var(--ncss-color-success-on-soft);
|
|
98
|
+
--wa-color-success-on-normal: var(--ncss-color-success-on-soft);
|
|
99
|
+
--wa-color-success-on-loud: var(--ncss-color-brand-contrast);
|
|
100
|
+
|
|
101
|
+
--wa-color-warning-fill-quiet: var(--ncss-color-warning-100);
|
|
102
|
+
--wa-color-warning-fill-normal: var(--ncss-color-warning-300);
|
|
103
|
+
--wa-color-warning-fill-loud: var(--ncss-color-warning);
|
|
104
|
+
--wa-color-warning-border-quiet: var(--ncss-color-warning-100);
|
|
105
|
+
--wa-color-warning-border-normal: var(--ncss-color-warning-300);
|
|
106
|
+
--wa-color-warning-border-loud: var(--ncss-color-warning);
|
|
107
|
+
--wa-color-warning-on-quiet: var(--ncss-color-warning-on-soft);
|
|
108
|
+
--wa-color-warning-on-normal: var(--ncss-color-warning-on-soft);
|
|
109
|
+
--wa-color-warning-on-loud: var(--ncss-color-brand-contrast);
|
|
110
|
+
|
|
111
|
+
--wa-color-danger-fill-quiet: var(--ncss-color-danger-100);
|
|
112
|
+
--wa-color-danger-fill-normal: var(--ncss-color-danger-300);
|
|
113
|
+
--wa-color-danger-fill-loud: var(--ncss-color-danger);
|
|
114
|
+
--wa-color-danger-border-quiet: var(--ncss-color-danger-100);
|
|
115
|
+
--wa-color-danger-border-normal: var(--ncss-color-danger-300);
|
|
116
|
+
--wa-color-danger-border-loud: var(--ncss-color-danger);
|
|
117
|
+
--wa-color-danger-on-quiet: var(--ncss-color-danger-on-soft);
|
|
118
|
+
--wa-color-danger-on-normal: var(--ncss-color-danger-on-soft);
|
|
119
|
+
--wa-color-danger-on-loud: var(--ncss-color-brand-contrast);
|
|
120
|
+
|
|
121
|
+
/* --- Typografie ---------------------------------------------------------------------- */
|
|
122
|
+
--wa-font-family-body: var(--ncss-font-family-base);
|
|
123
|
+
--wa-font-family-heading: var(--ncss-font-family-heading);
|
|
124
|
+
--wa-font-family-code: var(--ncss-font-family-mono);
|
|
125
|
+
--wa-font-family-longform: var(--ncss-font-family-base);
|
|
126
|
+
|
|
127
|
+
--wa-font-size-m: var(--ncss-font-size-base);
|
|
128
|
+
|
|
129
|
+
--wa-font-weight-normal: var(--ncss-font-weight-normal);
|
|
130
|
+
--wa-font-weight-semibold: var(--ncss-font-weight-semibold);
|
|
131
|
+
--wa-font-weight-bold: var(--ncss-font-weight-bold);
|
|
132
|
+
--wa-font-weight-heading: var(--ncss-font-weight-bold);
|
|
133
|
+
|
|
134
|
+
/* --- Abstände/Radien ------------------------------------------------------------------ */
|
|
135
|
+
--wa-space-xs: var(--ncss-space-2xs);
|
|
136
|
+
--wa-space-s: var(--ncss-space-xs);
|
|
137
|
+
--wa-space-m: var(--ncss-space-sm);
|
|
138
|
+
--wa-space-l: var(--ncss-space-md);
|
|
139
|
+
--wa-space-xl: var(--ncss-space-lg);
|
|
140
|
+
|
|
141
|
+
--wa-border-radius-s: var(--ncss-radius-sm);
|
|
142
|
+
--wa-border-radius-m: var(--ncss-radius-md);
|
|
143
|
+
--wa-border-radius-l: var(--ncss-radius-lg);
|
|
144
|
+
--wa-border-radius-pill: var(--ncss-radius-full);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/* Web Awesomes eigene .wa-dark/.wa-light-Klasse existiert weiter (einzelne Komponenten
|
|
148
|
+
fragen sie u.U. intern ab) - color-scheme hier zusätzlich synchron halten, damit z.B.
|
|
149
|
+
natives Formular-Chrome INNERHALB eines Web-Awesome-Inputs (Shadow-DOM-<input>) im Dark
|
|
150
|
+
Mode nicht hell aufblitzt. */
|
|
151
|
+
:root, :host {
|
|
152
|
+
color-scheme: light dark;
|
|
153
|
+
}
|
|
154
|
+
:root[data-theme="light"], :host([data-theme="light"]) { color-scheme: light; }
|
|
155
|
+
:root[data-theme="dark"], :host([data-theme="dark"]) { color-scheme: dark; }
|
|
156
|
+
|
|
157
|
+
/* --- Formular-Text auf farbigen Flächen (.ncss-surface--... / .ncss-gradient-brand,
|
|
158
|
+
helpers/surfaces.css) --------------------------------------------------------------------
|
|
159
|
+
Diese Klassen setzen color:#fff, damit NORMALER (Light-DOM-)Text auf der markenfarbenen
|
|
160
|
+
Fläche lesbar bleibt. Ein <wa-input>/<wa-textarea>/<wa-select>/<wa-checkbox>/<wa-radio>/
|
|
161
|
+
<wa-switch> darin ignoriert das aber komplett, weil sein Label/Hinweistext/Eingabewert im
|
|
162
|
+
SHADOW DOM gerendert wird - color:#fff auf einem Light-DOM-Vorfahren erreicht das nicht
|
|
163
|
+
(color:inherit durchquert Shadow-DOM-Grenzen nicht, siehe .landing-heading-inherit-Muster
|
|
164
|
+
in demo/landing.css für den Light-DOM-Fall). Per echtem Test gefunden, User-Report:
|
|
165
|
+
"E-Mail-Adresse schwarz auf blau" in der Newsletter-Sektion von demo/landing.html.
|
|
166
|
+
|
|
167
|
+
Der naheliegende Fix wäre, NUR die Basis-Bridge-Tokens oben (--wa-color-text-normal/
|
|
168
|
+
-quiet) auf dieser Fläche auf currentColor umzubiegen, in der Annahme, Web Awesomes
|
|
169
|
+
eigene --wa-form-control-label-color/-value-color/-hint-color (vendor/webawesome/
|
|
170
|
+
dist-cdn/styles/themes/default.css, "Form Controls") würden das als var()-Kette live
|
|
171
|
+
nachziehen. Per echtem Test WIDERLEGT: Custom Properties lösen var()-Referenzen INNERHALB
|
|
172
|
+
ihres eigenen Werts am Ort ihrer eigenen Deklaration auf (hier: einmalig an :root, wo Web
|
|
173
|
+
Awesomes Theme sie setzt) - das Ergebnis ist ein FERTIGER, eingefrorener Wert, der ab da
|
|
174
|
+
nur noch unverändert weitervererbt wird. Ein --wa-color-text-normal, das auf einem
|
|
175
|
+
Nachfahren (dieser Fläche) NEU gesetzt wird, kommt für diese bereits eingefrorenen
|
|
176
|
+
abgeleiteten Tokens zu spät - nur EIGENE, direkte Neu-Deklarationen genau dieser
|
|
177
|
+
abgeleiteten Tokens (wie hier) wirken noch. Direkte Verwendungen von
|
|
178
|
+
--wa-color-text-normal selbst (nicht über eine solche Zwischenstufe) sind von diesem
|
|
179
|
+
Effekt NICHT betroffen - die oben stehende :root-Bridge bleibt für den Normalfall richtig
|
|
180
|
+
und ausreichend, das hier ist die dokumentierte Ausnahme.
|
|
181
|
+
|
|
182
|
+
.ncss-text-light/-dark (helpers/typography.css) NUR als Basis-Klasse mit aufgenommen,
|
|
183
|
+
nicht deren -100/-300/-700/-900-Zwischenstufen - die markieren einzelne Textspannen,
|
|
184
|
+
keine ganzen Formular-Wrapper, eine Bridge-Regel dafür wäre totes Gewicht. */
|
|
185
|
+
.ncss-surface--brand,
|
|
186
|
+
.ncss-surface--brand-2,
|
|
187
|
+
.ncss-surface--neutral,
|
|
188
|
+
.ncss-gradient-brand,
|
|
189
|
+
.ncss-text-light,
|
|
190
|
+
.ncss-text-dark {
|
|
191
|
+
--wa-form-control-label-color: currentColor;
|
|
192
|
+
--wa-form-control-value-color: currentColor;
|
|
193
|
+
--wa-form-control-hint-color: currentColor;
|
|
194
|
+
--wa-form-control-required-content-color: currentColor;
|
|
195
|
+
}
|