@medyll/cssfabric 0.1.1 → 0.2.1
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/main.yml +33 -0
- package/.idea/cssfabric.iml +4 -1
- package/README.md +38 -240
- package/bin/index.js +2 -1
- package/{cssfabric.json → cssfabric.sass.js} +3 -3
- package/gulpfile.js +77 -143
- package/package.json +69 -69
- package/src/app.css +107 -0
- package/src/app.d.ts +15 -0
- package/src/app.html +13 -0
- package/src/components/Header.svelte +17 -0
- package/src/components/HeaderSiteTitle.svelte +12 -0
- package/src/components/InnerMenu.svelte +27 -0
- package/src/components/SubHeader.svelte +10 -0
- package/src/components/SubHeaderH.svelte +3 -0
- package/src/components/SubSubHeader.svelte +22 -0
- package/src/components/demo/DemoElement.svelte +86 -0
- package/src/components/demo/elements/DemoElementBackgroundColor.svelte +7 -0
- package/src/components/demo/elements/DemoElementBorder.svelte +8 -0
- package/src/components/demo/elements/DemoElementBorderColor.svelte +8 -0
- package/src/components/demo/elements/DemoElementColor.svelte +8 -0
- package/src/components/demo/elements/DemoElementGrid.svelte +53 -0
- package/src/components/demo/elements/DemoElementMargin.svelte +8 -0
- package/src/components/demo/elements/DemoElementPadding.svelte +10 -0
- package/src/components/demo/elements/DemoElementScale.svelte +9 -0
- package/src/components/demo/elements/DemoElementTable.svelte +34 -0
- package/src/components/demo/elements/DemoElementText.svelte +10 -0
- package/src/components/demo/proxy/ProxyDsp.svelte +12 -0
- package/src/components/demo/proxy/ProxyDspArray.svelte +19 -0
- package/src/components/demo/proxy/ProxyDspObject.svelte +17 -0
- package/src/components/docs/Docs.svelte +97 -0
- package/src/components/docs/DocsClassNames.svelte +34 -0
- package/src/components/docs/DocsDemo.svelte +84 -0
- package/src/components/header/Header.svelte +105 -0
- package/src/components/header/svelte-logo.svg +1 -0
- package/src/cssfabric/modules/_cssfabric-config.scss +27 -17
- package/src/cssfabric/modules/base/base.scss +1 -6
- package/src/cssfabric/modules/box/_box-build.scss +22 -3
- package/src/cssfabric/modules/box/_box-vars.scss +1 -1
- package/src/cssfabric/modules/color/_color-build.scss +4 -0
- package/src/cssfabric/modules/css-fabric.scss +1 -1
- package/src/cssfabric/modules/menu/_menu-build.scss +9 -8
- package/src/cssfabric/modules/scale/_scale-vars.scss +12 -2
- package/src/cssfabric/modules/theme/_theme-build.scss +21 -24
- package/src/cssfabric/modules/theme/_theme-vars.scss +9 -18
- package/src/cssfabric/modules/vars.scss +7 -8
- package/src/hooks.ts +27 -0
- package/src/index.ts +1 -1
- package/src/lib/_generated/cssFabric.vars.json +13 -0
- package/src/{_generated → lib/_generated}/export.variables.md +0 -0
- package/src/{_generated → lib/_generated}/index.d.ts +0 -0
- package/src/{_generated → lib/_generated}/readme.md +0 -0
- package/src/lib/init/importCssVars.ts +3 -0
- package/src/{scripts → lib/scripts}/cssfabric.ts +1 -1
- package/src/{scripts → lib/scripts}/cssfabricClassNames.ts +0 -0
- package/src/{scripts → lib/scripts}/index.d.ts +0 -0
- package/src/{scripts → lib/scripts}/index.ts +0 -0
- package/src/lib/scripts/utils.ts +37 -0
- package/{lib/styles/core → src/lib/styles}/animation/animation.css +0 -0
- package/{lib/styles/core → src/lib/styles}/animation/animation.min.css +0 -0
- package/{lib/styles/core → src/lib/styles}/base/base.css +0 -7
- package/src/lib/styles/base/base.min.css +1 -0
- package/{lib/styles/core → src/lib/styles}/box/box.css +127 -111
- package/src/lib/styles/box/box.min.css +1 -0
- package/{lib/styles/core → src/lib/styles}/box/box.responsive.css +508 -444
- package/src/lib/styles/box/box.responsive.min.css +1 -0
- package/{lib/styles/core → src/lib/styles}/color/color.css +12 -12
- package/src/lib/styles/color/color.min.css +1 -0
- package/{lib/styles/core → src/lib/styles}/color/color.responsive.css +48 -48
- package/src/lib/styles/color/color.responsive.min.css +1 -0
- package/src/lib/styles/cssfabric.css +61792 -0
- package/src/lib/styles/cssfabric.min.css +168 -0
- package/src/lib/styles/cssfabric.responsive.css +200596 -0
- package/src/lib/styles/cssfabric.responsive.min.css +108 -0
- package/{lib/styles/core → src/lib/styles}/flex/flex.css +0 -0
- package/src/lib/styles/flex/flex.min.css +1 -0
- package/{lib/styles/core → src/lib/styles}/flex/flex.responsive.css +0 -0
- package/src/lib/styles/flex/flex.responsive.min.css +1 -0
- package/{lib/styles/core → src/lib/styles}/grid/grid.css +0 -0
- package/src/lib/styles/grid/grid.min.css +1 -0
- package/{lib/styles/core → src/lib/styles}/grid/grid.responsive.css +0 -0
- package/src/lib/styles/grid/grid.responsive.min.css +1 -0
- package/{lib/styles/core → src/lib/styles}/menu/menu.css +16 -12
- package/src/lib/styles/menu/menu.min.css +1 -0
- package/{lib/styles/core → src/lib/styles}/menu/menu.responsive.css +64 -48
- package/src/lib/styles/menu/menu.responsive.min.css +1 -0
- package/{lib/styles/core → src/lib/styles}/overflow/overflow.css +0 -0
- package/{lib/styles/core → src/lib/styles}/overflow/overflow.min.css +0 -0
- package/{lib/styles/core → src/lib/styles}/overflow/overflow.responsive.css +0 -0
- package/src/lib/styles/overflow/overflow.responsive.min.css +1 -0
- package/{lib/styles/core → src/lib/styles}/scale/scale.css +0 -0
- package/{lib/styles/core → src/lib/styles}/scale/scale.min.css +0 -0
- package/{lib/styles/core → src/lib/styles}/scale/scale.responsive.css +0 -0
- package/src/lib/styles/scale/scale.responsive.min.css +1 -0
- package/{lib/styles/core → src/lib/styles}/table/table.css +0 -0
- package/src/lib/styles/table/table.min.css +1 -0
- package/{lib/styles/core → src/lib/styles}/table/table.responsive.css +0 -0
- package/src/lib/styles/table/table.responsive.min.css +1 -0
- package/{lib/styles/core → src/lib/styles}/text/text.css +0 -0
- package/src/lib/styles/text/text.min.css +1 -0
- package/{lib/styles/core → src/lib/styles}/text/text.responsive.css +0 -0
- package/src/lib/styles/text/text.responsive.min.css +1 -0
- package/{lib/styles/core → src/lib/styles}/theme/theme.css +0 -0
- package/{lib/styles/core → src/lib/styles}/theme/theme.min.css +0 -0
- package/{lib/styles/core → src/lib/styles}/vars.css +19 -15
- package/src/lib/styles/vars.min.css +1 -0
- package/{lib/styles/core → src/lib/styles}/zindex/zindex.css +0 -0
- package/{lib/styles/core → src/lib/styles}/zindex/zindex.min.css +0 -0
- package/src/routes/__layout.svelte +91 -0
- package/src/routes/cssfabric-modules/[module]/__layout.svelte +75 -0
- package/src/routes/cssfabric-modules/[module]/classnames/index.svelte +24 -0
- package/src/routes/cssfabric-modules/[module]/demo/index.svelte +24 -0
- package/src/routes/cssfabric-modules/[module]/docs/index.svelte +30 -0
- package/src/routes/cssfabric-modules/[module]/index.svelte +3 -0
- package/src/routes/cssfabric-modules/__layout.svelte +26 -0
- package/src/routes/cssfabric-modules/index.svelte +0 -0
- package/src/routes/index.svelte +62 -0
- package/src/routes/installation/__layout.svelte +1 -0
- package/src/routes/installation/index.svelte +28 -0
- package/src/scripts/utils.ts +26 -37
- package/src/utils.ts +71 -0
- package/static/favicon.png +0 -0
- package/static/robots.txt +3 -0
- package/svelte.config.js +25 -0
- package/tsconfig.json +3 -46
- package/webpack.config.js +2 -0
- package/cssfabric.config.js +0 -3
- package/lib/_generated/export.variables.json +0 -583
- package/lib/index.d.ts +0 -2
- package/lib/index.js +0 -7
- package/lib/scripts/cssfabric.d.ts +0 -24
- package/lib/scripts/cssfabric.js +0 -48
- package/lib/scripts/cssfabricClassNames.d.ts +0 -14
- package/lib/scripts/cssfabricClassNames.js +0 -150
- package/lib/scripts/index.d.ts +0 -2
- package/lib/scripts/index.js +0 -6
- package/lib/scripts/utils.d.ts +0 -5
- package/lib/scripts/utils.js +0 -40
- package/lib/styles/core/base/base.min.css +0 -1
- package/lib/styles/core/box/box.min.css +0 -1
- package/lib/styles/core/box/box.responsive.min.css +0 -1
- package/lib/styles/core/color/color.min.css +0 -1
- package/lib/styles/core/color/color.responsive.min.css +0 -1
- package/lib/styles/core/flex/flex.min.css +0 -1
- package/lib/styles/core/flex/flex.responsive.min.css +0 -1
- package/lib/styles/core/grid/grid.min.css +0 -1
- package/lib/styles/core/grid/grid.responsive.min.css +0 -1
- package/lib/styles/core/main.min.css +0 -1
- package/lib/styles/core/menu/menu.min.css +0 -1
- package/lib/styles/core/menu/menu.responsive.min.css +0 -1
- package/lib/styles/core/overflow/overflow.responsive.min.css +0 -1
- package/lib/styles/core/scale/scale.responsive.min.css +0 -1
- package/lib/styles/core/table/table.min.css +0 -1
- package/lib/styles/core/table/table.responsive.min.css +0 -1
- package/lib/styles/core/text/text.min.css +0 -1
- package/lib/styles/core/text/text.responsive.min.css +0 -1
- package/lib/styles/core/vars.min.css +0 -1
- package/lib/styles/cssfabric.css +0 -5143
- package/lib/styles/cssfabric.min.css +0 -15
- package/lib/styles/cssfabric.responsive.css +0 -16679
- package/lib/styles/cssfabric.responsive.min.css +0 -9
- package/src/_generated/export.variables.json +0 -759
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--theme-color-primary: #201700;--theme-color-primary-light: #6d4e00;--theme-color-primary-lighter: #b98500;--theme-color-primary-dark: black;--theme-color-primary-darker: black;--theme-color-primary-complement: #000920;--theme-color-primary-invert: #dfe8ff;--theme-color-primary-alpha-low: rgba(32, 23, 0, 0.8);--theme-color-primary-alpha: rgba(32, 23, 0, 0.3);--theme-color-primary-alpha-high: rgba(32, 23, 0, 0.1);--theme-color-secondary: #D14B02;--theme-color-secondary-light: #fd7023;--theme-color-secondary-lighter: #fea16e;--theme-color-secondary-dark: #9e3902;--theme-color-secondary-darker: #6c2701;--theme-color-secondary-complement: #0288d1;--theme-color-secondary-invert: #2eb4fd;--theme-color-secondary-alpha-low: rgba(209, 75, 2, 0.8);--theme-color-secondary-alpha: rgba(209, 75, 2, 0.3);--theme-color-secondary-alpha-high: rgba(209, 75, 2, 0.1);--theme-color-tertiary: #88D102;--theme-color-tertiary-light: #b0fd23;--theme-color-tertiary-lighter: #cbfe6e;--theme-color-tertiary-dark: #679e02;--theme-color-tertiary-darker: #466c01;--theme-color-tertiary-complement: #4b02d1;--theme-color-tertiary-invert: #772efd;--theme-color-tertiary-alpha-low: rgba(136, 209, 2, 0.8);--theme-color-tertiary-alpha: rgba(136, 209, 2, 0.3);--theme-color-tertiary-alpha-high: rgba(136, 209, 2, 0.1);--color-scheme-discrete: #ccc;--color-scheme-discrete-light: #f2f2f2;--color-scheme-discrete-dark: #b3b3b3;--color-scheme-discrete-alpha: rgba(204, 204, 204, 0.3);--color-scheme-discrete-alpha-low: rgba(204, 204, 204, 0.8);--color-scheme-discrete-alpha-high: rgba(204, 204, 204, 0.1);--color-scheme-success: green;--color-scheme-success-light: #00cd00;--color-scheme-success-dark: #004d00;--color-scheme-success-alpha: rgba(0, 128, 0, 0.3);--color-scheme-success-alpha-low: rgba(0, 128, 0, 0.8);--color-scheme-success-alpha-high: rgba(0, 128, 0, 0.1);--color-scheme-info: #FFDD57FF;--color-scheme-info-light: #ffeca4;--color-scheme-info-dark: #ffd324;--color-scheme-info-alpha: rgba(255, 221, 87, 0.3);--color-scheme-info-alpha-low: rgba(255, 221, 87, 0.8);--color-scheme-info-alpha-high: rgba(255, 221, 87, 0.1);--color-scheme-warning: #e6b905;--color-scheme-warning-light: #fbd53c;--color-scheme-warning-dark: #b49104;--color-scheme-warning-alpha: rgba(230, 185, 5, 0.3);--color-scheme-warning-alpha-low: rgba(230, 185, 5, 0.8);--color-scheme-warning-alpha-high: rgba(230, 185, 5, 0.1);--color-scheme-alert: #ff7300;--color-scheme-alert-light: #ff9d4d;--color-scheme-alert-dark: #cc5c00;--color-scheme-alert-alpha: rgba(255, 115, 0, 0.3);--color-scheme-alert-alpha-low: rgba(255, 115, 0, 0.8);--color-scheme-alert-alpha-high: rgba(255, 115, 0, 0.1);--color-scheme-error: red;--color-scheme-error-light: #ff4d4d;--color-scheme-error-dark: #cc0000;--color-scheme-error-alpha: rgba(255, 0, 0, 0.3);--color-scheme-error-alpha-low: rgba(255, 0, 0, 0.8);--color-scheme-error-alpha-high: rgba(255, 0, 0, 0.1);--color-palette-yellow: #ffb900;--color-palette-yellow-alpha: rgba(255, 185, 0, 0.3);--color-palette-yellow-alpha-low: rgba(255, 185, 0, 0.8);--color-palette-yellow-alpha-high: rgba(255, 185, 0, 0.1);--color-palette-yellow-lighter: #ffe399;--color-palette-yellow-light: #ffce4d;--color-palette-yellow-dark: #cc9400;--color-palette-yellow-darker: #996f00;--color-palette-yellow-complement: #0046ff;--color-palette-yellow-complement-alpha: rgba(0, 70, 255, 0.3);--color-palette-yellow-complement-alpha-low: rgba(0, 70, 255, 0.8);--color-palette-yellow-complement-alpha-high: rgba(0, 70, 255, 0.1);--color-palette-yellow-invert: #0046ff;--color-palette-yellow-invert-alpha: rgba(0, 70, 255, 0.3);--color-palette-yellow-invert-alpha-low: rgba(0, 70, 255, 0.8);--color-palette-yellow-invert-alpha-high: rgba(0, 70, 255, 0.1);--color-palette-orange: #d83b01;--color-palette-orange-alpha: rgba(216, 59, 1, 0.3);--color-palette-orange-alpha-low: rgba(216, 59, 1, 0.8);--color-palette-orange-alpha-high: rgba(216, 59, 1, 0.1);--color-palette-orange-lighter: #fe9974;--color-palette-orange-light: #fe6127;--color-palette-orange-dark: #a52d01;--color-palette-orange-darker: #721f01;--color-palette-orange-complement: #019ed8;--color-palette-orange-complement-alpha: rgba(1, 158, 216, 0.3);--color-palette-orange-complement-alpha-low: rgba(1, 158, 216, 0.8);--color-palette-orange-complement-alpha-high: rgba(1, 158, 216, 0.1);--color-palette-orange-invert: #27c4fe;--color-palette-orange-invert-alpha: rgba(39, 196, 254, 0.3);--color-palette-orange-invert-alpha-low: rgba(39, 196, 254, 0.8);--color-palette-orange-invert-alpha-high: rgba(39, 196, 254, 0.1);--color-palette-red: #d13438;--color-palette-red-alpha: rgba(209, 52, 56, 0.3);--color-palette-red-alpha-low: rgba(209, 52, 56, 0.8);--color-palette-red-alpha-high: rgba(209, 52, 56, 0.1);--color-palette-red-lighter: #edb1b2;--color-palette-red-light: #df7275;--color-palette-red-dark: #ab272a;--color-palette-red-darker: #821d20;--color-palette-red-complement: #34d1cd;--color-palette-red-complement-alpha: rgba(52, 209, 205, 0.3);--color-palette-red-complement-alpha-low: rgba(52, 209, 205, 0.8);--color-palette-red-complement-alpha-high: rgba(52, 209, 205, 0.1);--color-palette-red-invert: #2ecbc7;--color-palette-red-invert-alpha: rgba(46, 203, 199, 0.3);--color-palette-red-invert-alpha-low: rgba(46, 203, 199, 0.8);--color-palette-red-invert-alpha-high: rgba(46, 203, 199, 0.1);--color-palette-magenta: #b4009e;--color-palette-magenta-alpha: rgba(180, 0, 158, 0.3);--color-palette-magenta-alpha-low: rgba(180, 0, 158, 0.8);--color-palette-magenta-alpha-high: rgba(180, 0, 158, 0.1);--color-palette-magenta-lighter: #ff4ee9;--color-palette-magenta-light: #ff02e0;--color-palette-magenta-dark: #810071;--color-palette-magenta-darker: #4e0044;--color-palette-magenta-complement: #00b416;--color-palette-magenta-complement-alpha: rgba(0, 180, 22, 0.3);--color-palette-magenta-complement-alpha-low: rgba(0, 180, 22, 0.8);--color-palette-magenta-complement-alpha-high: rgba(0, 180, 22, 0.1);--color-palette-magenta-invert: #4bff61;--color-palette-magenta-invert-alpha: rgba(75, 255, 97, 0.3);--color-palette-magenta-invert-alpha-low: rgba(75, 255, 97, 0.8);--color-palette-magenta-invert-alpha-high: rgba(75, 255, 97, 0.1);--color-palette-purple: #5c2d91;--color-palette-purple-alpha: rgba(92, 45, 145, 0.3);--color-palette-purple-alpha-low: rgba(92, 45, 145, 0.8);--color-palette-purple-alpha-high: rgba(92, 45, 145, 0.1);--color-palette-purple-lighter: #a980d7;--color-palette-purple-light: #8145c5;--color-palette-purple-dark: #43216a;--color-palette-purple-darker: #2b1543;--color-palette-purple-complement: #62912d;--color-palette-purple-complement-alpha: rgba(98, 145, 45, 0.3);--color-palette-purple-complement-alpha-low: rgba(98, 145, 45, 0.8);--color-palette-purple-complement-alpha-high: rgba(98, 145, 45, 0.1);--color-palette-purple-invert: #a3d26e;--color-palette-purple-invert-alpha: rgba(163, 210, 110, 0.3);--color-palette-purple-invert-alpha-low: rgba(163, 210, 110, 0.8);--color-palette-purple-invert-alpha-high: rgba(163, 210, 110, 0.1);--color-palette-green: #107c10;--color-palette-green-alpha: rgba(16, 124, 16, 0.3);--color-palette-green-alpha-low: rgba(16, 124, 16, 0.8);--color-palette-green-alpha-high: rgba(16, 124, 16, 0.1);--color-palette-green-lighter: #3fe63f;--color-palette-green-light: #19c019;--color-palette-green-dark: #0a4f0a;--color-palette-green-darker: #042204;--color-palette-green-complement: #7c107c;--color-palette-green-complement-alpha: rgba(124, 16, 124, 0.3);--color-palette-green-complement-alpha-low: rgba(124, 16, 124, 0.8);--color-palette-green-complement-alpha-high: rgba(124, 16, 124, 0.1);--color-palette-green-invert: #ef83ef;--color-palette-green-invert-alpha: rgba(239, 131, 239, 0.3);--color-palette-green-invert-alpha-low: rgba(239, 131, 239, 0.8);--color-palette-green-invert-alpha-high: rgba(239, 131, 239, 0.1);--color-palette-teal: #008272;--color-palette-teal-alpha: rgba(0, 130, 114, 0.3);--color-palette-teal-alpha-low: rgba(0, 130, 114, 0.8);--color-palette-teal-alpha-high: rgba(0, 130, 114, 0.1);--color-palette-teal-lighter: #1cffe3;--color-palette-teal-light: #00cfb5;--color-palette-teal-dark: #004f45;--color-palette-teal-darker: #001c19;--color-palette-teal-complement: #820010;--color-palette-teal-complement-alpha: rgba(130, 0, 16, 0.3);--color-palette-teal-complement-alpha-low: rgba(130, 0, 16, 0.8);--color-palette-teal-complement-alpha-high: rgba(130, 0, 16, 0.1);--color-palette-teal-invert: #ff7d8d;--color-palette-teal-invert-alpha: rgba(255, 125, 141, 0.3);--color-palette-teal-invert-alpha-low: rgba(255, 125, 141, 0.8);--color-palette-teal-invert-alpha-high: rgba(255, 125, 141, 0.1);--color-palette-blue: #0078d4;--color-palette-blue-alpha: rgba(0, 120, 212, 0.3);--color-palette-blue-alpha-low: rgba(0, 120, 212, 0.8);--color-palette-blue-alpha-high: rgba(0, 120, 212, 0.1);--color-palette-blue-lighter: #6ec0ff;--color-palette-blue-light: #229fff;--color-palette-blue-dark: #005ba1;--color-palette-blue-darker: #003e6e;--color-palette-blue-complement: #d45c00;--color-palette-blue-complement-alpha: rgba(212, 92, 0, 0.3);--color-palette-blue-complement-alpha-low: rgba(212, 92, 0, 0.8);--color-palette-blue-complement-alpha-high: rgba(212, 92, 0, 0.1);--color-palette-blue-invert: #ff872b;--color-palette-blue-invert-alpha: rgba(255, 135, 43, 0.3);--color-palette-blue-invert-alpha-low: rgba(255, 135, 43, 0.8);--color-palette-blue-invert-alpha-high: rgba(255, 135, 43, 0.1);--color-palette-dark: #323232;--color-palette-dark-alpha: rgba(50, 50, 50, 0.3);--color-palette-dark-alpha-low: rgba(50, 50, 50, 0.8);--color-palette-dark-alpha-high: rgba(50, 50, 50, 0.1);--color-palette-dark-lighter: #7f7f7f;--color-palette-dark-light: #585858;--color-palette-dark-dark: #191919;--color-palette-dark-darker: black;--color-palette-dark-complement: #323232;--color-palette-dark-complement-alpha: rgba(50, 50, 50, 0.3);--color-palette-dark-complement-alpha-low: rgba(50, 50, 50, 0.8);--color-palette-dark-complement-alpha-high: rgba(50, 50, 50, 0.1);--color-palette-dark-invert: #cdcdcd;--color-palette-dark-invert-alpha: rgba(205, 205, 205, 0.3);--color-palette-dark-invert-alpha-low: rgba(205, 205, 205, 0.8);--color-palette-dark-invert-alpha-high: rgba(205, 205, 205, 0.1);--color-gray-100: #f4f4f4;--color-gray-100-alpha: rgba(244, 244, 244, 0.3);--color-gray-100-alpha-low: rgba(244, 244, 244, 0.8);--color-gray-100-alpha-high: rgba(244, 244, 244, 0.1);--color-gray-200: #e2e2e2;--color-gray-200-alpha: rgba(226, 226, 226, 0.3);--color-gray-200-alpha-low: rgba(226, 226, 226, 0.8);--color-gray-200-alpha-high: rgba(226, 226, 226, 0.1);--color-gray-300: #d0d0d0;--color-gray-300-alpha: rgba(208, 208, 208, 0.3);--color-gray-300-alpha-low: rgba(208, 208, 208, 0.8);--color-gray-300-alpha-high: rgba(208, 208, 208, 0.1);--color-gray-400: #bdbdbd;--color-gray-400-alpha: rgba(189, 189, 189, 0.3);--color-gray-400-alpha-low: rgba(189, 189, 189, 0.8);--color-gray-400-alpha-high: rgba(189, 189, 189, 0.1);--color-gray-500: #ababab;--color-gray-500-alpha: rgba(171, 171, 171, 0.3);--color-gray-500-alpha-low: rgba(171, 171, 171, 0.8);--color-gray-500-alpha-high: rgba(171, 171, 171, 0.1);--color-gray-600: #999999;--color-gray-600-alpha: rgba(153, 153, 153, 0.3);--color-gray-600-alpha-low: rgba(153, 153, 153, 0.8);--color-gray-600-alpha-high: rgba(153, 153, 153, 0.1);--box-density-0: 0rem;--box-density-1: 0.5rem;--box-density-2: 1rem;--box-density-3: 1.5rem;--box-density-4: 2rem;--box-density-5: 2.5rem;--box-density-6: 3rem;--box-density-7: 3.5rem;--box-density-8: 4rem;--box-density-9: 4.5rem;--box-density-10: 5rem;--box-density-11: 5.5rem;--box-density-12: 6rem;--box-density-preset-tiny: 0.25rem;--box-density-preset-small: 0.5rem;--box-density-preset-medium: 1.5rem;--box-density-preset-large: 2rem;--radius-tiny: 4px;--radius-small: 8px;--radius-medium: 16px;--font-size-h1: 3.1rem;--font-size-h2: 2.68rem;--font-size-h3: 2.26rem;--font-size-h4: 1.84rem;--font-size-h5: 1.42rem;--font-size-h6: 1rem;--font-weight-50: 50;--font-weight-100: 100;--font-weight-300: 400;--font-weight-500: 500;--font-weight-900: 900;--font-weight-light: lighter;--font-weight-cap: normal;--font-weight-bold: bold;--font-weight-bolder: bolder;--text-shadow-discrete: 0 0 0.125em #ccc;--text-shadow-success: 0 0 0.125em green;--text-shadow-info: 0 0 0.125em #FFDD57FF;--text-shadow-warning: 0 0 0.125em #e6b905;--text-shadow-alert: 0 0 0.125em #ff7300;--text-shadow-error: 0 0 0.125em red;--text-shadow-yellow: 0 0 0.125em #ffb900;--text-shadow-orange: 0 0 0.125em #d83b01;--text-shadow-red: 0 0 0.125em #d13438;--text-shadow-magenta: 0 0 0.125em #b4009e;--text-shadow-purple: 0 0 0.125em #5c2d91;--text-shadow-green: 0 0 0.125em #107c10;--text-shadow-teal: 0 0 0.125em #008272;--text-shadow-blue: 0 0 0.125em #0078d4;--text-shadow-dark: 0 0 0.125em #323232;--box-shad-1: 0 0.8333333333px 1.724137931px 0 rgba(0, 0, 0, 0.15), 0 0.1526717557px 0.4651162791px 0 rgba(0, 0, 0, 0.1);--box-shad-2: 0 1.6666666667px 3.4482758621px 0 rgba(0, 0, 0, 0.15), 0 0.3053435115px 0.9302325581px 0 rgba(0, 0, 0, 0.1);--box-shad-3: 0 2.5px 5.1724137931px 0 rgba(0, 0, 0, 0.15), 0 0.4580152672px 1.3953488372px 0 rgba(0, 0, 0, 0.1);--box-shad-4: 0 3.3333333333px 6.8965517241px 0 rgba(0, 0, 0, 0.15), 0 0.6106870229px 1.8604651163px 0 rgba(0, 0, 0, 0.1);--box-shad-5: 0 4.1666666667px 8.6206896552px 0 rgba(0, 0, 0, 0.15), 0 0.7633587786px 2.3255813953px 0 rgba(0, 0, 0, 0.1);--theme-color-text: #282230;--theme-color-foreground: #282230;--theme-color-foreground-alpha: rgba(40, 34, 48, 0.3);--theme-color-foreground-alpha-low: rgba(40, 34, 48, 0.8);--theme-color-foreground-alpha-high: rgba(40, 34, 48, 0.1);--theme-color-background: #ffffff;--theme-color-background-alpha: rgba(40, 34, 48, 0.3);--theme-color-background-alpha-low: rgba(40, 34, 48, 0.8);--theme-color-background-alpha-high: rgba(40, 34, 48, 0.1);--theme-color-paper: #f1f1f1;--theme-color-paper-alpha: rgba(241, 241, 241, 0.3);--theme-color-paper-alpha-low: rgba(241, 241, 241, 0.8);--theme-color-paper-alpha-high: rgba(241, 241, 241, 0.1);--theme-color-border: rgba(40, 34, 48, 0.2)}:root [density=small]{--box-density-0: 0rem;--box-density-1: 0.25rem;--box-density-2: 0.5rem;--box-density-3: 0.75rem;--box-density-4: 1rem;--box-density-5: 1.25rem;--box-density-6: 1.5rem;--box-density-7: 1.75rem;--box-density-8: 2rem;--box-density-9: 2.25rem;--box-density-10: 2.5rem;--box-density-11: 2.75rem;--box-density-12: 3rem;--box-density-preset-tiny: 0.125rem;--box-density-preset-small: 0.25rem;--box-density-preset-medium: 0.75rem;--box-density-preset-large: 1rem}:root [density=default]{--box-density-0: 0rem;--box-density-1: 0.5rem;--box-density-2: 1rem;--box-density-3: 1.5rem;--box-density-4: 2rem;--box-density-5: 2.5rem;--box-density-6: 3rem;--box-density-7: 3.5rem;--box-density-8: 4rem;--box-density-9: 4.5rem;--box-density-10: 5rem;--box-density-11: 5.5rem;--box-density-12: 6rem;--box-density-preset-tiny: 0.25rem;--box-density-preset-small: 0.5rem;--box-density-preset-medium: 1.5rem;--box-density-preset-large: 2rem}:root [density=large]{--box-density-0: 0rem;--box-density-1: 0.875rem;--box-density-2: 1.75rem;--box-density-3: 2.625rem;--box-density-4: 3.5rem;--box-density-5: 4.375rem;--box-density-6: 5.25rem;--box-density-7: 6.125rem;--box-density-8: 7rem;--box-density-9: 7.875rem;--box-density-10: 8.75rem;--box-density-11: 9.625rem;--box-density-12: 10.5rem;--box-density-preset-tiny: 0.4375rem;--box-density-preset-small: 0.875rem;--box-density-preset-medium: 2.625rem;--box-density-preset-large: 3.5rem}:root,:root [data-theme=light]{--theme-color-text: #282230;--theme-color-foreground: #282230;--theme-color-foreground-alpha: rgba(40, 34, 48, 0.3);--theme-color-foreground-alpha-low: rgba(40, 34, 48, 0.8);--theme-color-foreground-alpha-high: rgba(40, 34, 48, 0.1);--theme-color-background: #ffffff;--theme-color-background-alpha: rgba(40, 34, 48, 0.3);--theme-color-background-alpha-low: rgba(40, 34, 48, 0.8);--theme-color-background-alpha-high: rgba(40, 34, 48, 0.1);--theme-color-paper: #f1f1f1;--theme-color-paper-alpha: rgba(241, 241, 241, 0.3);--theme-color-paper-alpha-low: rgba(241, 241, 241, 0.8);--theme-color-paper-alpha-high: rgba(241, 241, 241, 0.1);--theme-color-border: rgba(40, 34, 48, 0.2);--theme-color-overlay: rgba(208, 191, 151, 0.2)}:root [data-theme=dark]{--theme-color-text: #f1f1f1;--theme-color-foreground: #f1f1f1;--theme-color-foreground-alpha: rgba(241, 241, 241, 0.3);--theme-color-foreground-alpha-low: rgba(241, 241, 241, 0.8);--theme-color-foreground-alpha-high: rgba(241, 241, 241, 0.1);--theme-color-background: #27323a;--theme-color-background-alpha: rgba(241, 241, 241, 0.3);--theme-color-background-alpha-low: rgba(241, 241, 241, 0.8);--theme-color-background-alpha-high: rgba(241, 241, 241, 0.1);--theme-color-paper: #f1f1f1;--theme-color-paper-alpha: rgba(58, 59, 59, 0.3);--theme-color-paper-alpha-low: rgba(58, 59, 59, 0.8);--theme-color-paper-alpha-high: rgba(58, 59, 59, 0.1);--theme-color-border: rgba(241, 241, 241, 0.3);--theme-color-overlay: rgba(255, 255, 255, 0.1)}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
<script context="module" lang="ts">
|
|
2
|
+
|
|
3
|
+
export const prerender = true;
|
|
4
|
+
</script>
|
|
5
|
+
<script lang="ts">
|
|
6
|
+
import Header from '$lib/../components/header/Header.svelte';
|
|
7
|
+
import '../app.css';
|
|
8
|
+
import HeaderSiteTitle from "../components/HeaderSiteTitle.svelte";
|
|
9
|
+
import {fabricNavigation} from "../scripts/utils";
|
|
10
|
+
|
|
11
|
+
const links: string[] = fabricNavigation.getActiveLinks();
|
|
12
|
+
|
|
13
|
+
export let moduleTag = '';
|
|
14
|
+
export let modulePage = '';
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
</script>
|
|
19
|
+
|
|
20
|
+
<main class={"w-full flex flex-v h-full content-start overflow-auto"}>
|
|
21
|
+
<div class={"w-full w-sm-main "}>
|
|
22
|
+
<HeaderSiteTitle
|
|
23
|
+
description={"cssFabric is an alpha cssFabric"}
|
|
24
|
+
title="cssfabric"
|
|
25
|
+
title_tag={"just.fabric.it"}
|
|
26
|
+
/>
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
<div class={" dsp-none"}>
|
|
30
|
+
<div class={"dsp-none dsp-sm-block"}>sm</div>
|
|
31
|
+
<div class={"dsp-md-block dsp-none "}>md</div>
|
|
32
|
+
<div class={"dsp-lg-block dsp-none"}>lg</div>
|
|
33
|
+
<div class={"dsp-none dsp-xl-block dsp-none"}>xl</div>
|
|
34
|
+
<div class={"dsp-none dsp-xxl-block dsp-none"}>xxl</div>
|
|
35
|
+
<div class={"dsp-none dsp-xxxl-block dsp-none"}>xxxl</div>
|
|
36
|
+
</div>
|
|
37
|
+
<div class={"flex flex-lg-v flex-h h-full"}>
|
|
38
|
+
<aside class={"w-lg-full w-8 pad "}>
|
|
39
|
+
<nav class={"pad pad-lg"}>
|
|
40
|
+
<ul class={"menu-lg-h menu-v"}>
|
|
41
|
+
<li class={"menu-item " }>
|
|
42
|
+
<a href={'/installation'}>
|
|
43
|
+
<span>installation</span>
|
|
44
|
+
</a>
|
|
45
|
+
</li>
|
|
46
|
+
</ul>
|
|
47
|
+
<ul class={"menu-lg-h menu-v"}>
|
|
48
|
+
{#each Object.values(links) as key}
|
|
49
|
+
<!--{ css = (staticModule === key) ? 'active' : '';}-->
|
|
50
|
+
<li class={"menu-item " } class:active={(moduleTag === key)}>
|
|
51
|
+
<a rel="external" href={fabricNavigation.getModuleClassNamesPage(key)}>
|
|
52
|
+
<span>{`${key}`}</span>
|
|
53
|
+
</a>
|
|
54
|
+
</li>
|
|
55
|
+
{/each}
|
|
56
|
+
</ul>
|
|
57
|
+
</nav>
|
|
58
|
+
</aside>
|
|
59
|
+
<section class={"flex-main"}>
|
|
60
|
+
<slot>slot test</slot>
|
|
61
|
+
</section>
|
|
62
|
+
</div>
|
|
63
|
+
</main>
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
<style global lang="scss">
|
|
67
|
+
@import "src/lib/styles/cssfabric.min";
|
|
68
|
+
|
|
69
|
+
main {
|
|
70
|
+
margin: 0 auto;
|
|
71
|
+
box-sizing: border-box;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
footer {
|
|
75
|
+
display: flex;
|
|
76
|
+
flex-direction: column;
|
|
77
|
+
justify-content: center;
|
|
78
|
+
align-items: center;
|
|
79
|
+
padding: 40px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
footer a {
|
|
83
|
+
font-weight: bold;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@media (min-width: 480px) {
|
|
87
|
+
footer {
|
|
88
|
+
padding: 40px 0;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
</style>
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
<svelte:head>
|
|
2
|
+
|
|
3
|
+
<title>{staticModule} {staticAction} cssfabric</title>
|
|
4
|
+
</svelte:head>
|
|
5
|
+
<script context="module" lang="ts">
|
|
6
|
+
export const prerender = true;
|
|
7
|
+
/** @type {import('./modules/[module]/[page]').Load} */
|
|
8
|
+
export async function load({params, fetch, session, stuff}) {
|
|
9
|
+
console.log(params)
|
|
10
|
+
// console.log(params, fetch, session, stuff);
|
|
11
|
+
return {
|
|
12
|
+
status: 200,
|
|
13
|
+
props : {
|
|
14
|
+
moduleTag : params.module,
|
|
15
|
+
modulePage: params.page
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<script lang="ts">
|
|
22
|
+
import cssfabric from '../../../lib/scripts/cssfabric';
|
|
23
|
+
import {fabricNavigation} from '../../../scripts/utils';
|
|
24
|
+
import InnerMenu from '../../../components/InnerMenu.svelte';
|
|
25
|
+
import SubHeader from '../../../components/SubHeader.svelte';
|
|
26
|
+
import Header from '../../../components/Header.svelte';
|
|
27
|
+
|
|
28
|
+
export let moduleTag = '';
|
|
29
|
+
export let modulePage = '';
|
|
30
|
+
|
|
31
|
+
const links: string[] = fabricNavigation.getActiveLinks();
|
|
32
|
+
|
|
33
|
+
let tagProperties: Record<string, any> = {};
|
|
34
|
+
|
|
35
|
+
let staticModule: string = moduleTag;
|
|
36
|
+
let staticAction: string = '';
|
|
37
|
+
|
|
38
|
+
$: tagProperties = cssfabric.getModuleMetaData(moduleTag);
|
|
39
|
+
$: staticAction = modulePage;
|
|
40
|
+
|
|
41
|
+
</script>
|
|
42
|
+
<Header
|
|
43
|
+
description={tagProperties.description}
|
|
44
|
+
tag={"fabric.css." + tagProperties.title}
|
|
45
|
+
title={"." + tagProperties.title}
|
|
46
|
+
/>
|
|
47
|
+
<div class={"flex flex-xl-v flex-h marg-t-2"}>
|
|
48
|
+
<div class={"marg-t-2 marg-lg-l-4 pad"}>
|
|
49
|
+
<div class="">
|
|
50
|
+
<ul class={"menu-xl-h menu-v menu-small shad-8"}>
|
|
51
|
+
<li class={(modulePage==='demo')? 'active':''}>
|
|
52
|
+
<a href={fabricNavigation.getModuleDemoPage(moduleTag)}>
|
|
53
|
+
<a>Demo</a>
|
|
54
|
+
</a>
|
|
55
|
+
</li>
|
|
56
|
+
<li class={(modulePage==='classnames')? 'active':''}>
|
|
57
|
+
<a href={fabricNavigation.getModuleClassNamesPage(moduleTag)}>
|
|
58
|
+
<a>Classnames</a>
|
|
59
|
+
</a>
|
|
60
|
+
</li>
|
|
61
|
+
<li class={(modulePage==='docs')? 'active':''}>
|
|
62
|
+
<a href={fabricNavigation.getModuleDocsPage(moduleTag)}>
|
|
63
|
+
<a>Docs</a>
|
|
64
|
+
</a>
|
|
65
|
+
</li>
|
|
66
|
+
</ul>
|
|
67
|
+
</div>
|
|
68
|
+
</div>
|
|
69
|
+
<div class={"pad-l-4 flex-main"}>
|
|
70
|
+
<SubHeader title={staticModule + '.' + staticAction}/>
|
|
71
|
+
<div>
|
|
72
|
+
<slot module={staticModule} ></slot>
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
75
|
+
</div>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<script context="module" lang="ts">
|
|
2
|
+
export const prerender = true;
|
|
3
|
+
/** @type {import('./[module]/classnames').Load} */
|
|
4
|
+
export async function load({params, fetch, session, stuff}) {
|
|
5
|
+
console.log({params})
|
|
6
|
+
// console.log(params, fetch, session, stuff);
|
|
7
|
+
return {
|
|
8
|
+
status: 200,
|
|
9
|
+
props : {
|
|
10
|
+
moduleTag : params.module,
|
|
11
|
+
modulePage: params.page
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
</script>
|
|
16
|
+
<script>
|
|
17
|
+
import DocsClassNames from "../../../../components/docs/DocsClassNames.svelte";
|
|
18
|
+
|
|
19
|
+
export let moduleTag = '';
|
|
20
|
+
export let modulePage = '';
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
<DocsClassNames module={moduleTag} />
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<script context="module" lang="ts">
|
|
2
|
+
export const prerender = true;
|
|
3
|
+
/** @type {import('./[module]/classnames').Load} */
|
|
4
|
+
export async function load({params, fetch, session, stuff}) {
|
|
5
|
+
console.log({params})
|
|
6
|
+
// console.log(params, fetch, session, stuff);
|
|
7
|
+
return {
|
|
8
|
+
status: 200,
|
|
9
|
+
props : {
|
|
10
|
+
moduleTag : params.module,
|
|
11
|
+
modulePage: params.page
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
</script>
|
|
16
|
+
<script>
|
|
17
|
+
import DocsDemo from "../../../../components/docs/DocsDemo.svelte";
|
|
18
|
+
|
|
19
|
+
export let moduleTag = '';
|
|
20
|
+
export let modulePage = '';
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
<DocsDemo module={moduleTag} />
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
|
|
2
|
+
<script context="module" lang="ts">
|
|
3
|
+
export const prerender = true;
|
|
4
|
+
/** @type {import('./[module]/docs').Load} */
|
|
5
|
+
export async function load({params, fetch, session, stuff}) {
|
|
6
|
+
|
|
7
|
+
return {
|
|
8
|
+
status: 200,
|
|
9
|
+
props : {
|
|
10
|
+
moduleTag : params.module,
|
|
11
|
+
modulePage: params.page
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
</script>
|
|
16
|
+
<script lang="ts">
|
|
17
|
+
import { HighlightAuto } from "svelte-highlight";
|
|
18
|
+
import "svelte-highlight/styles/github.css";
|
|
19
|
+
import Docs from "../../../../components/docs/Docs.svelte";
|
|
20
|
+
|
|
21
|
+
export let moduleTag = '';
|
|
22
|
+
export let modulePage = 'docs';
|
|
23
|
+
|
|
24
|
+
let code = `let a = 123; let fr = 'red'; const red = function(args:any){}`
|
|
25
|
+
</script>
|
|
26
|
+
<HighlightAuto code={`<div class="noclass"></div>`} />
|
|
27
|
+
<HighlightAuto code={`npm i @medyll/cssfabric`} />
|
|
28
|
+
<HighlightAuto code={code} />
|
|
29
|
+
|
|
30
|
+
<Docs module={moduleTag} />
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<script context="module" lang="ts">
|
|
2
|
+
|
|
3
|
+
export const prerender = true;
|
|
4
|
+
</script>
|
|
5
|
+
<script lang="ts">
|
|
6
|
+
|
|
7
|
+
import {fabricNavigation} from '../../scripts/utils';
|
|
8
|
+
import cssfabric from '../../lib/scripts/cssfabric';
|
|
9
|
+
import HeaderSiteTitle from '../../components/HeaderSiteTitle.svelte';
|
|
10
|
+
|
|
11
|
+
export let moduleTag = '';
|
|
12
|
+
export let modulePage = '';
|
|
13
|
+
|
|
14
|
+
const links: string[] = fabricNavigation.getActiveLinks();
|
|
15
|
+
|
|
16
|
+
let DynamicComponent;
|
|
17
|
+
let tagProperties: Record<string, any> = {};
|
|
18
|
+
|
|
19
|
+
let staticModule: string = moduleTag;
|
|
20
|
+
let staticPage: string = modulePage;
|
|
21
|
+
|
|
22
|
+
$: tagProperties = cssfabric.getModuleMetaData(moduleTag);
|
|
23
|
+
$: staticPage = modulePage;
|
|
24
|
+
</script>
|
|
25
|
+
|
|
26
|
+
<slot></slot>
|
|
File without changes
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
<script context="module" lang="ts">
|
|
2
|
+
export const prerender = true;
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<script lang="ts">
|
|
6
|
+
import {fabricNavigation} from '../scripts/utils';
|
|
7
|
+
import github from "svelte-highlight/styles/github";
|
|
8
|
+
const cssfabricModules = fabricNavigation.getActiveLinks();
|
|
9
|
+
$: console.log({cssfabricModules});
|
|
10
|
+
</script>
|
|
11
|
+
<svelte:head>
|
|
12
|
+
<title>cssFabric home</title>
|
|
13
|
+
{@html github}
|
|
14
|
+
</svelte:head>
|
|
15
|
+
<div class={"flex-main flex-align-middle scale-w-sm-full scale-w-lg-32 scale-w-64 pad-all"}>
|
|
16
|
+
<div title={"a css framework"}>
|
|
17
|
+
<p>
|
|
18
|
+
<strong>cssfabric</strong> is a css framework built around css properties<br/>
|
|
19
|
+
it's goal is to permit you to achieve of all your design task, from single page applications to frontend web sites
|
|
20
|
+
</p>
|
|
21
|
+
</div>
|
|
22
|
+
<p title={"with some css in"}>
|
|
23
|
+
</p>
|
|
24
|
+
<div class={"flex-h flex-wrap flex-align-center"}>
|
|
25
|
+
{#each Object.values(cssfabricModules) as key, name }
|
|
26
|
+
<div class={"pad-4 marg-4 scale-w-8 scale-h-8 flex-v flex-align-middle text-center bg-themed-gray-200 shad-4"}>
|
|
27
|
+
<a href={fabricNavigation.getModuleDemoPage(key)}>
|
|
28
|
+
<span>{`${key}`}</span>
|
|
29
|
+
</a>
|
|
30
|
+
</div>
|
|
31
|
+
{/each}
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
|
|
35
|
+
<style lang="scss">
|
|
36
|
+
section {
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-direction: column;
|
|
39
|
+
justify-content: center;
|
|
40
|
+
align-items: center;
|
|
41
|
+
flex: 1;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
h1 {
|
|
45
|
+
width: 100%;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.welcome {
|
|
49
|
+
position: relative;
|
|
50
|
+
width: 100%;
|
|
51
|
+
height: 0;
|
|
52
|
+
padding: 0 0 calc(100% * 495 / 2048) 0;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.welcome img {
|
|
56
|
+
position: absolute;
|
|
57
|
+
width: 100%;
|
|
58
|
+
height: 100%;
|
|
59
|
+
top: 0;
|
|
60
|
+
display: block;
|
|
61
|
+
}
|
|
62
|
+
</style>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<slot></slot>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<script context="module" lang="ts">
|
|
2
|
+
|
|
3
|
+
</script>
|
|
4
|
+
<script>
|
|
5
|
+
import {HighlightAuto,Highlight} from "svelte-highlight";
|
|
6
|
+
import typescript from "svelte-highlight/languages/typescript";
|
|
7
|
+
import node from "svelte-highlight/languages/node-repl";
|
|
8
|
+
|
|
9
|
+
const code1 = `npm i @medyll/cssfabric
|
|
10
|
+
#or
|
|
11
|
+
yarn add @medyll/cssfabric`
|
|
12
|
+
|
|
13
|
+
const code2 = `npm init @medyll/cssfabric # will create configuration files`
|
|
14
|
+
|
|
15
|
+
const htmlCode = "<style></style>"
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
<h4>install cssfabric</h4>
|
|
20
|
+
|
|
21
|
+
<Highlight language={typescript} code={code1}/>
|
|
22
|
+
then
|
|
23
|
+
<Highlight language={node} code={code2}/>
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
<Highlight code={htmlCode}/>
|
|
27
|
+
|
|
28
|
+
|
package/src/scripts/utils.ts
CHANGED
|
@@ -1,37 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
if (arrValues.every(x => typeof x === 'number' || typeof x === 'string' ) ) ret = 'strings'
|
|
28
|
-
if (arrValues.every(x => Array.isArray(x))) ret = 'arrays'
|
|
29
|
-
if (arrValues.every(x => typeof x === 'string')) ret = 'strings'
|
|
30
|
-
if (arrValues.every(x => typeof x === 'number')) ret = 'numbers'
|
|
31
|
-
if (arrValues.every(x => typeof x === 'object' && !Array.isArray(x))) ret = 'objects'
|
|
32
|
-
|
|
33
|
-
return ret;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export default utils;
|
|
1
|
+
import cssfabric from '../lib/scripts/cssfabric';
|
|
2
|
+
|
|
3
|
+
export const urlModule = 'cssfabric-modules';
|
|
4
|
+
const pageDocsName = 'docs';
|
|
5
|
+
const pageDemoName = 'demo';
|
|
6
|
+
const pageDemoClassName = 'classnames';
|
|
7
|
+
|
|
8
|
+
export const fabricNavigation = {
|
|
9
|
+
getHomePages : () => {
|
|
10
|
+
return `/${urlModule}`;
|
|
11
|
+
},
|
|
12
|
+
getModuleDocsPage : (module: string) => {
|
|
13
|
+
return `/${urlModule}/${module}/${pageDocsName}`;
|
|
14
|
+
},
|
|
15
|
+
getModuleClassNamesPage: (module: string) => {
|
|
16
|
+
return `/${urlModule}/${module}/${pageDemoClassName}`;
|
|
17
|
+
},
|
|
18
|
+
getModuleDemoPage : (module: string) => {
|
|
19
|
+
return `/${urlModule}/${module}/${pageDemoName}`;
|
|
20
|
+
},
|
|
21
|
+
getActiveLinks : (): string[] => {
|
|
22
|
+
const cssfab = cssfabric.getModuleList();
|
|
23
|
+
return Object.keys(cssfab).filter((link: string) => cssfab?.[link]?._docs?.attributes);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
|
package/src/utils.ts
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import cssfabric from './lib/scripts/cssfabric';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
const utils = {
|
|
5
|
+
|
|
6
|
+
isArrayOfTypes: (arr: any): any => {
|
|
7
|
+
let ret = '';
|
|
8
|
+
|
|
9
|
+
if (!Array.isArray(arr)) {
|
|
10
|
+
return false;
|
|
11
|
+
}
|
|
12
|
+
if (arr.every(x => Array.isArray(x))) ret = 'arrays'
|
|
13
|
+
if (arr.every(x => typeof x === 'number' || typeof x === 'string')) ret = 'strings'
|
|
14
|
+
if (arr.every(x => typeof x === 'string')) ret = 'strings'
|
|
15
|
+
if (arr.every(x => typeof x === 'number')) ret = 'numbers'
|
|
16
|
+
if (arr.every(x => typeof x === 'object' && !Array.isArray(x))) ret = 'objects'
|
|
17
|
+
|
|
18
|
+
return ret;
|
|
19
|
+
},
|
|
20
|
+
|
|
21
|
+
isObjectOfTypes: (arr: any): string | boolean => {
|
|
22
|
+
|
|
23
|
+
if (Array.isArray(arr)) {
|
|
24
|
+
return false;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
let ret = '';
|
|
28
|
+
let arrValues = Object.values(arr);
|
|
29
|
+
|
|
30
|
+
if (arrValues.every(x => typeof x === 'number' || typeof x === 'string')) ret = 'strings'
|
|
31
|
+
if (arrValues.every(x => Array.isArray(x))) ret = 'arrays'
|
|
32
|
+
if (arrValues.every(x => typeof x === 'string')) ret = 'strings'
|
|
33
|
+
if (arrValues.every(x => typeof x === 'number')) ret = 'numbers'
|
|
34
|
+
if (arrValues.every(x => typeof x === 'object' && !Array.isArray(x))) ret = 'objects'
|
|
35
|
+
|
|
36
|
+
return ret;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export const htmlUtils = {
|
|
41
|
+
enclose: (content: any, tag: string = 'div') => {
|
|
42
|
+
return `<div className={"cell-spacing cell-padding"}>${content}</div>`
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
export default utils;
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
const urlModule = 'cssfabric-modules';
|
|
49
|
+
const pageDocsName = 'docs';
|
|
50
|
+
const pageDemoName = 'demo';
|
|
51
|
+
const pageDemoClassName = 'classnames';
|
|
52
|
+
|
|
53
|
+
export const fabricNavigation = {
|
|
54
|
+
getHomePages: () => {
|
|
55
|
+
return `/${urlModule}`;
|
|
56
|
+
},
|
|
57
|
+
getModuleDocsPage: (module: string) => {
|
|
58
|
+
return `/${urlModule}/${module}/${pageDocsName}`;
|
|
59
|
+
},
|
|
60
|
+
getModuleClassNamesPage: (module: string) => {
|
|
61
|
+
return `/${urlModule}/${module}/${pageDemoClassName}`;
|
|
62
|
+
},
|
|
63
|
+
getModuleDemoPage: (module: string) => {
|
|
64
|
+
return `/${urlModule}/${module}/${pageDemoName}`;
|
|
65
|
+
},
|
|
66
|
+
getActiveLinks: (): string[] => {
|
|
67
|
+
const cssfab = cssfabric.getModuleList();
|
|
68
|
+
return Object.keys(cssfab).filter((link: string) => cssfab?.[link]?._docs?.attributes);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
Binary file
|
package/svelte.config.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import adapter from '@sveltejs/adapter-auto';
|
|
2
|
+
import preprocess from 'svelte-preprocess';
|
|
3
|
+
|
|
4
|
+
/** @type {import('@sveltejs/kit').Config} */
|
|
5
|
+
const config = {
|
|
6
|
+
// Consult https://github.com/sveltejs/svelte-preprocess
|
|
7
|
+
// for more information about preprocessors
|
|
8
|
+
preprocess: preprocess(),
|
|
9
|
+
|
|
10
|
+
kit: {
|
|
11
|
+
adapter: adapter(),
|
|
12
|
+
|
|
13
|
+
// Override http methods in the Todo forms
|
|
14
|
+
methodOverride: {
|
|
15
|
+
allowed: ['PATCH', 'DELETE']
|
|
16
|
+
},
|
|
17
|
+
vite: {
|
|
18
|
+
optimizeDeps: {
|
|
19
|
+
include: ["highlight.js", "highlight.js/lib/core"],
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export default config;
|
package/tsconfig.json
CHANGED
|
@@ -1,46 +1,3 @@
|
|
|
1
|
-
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
/* Basic Options */
|
|
6
|
-
// "incremental": true, /* Enable incremental compilation */
|
|
7
|
-
"target": "ESNEXT"
|
|
8
|
-
/* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */,
|
|
9
|
-
"lib": [
|
|
10
|
-
"dom",
|
|
11
|
-
"dom.iterable",
|
|
12
|
-
"esnext"
|
|
13
|
-
],
|
|
14
|
-
"module": "commonjs"
|
|
15
|
-
/* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */,
|
|
16
|
-
"allowJs": false,
|
|
17
|
-
"skipLibCheck": true,
|
|
18
|
-
"strict": false,
|
|
19
|
-
"forceConsistentCasingInFileNames": true,
|
|
20
|
-
"noEmit": false,
|
|
21
|
-
"esModuleInterop": true,
|
|
22
|
-
"moduleResolution": "node",
|
|
23
|
-
"resolveJsonModule": true,
|
|
24
|
-
"isolatedModules": true,
|
|
25
|
-
"declaration": true
|
|
26
|
-
/* Generates corresponding '.d.ts' file. */,
|
|
27
|
-
"declarationDir": "./lib",
|
|
28
|
-
/* Generates corresponding '.d.ts' file. */
|
|
29
|
-
|
|
30
|
-
"outDir": "./lib"
|
|
31
|
-
/* Redirect output structure to the directory. */,
|
|
32
|
-
"rootDirs": [
|
|
33
|
-
"lib/scripts"
|
|
34
|
-
],
|
|
35
|
-
/* Strict Type-Checking Options */
|
|
36
|
-
|
|
37
|
-
"typeRoots": [
|
|
38
|
-
"./node_modules/@types",
|
|
39
|
-
"./src"
|
|
40
|
-
]
|
|
41
|
-
/* List of folders to include type definitions from. */
|
|
42
|
-
// "types": ["../src/index.d.ts"], /* Type declaration files to be included in compilation. */
|
|
43
|
-
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
|
|
44
|
-
}
|
|
45
|
-
// "files": ["./src/index.ts"]
|
|
46
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"extends": "./.svelte-kit/tsconfig.json"
|
|
3
|
+
}
|
package/webpack.config.js
CHANGED
|
@@ -25,6 +25,7 @@ module.exports = {
|
|
|
25
25
|
loader: "sass-loader",
|
|
26
26
|
options: {
|
|
27
27
|
sourceMap: isDevelopment,
|
|
28
|
+
sassOptions: { quietDeps: true },
|
|
28
29
|
},
|
|
29
30
|
},
|
|
30
31
|
],
|
|
@@ -39,6 +40,7 @@ module.exports = {
|
|
|
39
40
|
loader: "sass-loader",
|
|
40
41
|
options: {
|
|
41
42
|
sourceMap: isDevelopment,
|
|
43
|
+
sassOptions: { quietDeps: true },
|
|
42
44
|
},
|
|
43
45
|
},
|
|
44
46
|
],
|
package/cssfabric.config.js
DELETED