@fluid-theme/core 0.4.3 → 2.0.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/AGENTS.md +6 -29
- package/CHANGELOG.md +543 -2
- package/CLAUDE.md +193 -14
- package/GEMINI.md +6 -45
- package/README.md +17 -8
- package/assets/js/compare.js +77 -0
- package/assets/js/fit-text.js +103 -0
- package/assets/js/lightbox.js +153 -0
- package/assets/js/scroll-reveal.js +72 -0
- package/assets/js/toc-build.mjs +86 -0
- package/assets/js/toc.js +384 -0
- package/dist/fluid-1x.min.css +4 -0
- package/dist/fluid-fonts.min.css +2 -0
- package/dist/fluid-legacy-1x.css +3 -0
- package/dist/fluid-nav.min.css +3 -0
- package/dist/fluid-toc.min.css +3 -0
- package/dist/fluid-zero.min.css +3 -0
- package/dist/fluid.min.css +3 -2
- package/dist/fonts/OFL-newsreader.txt +93 -0
- package/dist/fonts/OFL-schibsted-grotesk.txt +93 -0
- package/dist/fonts/newsreader-latin-opsz-italic.woff2 +0 -0
- package/dist/fonts/newsreader-latin-opsz-normal.woff2 +0 -0
- package/dist/fonts/schibsted-grotesk-latin-wght-italic.woff2 +0 -0
- package/dist/fonts/schibsted-grotesk-latin-wght-normal.woff2 +0 -0
- package/fluid-agent-kit/README.md +1 -0
- package/fluid-agent-kit/skills/accessibility.md +3 -1
- package/fluid-agent-kit/skills/css-conventions.md +22 -5
- package/fluid-agent-kit/skills/image-optimization.md +2 -0
- package/fluid-agent-kit/skills/preset-composition.md +108 -0
- package/package.json +29 -3
- package/src/animations/scroll-reveal.css +75 -193
- package/src/components/accordion.css +6 -47
- package/src/components/alert.css +47 -88
- package/src/components/avatar.css +4 -20
- package/src/components/badge.css +25 -48
- package/src/components/button.css +69 -175
- package/src/components/card.css +146 -481
- package/src/components/chip.css +46 -12
- package/src/components/compare.css +234 -0
- package/src/components/dropdown.css +10 -67
- package/src/components/empty-state.css +4 -0
- package/src/components/form.css +113 -81
- package/src/components/gallery.css +252 -0
- package/src/components/hero.css +203 -88
- package/src/components/indicator.css +23 -117
- package/src/components/loading.css +7 -29
- package/src/components/modal.css +12 -65
- package/src/components/nav-modes.css +261 -0
- package/src/components/nav.css +324 -392
- package/src/components/search-input.css +4 -2
- package/src/components/step-indicator.css +26 -27
- package/src/components/table.css +64 -171
- package/src/components/toc.css +254 -0
- package/src/components/tooltip.css +5 -46
- package/src/core/base.css +393 -547
- package/src/core/reset.css +17 -5
- package/src/core/tokens.css +426 -2276
- package/src/fluid.css +258 -17
- package/src/fonts/OFL-newsreader.txt +93 -0
- package/src/fonts/OFL-schibsted-grotesk.txt +93 -0
- package/src/fonts/fluid-fonts.css +55 -0
- package/src/fonts/newsreader-latin-opsz-italic.woff2 +0 -0
- package/src/fonts/newsreader-latin-opsz-normal.woff2 +0 -0
- package/src/fonts/schibsted-grotesk-latin-wght-italic.woff2 +0 -0
- package/src/fonts/schibsted-grotesk-latin-wght-normal.woff2 +0 -0
- package/src/layouts/positioning.css +6 -3
- package/src/legacy-1x.css +61 -0
- package/src/sections/cta.css +33 -101
- package/src/sections/features.css +42 -219
- package/src/sections/footer.css +53 -134
- package/src/sections/stats.css +40 -153
- package/src/sections/team.css +24 -113
- package/src/sections/testimonials.css +34 -148
- package/src/zero/base.css +166 -0
- package/src/zero/tokens.css +64 -0
- package/src/zero.css +20 -0
- package/src/components/scroll-progress.css +0 -104
- package/src/components/settings-panel.css +0 -603
- package/src/components/themed-images.css +0 -229
- package/src/components/version-badge.css +0 -70
package/src/core/reset.css
CHANGED
|
@@ -55,10 +55,11 @@
|
|
|
55
55
|
resize: vertical;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
/* Text overflow prevention
|
|
58
|
+
/* Text overflow prevention: a long word breaks rather than overflow.
|
|
59
|
+
No automatic hyphens anywhere: at a 58ch measure they showed as
|
|
60
|
+
"di-mensions" and "lap-top" (data-text-overflow="hyphenate" opts in). */
|
|
59
61
|
:where(p, h1, h2, h3, h4, h5, h6, li, figcaption) {
|
|
60
62
|
overflow-wrap: break-word;
|
|
61
|
-
hyphens: auto;
|
|
62
63
|
}
|
|
63
64
|
|
|
64
65
|
/* Headings - tighter line height for larger text */
|
|
@@ -85,11 +86,19 @@
|
|
|
85
86
|
text-underline-offset: 0.2em;
|
|
86
87
|
}
|
|
87
88
|
|
|
88
|
-
/*
|
|
89
|
-
|
|
89
|
+
/* Scroll targets keep breathing room below sticky headers.
|
|
90
|
+
(scroll-margin only has effect on the TARGET element, never
|
|
91
|
+
the clicked link.) Pages with taller sticky navs override. */
|
|
92
|
+
:where([id]) {
|
|
90
93
|
scroll-margin-block-start: 2rem;
|
|
91
94
|
}
|
|
92
95
|
|
|
96
|
+
/* The hidden attribute always wins — components that set their
|
|
97
|
+
own display (flex/grid) must never resurrect hidden content */
|
|
98
|
+
[hidden] {
|
|
99
|
+
display: none !important;
|
|
100
|
+
}
|
|
101
|
+
|
|
93
102
|
/* Focus styles - visible only for keyboard navigation */
|
|
94
103
|
:focus-visible {
|
|
95
104
|
outline: 2px solid var(--color-focus, currentColor);
|
|
@@ -107,11 +116,14 @@
|
|
|
107
116
|
border-spacing: 0;
|
|
108
117
|
}
|
|
109
118
|
|
|
110
|
-
/* Fieldset - remove default styling
|
|
119
|
+
/* Fieldset - remove default styling. Browsers give a fieldset
|
|
120
|
+
min-inline-size: min-content, so a wide child (a table, a row of inputs)
|
|
121
|
+
made the whole page wider than a phone; 0 lets it shrink like a div. */
|
|
111
122
|
:where(fieldset) {
|
|
112
123
|
border: none;
|
|
113
124
|
padding: 0;
|
|
114
125
|
margin: 0;
|
|
126
|
+
min-inline-size: 0;
|
|
115
127
|
}
|
|
116
128
|
|
|
117
129
|
/* Legend - reset positioning */
|