@bookklik/senangstart-css 0.1.4 → 0.1.8
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/.github/workflows/deploy-docs.yml +7 -1
- package/dist/senangstart-css.js +1436 -14
- package/dist/senangstart-css.min.js +1159 -10
- package/docs/.vitepress/config.js +624 -18
- package/docs/.vitepress/theme/custom.css +0 -1
- package/docs/SYNTAX-REFERENCE.md +1555 -0
- package/docs/guide/preflight.md +139 -0
- package/docs/index.md +8 -20
- package/docs/ms/guide/preflight.md +139 -0
- package/docs/ms/index.md +8 -20
- package/docs/ms/reference/colors.md +45 -45
- package/docs/ms/reference/layout/align-content.md +35 -0
- package/docs/ms/reference/layout/align-items.md +33 -0
- package/docs/ms/reference/layout/align-self.md +34 -0
- package/docs/ms/reference/layout/aspect-ratio.md +40 -0
- package/docs/ms/reference/layout/border-collapse.md +30 -0
- package/docs/ms/reference/layout/border-spacing.md +39 -0
- package/docs/ms/reference/layout/box-sizing.md +30 -0
- package/docs/ms/reference/layout/caption-side.md +30 -0
- package/docs/ms/reference/layout/columns.md +30 -0
- package/docs/ms/reference/layout/container.md +29 -0
- package/docs/ms/reference/layout/display.md +60 -0
- package/docs/ms/reference/layout/flex-basis.md +38 -0
- package/docs/ms/reference/layout/flex-direction.md +33 -0
- package/docs/ms/reference/layout/flex-items.md +32 -0
- package/docs/ms/reference/layout/flex-wrap.md +31 -0
- package/docs/ms/reference/layout/flex.md +40 -0
- package/docs/ms/reference/layout/float-clear.md +32 -0
- package/docs/ms/reference/layout/grid-auto-flow.md +33 -0
- package/docs/ms/reference/layout/grid-auto-sizing.md +32 -0
- package/docs/ms/reference/layout/grid-column-span.md +31 -0
- package/docs/ms/reference/layout/grid-columns.md +32 -0
- package/docs/ms/reference/layout/grid-row-span.md +30 -0
- package/docs/ms/reference/layout/grid-rows.md +31 -0
- package/docs/ms/reference/layout/inset.md +44 -0
- package/docs/ms/reference/layout/isolation.md +30 -0
- package/docs/ms/reference/layout/justify-content.md +36 -0
- package/docs/ms/reference/layout/justify-items.md +32 -0
- package/docs/ms/reference/layout/justify-self.md +33 -0
- package/docs/ms/reference/layout/object-fit.md +33 -0
- package/docs/ms/reference/layout/object-position.md +45 -0
- package/docs/ms/reference/layout/order.md +32 -0
- package/docs/ms/reference/layout/overflow.md +34 -0
- package/docs/ms/reference/layout/overscroll.md +31 -0
- package/docs/ms/reference/layout/place-content.md +35 -0
- package/docs/ms/reference/layout/place-items.md +32 -0
- package/docs/ms/reference/layout/place-self.md +33 -0
- package/docs/ms/reference/layout/position.md +34 -0
- package/docs/ms/reference/layout/shorthand-alignment.md +34 -0
- package/docs/ms/reference/layout/table-layout.md +30 -0
- package/docs/ms/reference/layout/visibility.md +30 -0
- package/docs/ms/reference/layout/z-index.md +33 -0
- package/docs/ms/reference/layout.md +53 -95
- package/docs/ms/reference/space/arbitrary-values.md +32 -0
- package/docs/ms/reference/space/gap.md +44 -0
- package/docs/ms/reference/space/height.md +44 -0
- package/docs/ms/reference/space/margin.md +49 -0
- package/docs/ms/reference/space/padding.md +49 -0
- package/docs/ms/reference/space/scale-reference.md +43 -0
- package/docs/ms/reference/space/sizing.md +27 -0
- package/docs/ms/reference/space/width.md +45 -0
- package/docs/ms/reference/space.md +15 -99
- package/docs/ms/reference/spacing.md +22 -8
- package/docs/ms/reference/visual/accent-color.md +31 -0
- package/docs/ms/reference/visual/animation-builtin.md +41 -0
- package/docs/ms/reference/visual/animation-delay.md +41 -0
- package/docs/ms/reference/visual/animation-direction.md +32 -0
- package/docs/ms/reference/visual/animation-duration.md +43 -0
- package/docs/ms/reference/visual/animation-fill.md +32 -0
- package/docs/ms/reference/visual/animation-iteration.md +30 -0
- package/docs/ms/reference/visual/animation-play.md +30 -0
- package/docs/ms/reference/visual/appearance.md +30 -0
- package/docs/ms/reference/visual/backdrop-blur.md +43 -0
- package/docs/ms/reference/visual/backdrop-brightness.md +41 -0
- package/docs/ms/reference/visual/backdrop-contrast.md +41 -0
- package/docs/ms/reference/visual/backdrop-grayscale.md +39 -0
- package/docs/ms/reference/visual/backdrop-hue-rotate.md +39 -0
- package/docs/ms/reference/visual/backdrop-invert.md +39 -0
- package/docs/ms/reference/visual/backdrop-opacity.md +39 -0
- package/docs/ms/reference/visual/backdrop-saturate.md +41 -0
- package/docs/ms/reference/visual/backdrop-sepia.md +39 -0
- package/docs/ms/reference/visual/background-attachment.md +31 -0
- package/docs/ms/reference/visual/background-blend-mode.md +34 -0
- package/docs/ms/reference/visual/background-clip.md +32 -0
- package/docs/ms/reference/visual/background-color.md +33 -0
- package/docs/ms/reference/visual/background-image.md +41 -0
- package/docs/ms/reference/visual/background-origin.md +31 -0
- package/docs/ms/reference/visual/background-position.md +45 -0
- package/docs/ms/reference/visual/background-repeat.md +34 -0
- package/docs/ms/reference/visual/background-size.md +39 -0
- package/docs/ms/reference/visual/background.md +13 -0
- package/docs/ms/reference/visual/blend-modes.md +34 -0
- package/docs/ms/reference/visual/border-radius.md +34 -0
- package/docs/ms/reference/visual/border-style.md +33 -0
- package/docs/ms/reference/visual/border-width.md +44 -0
- package/docs/ms/reference/visual/border.md +43 -0
- package/docs/ms/reference/visual/box-shadow.md +33 -0
- package/docs/ms/reference/visual/caret-color.md +31 -0
- package/docs/ms/reference/visual/color-scheme.md +31 -0
- package/docs/ms/reference/visual/cursor.md +37 -0
- package/docs/ms/reference/visual/field-sizing.md +30 -0
- package/docs/ms/reference/visual/fill.md +38 -0
- package/docs/ms/reference/visual/filter-blur.md +43 -0
- package/docs/ms/reference/visual/filter-brightness.md +41 -0
- package/docs/ms/reference/visual/filter-contrast.md +41 -0
- package/docs/ms/reference/visual/filter-drop-shadow.md +42 -0
- package/docs/ms/reference/visual/filter-grayscale.md +39 -0
- package/docs/ms/reference/visual/filter-hue-rotate.md +39 -0
- package/docs/ms/reference/visual/filter-invert.md +39 -0
- package/docs/ms/reference/visual/filter-saturate.md +41 -0
- package/docs/ms/reference/visual/filter-sepia.md +39 -0
- package/docs/ms/reference/visual/font-family.md +31 -0
- package/docs/ms/reference/visual/font-smoothing.md +30 -0
- package/docs/ms/reference/visual/font-style.md +30 -0
- package/docs/ms/reference/visual/font-variant-numeric.md +35 -0
- package/docs/ms/reference/visual/font-weight.md +31 -0
- package/docs/ms/reference/visual/forced-color-adjust.md +30 -0
- package/docs/ms/reference/visual/hyphens.md +31 -0
- package/docs/ms/reference/visual/letter-spacing.md +42 -0
- package/docs/ms/reference/visual/line-clamp.md +40 -0
- package/docs/ms/reference/visual/line-height.md +42 -0
- package/docs/ms/reference/visual/list-style.md +34 -0
- package/docs/ms/reference/visual/mask.md +39 -0
- package/docs/ms/reference/visual/opacity.md +33 -0
- package/docs/ms/reference/visual/outline.md +31 -0
- package/docs/ms/reference/visual/pointer-events.md +30 -0
- package/docs/ms/reference/visual/resize.md +32 -0
- package/docs/ms/reference/visual/scroll-behavior.md +30 -0
- package/docs/ms/reference/visual/scroll-margin.md +41 -0
- package/docs/ms/reference/visual/scroll-padding.md +41 -0
- package/docs/ms/reference/visual/scroll-snap-align.md +32 -0
- package/docs/ms/reference/visual/scroll-snap-stop.md +30 -0
- package/docs/ms/reference/visual/scroll-snap-type.md +34 -0
- package/docs/ms/reference/visual/state-prefixes.md +37 -0
- package/docs/ms/reference/visual/stroke-width.md +39 -0
- package/docs/ms/reference/visual/stroke.md +38 -0
- package/docs/ms/reference/visual/text-alignment.md +32 -0
- package/docs/ms/reference/visual/text-color.md +41 -0
- package/docs/ms/reference/visual/text-decoration.md +32 -0
- package/docs/ms/reference/visual/text-indent.md +37 -0
- package/docs/ms/reference/visual/text-overflow.md +31 -0
- package/docs/ms/reference/visual/text-shadow.md +40 -0
- package/docs/ms/reference/visual/text-size.md +32 -0
- package/docs/ms/reference/visual/text-transform.md +32 -0
- package/docs/ms/reference/visual/text-wrap.md +32 -0
- package/docs/ms/reference/visual/touch-action.md +36 -0
- package/docs/ms/reference/visual/transform-backface.md +30 -0
- package/docs/ms/reference/visual/transform-origin.md +45 -0
- package/docs/ms/reference/visual/transform-perspective-origin.md +45 -0
- package/docs/ms/reference/visual/transform-perspective.md +43 -0
- package/docs/ms/reference/visual/transform-rotate.md +40 -0
- package/docs/ms/reference/visual/transform-scale.md +43 -0
- package/docs/ms/reference/visual/transform-skew.md +40 -0
- package/docs/ms/reference/visual/transform-style.md +30 -0
- package/docs/ms/reference/visual/transform-translate.md +39 -0
- package/docs/ms/reference/visual/transition-delay.md +41 -0
- package/docs/ms/reference/visual/transition-duration.md +43 -0
- package/docs/ms/reference/visual/transition-property.md +34 -0
- package/docs/ms/reference/visual/transition-timing.md +40 -0
- package/docs/ms/reference/visual/typography-keywords.md +81 -0
- package/docs/ms/reference/visual/user-select.md +32 -0
- package/docs/ms/reference/visual/vertical-align.md +36 -0
- package/docs/ms/reference/visual/whitespace.md +34 -0
- package/docs/ms/reference/visual/will-change.md +33 -0
- package/docs/ms/reference/visual/word-break.md +32 -0
- package/docs/ms/reference/visual.md +145 -148
- package/docs/public/assets/senangstart-css.min.js +1545 -0
- package/docs/reference/layout/align-content.md +35 -0
- package/docs/reference/layout/align-items.md +33 -0
- package/docs/reference/layout/align-self.md +34 -0
- package/docs/reference/layout/aspect-ratio.md +40 -0
- package/docs/reference/layout/border-collapse.md +30 -0
- package/docs/reference/layout/border-spacing.md +39 -0
- package/docs/reference/layout/box-sizing.md +30 -0
- package/docs/reference/layout/caption-side.md +30 -0
- package/docs/reference/layout/columns.md +30 -0
- package/docs/reference/layout/container.md +29 -0
- package/docs/reference/layout/display.md +60 -0
- package/docs/reference/layout/flex-basis.md +38 -0
- package/docs/reference/layout/flex-direction.md +33 -0
- package/docs/reference/layout/flex-items.md +32 -0
- package/docs/reference/layout/flex-wrap.md +31 -0
- package/docs/reference/layout/flex.md +40 -0
- package/docs/reference/layout/float-clear.md +32 -0
- package/docs/reference/layout/grid-auto-flow.md +33 -0
- package/docs/reference/layout/grid-auto-sizing.md +32 -0
- package/docs/reference/layout/grid-column-span.md +31 -0
- package/docs/reference/layout/grid-columns.md +32 -0
- package/docs/reference/layout/grid-row-span.md +30 -0
- package/docs/reference/layout/grid-rows.md +31 -0
- package/docs/reference/layout/inset.md +44 -0
- package/docs/reference/layout/isolation.md +30 -0
- package/docs/reference/layout/justify-content.md +36 -0
- package/docs/reference/layout/justify-items.md +32 -0
- package/docs/reference/layout/justify-self.md +33 -0
- package/docs/reference/layout/object-fit.md +33 -0
- package/docs/reference/layout/object-position.md +45 -0
- package/docs/reference/layout/order.md +32 -0
- package/docs/reference/layout/overflow.md +34 -0
- package/docs/reference/layout/overscroll.md +31 -0
- package/docs/reference/layout/place-content.md +35 -0
- package/docs/reference/layout/place-items.md +32 -0
- package/docs/reference/layout/place-self.md +33 -0
- package/docs/reference/layout/position.md +34 -0
- package/docs/reference/layout/shorthand-alignment.md +34 -0
- package/docs/reference/layout/table-layout.md +30 -0
- package/docs/reference/layout/visibility.md +30 -0
- package/docs/reference/layout/z-index.md +33 -0
- package/docs/reference/layout.md +60 -102
- package/docs/reference/space/arbitrary-values.md +39 -0
- package/docs/reference/space/gap.md +44 -0
- package/docs/reference/space/height.md +44 -0
- package/docs/reference/space/margin.md +49 -0
- package/docs/reference/space/padding.md +49 -0
- package/docs/reference/space/scale-reference.md +43 -0
- package/docs/reference/space/width.md +45 -0
- package/docs/reference/space.md +14 -98
- package/docs/reference/spacing.md +22 -8
- package/docs/reference/visual/accent-color.md +31 -0
- package/docs/reference/visual/animation-builtin.md +41 -0
- package/docs/reference/visual/animation-delay.md +41 -0
- package/docs/reference/visual/animation-direction.md +32 -0
- package/docs/reference/visual/animation-duration.md +43 -0
- package/docs/reference/visual/animation-fill.md +32 -0
- package/docs/reference/visual/animation-iteration.md +30 -0
- package/docs/reference/visual/animation-play.md +30 -0
- package/docs/reference/visual/appearance.md +30 -0
- package/docs/reference/visual/backdrop-blur.md +43 -0
- package/docs/reference/visual/backdrop-brightness.md +41 -0
- package/docs/reference/visual/backdrop-contrast.md +41 -0
- package/docs/reference/visual/backdrop-grayscale.md +39 -0
- package/docs/reference/visual/backdrop-hue-rotate.md +39 -0
- package/docs/reference/visual/backdrop-invert.md +39 -0
- package/docs/reference/visual/backdrop-opacity.md +39 -0
- package/docs/reference/visual/backdrop-saturate.md +41 -0
- package/docs/reference/visual/backdrop-sepia.md +39 -0
- package/docs/reference/visual/background-attachment.md +31 -0
- package/docs/reference/visual/background-blend-mode.md +34 -0
- package/docs/reference/visual/background-clip.md +32 -0
- package/docs/reference/visual/background-color.md +33 -0
- package/docs/reference/visual/background-image.md +41 -0
- package/docs/reference/visual/background-origin.md +31 -0
- package/docs/reference/visual/background-position.md +45 -0
- package/docs/reference/visual/background-repeat.md +34 -0
- package/docs/reference/visual/background-size.md +39 -0
- package/docs/reference/visual/blend-modes.md +34 -0
- package/docs/reference/visual/border-radius.md +34 -0
- package/docs/reference/visual/border-style.md +33 -0
- package/docs/reference/visual/border-width.md +44 -0
- package/docs/reference/visual/border.md +43 -0
- package/docs/reference/visual/box-shadow.md +33 -0
- package/docs/reference/visual/caret-color.md +31 -0
- package/docs/reference/visual/color-scheme.md +31 -0
- package/docs/reference/visual/cursor.md +37 -0
- package/docs/reference/visual/field-sizing.md +30 -0
- package/docs/reference/visual/fill.md +38 -0
- package/docs/reference/visual/filter-blur.md +43 -0
- package/docs/reference/visual/filter-brightness.md +41 -0
- package/docs/reference/visual/filter-contrast.md +41 -0
- package/docs/reference/visual/filter-drop-shadow.md +42 -0
- package/docs/reference/visual/filter-grayscale.md +39 -0
- package/docs/reference/visual/filter-hue-rotate.md +39 -0
- package/docs/reference/visual/filter-invert.md +39 -0
- package/docs/reference/visual/filter-saturate.md +41 -0
- package/docs/reference/visual/filter-sepia.md +39 -0
- package/docs/reference/visual/font-family.md +31 -0
- package/docs/reference/visual/font-smoothing.md +30 -0
- package/docs/reference/visual/font-style.md +30 -0
- package/docs/reference/visual/font-variant-numeric.md +35 -0
- package/docs/reference/visual/font-weight.md +31 -0
- package/docs/reference/visual/forced-color-adjust.md +30 -0
- package/docs/reference/visual/hyphens.md +31 -0
- package/docs/reference/visual/letter-spacing.md +42 -0
- package/docs/reference/visual/line-clamp.md +40 -0
- package/docs/reference/visual/line-height.md +42 -0
- package/docs/reference/visual/list-style.md +34 -0
- package/docs/reference/visual/mask.md +39 -0
- package/docs/reference/visual/opacity.md +33 -0
- package/docs/reference/visual/outline.md +31 -0
- package/docs/reference/visual/pointer-events.md +30 -0
- package/docs/reference/visual/resize.md +32 -0
- package/docs/reference/visual/scroll-behavior.md +30 -0
- package/docs/reference/visual/scroll-margin.md +41 -0
- package/docs/reference/visual/scroll-padding.md +41 -0
- package/docs/reference/visual/scroll-snap-align.md +32 -0
- package/docs/reference/visual/scroll-snap-stop.md +30 -0
- package/docs/reference/visual/scroll-snap-type.md +34 -0
- package/docs/reference/visual/state-prefixes.md +37 -0
- package/docs/reference/visual/stroke-width.md +39 -0
- package/docs/reference/visual/stroke.md +38 -0
- package/docs/reference/visual/text-alignment.md +32 -0
- package/docs/reference/visual/text-color.md +41 -0
- package/docs/reference/visual/text-decoration.md +32 -0
- package/docs/reference/visual/text-indent.md +37 -0
- package/docs/reference/visual/text-overflow.md +31 -0
- package/docs/reference/visual/text-shadow.md +40 -0
- package/docs/reference/visual/text-size.md +32 -0
- package/docs/reference/visual/text-transform.md +32 -0
- package/docs/reference/visual/text-wrap.md +32 -0
- package/docs/reference/visual/touch-action.md +36 -0
- package/docs/reference/visual/transform-backface.md +30 -0
- package/docs/reference/visual/transform-origin.md +45 -0
- package/docs/reference/visual/transform-perspective-origin.md +45 -0
- package/docs/reference/visual/transform-perspective.md +43 -0
- package/docs/reference/visual/transform-rotate.md +40 -0
- package/docs/reference/visual/transform-scale.md +43 -0
- package/docs/reference/visual/transform-skew.md +40 -0
- package/docs/reference/visual/transform-style.md +30 -0
- package/docs/reference/visual/transform-translate.md +39 -0
- package/docs/reference/visual/transition-delay.md +41 -0
- package/docs/reference/visual/transition-duration.md +43 -0
- package/docs/reference/visual/transition-property.md +34 -0
- package/docs/reference/visual/transition-timing.md +40 -0
- package/docs/reference/visual/typography-keywords.md +81 -0
- package/docs/reference/visual/user-select.md +32 -0
- package/docs/reference/visual/vertical-align.md +36 -0
- package/docs/reference/visual/whitespace.md +34 -0
- package/docs/reference/visual/will-change.md +33 -0
- package/docs/reference/visual/word-break.md +32 -0
- package/docs/reference/visual.md +151 -154
- package/docs/syntax-reference.json +1973 -0
- package/package.json +12 -4
- package/playground/index.html +78 -0
- package/playground/jit-test.html +384 -0
- package/scripts/extract-syntax.js +152 -0
- package/scripts/generate-docs.js +352 -0
- package/src/cdn/jit.js +1436 -14
- package/src/cli/commands/build.js +5 -0
- package/src/cli/index.js +2 -0
- package/src/compiler/generators/css.js +1537 -25
- package/src/compiler/generators/preflight.js +379 -0
- package/src/config/defaults.js +19 -1
- package/src/definitions/index.js +153 -0
- package/src/definitions/layout-alignment.js +257 -0
- package/src/definitions/layout-flex.js +209 -0
- package/src/definitions/layout-grid.js +150 -0
- package/src/definitions/layout-positioning.js +89 -0
- package/src/definitions/layout-table.js +98 -0
- package/src/definitions/layout-utilities.js +262 -0
- package/src/definitions/layout.js +195 -0
- package/src/definitions/space.js +164 -0
- package/src/definitions/visual-backgrounds.js +423 -0
- package/src/definitions/visual-borders.js +111 -0
- package/src/definitions/visual-filters.js +204 -0
- package/src/definitions/visual-interactivity.js +292 -0
- package/src/definitions/visual-svg.js +80 -0
- package/src/definitions/visual-transform3d.js +159 -0
- package/src/definitions/visual-transforms.js +142 -0
- package/src/definitions/visual-transitions.js +277 -0
- package/src/definitions/visual-typography.js +386 -0
- package/src/definitions/visual.js +542 -0
- package/tests/helpers/test-utils.js +144 -0
- package/tests/integration/compiler.test.js +247 -0
- package/tests/sync/docs-sync.test.js +364 -0
- package/tests/unit/compiler/generators/css.test.js +719 -0
- package/tests/unit/compiler/parser.test.js +244 -0
- package/tests/unit/compiler/tokenizer.test.js +305 -0
- package/tests/unit/config/defaults.test.js +168 -0
- package/docs/.vitepress/cache/deps/_metadata.json +0 -31
- package/docs/.vitepress/cache/deps/chunk-LE5NDSFD.js +0 -12824
- package/docs/.vitepress/cache/deps/chunk-LE5NDSFD.js.map +0 -7
- package/docs/.vitepress/cache/deps/package.json +0 -3
- package/docs/.vitepress/cache/deps/vitepress___@vue_devtools-api.js +0 -4505
- package/docs/.vitepress/cache/deps/vitepress___@vue_devtools-api.js.map +0 -7
- package/docs/.vitepress/cache/deps/vitepress___@vueuse_core.js +0 -9731
- package/docs/.vitepress/cache/deps/vitepress___@vueuse_core.js.map +0 -7
- package/docs/.vitepress/cache/deps/vue.js +0 -347
- package/docs/.vitepress/cache/deps/vue.js.map +0 -7
- package/docs/.vitepress/dist/404.html +0 -22
- package/docs/.vitepress/dist/assets/app.DBXoyO4w.js +0 -1
- package/docs/.vitepress/dist/assets/chunks/framework.I305HrzY.js +0 -19
- package/docs/.vitepress/dist/assets/chunks/theme.CaXH1t3X.js +0 -1
- package/docs/.vitepress/dist/assets/examples_cards.md.BCzaqSD6.js +0 -84
- package/docs/.vitepress/dist/assets/examples_cards.md.BCzaqSD6.lean.js +0 -1
- package/docs/.vitepress/dist/assets/examples_forms.md.DOjr9LrG.js +0 -169
- package/docs/.vitepress/dist/assets/examples_forms.md.DOjr9LrG.lean.js +0 -1
- package/docs/.vitepress/dist/assets/examples_hero.md.CAorji-Y.js +0 -118
- package/docs/.vitepress/dist/assets/examples_hero.md.CAorji-Y.lean.js +0 -1
- package/docs/.vitepress/dist/assets/examples_index.md.BjUNsTob.js +0 -52
- package/docs/.vitepress/dist/assets/examples_index.md.BjUNsTob.lean.js +0 -1
- package/docs/.vitepress/dist/assets/examples_navigation.md.DvL-Yv_5.js +0 -106
- package/docs/.vitepress/dist/assets/examples_navigation.md.DvL-Yv_5.lean.js +0 -1
- package/docs/.vitepress/dist/assets/guide_cdn.md.Bbb7-icp.js +0 -30
- package/docs/.vitepress/dist/assets/guide_cdn.md.Bbb7-icp.lean.js +0 -1
- package/docs/.vitepress/dist/assets/guide_cli.md.yLsOZ7NL.js +0 -44
- package/docs/.vitepress/dist/assets/guide_cli.md.yLsOZ7NL.lean.js +0 -1
- package/docs/.vitepress/dist/assets/guide_configuration.md.DN4FfKw4.js +0 -79
- package/docs/.vitepress/dist/assets/guide_configuration.md.DN4FfKw4.lean.js +0 -1
- package/docs/.vitepress/dist/assets/guide_dark-mode.md.D6UJvQtM.js +0 -69
- package/docs/.vitepress/dist/assets/guide_dark-mode.md.D6UJvQtM.lean.js +0 -1
- package/docs/.vitepress/dist/assets/guide_getting-started.md.K5nA8wXY.js +0 -47
- package/docs/.vitepress/dist/assets/guide_getting-started.md.K5nA8wXY.lean.js +0 -1
- package/docs/.vitepress/dist/assets/guide_index.md.B0lRU150.js +0 -3
- package/docs/.vitepress/dist/assets/guide_index.md.B0lRU150.lean.js +0 -1
- package/docs/.vitepress/dist/assets/guide_natural-scale.md.vvauT7U1.js +0 -22
- package/docs/.vitepress/dist/assets/guide_natural-scale.md.vvauT7U1.lean.js +0 -1
- package/docs/.vitepress/dist/assets/guide_philosophy.md.mOb9kp32.js +0 -7
- package/docs/.vitepress/dist/assets/guide_philosophy.md.mOb9kp32.lean.js +0 -1
- package/docs/.vitepress/dist/assets/guide_responsive.md.C7cF-4cR.js +0 -57
- package/docs/.vitepress/dist/assets/guide_responsive.md.C7cF-4cR.lean.js +0 -1
- package/docs/.vitepress/dist/assets/guide_states.md.CwtGEGHB.js +0 -77
- package/docs/.vitepress/dist/assets/guide_states.md.CwtGEGHB.lean.js +0 -1
- package/docs/.vitepress/dist/assets/guide_tri-attribute.md.CpjJLEMP.js +0 -45
- package/docs/.vitepress/dist/assets/guide_tri-attribute.md.CpjJLEMP.lean.js +0 -1
- package/docs/.vitepress/dist/assets/index.md.mYp6_S5X.js +0 -7
- package/docs/.vitepress/dist/assets/index.md.mYp6_S5X.lean.js +0 -1
- package/docs/.vitepress/dist/assets/inter-italic-cyrillic-ext.r48I6akx.woff2 +0 -0
- package/docs/.vitepress/dist/assets/inter-italic-cyrillic.By2_1cv3.woff2 +0 -0
- package/docs/.vitepress/dist/assets/inter-italic-greek-ext.1u6EdAuj.woff2 +0 -0
- package/docs/.vitepress/dist/assets/inter-italic-greek.DJ8dCoTZ.woff2 +0 -0
- package/docs/.vitepress/dist/assets/inter-italic-latin-ext.CN1xVJS-.woff2 +0 -0
- package/docs/.vitepress/dist/assets/inter-italic-latin.C2AdPX0b.woff2 +0 -0
- package/docs/.vitepress/dist/assets/inter-italic-vietnamese.BSbpV94h.woff2 +0 -0
- package/docs/.vitepress/dist/assets/inter-roman-cyrillic-ext.BBPuwvHQ.woff2 +0 -0
- package/docs/.vitepress/dist/assets/inter-roman-cyrillic.C5lxZ8CY.woff2 +0 -0
- package/docs/.vitepress/dist/assets/inter-roman-greek-ext.CqjqNYQ-.woff2 +0 -0
- package/docs/.vitepress/dist/assets/inter-roman-greek.BBVDIX6e.woff2 +0 -0
- package/docs/.vitepress/dist/assets/inter-roman-latin-ext.4ZJIpNVo.woff2 +0 -0
- package/docs/.vitepress/dist/assets/inter-roman-latin.Di8DUHzh.woff2 +0 -0
- package/docs/.vitepress/dist/assets/inter-roman-vietnamese.BjW4sHH5.woff2 +0 -0
- package/docs/.vitepress/dist/assets/ms_examples_cards.md.CaE5JNAs.js +0 -84
- package/docs/.vitepress/dist/assets/ms_examples_cards.md.CaE5JNAs.lean.js +0 -1
- package/docs/.vitepress/dist/assets/ms_examples_forms.md.VvDzMzxF.js +0 -169
- package/docs/.vitepress/dist/assets/ms_examples_forms.md.VvDzMzxF.lean.js +0 -1
- package/docs/.vitepress/dist/assets/ms_examples_hero.md.DC4c3kKW.js +0 -118
- package/docs/.vitepress/dist/assets/ms_examples_hero.md.DC4c3kKW.lean.js +0 -1
- package/docs/.vitepress/dist/assets/ms_examples_index.md.C13ShcjA.js +0 -52
- package/docs/.vitepress/dist/assets/ms_examples_index.md.C13ShcjA.lean.js +0 -1
- package/docs/.vitepress/dist/assets/ms_examples_navigation.md.BPtVjKbk.js +0 -106
- package/docs/.vitepress/dist/assets/ms_examples_navigation.md.BPtVjKbk.lean.js +0 -1
- package/docs/.vitepress/dist/assets/ms_guide_cdn.md.tZFpEjTS.js +0 -30
- package/docs/.vitepress/dist/assets/ms_guide_cdn.md.tZFpEjTS.lean.js +0 -1
- package/docs/.vitepress/dist/assets/ms_guide_cli.md.DBjxv3-o.js +0 -44
- package/docs/.vitepress/dist/assets/ms_guide_cli.md.DBjxv3-o.lean.js +0 -1
- package/docs/.vitepress/dist/assets/ms_guide_configuration.md.CyYNqREm.js +0 -79
- package/docs/.vitepress/dist/assets/ms_guide_configuration.md.CyYNqREm.lean.js +0 -1
- package/docs/.vitepress/dist/assets/ms_guide_dark-mode.md.DWDWvzzv.js +0 -69
- package/docs/.vitepress/dist/assets/ms_guide_dark-mode.md.DWDWvzzv.lean.js +0 -1
- package/docs/.vitepress/dist/assets/ms_guide_getting-started.md.WoQwRhlY.js +0 -47
- package/docs/.vitepress/dist/assets/ms_guide_getting-started.md.WoQwRhlY.lean.js +0 -1
- package/docs/.vitepress/dist/assets/ms_guide_index.md.pHpXZMmU.js +0 -3
- package/docs/.vitepress/dist/assets/ms_guide_index.md.pHpXZMmU.lean.js +0 -1
- package/docs/.vitepress/dist/assets/ms_guide_natural-scale.md.BiUfU-TH.js +0 -22
- package/docs/.vitepress/dist/assets/ms_guide_natural-scale.md.BiUfU-TH.lean.js +0 -1
- package/docs/.vitepress/dist/assets/ms_guide_philosophy.md.hf3SG2Ts.js +0 -7
- package/docs/.vitepress/dist/assets/ms_guide_philosophy.md.hf3SG2Ts.lean.js +0 -1
- package/docs/.vitepress/dist/assets/ms_guide_responsive.md.C4yS3zzM.js +0 -57
- package/docs/.vitepress/dist/assets/ms_guide_responsive.md.C4yS3zzM.lean.js +0 -1
- package/docs/.vitepress/dist/assets/ms_guide_states.md.DkDEjPdC.js +0 -77
- package/docs/.vitepress/dist/assets/ms_guide_states.md.DkDEjPdC.lean.js +0 -1
- package/docs/.vitepress/dist/assets/ms_guide_tri-attribute.md.C3Es_V5J.js +0 -45
- package/docs/.vitepress/dist/assets/ms_guide_tri-attribute.md.C3Es_V5J.lean.js +0 -1
- package/docs/.vitepress/dist/assets/ms_index.md.Bmo9il08.js +0 -7
- package/docs/.vitepress/dist/assets/ms_index.md.Bmo9il08.lean.js +0 -1
- package/docs/.vitepress/dist/assets/ms_reference_breakpoints.md.DR7i_--b.js +0 -48
- package/docs/.vitepress/dist/assets/ms_reference_breakpoints.md.DR7i_--b.lean.js +0 -1
- package/docs/.vitepress/dist/assets/ms_reference_colors.md.06ZYiMcJ.js +0 -17
- package/docs/.vitepress/dist/assets/ms_reference_colors.md.06ZYiMcJ.lean.js +0 -1
- package/docs/.vitepress/dist/assets/ms_reference_layout.md.NGL6A5SR.js +0 -13
- package/docs/.vitepress/dist/assets/ms_reference_layout.md.NGL6A5SR.lean.js +0 -1
- package/docs/.vitepress/dist/assets/ms_reference_space.md.BG5YQ-09.js +0 -24
- package/docs/.vitepress/dist/assets/ms_reference_space.md.BG5YQ-09.lean.js +0 -1
- package/docs/.vitepress/dist/assets/ms_reference_spacing.md.XmXLLPOZ.js +0 -32
- package/docs/.vitepress/dist/assets/ms_reference_spacing.md.XmXLLPOZ.lean.js +0 -1
- package/docs/.vitepress/dist/assets/ms_reference_visual.md.BVOlkEqc.js +0 -22
- package/docs/.vitepress/dist/assets/ms_reference_visual.md.BVOlkEqc.lean.js +0 -1
- package/docs/.vitepress/dist/assets/reference_breakpoints.md.BRbG8Fzi.js +0 -48
- package/docs/.vitepress/dist/assets/reference_breakpoints.md.BRbG8Fzi.lean.js +0 -1
- package/docs/.vitepress/dist/assets/reference_colors.md.C7j7dSO1.js +0 -17
- package/docs/.vitepress/dist/assets/reference_colors.md.C7j7dSO1.lean.js +0 -1
- package/docs/.vitepress/dist/assets/reference_layout.md.BWJ5NxSp.js +0 -13
- package/docs/.vitepress/dist/assets/reference_layout.md.BWJ5NxSp.lean.js +0 -1
- package/docs/.vitepress/dist/assets/reference_space.md.DCsqfTWb.js +0 -24
- package/docs/.vitepress/dist/assets/reference_space.md.DCsqfTWb.lean.js +0 -1
- package/docs/.vitepress/dist/assets/reference_spacing.md.BInFD8gd.js +0 -32
- package/docs/.vitepress/dist/assets/reference_spacing.md.BInFD8gd.lean.js +0 -1
- package/docs/.vitepress/dist/assets/reference_visual.md.BRK7S9T1.js +0 -22
- package/docs/.vitepress/dist/assets/reference_visual.md.BRK7S9T1.lean.js +0 -1
- package/docs/.vitepress/dist/assets/style.D82StYDI.css +0 -1
- package/docs/.vitepress/dist/examples/cards.html +0 -108
- package/docs/.vitepress/dist/examples/forms.html +0 -193
- package/docs/.vitepress/dist/examples/hero.html +0 -142
- package/docs/.vitepress/dist/examples/index.html +0 -76
- package/docs/.vitepress/dist/examples/navigation.html +0 -130
- package/docs/.vitepress/dist/guide/cdn.html +0 -54
- package/docs/.vitepress/dist/guide/cli.html +0 -68
- package/docs/.vitepress/dist/guide/configuration.html +0 -103
- package/docs/.vitepress/dist/guide/dark-mode.html +0 -93
- package/docs/.vitepress/dist/guide/getting-started.html +0 -71
- package/docs/.vitepress/dist/guide/index.html +0 -27
- package/docs/.vitepress/dist/guide/natural-scale.html +0 -46
- package/docs/.vitepress/dist/guide/philosophy.html +0 -31
- package/docs/.vitepress/dist/guide/responsive.html +0 -81
- package/docs/.vitepress/dist/guide/states.html +0 -101
- package/docs/.vitepress/dist/guide/tri-attribute.html +0 -69
- package/docs/.vitepress/dist/hashmap.json +0 -1
- package/docs/.vitepress/dist/index.html +0 -31
- package/docs/.vitepress/dist/ms/examples/cards.html +0 -108
- package/docs/.vitepress/dist/ms/examples/forms.html +0 -193
- package/docs/.vitepress/dist/ms/examples/hero.html +0 -142
- package/docs/.vitepress/dist/ms/examples/index.html +0 -76
- package/docs/.vitepress/dist/ms/examples/navigation.html +0 -130
- package/docs/.vitepress/dist/ms/guide/cdn.html +0 -54
- package/docs/.vitepress/dist/ms/guide/cli.html +0 -68
- package/docs/.vitepress/dist/ms/guide/configuration.html +0 -103
- package/docs/.vitepress/dist/ms/guide/dark-mode.html +0 -93
- package/docs/.vitepress/dist/ms/guide/getting-started.html +0 -71
- package/docs/.vitepress/dist/ms/guide/index.html +0 -27
- package/docs/.vitepress/dist/ms/guide/natural-scale.html +0 -46
- package/docs/.vitepress/dist/ms/guide/philosophy.html +0 -31
- package/docs/.vitepress/dist/ms/guide/responsive.html +0 -81
- package/docs/.vitepress/dist/ms/guide/states.html +0 -101
- package/docs/.vitepress/dist/ms/guide/tri-attribute.html +0 -69
- package/docs/.vitepress/dist/ms/index.html +0 -31
- package/docs/.vitepress/dist/ms/reference/breakpoints.html +0 -72
- package/docs/.vitepress/dist/ms/reference/colors.html +0 -41
- package/docs/.vitepress/dist/ms/reference/layout.html +0 -37
- package/docs/.vitepress/dist/ms/reference/space.html +0 -48
- package/docs/.vitepress/dist/ms/reference/spacing.html +0 -56
- package/docs/.vitepress/dist/ms/reference/visual.html +0 -46
- package/docs/.vitepress/dist/reference/breakpoints.html +0 -72
- package/docs/.vitepress/dist/reference/colors.html +0 -41
- package/docs/.vitepress/dist/reference/layout.html +0 -37
- package/docs/.vitepress/dist/reference/space.html +0 -48
- package/docs/.vitepress/dist/reference/spacing.html +0 -56
- package/docs/.vitepress/dist/reference/visual.html +0 -46
- package/docs/.vitepress/dist/vp-icons.css +0 -1
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Visibility
|
|
2
|
+
|
|
3
|
+
Control element visibility
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
```
|
|
7
|
+
layout="[visibility-value]"
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Values
|
|
11
|
+
|
|
12
|
+
| Value | CSS Output | Description |
|
|
13
|
+
|-------|------------|-------------|
|
|
14
|
+
| `visible` | `visibility: visible` | Element is visible |
|
|
15
|
+
| `invisible` | `visibility: hidden` | Element is invisible but takes space |
|
|
16
|
+
|
|
17
|
+
## Examples
|
|
18
|
+
|
|
19
|
+
```html
|
|
20
|
+
<div layout="invisible">Invisible but present</div>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Responsive
|
|
24
|
+
|
|
25
|
+
```html
|
|
26
|
+
<!-- Responsive example -->
|
|
27
|
+
<div layout="mob:... tab:... lap:...">
|
|
28
|
+
Responsive content
|
|
29
|
+
</div>
|
|
30
|
+
```
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Z Index
|
|
2
|
+
|
|
3
|
+
Control stacking order
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
```
|
|
7
|
+
layout="z:[value]"
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Values
|
|
11
|
+
|
|
12
|
+
| Value | CSS Output | Description |
|
|
13
|
+
|-------|------------|-------------|
|
|
14
|
+
| `base` | `z-index: var(--z-base)` | Base layer (0) |
|
|
15
|
+
| `low` | `z-index: var(--z-low)` | Low layer (10) |
|
|
16
|
+
| `mid` | `z-index: var(--z-mid)` | Middle layer (50) |
|
|
17
|
+
| `high` | `z-index: var(--z-high)` | High layer (100) |
|
|
18
|
+
| `top` | `z-index: var(--z-top)` | Top layer (9999) |
|
|
19
|
+
|
|
20
|
+
## Examples
|
|
21
|
+
|
|
22
|
+
```html
|
|
23
|
+
<div layout="z:top">On top</div>
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Responsive
|
|
27
|
+
|
|
28
|
+
```html
|
|
29
|
+
<!-- Responsive example -->
|
|
30
|
+
<div layout="mob:... tab:... lap:...">
|
|
31
|
+
Responsive content
|
|
32
|
+
</div>
|
|
33
|
+
```
|
package/docs/reference/layout.md
CHANGED
|
@@ -1,115 +1,73 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Layout Reference
|
|
2
2
|
|
|
3
3
|
The `layout` attribute controls structure, positioning, and flow.
|
|
4
4
|
|
|
5
|
-
## Display
|
|
5
|
+
## Display & Container
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
| `flex` | `display: flex` |
|
|
10
|
-
| `grid` | `display: grid` |
|
|
11
|
-
| `block` | `display: block` |
|
|
12
|
-
| `inline` | `display: inline-block` |
|
|
13
|
-
| `hidden` | `display: none` |
|
|
7
|
+
- [Display](./layout/display) - `flex`, `grid`, `block`, `hidden`
|
|
8
|
+
- [Container](./layout/container) - `container`
|
|
14
9
|
|
|
15
|
-
|
|
16
|
-
<div layout="flex">Flexbox container</div>
|
|
17
|
-
<div layout="grid">Grid container</div>
|
|
18
|
-
<div layout="hidden">Hidden element</div>
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## Flex Direction
|
|
22
|
-
|
|
23
|
-
| Value | CSS Output |
|
|
24
|
-
|-------|------------|
|
|
25
|
-
| `row` | `flex-direction: row` |
|
|
26
|
-
| `col` | `flex-direction: column` |
|
|
27
|
-
| `row-reverse` | `flex-direction: row-reverse` |
|
|
28
|
-
| `col-reverse` | `flex-direction: column-reverse` |
|
|
10
|
+
## Flex
|
|
29
11
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
12
|
+
- [Flex Shorthand](./layout/flex) - `flex:1`, `flex:auto`, `flex:none`
|
|
13
|
+
- [Flex Basis](./layout/flex-basis) - `basis:0`, `basis:full`, `basis:[value]`
|
|
14
|
+
- [Flex Direction](./layout/flex-direction) - `row`, `col`, `row-reverse`, `col-reverse`
|
|
15
|
+
- [Flex Wrap](./layout/flex-wrap) - `wrap`, `nowrap`, `wrap-reverse`
|
|
16
|
+
- [Flex Items](./layout/flex-items) - `grow`, `shrink`, `grow:0`, `shrink:0`
|
|
17
|
+
- [Order](./layout/order) - `order:first`, `order:last`, `order:1-12`
|
|
34
18
|
|
|
35
19
|
## Alignment
|
|
36
20
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
21
|
+
- [Justify Content](./layout/justify-content) - `justify:start`, `justify:center`, `justify:between`
|
|
22
|
+
- [Justify Items](./layout/justify-items) - `justify-items:start`, `justify-items:center`
|
|
23
|
+
- [Justify Self](./layout/justify-self) - `justify-self:start`, `justify-self:center`
|
|
24
|
+
- [Align Content](./layout/align-content) - `content:start`, `content:center`
|
|
25
|
+
- [Align Items](./layout/align-items) - `items:start`, `items:center`, `items:end`
|
|
26
|
+
- [Align Self](./layout/align-self) - `self:start`, `self:center`, `self:end`
|
|
27
|
+
- [Place Content](./layout/place-content) - `place-content:center`
|
|
28
|
+
- [Place Items](./layout/place-items) - `place-items:center`
|
|
29
|
+
- [Place Self](./layout/place-self) - `place-self:center`
|
|
30
|
+
- [Shorthand](./layout/shorthand-alignment) - `center`, `start`, `end`, `between`
|
|
31
|
+
|
|
32
|
+
## Grid
|
|
33
|
+
|
|
34
|
+
- [Grid Columns](./layout/grid-columns) - `grid-cols:1-12`
|
|
35
|
+
- [Grid Rows](./layout/grid-rows) - `grid-rows:1-6`
|
|
36
|
+
- [Column Span](./layout/grid-column-span) - `col-span:1-12`, `col-span:full`
|
|
37
|
+
- [Row Span](./layout/grid-row-span) - `row-span:1-6`, `row-span:full`
|
|
38
|
+
- [Auto Flow](./layout/grid-auto-flow) - `grid-flow:row`, `grid-flow:col`, `grid-flow:dense`
|
|
39
|
+
- [Auto Sizing](./layout/grid-auto-sizing) - `auto-cols:fr`, `auto-rows:min`
|
|
40
|
+
|
|
41
|
+
## Positioning
|
|
42
|
+
|
|
43
|
+
- [Position](./layout/position) - `static`, `relative`, `absolute`, `fixed`, `sticky`
|
|
44
|
+
- [Inset](./layout/inset) - `inset:0`, `top:0`, `right:0`, `bottom:0`, `left:0`
|
|
45
|
+
- [Z-Index](./layout/z-index) - `z:base`, `z:low`, `z:mid`, `z:high`, `z:top`
|
|
46
|
+
|
|
47
|
+
## Utilities
|
|
48
|
+
|
|
49
|
+
- [Visibility](./layout/visibility) - `visible`, `invisible`
|
|
50
|
+
- [Overflow](./layout/overflow) - `overflow:hidden`, `overflow:auto`, `overflow:scroll`
|
|
51
|
+
- [Overscroll](./layout/overscroll) - `overscroll:contain`, `overscroll:none`
|
|
52
|
+
- [Aspect Ratio](./layout/aspect-ratio) - `aspect:square`, `aspect:video`
|
|
53
|
+
- [Columns](./layout/columns) - `cols:1-4`
|
|
54
|
+
- [Object Fit](./layout/object-fit) - `object:cover`, `object:contain`
|
|
55
|
+
- [Object Position](./layout/object-position) - `object-pos:top`, `object-pos:center`
|
|
56
|
+
- [Float & Clear](./layout/float-clear) - `float:left`, `float:right`, `clear:both`
|
|
57
|
+
- [Isolation](./layout/isolation) - `isolate`
|
|
58
|
+
- [Box Sizing](./layout/box-sizing) - `box-border`, `box-content`
|
|
59
|
+
|
|
60
|
+
## Tables
|
|
61
|
+
|
|
62
|
+
- [Border Collapse](./layout/border-collapse) - `border-collapse`, `border-separate`
|
|
63
|
+
- [Border Spacing](./layout/border-spacing) - `border-spacing:0`, `border-spacing:[value]`
|
|
64
|
+
- [Table Layout](./layout/table-layout) - `table-auto`, `table-fixed`
|
|
65
|
+
- [Caption Side](./layout/caption-side) - `caption-top`, `caption-bottom`
|
|
66
|
+
|
|
67
|
+
## Quick Example
|
|
70
68
|
|
|
71
69
|
```html
|
|
72
|
-
<
|
|
73
|
-
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
## Z-Index
|
|
77
|
-
|
|
78
|
-
| Value | CSS Output |
|
|
79
|
-
|-------|------------|
|
|
80
|
-
| `z:base` | `z-index: 0` |
|
|
81
|
-
| `z:low` | `z-index: 10` |
|
|
82
|
-
| `z:mid` | `z-index: 50` |
|
|
83
|
-
| `z:high` | `z-index: 100` |
|
|
84
|
-
| `z:top` | `z-index: 9999` |
|
|
85
|
-
|
|
86
|
-
```html
|
|
87
|
-
<nav layout="fixed z:top">Always on top</nav>
|
|
88
|
-
<div layout="absolute z:high">High z-index</div>
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
## Overflow
|
|
92
|
-
|
|
93
|
-
| Value | CSS Output |
|
|
94
|
-
|-------|------------|
|
|
95
|
-
| `overflow:hidden` | `overflow: hidden` |
|
|
96
|
-
| `overflow:auto` | `overflow: auto` |
|
|
97
|
-
| `overflow:scroll` | `overflow: scroll` |
|
|
98
|
-
|
|
99
|
-
```html
|
|
100
|
-
<div layout="overflow:hidden">Clipped content</div>
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
## Combining Values
|
|
104
|
-
|
|
105
|
-
Combine multiple layout values with spaces:
|
|
106
|
-
|
|
107
|
-
```html
|
|
108
|
-
<div layout="flex col center wrap">
|
|
109
|
-
Vertical, centered, wrapping flexbox
|
|
70
|
+
<div layout="flex col tab:row center wrap" space="g:medium">
|
|
71
|
+
Responsive flexbox layout
|
|
110
72
|
</div>
|
|
111
|
-
|
|
112
|
-
<nav layout="flex between fixed z:top">
|
|
113
|
-
Fixed nav with space-between
|
|
114
|
-
</nav>
|
|
115
73
|
```
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Arbitrary Values
|
|
2
|
+
|
|
3
|
+
Use brackets `[value]` for specific values beyond the scale.
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
property:[value]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
The value inside brackets is passed directly to CSS.
|
|
12
|
+
|
|
13
|
+
## Examples
|
|
14
|
+
|
|
15
|
+
```html
|
|
16
|
+
<!-- Exact pixel values -->
|
|
17
|
+
<div space="w:[350px]">350 pixels wide</div>
|
|
18
|
+
|
|
19
|
+
<!-- Viewport units -->
|
|
20
|
+
<div space="h:[50vh]">50% viewport height</div>
|
|
21
|
+
|
|
22
|
+
<!-- Multiple values -->
|
|
23
|
+
<div space="p:[20px_40px]">20px vertical, 40px horizontal</div>
|
|
24
|
+
|
|
25
|
+
<!-- Rem units -->
|
|
26
|
+
<div space="m-t:[5rem]">5rem top margin</div>
|
|
27
|
+
|
|
28
|
+
<!-- Calc expressions -->
|
|
29
|
+
<div space="w:[calc(100%_-_40px)]">Full width minus 40px</div>
|
|
30
|
+
|
|
31
|
+
<!-- Percentage -->
|
|
32
|
+
<div space="max-w:[80%]">80% max width</div>
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Notes
|
|
36
|
+
|
|
37
|
+
- Use underscores `_` instead of spaces inside brackets
|
|
38
|
+
- Any valid CSS value is accepted
|
|
39
|
+
- Useful when scale values don't match your exact needs
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Gap
|
|
2
|
+
|
|
3
|
+
Add gap between flex/grid items
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
```
|
|
7
|
+
space="g:[value]" or space="g-{axis}:[value]"
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Values
|
|
11
|
+
|
|
12
|
+
| Property | CSS Output | Description |
|
|
13
|
+
|--------|------------|-------------|
|
|
14
|
+
| `g` | `gap: var(--s-{value})` | All gaps |
|
|
15
|
+
| `g-x` | `column-gap: var(--s-{value})` | Column gap |
|
|
16
|
+
| `g-y` | `row-gap: var(--s-{value})` | Row gap |
|
|
17
|
+
|
|
18
|
+
## Scale Values
|
|
19
|
+
|
|
20
|
+
`none`, `tiny`, `small`, `medium`, `big`, `giant`, `vast`
|
|
21
|
+
|
|
22
|
+
## Examples
|
|
23
|
+
|
|
24
|
+
```html
|
|
25
|
+
<div layout="flex" space="g:medium">Gap between items</div>
|
|
26
|
+
<div layout="grid" space="g-x:big g-y:small">Grid gaps</div>
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Arbitrary Values
|
|
30
|
+
|
|
31
|
+
Supports custom values using bracket syntax:
|
|
32
|
+
|
|
33
|
+
```html
|
|
34
|
+
<div space="gap:[custom-value]">Custom</div>
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Responsive
|
|
38
|
+
|
|
39
|
+
```html
|
|
40
|
+
<!-- Responsive example -->
|
|
41
|
+
<div space="mob:... tab:... lap:...">
|
|
42
|
+
Responsive content
|
|
43
|
+
</div>
|
|
44
|
+
```
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Height
|
|
2
|
+
|
|
3
|
+
Set element height
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
```
|
|
7
|
+
space="h:[value]"
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Values
|
|
11
|
+
|
|
12
|
+
| Property | CSS Output | Description |
|
|
13
|
+
|--------|------------|-------------|
|
|
14
|
+
| `h` | `height: var(--s-{value})` | Height |
|
|
15
|
+
| `min-h` | `min-height: var(--s-{value})` | Minimum height |
|
|
16
|
+
| `max-h` | `max-height: var(--s-{value})` | Maximum height |
|
|
17
|
+
|
|
18
|
+
## Scale Values
|
|
19
|
+
|
|
20
|
+
`none`, `tiny`, `small`, `medium`, `big`, `giant`, `vast`
|
|
21
|
+
|
|
22
|
+
## Examples
|
|
23
|
+
|
|
24
|
+
```html
|
|
25
|
+
<div space="h:[100vh]">Full viewport height</div>
|
|
26
|
+
<div space="min-h:[400px]">Min height</div>
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Arbitrary Values
|
|
30
|
+
|
|
31
|
+
Supports custom values using bracket syntax:
|
|
32
|
+
|
|
33
|
+
```html
|
|
34
|
+
<div space="height:[custom-value]">Custom</div>
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Responsive
|
|
38
|
+
|
|
39
|
+
```html
|
|
40
|
+
<!-- Responsive example -->
|
|
41
|
+
<div space="mob:... tab:... lap:...">
|
|
42
|
+
Responsive content
|
|
43
|
+
</div>
|
|
44
|
+
```
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Margin
|
|
2
|
+
|
|
3
|
+
Add margin to elements
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
```
|
|
7
|
+
space="m:[value]" or space="m-{side}:[value]"
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Values
|
|
11
|
+
|
|
12
|
+
| Property | CSS Output | Description |
|
|
13
|
+
|--------|------------|-------------|
|
|
14
|
+
| `m` | `margin: var(--s-{value})` | All sides |
|
|
15
|
+
| `m-t` | `margin-top: var(--s-{value})` | Top |
|
|
16
|
+
| `m-r` | `margin-right: var(--s-{value})` | Right |
|
|
17
|
+
| `m-b` | `margin-bottom: var(--s-{value})` | Bottom |
|
|
18
|
+
| `m-l` | `margin-left: var(--s-{value})` | Left |
|
|
19
|
+
| `m-x` | `margin-left: var(--s-{value}) margin-right: var(--s-{value})` | Horizontal |
|
|
20
|
+
| `m-y` | `margin-top: var(--s-{value}) margin-bottom: var(--s-{value})` | Vertical |
|
|
21
|
+
|
|
22
|
+
## Scale Values
|
|
23
|
+
|
|
24
|
+
`none`, `tiny`, `small`, `medium`, `big`, `giant`, `vast`, `auto`
|
|
25
|
+
|
|
26
|
+
## Examples
|
|
27
|
+
|
|
28
|
+
```html
|
|
29
|
+
<div space="m:medium">Margin all sides</div>
|
|
30
|
+
<div space="m-x:auto">Centered horizontally</div>
|
|
31
|
+
<div space="m-t:big">Top margin</div>
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Arbitrary Values
|
|
35
|
+
|
|
36
|
+
Supports custom values using bracket syntax:
|
|
37
|
+
|
|
38
|
+
```html
|
|
39
|
+
<div space="margin:[custom-value]">Custom</div>
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Responsive
|
|
43
|
+
|
|
44
|
+
```html
|
|
45
|
+
<!-- Responsive example -->
|
|
46
|
+
<div space="mob:... tab:... lap:...">
|
|
47
|
+
Responsive content
|
|
48
|
+
</div>
|
|
49
|
+
```
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Padding
|
|
2
|
+
|
|
3
|
+
Add padding to elements
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
```
|
|
7
|
+
space="p:[value]" or space="p-{side}:[value]"
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Values
|
|
11
|
+
|
|
12
|
+
| Property | CSS Output | Description |
|
|
13
|
+
|--------|------------|-------------|
|
|
14
|
+
| `p` | `padding: var(--s-{value})` | All sides |
|
|
15
|
+
| `p-t` | `padding-top: var(--s-{value})` | Top |
|
|
16
|
+
| `p-r` | `padding-right: var(--s-{value})` | Right |
|
|
17
|
+
| `p-b` | `padding-bottom: var(--s-{value})` | Bottom |
|
|
18
|
+
| `p-l` | `padding-left: var(--s-{value})` | Left |
|
|
19
|
+
| `p-x` | `padding-left: var(--s-{value}) padding-right: var(--s-{value})` | Horizontal |
|
|
20
|
+
| `p-y` | `padding-top: var(--s-{value}) padding-bottom: var(--s-{value})` | Vertical |
|
|
21
|
+
|
|
22
|
+
## Scale Values
|
|
23
|
+
|
|
24
|
+
`none`, `tiny`, `small`, `medium`, `big`, `giant`, `vast`
|
|
25
|
+
|
|
26
|
+
## Examples
|
|
27
|
+
|
|
28
|
+
```html
|
|
29
|
+
<div space="p:medium">Padding all sides</div>
|
|
30
|
+
<div space="p-x:big p-y:small">Different padding</div>
|
|
31
|
+
<div space="p:[20px]">Custom padding</div>
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Arbitrary Values
|
|
35
|
+
|
|
36
|
+
Supports custom values using bracket syntax:
|
|
37
|
+
|
|
38
|
+
```html
|
|
39
|
+
<div space="padding:[custom-value]">Custom</div>
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Responsive
|
|
43
|
+
|
|
44
|
+
```html
|
|
45
|
+
<!-- Responsive example -->
|
|
46
|
+
<div space="mob:... tab:... lap:...">
|
|
47
|
+
Responsive content
|
|
48
|
+
</div>
|
|
49
|
+
```
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Scale Reference
|
|
2
|
+
|
|
3
|
+
The natural scale used for spacing properties.
|
|
4
|
+
|
|
5
|
+
## Scale Values
|
|
6
|
+
|
|
7
|
+
| Keyword | Default Value |
|
|
8
|
+
|---------|---------------|
|
|
9
|
+
| `none` | 0px |
|
|
10
|
+
| `tiny` | 4px |
|
|
11
|
+
| `small` | 8px |
|
|
12
|
+
| `medium` | 16px |
|
|
13
|
+
| `big` | 32px |
|
|
14
|
+
| `giant` | 64px |
|
|
15
|
+
| `vast` | 128px |
|
|
16
|
+
|
|
17
|
+
## Customization
|
|
18
|
+
|
|
19
|
+
Override scale values in your configuration:
|
|
20
|
+
|
|
21
|
+
```js
|
|
22
|
+
// senangstart.config.js
|
|
23
|
+
module.exports = {
|
|
24
|
+
scale: {
|
|
25
|
+
tiny: '2px',
|
|
26
|
+
small: '4px',
|
|
27
|
+
medium: '8px',
|
|
28
|
+
big: '16px',
|
|
29
|
+
giant: '32px',
|
|
30
|
+
vast: '64px'
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Usage
|
|
36
|
+
|
|
37
|
+
All spacing properties use the same scale:
|
|
38
|
+
|
|
39
|
+
```html
|
|
40
|
+
<div space="p:medium m:small g:big">
|
|
41
|
+
Consistent spacing using the natural scale
|
|
42
|
+
</div>
|
|
43
|
+
```
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Width
|
|
2
|
+
|
|
3
|
+
Set element width
|
|
4
|
+
|
|
5
|
+
## Syntax
|
|
6
|
+
```
|
|
7
|
+
space="w:[value]"
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Values
|
|
11
|
+
|
|
12
|
+
| Property | CSS Output | Description |
|
|
13
|
+
|--------|------------|-------------|
|
|
14
|
+
| `w` | `width: var(--s-{value})` | Width |
|
|
15
|
+
| `min-w` | `min-width: var(--s-{value})` | Minimum width |
|
|
16
|
+
| `max-w` | `max-width: var(--s-{value})` | Maximum width |
|
|
17
|
+
|
|
18
|
+
## Scale Values
|
|
19
|
+
|
|
20
|
+
`none`, `tiny`, `small`, `medium`, `big`, `giant`, `vast`
|
|
21
|
+
|
|
22
|
+
## Examples
|
|
23
|
+
|
|
24
|
+
```html
|
|
25
|
+
<div space="w:[100%]">Full width</div>
|
|
26
|
+
<div space="max-w:[1200px]">Max width container</div>
|
|
27
|
+
<div space="min-w:[300px]">Min width</div>
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Arbitrary Values
|
|
31
|
+
|
|
32
|
+
Supports custom values using bracket syntax:
|
|
33
|
+
|
|
34
|
+
```html
|
|
35
|
+
<div space="width:[custom-value]">Custom</div>
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Responsive
|
|
39
|
+
|
|
40
|
+
```html
|
|
41
|
+
<!-- Responsive example -->
|
|
42
|
+
<div space="mob:... tab:... lap:...">
|
|
43
|
+
Responsive content
|
|
44
|
+
</div>
|
|
45
|
+
```
|
package/docs/reference/space.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Space Reference
|
|
2
2
|
|
|
3
3
|
The `space` attribute controls sizing and spacing.
|
|
4
4
|
|
|
@@ -12,110 +12,26 @@ The `space` attribute controls sizing and spacing.
|
|
|
12
12
|
|
|
13
13
|
**Scale values:** `none`, `tiny`, `small`, `medium`, `big`, `giant`, `vast`
|
|
14
14
|
|
|
15
|
-
##
|
|
15
|
+
## Spacing
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
| `p-t` | `padding-top` |
|
|
21
|
-
| `p-r` | `padding-right` |
|
|
22
|
-
| `p-b` | `padding-bottom` |
|
|
23
|
-
| `p-l` | `padding-left` |
|
|
24
|
-
| `p-x` | `padding-left` + `padding-right` |
|
|
25
|
-
| `p-y` | `padding-top` + `padding-bottom` |
|
|
17
|
+
- [Padding](./space/padding) - Inner spacing (`p`, `p-t`, `p-r`, `p-b`, `p-l`, `p-x`, `p-y`)
|
|
18
|
+
- [Margin](./space/margin) - Outer spacing (`m`, `m-t`, `m-r`, `m-b`, `m-l`, `m-x`, `m-y`)
|
|
19
|
+
- [Gap](./space/gap) - Flex/grid spacing (`g`, `g-x`, `g-y`)
|
|
26
20
|
|
|
27
|
-
|
|
28
|
-
<div space="p:medium">All sides</div>
|
|
29
|
-
<div space="p-x:big p-y:small">Horizontal/vertical</div>
|
|
30
|
-
<div space="p-t:tiny p-b:giant">Top and bottom</div>
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
## Margin
|
|
34
|
-
|
|
35
|
-
| Property | CSS Output |
|
|
36
|
-
|----------|------------|
|
|
37
|
-
| `m` | `margin` (all sides) |
|
|
38
|
-
| `m-t` | `margin-top` |
|
|
39
|
-
| `m-r` | `margin-right` |
|
|
40
|
-
| `m-b` | `margin-bottom` |
|
|
41
|
-
| `m-l` | `margin-left` |
|
|
42
|
-
| `m-x` | `margin-left` + `margin-right` |
|
|
43
|
-
| `m-y` | `margin-top` + `margin-bottom` |
|
|
44
|
-
|
|
45
|
-
```html
|
|
46
|
-
<div space="m:medium">All sides</div>
|
|
47
|
-
<div space="m-b:big">Bottom margin</div>
|
|
48
|
-
<div space="m-x:auto">Center horizontally</div>
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
## Gap
|
|
52
|
-
|
|
53
|
-
| Property | CSS Output |
|
|
54
|
-
|----------|------------|
|
|
55
|
-
| `g` | `gap` (flex/grid) |
|
|
56
|
-
| `g-x` | `column-gap` |
|
|
57
|
-
| `g-y` | `row-gap` |
|
|
58
|
-
|
|
59
|
-
```html
|
|
60
|
-
<div layout="flex" space="g:small">Small gap</div>
|
|
61
|
-
<div layout="grid" space="g-x:big g-y:small">Different gaps</div>
|
|
62
|
-
```
|
|
21
|
+
## Dimensions
|
|
63
22
|
|
|
64
|
-
|
|
23
|
+
- [Width](./space/width) - Element width (`w`, `min-w`, `max-w`)
|
|
24
|
+
- [Height](./space/height) - Element height (`h`, `min-h`, `max-h`)
|
|
65
25
|
|
|
66
|
-
|
|
67
|
-
|----------|------------|
|
|
68
|
-
| `w` | `width` |
|
|
69
|
-
| `h` | `height` |
|
|
70
|
-
| `min-w` | `min-width` |
|
|
71
|
-
| `max-w` | `max-width` |
|
|
72
|
-
| `min-h` | `min-height` |
|
|
73
|
-
| `max-h` | `max-height` |
|
|
26
|
+
## Reference
|
|
74
27
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
<div space="max-w:[1200px]">Max width container</div>
|
|
78
|
-
<div space="min-h:[100vh]">Full viewport height</div>
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
## Arbitrary Values (Escape Hatch)
|
|
82
|
-
|
|
83
|
-
Use brackets `[value]` for specific values:
|
|
84
|
-
|
|
85
|
-
```html
|
|
86
|
-
<div space="w:[350px]">350 pixels</div>
|
|
87
|
-
<div space="h:[50vh]">50% viewport height</div>
|
|
88
|
-
<div space="p:[20px_40px]">20px vertical, 40px horizontal</div>
|
|
89
|
-
<div space="m-t:[5rem]">5rem top margin</div>
|
|
90
|
-
```
|
|
28
|
+
- [Arbitrary Values](./space/arbitrary-values) - Escape hatch syntax `[value]`
|
|
29
|
+
- [Scale Reference](./space/scale-reference) - Scale keyword values
|
|
91
30
|
|
|
92
|
-
##
|
|
31
|
+
## Quick Example
|
|
93
32
|
|
|
94
33
|
```html
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
Grows with screen size
|
|
98
|
-
</section>
|
|
99
|
-
|
|
100
|
-
<!-- Responsive width -->
|
|
101
|
-
<div space="w:[100%] tab:w:[50%] lap:w:[33%]">
|
|
102
|
-
Full → half → third
|
|
103
|
-
</div>
|
|
104
|
-
|
|
105
|
-
<!-- Responsive gap -->
|
|
106
|
-
<div layout="flex" space="g:small tab:g:medium lap:g:big">
|
|
107
|
-
Growing gaps
|
|
34
|
+
<div space="p:medium m-b:big w:[100%] max-w:[800px]">
|
|
35
|
+
Card with medium padding, big bottom margin, and constrained width
|
|
108
36
|
</div>
|
|
109
37
|
```
|
|
110
|
-
|
|
111
|
-
## Scale Reference
|
|
112
|
-
|
|
113
|
-
| Keyword | Default Value |
|
|
114
|
-
|---------|---------------|
|
|
115
|
-
| `none` | 0px |
|
|
116
|
-
| `tiny` | 4px |
|
|
117
|
-
| `small` | 8px |
|
|
118
|
-
| `medium` | 16px |
|
|
119
|
-
| `big` | 32px |
|
|
120
|
-
| `giant` | 64px |
|
|
121
|
-
| `vast` | 128px |
|