@skerbis/nativecss 0.0.0-stage → 1.1.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 +38 -0
- package/LICENSE +28 -0
- package/README.md +144 -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 +528 -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 +117 -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 +28 -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,503 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ncss - Formular-Helper (Layer "helpers"). Native Formularelemente werden hier zu Ende
|
|
3
|
+
* gestylt (base.css setzt nur font/color-Reset) - bewusst weiter mit echten <input>/
|
|
4
|
+
* <select>/<textarea> statt Web-Awesome-Nachbauten, wo natives HTML genügt (siehe
|
|
5
|
+
* ncss-Prinzip). Fokus-Handling erbt von reset.css (:focus-visible), hier nur Look.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
.ncss-field {
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
gap: var(--ncss-space-3xs);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.ncss-label {
|
|
15
|
+
font-size: var(--ncss-font-size-sm);
|
|
16
|
+
font-weight: 600;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.ncss-label--required::after {
|
|
20
|
+
content: " *";
|
|
21
|
+
color: var(--ncss-color-danger);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.ncss-input,
|
|
25
|
+
.ncss-select,
|
|
26
|
+
.ncss-textarea {
|
|
27
|
+
font: inherit;
|
|
28
|
+
color: var(--ncss-color-text);
|
|
29
|
+
background-color: var(--ncss-color-surface);
|
|
30
|
+
border: var(--ncss-border-width) solid var(--ncss-color-border);
|
|
31
|
+
border-radius: var(--ncss-radius-sm);
|
|
32
|
+
padding: var(--ncss-space-2xs) var(--ncss-space-xs);
|
|
33
|
+
width: 100%;
|
|
34
|
+
transition: border-color var(--ncss-motion-duration) var(--ncss-motion-easing);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* Nur Geräte mit echtem Zeigegerät (Maus/Trackpad) - siehe README "Touch-Geräte haben
|
|
38
|
+
kein :hover". :focus-visible unten (Tastatur-Fokus) bleibt bewusst UNGATED - gilt
|
|
39
|
+
unabhängig vom Zeigegerät. */
|
|
40
|
+
@media (hover: hover) and (pointer: fine) {
|
|
41
|
+
.ncss-input:hover,
|
|
42
|
+
.ncss-select:hover,
|
|
43
|
+
.ncss-textarea:hover {
|
|
44
|
+
border-color: var(--ncss-color-text-muted);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.ncss-input:focus-visible,
|
|
49
|
+
.ncss-select:focus-visible,
|
|
50
|
+
.ncss-textarea:focus-visible {
|
|
51
|
+
border-color: var(--ncss-color-focus-ring);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.ncss-textarea {
|
|
55
|
+
resize: vertical;
|
|
56
|
+
min-height: var(--ncss-textarea-min-height);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/* :user-invalid statt :invalid: feuert erst NACH einer Interaktion (oder Submit-Versuch),
|
|
60
|
+
nicht schon beim ersten Rendern eines leeren required-Felds - deutlich weniger nervig,
|
|
61
|
+
ohne JS. (Baseline 2024, gute aktuelle Browserunterstützung; :invalid als Fallback für
|
|
62
|
+
ältere Browser bleibt automatisch wirksam, wo :user-invalid fehlt.) */
|
|
63
|
+
.ncss-input:user-invalid,
|
|
64
|
+
.ncss-select:user-invalid,
|
|
65
|
+
.ncss-textarea:user-invalid {
|
|
66
|
+
border-color: var(--ncss-color-danger);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.ncss-field-hint {
|
|
70
|
+
font-size: var(--ncss-font-size-sm);
|
|
71
|
+
color: var(--ncss-color-text-muted);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.ncss-field-error {
|
|
75
|
+
font-size: var(--ncss-font-size-sm);
|
|
76
|
+
color: var(--ncss-color-danger);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/* --- Datei-Upload -----------------------------------------------------------------------
|
|
80
|
+
<input type="file"> ist der Input-Typ mit dem größten Cross-Browser-Unterschied - Chrome/
|
|
81
|
+
Edge/Safari zeichnen einen eigenen "Datei auswählen"-Button + Dateiname-Text INNERHALB
|
|
82
|
+
des Feldes, Firefox einen "Durchsuchen…"-Button. Der Button selbst ist ein eigenes
|
|
83
|
+
Pseudo-Element (::file-selector-button, Baseline seit 2023) - ::-webkit-file-upload-
|
|
84
|
+
button ist die ältere, WebKit-spezifische Schreibweise davor (schadet nicht, parallel
|
|
85
|
+
angegeben - ein Browser ignoriert das ihm unbekannte Pseudo-Element einfach). Ohne beide
|
|
86
|
+
bleibt der Button auf seinem nativen, je nach Browser unterschiedlichen Grau hängen,
|
|
87
|
+
während das Feld drumherum bereits ncss-Rahmen/-Radius trägt - ein sichtbarer Stilbruch.
|
|
88
|
+
Optik entspricht .ncss-btn--secondary (Rahmen statt Füllung), damit sich der Button klar
|
|
89
|
+
vom übrigen Feldinhalt (Dateiname) absetzt, ohne mit den echten Formular-Buttons zu
|
|
90
|
+
konkurrieren. */
|
|
91
|
+
.ncss-input[type="file"] {
|
|
92
|
+
padding-block: var(--ncss-space-3xs);
|
|
93
|
+
cursor: pointer;
|
|
94
|
+
}
|
|
95
|
+
.ncss-input[type="file"]::file-selector-button,
|
|
96
|
+
.ncss-input[type="file"]::-webkit-file-upload-button {
|
|
97
|
+
font: inherit;
|
|
98
|
+
font-weight: 600;
|
|
99
|
+
color: var(--ncss-color-text);
|
|
100
|
+
background-color: transparent;
|
|
101
|
+
border: var(--ncss-border-width) solid var(--ncss-color-border);
|
|
102
|
+
border-radius: var(--ncss-radius-sm);
|
|
103
|
+
padding: var(--ncss-space-3xs) var(--ncss-space-xs);
|
|
104
|
+
margin-inline-end: var(--ncss-space-xs);
|
|
105
|
+
cursor: pointer;
|
|
106
|
+
transition: background-color var(--ncss-motion-duration) var(--ncss-motion-easing);
|
|
107
|
+
}
|
|
108
|
+
@media (hover: hover) and (pointer: fine) {
|
|
109
|
+
.ncss-input[type="file"]:hover::file-selector-button,
|
|
110
|
+
.ncss-input[type="file"]:hover::-webkit-file-upload-button {
|
|
111
|
+
background-color: var(--ncss-color-bg-subtle);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
.ncss-input[type="file"]:disabled {
|
|
115
|
+
cursor: not-allowed;
|
|
116
|
+
}
|
|
117
|
+
.ncss-input[type="file"]:disabled::file-selector-button,
|
|
118
|
+
.ncss-input[type="file"]:disabled::-webkit-file-upload-button {
|
|
119
|
+
cursor: not-allowed;
|
|
120
|
+
opacity: 0.55;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/* --- Farbe --------------------------------------------------------------------------------
|
|
124
|
+
Nur die Swatch-Fläche selbst individualisierbar (Browser-eigener Picker-Dialog beim Klick
|
|
125
|
+
bleibt nativ, wie bei date/color-typischen Eingaben üblich - kein Bereich, den CSS
|
|
126
|
+
erreicht). ::-webkit-color-swatch(-wrapper) für Chromium/Safari, ::-moz-color-swatch für
|
|
127
|
+
Firefox - beide parallel nötig, kein gemeinsamer Standardname bisher. */
|
|
128
|
+
.ncss-input[type="color"] {
|
|
129
|
+
width: 4rem;
|
|
130
|
+
/* Ohne explizite Höhe bemisst jeder Browser das Swatch-"Feld" anders, statt wie bei
|
|
131
|
+
Text-artigen Inputs (die die Höhe aus Zeilenhöhe + Padding + Rahmen ableiten) die
|
|
132
|
+
GLEICHE Formel anzuwenden - per echtem Test bestätigt: WebKit rendert dadurch nur
|
|
133
|
+
23px (statt 49px bei den anderen Feldern) - ein sichtbar schmaler Streifen statt
|
|
134
|
+
eines vollwertigen Feldes (User-Report: "im Safari nur ein schmaler Strich"), Chromium
|
|
135
|
+
(27px) und Firefox (32px) weichen ebenfalls ab, nur weniger extrem. 1lh (Baseline seit
|
|
136
|
+
2023) + dieselben Padding-/Rahmen-Token wie .ncss-input oben errechnen exakt dieselbe
|
|
137
|
+
Höhe wie ein normales Textfeld, unabhängig von Schriftgröße/Zeilenhöhe-Änderungen -
|
|
138
|
+
robuster als ein geschätzter fester px/em-Wert. */
|
|
139
|
+
height: calc(1lh + 2 * var(--ncss-space-2xs) + 2 * var(--ncss-border-width));
|
|
140
|
+
padding: var(--ncss-space-3xs);
|
|
141
|
+
cursor: pointer;
|
|
142
|
+
}
|
|
143
|
+
.ncss-input[type="color"]::-webkit-color-swatch-wrapper {
|
|
144
|
+
padding: 0;
|
|
145
|
+
}
|
|
146
|
+
.ncss-input[type="color"]::-webkit-color-swatch {
|
|
147
|
+
border: none;
|
|
148
|
+
border-radius: var(--ncss-radius-sm);
|
|
149
|
+
}
|
|
150
|
+
.ncss-input[type="color"]::-moz-color-swatch {
|
|
151
|
+
border: none;
|
|
152
|
+
border-radius: var(--ncss-radius-sm);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/* --- Datum/Zeit -----------------------------------------------------------------------
|
|
156
|
+
date/time/datetime-local/month/week teilen sich denselben Kalender-/Uhr-Icon-Mechanismus
|
|
157
|
+
in Chromium/Safari (::-webkit-calendar-picker-indicator, Firefox zeichnet sein eigenes,
|
|
158
|
+
nicht per CSS erreichbares Icon). Die Icon-FARBE selbst muss NICHT manuell ans Theme
|
|
159
|
+
angepasst werden - color-scheme:light dark (colors.css, :root) sorgt bereits dafür, dass
|
|
160
|
+
Chromium/Safari das zum jeweiligen Modus passende (helle/dunkle) System-Icon zeichnen,
|
|
161
|
+
kein zusätzliches invert()/filter nötig (per echtem Test in beiden Modi bestätigt). Hier
|
|
162
|
+
nur der Cursor + etwas Abstand zum Feldrand. */
|
|
163
|
+
.ncss-input[type="date"]::-webkit-calendar-picker-indicator,
|
|
164
|
+
.ncss-input[type="time"]::-webkit-calendar-picker-indicator,
|
|
165
|
+
.ncss-input[type="datetime-local"]::-webkit-calendar-picker-indicator,
|
|
166
|
+
.ncss-input[type="month"]::-webkit-calendar-picker-indicator,
|
|
167
|
+
.ncss-input[type="week"]::-webkit-calendar-picker-indicator {
|
|
168
|
+
cursor: pointer;
|
|
169
|
+
border-radius: var(--ncss-radius-sm);
|
|
170
|
+
margin-inline-start: var(--ncss-space-2xs);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/* --- Suche ----------------------------------------------------------------------------
|
|
174
|
+
Ohne dieses appearance:none rundet Safari ein type="search" auf eigene Faust komplett ab
|
|
175
|
+
(ignoriert border-radius aus der gemeinsamen .ncss-input-Regel oben) - erst danach
|
|
176
|
+
verhält sich das Feld optisch wie jedes andere .ncss-input. Das native "×"-Icon zum
|
|
177
|
+
Leeren (::-webkit-search-cancel-button) bleibt bewusst unangetastet - eigenständig
|
|
178
|
+
nachzubauen wäre reiner Aufwand ohne echten optischen Zugewinn. */
|
|
179
|
+
.ncss-input[type="search"] {
|
|
180
|
+
appearance: none;
|
|
181
|
+
-webkit-appearance: none;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/* Checkbox/Radio: native Elemente, nur Ausrichtung + Akzentfarbe (accent-color deckt die
|
|
185
|
+
allermeiste Individualisierung ab, ganz ohne Custom-Markup/-CSS für den Haken/Punkt
|
|
186
|
+
selbst - genau der "erst HTML/CSS, dann mehr" Fall). */
|
|
187
|
+
.ncss-choice {
|
|
188
|
+
display: flex;
|
|
189
|
+
align-items: center;
|
|
190
|
+
gap: var(--ncss-space-2xs);
|
|
191
|
+
}
|
|
192
|
+
.ncss-choice input[type="checkbox"],
|
|
193
|
+
.ncss-choice input[type="radio"] {
|
|
194
|
+
accent-color: var(--ncss-color-brand);
|
|
195
|
+
width: var(--ncss-choice-size);
|
|
196
|
+
height: var(--ncss-choice-size);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/* --- Switch (Toggle) -------------------------------------------------------------------
|
|
200
|
+
Natives <input type="checkbox">, per appearance:none komplett neu gezeichnet (Track +
|
|
201
|
+
Thumb über ::before) - kein <wa-switch>/JS nötig für den einfachen Fall. role="switch"
|
|
202
|
+
im Markup ergänzen (kein eigenes CSS nötig) - Screenreader kündigen es dann als Schalter
|
|
203
|
+
statt als Checkbox an, Verhalten bleibt identisch (checked/unchecked).
|
|
204
|
+
Markup: <label class="ncss-switch"><input type="checkbox" role="switch"> Label</label> */
|
|
205
|
+
.ncss-switch {
|
|
206
|
+
display: inline-flex;
|
|
207
|
+
align-items: center;
|
|
208
|
+
gap: var(--ncss-space-2xs);
|
|
209
|
+
cursor: pointer;
|
|
210
|
+
}
|
|
211
|
+
.ncss-switch input[type="checkbox"] {
|
|
212
|
+
appearance: none;
|
|
213
|
+
-webkit-appearance: none;
|
|
214
|
+
position: relative;
|
|
215
|
+
flex: 0 0 auto;
|
|
216
|
+
width: 2.25em;
|
|
217
|
+
height: 1.25em;
|
|
218
|
+
margin: 0;
|
|
219
|
+
border-radius: var(--ncss-radius-full);
|
|
220
|
+
background-color: var(--ncss-color-border);
|
|
221
|
+
cursor: pointer;
|
|
222
|
+
transition: background-color var(--ncss-motion-duration) var(--ncss-motion-easing);
|
|
223
|
+
}
|
|
224
|
+
.ncss-switch input[type="checkbox"]::before {
|
|
225
|
+
content: "";
|
|
226
|
+
position: absolute;
|
|
227
|
+
inset-block-start: 0.15em;
|
|
228
|
+
inset-inline-start: 0.15em;
|
|
229
|
+
width: 0.95em;
|
|
230
|
+
height: 0.95em;
|
|
231
|
+
border-radius: var(--ncss-radius-full);
|
|
232
|
+
background-color: white;
|
|
233
|
+
transition: translate var(--ncss-motion-duration) var(--ncss-motion-easing);
|
|
234
|
+
}
|
|
235
|
+
.ncss-switch input[type="checkbox"]:checked {
|
|
236
|
+
background-color: var(--ncss-color-brand);
|
|
237
|
+
}
|
|
238
|
+
.ncss-switch input[type="checkbox"]:checked::before {
|
|
239
|
+
translate: 1em 0;
|
|
240
|
+
}
|
|
241
|
+
.ncss-switch input[type="checkbox"]:disabled {
|
|
242
|
+
opacity: 0.55;
|
|
243
|
+
cursor: not-allowed;
|
|
244
|
+
}
|
|
245
|
+
.ncss-switch:has(input:disabled) {
|
|
246
|
+
cursor: not-allowed;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/* --- Range-Slider -----------------------------------------------------------------------
|
|
250
|
+
accent-color reicht für die Grundfarbe (wie schon bei Checkbox/Radio oben) - hier
|
|
251
|
+
zusätzlich Track/Thumb etwas vereinheitlicht, weil <input type="range"> sich ohne jede
|
|
252
|
+
Politur stärker zwischen Browsern unterscheidet als Checkbox/Radio. */
|
|
253
|
+
.ncss-range {
|
|
254
|
+
appearance: none;
|
|
255
|
+
-webkit-appearance: none;
|
|
256
|
+
width: 100%;
|
|
257
|
+
height: 1.25em;
|
|
258
|
+
margin: 0;
|
|
259
|
+
background: transparent;
|
|
260
|
+
accent-color: var(--ncss-color-brand);
|
|
261
|
+
cursor: pointer;
|
|
262
|
+
}
|
|
263
|
+
.ncss-range::-webkit-slider-runnable-track {
|
|
264
|
+
height: 0.35em;
|
|
265
|
+
border-radius: var(--ncss-radius-full);
|
|
266
|
+
background-color: var(--ncss-color-border);
|
|
267
|
+
}
|
|
268
|
+
.ncss-range::-moz-range-track {
|
|
269
|
+
height: 0.35em;
|
|
270
|
+
border-radius: var(--ncss-radius-full);
|
|
271
|
+
background-color: var(--ncss-color-border);
|
|
272
|
+
}
|
|
273
|
+
.ncss-range::-webkit-slider-thumb {
|
|
274
|
+
appearance: none;
|
|
275
|
+
-webkit-appearance: none;
|
|
276
|
+
margin-block-start: -0.45em;
|
|
277
|
+
width: 1.25em;
|
|
278
|
+
height: 1.25em;
|
|
279
|
+
border-radius: var(--ncss-radius-full);
|
|
280
|
+
background-color: var(--ncss-color-brand);
|
|
281
|
+
border: none;
|
|
282
|
+
}
|
|
283
|
+
.ncss-range::-moz-range-thumb {
|
|
284
|
+
width: 1.25em;
|
|
285
|
+
height: 1.25em;
|
|
286
|
+
border-radius: var(--ncss-radius-full);
|
|
287
|
+
background-color: var(--ncss-color-brand);
|
|
288
|
+
border: none;
|
|
289
|
+
}
|
|
290
|
+
.ncss-range:disabled {
|
|
291
|
+
opacity: 0.55;
|
|
292
|
+
cursor: not-allowed;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
/* --- Fieldset/Legend --------------------------------------------------------------------
|
|
296
|
+
Ungestylt bekommt <fieldset> vom UA-Stylesheet einen 2px "groove"-3D-Rahmen + eigenes
|
|
297
|
+
Margin, <legend> überlappt diesen Rahmen automatisch - beides wirkt neben den flachen,
|
|
298
|
+
eckig-radierten ncss-Feldern wie aus einer anderen Design-Sprache. Kein eigener Klassen-
|
|
299
|
+
name nötig (anders als .ncss-choice/.ncss-switch, die ECHTES natives Markup mit einer
|
|
300
|
+
ganz eigenen Optik neu zeichnen) - <fieldset>/<legend> sind reine Gruppierungs-Elemente,
|
|
301
|
+
bekommen deshalb wie <blockquote> in base.css direkt einen sinnvollen Default ohne
|
|
302
|
+
zusätzliche Klasse. */
|
|
303
|
+
fieldset {
|
|
304
|
+
border: var(--ncss-border-width) solid var(--ncss-color-border);
|
|
305
|
+
border-radius: var(--ncss-radius-sm);
|
|
306
|
+
padding: var(--ncss-space-sm);
|
|
307
|
+
margin: 0;
|
|
308
|
+
}
|
|
309
|
+
fieldset > legend {
|
|
310
|
+
padding-inline: var(--ncss-space-2xs);
|
|
311
|
+
font-weight: 600;
|
|
312
|
+
font-size: var(--ncss-font-size-sm);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
/* --- Progress/Meter ---------------------------------------------------------------------
|
|
316
|
+
Zwei semantisch unterschiedliche, aber optisch verwandte Elemente: <progress> (Fortschritt
|
|
317
|
+
einer laufenden Aufgabe, z.B. Datei-Upload - value/max ohne max wird zum unbestimmten
|
|
318
|
+
"läuft"-Zustand) und <meter> (ein Messwert INNERHALB einer bekannten Skala, z.B.
|
|
319
|
+
Speicherplatz-Auslastung - kein "läuft gerade"-Konzept). accent-color reicht bei BEIDEN
|
|
320
|
+
für die Grundfarbe (dieselbe Technik wie Checkbox/Radio/Range oben), Chromium/Safari/
|
|
321
|
+
Firefox setzen sie unterschiedlich auf ihre jeweiligen internen Pseudo-Elemente um, ganz
|
|
322
|
+
ohne dass hier selbst welche benannt werden müssten.
|
|
323
|
+
|
|
324
|
+
<meter> bleibt trotz accent-color grün, solange kein optimum/low/high gesetzt ist (per
|
|
325
|
+
echtem Test in allen drei Engines bestätigt, einheitlich) - BEWUSST nicht per
|
|
326
|
+
::-webkit-meter-*-Pseudo-Elementen zur Markenfarbe gezwungen: die Grün/Gelb/Rot-Logik
|
|
327
|
+
ist die eigentliche Funktion von <meter> (zeigt an, ob ein Wert im guten/mittleren/
|
|
328
|
+
kritischen Bereich liegt, sobald diese Attribute gesetzt sind), keine Optik-Macke wie
|
|
329
|
+
bei den anderen Elementen hier. Wer wirklich Markenfarbe statt Semantik will: <progress>
|
|
330
|
+
verwenden (kein Wertungs-Konzept, respektiert accent-color vollständig). */
|
|
331
|
+
progress,
|
|
332
|
+
meter {
|
|
333
|
+
width: 100%;
|
|
334
|
+
height: 0.6em;
|
|
335
|
+
accent-color: var(--ncss-color-brand);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
/* --- Output -----------------------------------------------------------------------------
|
|
339
|
+
<output> (berechnetes/abgeleitetes Ergebnis eines Formulars, z.B. eine Summe) erbt ohne
|
|
340
|
+
eigenes CSS bereits font/color korrekt von base.css - hier nur als eigenständiges
|
|
341
|
+
Element hervorgehoben, damit es sich sichtbar vom umgebenden Fließtext absetzt. */
|
|
342
|
+
output {
|
|
343
|
+
font-weight: 600;
|
|
344
|
+
color: var(--ncss-color-brand);
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
/* --- Buttons -------------------------------------------------------------------------- */
|
|
348
|
+
.ncss-btn {
|
|
349
|
+
display: inline-flex;
|
|
350
|
+
align-items: center;
|
|
351
|
+
justify-content: center;
|
|
352
|
+
gap: var(--ncss-space-2xs);
|
|
353
|
+
font: inherit;
|
|
354
|
+
font-weight: 600;
|
|
355
|
+
/* .ncss-btn läuft genauso oft auf einem <a> (Link, der wie ein Button aussehen soll)
|
|
356
|
+
wie auf einem <button> - base.css lässt die Standard-Unterstreichung von <a> bewusst
|
|
357
|
+
bestehen (guter Default für Fließtext-Links), ein Button-artiges Element soll aber
|
|
358
|
+
NIE unterstrichen wirken, unabhängig vom zugrundeliegenden Tag. Ohne diese Zeile
|
|
359
|
+
erbte ein <a class="ncss-btn"> die Unterstreichung trotzdem (per echtem Test
|
|
360
|
+
gefunden - .ncss-btn selbst setzte text-decoration nie zurück). */
|
|
361
|
+
text-decoration: none;
|
|
362
|
+
border-radius: var(--ncss-radius-sm);
|
|
363
|
+
padding: var(--ncss-space-2xs) var(--ncss-space-sm);
|
|
364
|
+
border: var(--ncss-border-width) solid transparent;
|
|
365
|
+
cursor: pointer;
|
|
366
|
+
transition: background-color var(--ncss-motion-duration) var(--ncss-motion-easing),
|
|
367
|
+
border-color var(--ncss-motion-duration) var(--ncss-motion-easing),
|
|
368
|
+
scale var(--ncss-motion-duration) var(--ncss-motion-easing);
|
|
369
|
+
}
|
|
370
|
+
.ncss-btn:disabled {
|
|
371
|
+
opacity: 0.55;
|
|
372
|
+
cursor: not-allowed;
|
|
373
|
+
}
|
|
374
|
+
/* :active statt :hover für die taktile Rückmeldung selbst - gilt für JEDES Zeigegerät
|
|
375
|
+
inkl. Touch (siehe README "Touch-Geräte haben kein :hover"), anders als die
|
|
376
|
+
farblichen :hover-Zustände der Varianten unten. transition-duration überschreibt hier
|
|
377
|
+
NUR die Dauer für den EINSTIEG in :active auf --ncss-motion-duration-fast (100ms statt
|
|
378
|
+
200ms) - ein Tap dauert oft nicht länger, die normale Dauer erreichte den Zielwert
|
|
379
|
+
bisher oft gar nicht erst (User-Report: "kann kaum touch feedbacks feststellen"). Das
|
|
380
|
+
Zurückfedern beim Loslassen nutzt weiterhin die normale Dauer von .ncss-btn oben (gilt
|
|
381
|
+
wieder, sobald :active nicht mehr matcht). scale 0.97->0.95: der kleinere Wert allein
|
|
382
|
+
reichte nicht als spürbare Rückmeldung, siehe unten außerdem die pro Variante ECHTE
|
|
383
|
+
Farbänderung (identisch zum jeweiligen :hover, nur per :active statt :hover ausgelöst -
|
|
384
|
+
:hover bleibt zusätzlich für Maus/Trackpad bestehen, siehe Media Query unten). */
|
|
385
|
+
.ncss-btn:active:not(:disabled) {
|
|
386
|
+
scale: 0.95;
|
|
387
|
+
transition-duration: var(--ncss-motion-duration-fast);
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
.ncss-btn--primary {
|
|
391
|
+
background-color: var(--ncss-color-brand);
|
|
392
|
+
color: var(--ncss-color-brand-contrast);
|
|
393
|
+
}
|
|
394
|
+
.ncss-btn--primary:active:not(:disabled) {
|
|
395
|
+
background-color: color-mix(in srgb, var(--ncss-color-brand) 75%, black);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
/* border-color/color/:active-Hintergrund bewusst NICHT über feste Seiten-Tokens
|
|
399
|
+
(--ncss-color-border/-text/-bg-subtle), sondern über currentColor - ein
|
|
400
|
+
--secondary-Button landet oft auf einer farbigen Fläche (Hero, CTA-Sektion,
|
|
401
|
+
dunkle Karte), auf der die festen Werte (für die normale, helle Seitenfläche
|
|
402
|
+
kalibriert) unlesbar würden (User-Report: "dunkle Schrift auf dunklem
|
|
403
|
+
Hintergrund" in einem grünen Hero). currentColor übernimmt automatisch die an
|
|
404
|
+
dieser Stelle bereits korrekte Textfarbe (z.B. weiß, wenn ein Vorfahre
|
|
405
|
+
color:#fff setzt) - keine Seiten-lokale Override-Regel mehr nötig. Prozentwerte
|
|
406
|
+
(15%/5%) so gewählt, dass sie im Standardfall (helle Seitenfläche) fast exakt
|
|
407
|
+
den bisherigen --ncss-color-border/-bg-subtle-Werten entsprechen - keine
|
|
408
|
+
sichtbare Änderung für bereits bestehende Buttons auf normaler Fläche. */
|
|
409
|
+
.ncss-btn--secondary {
|
|
410
|
+
background-color: transparent;
|
|
411
|
+
border-color: color-mix(in oklch, currentColor 15%, transparent);
|
|
412
|
+
color: currentColor;
|
|
413
|
+
}
|
|
414
|
+
.ncss-btn--secondary:active:not(:disabled) {
|
|
415
|
+
background-color: color-mix(in oklch, currentColor 12%, transparent);
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
/* Nur Geräte mit echtem Zeigegerät (Maus/Trackpad) - siehe README "Touch-Geräte haben
|
|
419
|
+
kein :hover". Dieselben Farbwerte wie die jeweilige :active-Regel oben (nur etwas
|
|
420
|
+
dezenter bei --primary, siehe dortiger Kommentar) - :hover UND :active bleiben beide
|
|
421
|
+
erreichbar, z.B. Maus gedrückt halten zeigt zuerst :hover-, dann :active-Farbe. */
|
|
422
|
+
@media (hover: hover) and (pointer: fine) {
|
|
423
|
+
.ncss-btn--primary:hover:not(:disabled) {
|
|
424
|
+
background-color: color-mix(in srgb, var(--ncss-color-brand) 85%, black);
|
|
425
|
+
}
|
|
426
|
+
.ncss-btn--secondary:hover:not(:disabled) {
|
|
427
|
+
background-color: color-mix(in oklch, currentColor 6%, transparent);
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
.ncss-btn--danger {
|
|
432
|
+
background-color: var(--ncss-color-danger);
|
|
433
|
+
color: var(--ncss-color-brand-contrast);
|
|
434
|
+
}
|
|
435
|
+
.ncss-btn--danger:active:not(:disabled) {
|
|
436
|
+
background-color: color-mix(in srgb, var(--ncss-color-danger) 75%, black);
|
|
437
|
+
}
|
|
438
|
+
/* --danger hatte bisher GAR KEINEN :hover (vorbestehende Lücke) - beim Ergänzen der
|
|
439
|
+
:active-Rückmeldung gleich mitgeschlossen, dieselbe Formel wie --primary. */
|
|
440
|
+
@media (hover: hover) and (pointer: fine) {
|
|
441
|
+
.ncss-btn--danger:hover:not(:disabled) {
|
|
442
|
+
background-color: color-mix(in srgb, var(--ncss-color-danger) 85%, black);
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
/* --- Größen & Icon-Button ---------------------------------------------------------------
|
|
447
|
+
--sm für dichte Oberflächen (Tabellenzeilen, Toolbars, Karten-Fußzeilen), --lg für
|
|
448
|
+
prominente Einzelaktionen (Hero, CTA). Kombinierbar mit jeder Farbvariante.
|
|
449
|
+
--icon: quadratischer Button NUR mit Icon - braucht IMMER ein aria-label (oder einen
|
|
450
|
+
.ncss-visually-hidden-Text), ein Icon allein hat keinen zugänglichen Namen:
|
|
451
|
+
<button type="button" class="ncss-btn ncss-btn--secondary ncss-btn--icon" aria-label="Bearbeiten">
|
|
452
|
+
<svg aria-hidden="true">...</svg>
|
|
453
|
+
</button>
|
|
454
|
+
Die Kantenlänge ergibt sich aus Zeilenhöhe + Block-Padding + Rahmen (1lh), damit ein
|
|
455
|
+
Icon-Button exakt so hoch ist wie ein Text-Button derselben Größe daneben - Breite UND
|
|
456
|
+
Höhe explizit, weil ein Icon allein keine Textzeile erzeugt (sonst wäre er flacher). */
|
|
457
|
+
.ncss-btn--sm {
|
|
458
|
+
/* Mindestens 24px Trefferfläche (WCAG 2.5.8 Zielgröße) - auch bei kleiner Schrift. */
|
|
459
|
+
min-block-size: 1.5rem;
|
|
460
|
+
padding: var(--ncss-space-3xs) var(--ncss-space-xs);
|
|
461
|
+
font-size: var(--ncss-font-size-sm);
|
|
462
|
+
}
|
|
463
|
+
.ncss-btn--lg {
|
|
464
|
+
padding: var(--ncss-space-xs) var(--ncss-space-md);
|
|
465
|
+
font-size: var(--ncss-font-size-md);
|
|
466
|
+
}
|
|
467
|
+
/* Pillen-Form und Ghost (ohne Rahmen/Fläche) - z.B. für Toolbars (components/toolbar.css).
|
|
468
|
+
--pill + --icon ergibt einen runden Icon-Button. */
|
|
469
|
+
.ncss-btn--pill {
|
|
470
|
+
border-radius: var(--ncss-radius-full, 999px);
|
|
471
|
+
}
|
|
472
|
+
.ncss-btn--ghost {
|
|
473
|
+
background-color: transparent;
|
|
474
|
+
border-color: transparent;
|
|
475
|
+
color: currentColor;
|
|
476
|
+
}
|
|
477
|
+
.ncss-btn--ghost:active:not(:disabled) {
|
|
478
|
+
background-color: color-mix(in oklch, currentColor 14%, transparent);
|
|
479
|
+
}
|
|
480
|
+
@media (hover: hover) and (pointer: fine) {
|
|
481
|
+
.ncss-btn--ghost:hover:not(:disabled, :active) {
|
|
482
|
+
background-color: color-mix(in oklch, currentColor 9%, transparent);
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
.ncss-btn--icon {
|
|
486
|
+
flex: none;
|
|
487
|
+
inline-size: calc(1lh + var(--ncss-space-2xs) * 2 + var(--ncss-border-width) * 2);
|
|
488
|
+
block-size: calc(1lh + var(--ncss-space-2xs) * 2 + var(--ncss-border-width) * 2);
|
|
489
|
+
padding-inline: 0;
|
|
490
|
+
}
|
|
491
|
+
.ncss-btn--icon.ncss-btn--sm {
|
|
492
|
+
inline-size: max(1.5rem, calc(1lh + var(--ncss-space-3xs) * 2 + var(--ncss-border-width) * 2));
|
|
493
|
+
block-size: max(1.5rem, calc(1lh + var(--ncss-space-3xs) * 2 + var(--ncss-border-width) * 2));
|
|
494
|
+
}
|
|
495
|
+
.ncss-btn--icon.ncss-btn--lg {
|
|
496
|
+
inline-size: calc(1lh + var(--ncss-space-xs) * 2 + var(--ncss-border-width) * 2);
|
|
497
|
+
block-size: calc(1lh + var(--ncss-space-xs) * 2 + var(--ncss-border-width) * 2);
|
|
498
|
+
}
|
|
499
|
+
.ncss-btn--icon > svg,
|
|
500
|
+
.ncss-btn--icon > img {
|
|
501
|
+
inline-size: 1.15em;
|
|
502
|
+
block-size: 1.15em;
|
|
503
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ncss - Icon-Helper (Layer "helpers"). Drei Wege, ein Größen-/Farbmodell (1em bzw.
|
|
3
|
+
* --ncss-icon-size, Farbe = currentColor):
|
|
4
|
+
*
|
|
5
|
+
* 1. KERN-SET (diese Datei, ohne JS): eigene SVGs als CSS mask-image. Erben currentColor
|
|
6
|
+
* (recolorbar ohne Markup-Änderung), skalieren mit font-size, brauchen KEINEN Inhalt:
|
|
7
|
+
* <span class="ncss-icon ncss-icon-close" aria-hidden="true"></span>
|
|
8
|
+
* 24er-Raster, runde Enden. Linien-Glyphen (Pfeile, Chevrons, plus/minus/close/check/
|
|
9
|
+
* search) mit Strichstärke 2.5, Piktogramme mit 2, play/pause gefüllt.
|
|
10
|
+
* 2. <ncss-icon name="house"> (js/icon.js): lädt eines der ~1500 Phosphor-Icons
|
|
11
|
+
* (vendor/phosphor/, MIT) und setzt es inline ein. Die Regel unten reserviert die Fläche
|
|
12
|
+
* schon VOR dem Laden (kein Layout-Sprung) - ohne JS bleibt sie leer. Für Icons, die
|
|
13
|
+
* Bedeutung tragen, deshalb das Kern-Set oder Weg 3 nehmen.
|
|
14
|
+
* 3. SVG-Sprite (ohne JS): Sprite per tools/icons/sprite.mjs oder Baukasten im Handbuch
|
|
15
|
+
* erzeugen, dann <svg class="ncss-icon-sprite" aria-hidden="true"><use
|
|
16
|
+
* href="icons.svg#house"></use></svg>.
|
|
17
|
+
*
|
|
18
|
+
* Austauschbar: jede Komponente, die ein Icon braucht (z.B. .ncss-dialog-close), schreibt
|
|
19
|
+
* nur GRÖSSE/POSITION des Icon-Platzhalters vor, nie die Quelle - Font Awesome
|
|
20
|
+
* (<i class="fa-solid fa-xmark" aria-hidden="true"></i>) oder ein Phosphor-Icon passt in
|
|
21
|
+
* dieselbe flex-zentrierte Fläche, ohne die Komponente anzufassen.
|
|
22
|
+
*
|
|
23
|
+
* Nur unpräfixiertes mask-image: Browser, die light-dark() können (Grundlage von ncss),
|
|
24
|
+
* können es alle - das -webkit-Duplikat hätte die Datei nur verdoppelt.
|
|
25
|
+
* Weitere Kern-Icons nach demselben Muster ergänzen (24er viewBox, stroke='black' - die
|
|
26
|
+
* Farbe der Maske ist egal, nur ihre Deckkraft zählt; '#' als %23 kodieren).
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
.ncss-icon,
|
|
30
|
+
ncss-icon,
|
|
31
|
+
.ncss-icon-sprite {
|
|
32
|
+
display: inline-block;
|
|
33
|
+
inline-size: var(--ncss-icon-size, 1em);
|
|
34
|
+
block-size: var(--ncss-icon-size, 1em);
|
|
35
|
+
flex: 0 0 auto;
|
|
36
|
+
vertical-align: -0.15em;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.ncss-icon {
|
|
40
|
+
background-color: currentColor;
|
|
41
|
+
mask-repeat: no-repeat;
|
|
42
|
+
mask-position: center;
|
|
43
|
+
mask-size: contain;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* Eingesetztes Phosphor-SVG füllt die reservierte Fläche exakt. */
|
|
47
|
+
ncss-icon > svg {
|
|
48
|
+
display: block;
|
|
49
|
+
inline-size: 100%;
|
|
50
|
+
block-size: 100%;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.ncss-icon-sprite {
|
|
54
|
+
fill: currentColor;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* Bedienung */
|
|
58
|
+
.ncss-icon-close { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 6L18 18M18 6L6 18'/%3E%3C/svg%3E"); }
|
|
59
|
+
.ncss-icon-menu { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3 6h18M3 12h18M3 18h18'/%3E%3C/svg%3E"); }
|
|
60
|
+
.ncss-icon-search { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M20 20l-5.2-5.2'/%3E%3C/svg%3E"); }
|
|
61
|
+
.ncss-icon-check { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12l6 6L20 6'/%3E%3C/svg%3E"); }
|
|
62
|
+
.ncss-icon-plus { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
|
|
63
|
+
.ncss-icon-minus { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E"); }
|
|
64
|
+
.ncss-icon-copy { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='12' height='12' rx='1.5'/%3E%3Cpath d='M6 15H4.5A1.5 1.5 0 0 1 3 13.5v-9A1.5 1.5 0 0 1 4.5 3h9A1.5 1.5 0 0 1 15 4.5V6'/%3E%3C/svg%3E"); }
|
|
65
|
+
.ncss-icon-edit, .ncss-icon-pencil { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19 9a2.83 2.83 0 0 0-4-4L4 16z'/%3E%3Cpath d='M13.5 6.5l4 4'/%3E%3C/svg%3E"); }
|
|
66
|
+
.ncss-icon-trash { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M10 11v6M14 11v6M6 7l1 12.5A1.5 1.5 0 0 0 8.5 21h7a1.5 1.5 0 0 0 1.5-1.5L18 7M9 7V4h6v3'/%3E%3C/svg%3E"); }
|
|
67
|
+
.ncss-icon-filter { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5h18l-7 8.5V19l-4 2v-7.5z'/%3E%3C/svg%3E"); }
|
|
68
|
+
.ncss-icon-sort { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4v16M3 8l4-4 4 4M17 20V4M13 16l4 4 4-4'/%3E%3C/svg%3E"); }
|
|
69
|
+
.ncss-icon-settings { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.4 5L10.7 2.5L13.3 2.5L13.6 5A7.2 7.2 0 0 1 15.8 5.9L17.8 4.3L19.7 6.2L18.1 8.2A7.2 7.2 0 0 1 19 10.4L21.5 10.7L21.5 13.3L19 13.6A7.2 7.2 0 0 1 18.1 15.8L19.7 17.8L17.8 19.7L15.8 18.1A7.2 7.2 0 0 1 13.6 19L13.3 21.5L10.7 21.5L10.4 19A7.2 7.2 0 0 1 8.2 18.1L6.2 19.7L4.3 17.8L5.9 15.8A7.2 7.2 0 0 1 5 13.6L2.5 13.3L2.5 10.7L5 10.4A7.2 7.2 0 0 1 5.9 8.2L4.3 6.2L6.2 4.3L8.2 5.9A7.2 7.2 0 0 1 10.4 5Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
|
|
70
|
+
.ncss-icon-share { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='M8.6 13.5l6.8 4M15.4 6.5l-6.8 4'/%3E%3C/svg%3E"); }
|
|
71
|
+
.ncss-icon-download { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5M4 17v3h16v-3'/%3E%3C/svg%3E"); }
|
|
72
|
+
.ncss-icon-upload { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15V3M7 8l5-5 5 5M4 17v3h16v-3'/%3E%3C/svg%3E"); }
|
|
73
|
+
.ncss-icon-external-link { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E"); }
|
|
74
|
+
.ncss-icon-link { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a4.5 4.5 0 0 0 6.4 0l3-3a4.5 4.5 0 0 0-6.4-6.4l-1 1M14 10a4.5 4.5 0 0 0-6.4 0l-3 3a4.5 4.5 0 0 0 6.4 6.4l1-1'/%3E%3C/svg%3E"); }
|
|
75
|
+
.ncss-icon-fullscreen { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9V4h5M15 4h5v5M20 15v5h-5M9 20H4v-5'/%3E%3C/svg%3E"); }
|
|
76
|
+
.ncss-icon-logout { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h4M16 17l5-5-5-5M21 12H9'/%3E%3C/svg%3E"); }
|
|
77
|
+
|
|
78
|
+
/* Richtung */
|
|
79
|
+
.ncss-icon-arrow-left { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E"); }
|
|
80
|
+
.ncss-icon-arrow-right { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
|
|
81
|
+
.ncss-icon-arrow-up { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M6 11l6-6 6 6'/%3E%3C/svg%3E"); }
|
|
82
|
+
.ncss-icon-arrow-down { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M6 13l6 6 6-6'/%3E%3C/svg%3E"); }
|
|
83
|
+
.ncss-icon-chevron-left { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 6l-6 6 6 6'/%3E%3C/svg%3E"); }
|
|
84
|
+
.ncss-icon-chevron-right { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E"); }
|
|
85
|
+
.ncss-icon-chevron-up { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 15l6-6 6 6'/%3E%3C/svg%3E"); }
|
|
86
|
+
.ncss-icon-chevron-down { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
|
|
87
|
+
|
|
88
|
+
/* Status & Auszeichnung */
|
|
89
|
+
.ncss-icon-info { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8v.01'/%3E%3C/svg%3E"); }
|
|
90
|
+
.ncss-icon-success, .ncss-icon-check-circle { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l2.5 2.5L16 9.5'/%3E%3C/svg%3E"); }
|
|
91
|
+
.ncss-icon-warning { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 4.2L2.4 18a2 2 0 0 0 1.7 3h15.8a2 2 0 0 0 1.7-3L13.7 4.2a2 2 0 0 0-3.4 0z'/%3E%3Cpath d='M12 9v4M12 17v.01'/%3E%3C/svg%3E"); }
|
|
92
|
+
.ncss-icon-error, .ncss-icon-x-circle { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M15 9l-6 6M9 9l6 6'/%3E%3C/svg%3E"); }
|
|
93
|
+
.ncss-icon-heart { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-8-4.9-8-11a4.5 4.5 0 0 1 8-2.8A4.5 4.5 0 0 1 20 9c0 6.1-8 11-8 11z'/%3E%3C/svg%3E"); }
|
|
94
|
+
.ncss-icon-star { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.8 5.7 6.2.9-4.5 4.4 1 6.2-5.5-2.9-5.5 2.9 1-6.2L3 9.6l6.2-.9z'/%3E%3C/svg%3E"); }
|
|
95
|
+
.ncss-icon-lock { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E"); }
|
|
96
|
+
.ncss-icon-eye { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
|
|
97
|
+
|
|
98
|
+
/* Inhalt & Kontakt */
|
|
99
|
+
.ncss-icon-home { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5L12 3l9 7.5M5 9v11a1 1 0 0 0 1 1h4v-6h4v6h4a1 1 0 0 0 1-1V9'/%3E%3C/svg%3E"); }
|
|
100
|
+
.ncss-icon-user { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E"); }
|
|
101
|
+
.ncss-icon-accessibility { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Ccircle cx='12' cy='6.8' r='1.3' fill='black' stroke='none'/%3E%3Cpath d='M6.8 9.6c3.5 0.9 6.9 0.9 10.4 0M12 10.3v4.2M12 14.5l-2.4 3.9M12 14.5l2.4 3.9'/%3E%3C/svg%3E"); }
|
|
102
|
+
.ncss-icon-users { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2 20a7 7 0 0 1 14 0M16 4.6a3.5 3.5 0 0 1 0 6.8M18.5 14a7 7 0 0 1 3.5 6'/%3E%3C/svg%3E"); }
|
|
103
|
+
.ncss-icon-mail { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }
|
|
104
|
+
.ncss-icon-phone { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h3.5l2 5-2.5 1.5a11 11 0 0 0 5.5 5.5L15 13.5l5 2V19a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E"); }
|
|
105
|
+
.ncss-icon-map-pin { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-12a7 7 0 0 1 14 0c0 5.8-7 12-7 12z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E"); }
|
|
106
|
+
.ncss-icon-globe { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a14 14 0 0 1 0 18 14 14 0 0 1 0-18z'/%3E%3C/svg%3E"); }
|
|
107
|
+
.ncss-icon-calendar { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
|
|
108
|
+
.ncss-icon-clock { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
|
|
109
|
+
.ncss-icon-file { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3C/svg%3E"); }
|
|
110
|
+
.ncss-icon-image { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E"); }
|
|
111
|
+
|
|
112
|
+
/* Medien & Darstellung */
|
|
113
|
+
.ncss-icon-play { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E"); }
|
|
114
|
+
.ncss-icon-pause { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Crect x='6' y='5' width='4' height='14' rx='1'/%3E%3Crect x='14' y='5' width='4' height='14' rx='1'/%3E%3C/svg%3E"); }
|
|
115
|
+
.ncss-icon-volume { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4z'/%3E%3Cpath d='M16.5 8.5a5 5 0 0 1 0 7M19.5 5.5a9 9 0 0 1 0 13'/%3E%3C/svg%3E"); }
|
|
116
|
+
.ncss-icon-sun { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E"); }
|
|
117
|
+
.ncss-icon-moon { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 14.5A8 8 0 0 1 9.5 4a8 8 0 1 0 10.5 10.5z'/%3E%3C/svg%3E"); }
|
|
118
|
+
|
|
119
|
+
/* Hochkontrastmodus: das System erzwingt dort eine eigene Hintergrundfarbe - die per
|
|
120
|
+
mask-image ausgestanzte Icon-Fläche (background-color: currentColor) verschwand dadurch
|
|
121
|
+
komplett (per Playwright-forcedColors-Test gefunden: Menü-/Such-Icon-Buttons waren
|
|
122
|
+
leer). forced-color-adjust:none + Systemfarbe CanvasText macht das Icon wieder sichtbar.
|
|
123
|
+
Inline-SVG (<ncss-icon>, Sprite) nutzt fill: currentColor und folgt der erzwungenen
|
|
124
|
+
Textfarbe von selbst. */
|
|
125
|
+
@media (forced-colors: active) {
|
|
126
|
+
.ncss-icon {
|
|
127
|
+
forced-color-adjust: none;
|
|
128
|
+
background-color: CanvasText;
|
|
129
|
+
}
|
|
130
|
+
}
|