From 98301fa904ff5babbf5be88274078e4f7ad2518f Mon Sep 17 00:00:00 2001 From: Itsigo Date: Sun, 7 Apr 2024 18:29:34 +0200 Subject: [PATCH] feat: pico css is now used as a node module less clutter yeet --- .gitignore | 6 +- README.md | 3 - view/stylesheets/custom/_dark.scss | 6 +- view/stylesheets/custom/_light.scss | 6 +- view/stylesheets/custom/_schemes.scss | 4 +- view/stylesheets/custom/_styles.scss | 8 +- view/stylesheets/custom/_theme-colors.scss | 4 +- view/stylesheets/pico/_index.scss | 49 - view/stylesheets/pico/_settings.scss | 148 --- view/stylesheets/pico/colors/_index.scss | 886 ------------------ .../colors/utilities/_background-colors.scss | 73 -- .../pico/colors/utilities/_colors.scss | 50 - .../pico/colors/utilities/_css-vars.scss | 53 -- .../pico/colors/utilities/_index.scss | 8 - .../pico/colors/utilities/_settings.scss | 108 --- .../pico/colors/utilities/_utils.scss | 56 -- .../pico/components/_accordion.scss | 116 --- view/stylesheets/pico/components/_card.scss | 46 - .../pico/components/_dropdown.scss | 280 ------ view/stylesheets/pico/components/_group.scss | 120 --- .../stylesheets/pico/components/_loading.scss | 46 - view/stylesheets/pico/components/_modal.scss | 176 ---- view/stylesheets/pico/components/_nav.scss | 160 ---- .../pico/components/_progress.scss | 102 -- .../stylesheets/pico/components/_tooltip.scss | 215 ----- view/stylesheets/pico/content/_button.scss | 209 ----- view/stylesheets/pico/content/_code.scss | 73 -- view/stylesheets/pico/content/_embedded.scss | 53 -- view/stylesheets/pico/content/_figure.scss | 19 - view/stylesheets/pico/content/_link.scss | 69 -- view/stylesheets/pico/content/_miscs.scss | 38 - view/stylesheets/pico/content/_table.scss | 62 -- .../stylesheets/pico/content/_typography.scss | 182 ---- view/stylesheets/pico/forms/_basics.scss | 471 ---------- .../pico/forms/_checkbox-radio-switch.scss | 177 ---- view/stylesheets/pico/forms/_input-color.scss | 37 - view/stylesheets/pico/forms/_input-date.scss | 60 -- view/stylesheets/pico/forms/_input-file.scss | 41 - view/stylesheets/pico/forms/_input-range.scss | 100 -- .../stylesheets/pico/forms/_input-search.scss | 60 -- view/stylesheets/pico/helpers/_copyright.scss | 4 - view/stylesheets/pico/helpers/_functions.scss | 49 - view/stylesheets/pico/layout/_container.scss | 33 - view/stylesheets/pico/layout/_document.scss | 52 - view/stylesheets/pico/layout/_grid.scss | 26 - view/stylesheets/pico/layout/_landmarks.scss | 62 -- .../pico/layout/_overflow-auto.scss | 12 - view/stylesheets/pico/layout/_section.scss | 12 - view/stylesheets/pico/pico.classless.scss | 5 - view/stylesheets/pico/pico.colors.scss | 2 - view/stylesheets/pico/pico.conditional.scss | 4 - .../pico/pico.fluid.classless.scss | 6 - view/stylesheets/pico/pico.scss | 2 - view/stylesheets/pico/postcss.config.js | 9 - view/stylesheets/pico/themes/_default.scss | 5 - .../pico/themes/default/_dark.scss | 248 ----- .../pico/themes/default/_light.scss | 212 ----- .../pico/themes/default/_schemes.scss | 39 - .../pico/themes/default/_styles.scss | 433 --------- .../pico/themes/default/_theme-colors.scss | 490 ---------- .../pico/utilities/_accessibility.scss | 57 -- .../pico/utilities/_reduce-motion.scss | 30 - view/stylesheets/tallytome.scss | 4 +- 63 files changed, 21 insertions(+), 6155 deletions(-) delete mode 100644 view/stylesheets/pico/_index.scss delete mode 100644 view/stylesheets/pico/_settings.scss delete mode 100644 view/stylesheets/pico/colors/_index.scss delete mode 100644 view/stylesheets/pico/colors/utilities/_background-colors.scss delete mode 100644 view/stylesheets/pico/colors/utilities/_colors.scss delete mode 100644 view/stylesheets/pico/colors/utilities/_css-vars.scss delete mode 100644 view/stylesheets/pico/colors/utilities/_index.scss delete mode 100644 view/stylesheets/pico/colors/utilities/_settings.scss delete mode 100644 view/stylesheets/pico/colors/utilities/_utils.scss delete mode 100644 view/stylesheets/pico/components/_accordion.scss delete mode 100644 view/stylesheets/pico/components/_card.scss delete mode 100644 view/stylesheets/pico/components/_dropdown.scss delete mode 100644 view/stylesheets/pico/components/_group.scss delete mode 100644 view/stylesheets/pico/components/_loading.scss delete mode 100644 view/stylesheets/pico/components/_modal.scss delete mode 100644 view/stylesheets/pico/components/_nav.scss delete mode 100644 view/stylesheets/pico/components/_progress.scss delete mode 100644 view/stylesheets/pico/components/_tooltip.scss delete mode 100644 view/stylesheets/pico/content/_button.scss delete mode 100644 view/stylesheets/pico/content/_code.scss delete mode 100644 view/stylesheets/pico/content/_embedded.scss delete mode 100644 view/stylesheets/pico/content/_figure.scss delete mode 100644 view/stylesheets/pico/content/_link.scss delete mode 100644 view/stylesheets/pico/content/_miscs.scss delete mode 100644 view/stylesheets/pico/content/_table.scss delete mode 100644 view/stylesheets/pico/content/_typography.scss delete mode 100644 view/stylesheets/pico/forms/_basics.scss delete mode 100644 view/stylesheets/pico/forms/_checkbox-radio-switch.scss delete mode 100644 view/stylesheets/pico/forms/_input-color.scss delete mode 100644 view/stylesheets/pico/forms/_input-date.scss delete mode 100644 view/stylesheets/pico/forms/_input-file.scss delete mode 100644 view/stylesheets/pico/forms/_input-range.scss delete mode 100644 view/stylesheets/pico/forms/_input-search.scss delete mode 100644 view/stylesheets/pico/helpers/_copyright.scss delete mode 100644 view/stylesheets/pico/helpers/_functions.scss delete mode 100644 view/stylesheets/pico/layout/_container.scss delete mode 100644 view/stylesheets/pico/layout/_document.scss delete mode 100644 view/stylesheets/pico/layout/_grid.scss delete mode 100644 view/stylesheets/pico/layout/_landmarks.scss delete mode 100644 view/stylesheets/pico/layout/_overflow-auto.scss delete mode 100644 view/stylesheets/pico/layout/_section.scss delete mode 100644 view/stylesheets/pico/pico.classless.scss delete mode 100644 view/stylesheets/pico/pico.colors.scss delete mode 100644 view/stylesheets/pico/pico.conditional.scss delete mode 100644 view/stylesheets/pico/pico.fluid.classless.scss delete mode 100644 view/stylesheets/pico/pico.scss delete mode 100644 view/stylesheets/pico/postcss.config.js delete mode 100644 view/stylesheets/pico/themes/_default.scss delete mode 100644 view/stylesheets/pico/themes/default/_dark.scss delete mode 100644 view/stylesheets/pico/themes/default/_light.scss delete mode 100644 view/stylesheets/pico/themes/default/_schemes.scss delete mode 100644 view/stylesheets/pico/themes/default/_styles.scss delete mode 100644 view/stylesheets/pico/themes/default/_theme-colors.scss delete mode 100644 view/stylesheets/pico/utilities/_accessibility.scss delete mode 100644 view/stylesheets/pico/utilities/_reduce-motion.scss diff --git a/.gitignore b/.gitignore index fbe3bb8..7531e82 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,8 @@ tmp # we do not want these *_templ.txt *_templ.go -public/tallytome.css \ No newline at end of file +public/tallytome.css + +node_modules +package-lock.json +package.json diff --git a/README.md b/README.md index 5f91620..b53d23f 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,3 @@ Small tracker site build with GO and HTMX. - [ ] Database connection - [ ] Page to track critical hits or misses - [ ] Remove the main PicoCSS files from Git - ---- - diff --git a/view/stylesheets/custom/_dark.scss b/view/stylesheets/custom/_dark.scss index b2a82c9..2ce51d3 100644 --- a/view/stylesheets/custom/_dark.scss +++ b/view/stylesheets/custom/_dark.scss @@ -1,7 +1,7 @@ @use "sass:map"; -@use "../pico/colors" as *; -@use "../pico/settings" as *; -@use "../pico/helpers/functions"; +@use "../node_modules/@picocss/pico/scss/colors" as *; +@use "../node_modules/@picocss/pico/scss/settings" as *; +@use "../node_modules/@picocss/pico/scss/helpers/functions"; @use "theme-colors"; // Default: Dark theme diff --git a/view/stylesheets/custom/_light.scss b/view/stylesheets/custom/_light.scss index b1beab4..63de63b 100644 --- a/view/stylesheets/custom/_light.scss +++ b/view/stylesheets/custom/_light.scss @@ -1,7 +1,7 @@ @use "sass:map"; -@use "../pico/colors" as *; -@use "../pico/settings" as *; -@use "../pico/helpers/functions"; +@use "../node_modules/@picocss/pico/scss/colors" as *; +@use "../node_modules/@picocss/pico/scss/settings" as *; +@use "../node_modules/@picocss/pico/scss/helpers/functions"; @use "theme-colors"; // Default: Light theme diff --git a/view/stylesheets/custom/_schemes.scss b/view/stylesheets/custom/_schemes.scss index 8cdad62..534a841 100644 --- a/view/stylesheets/custom/_schemes.scss +++ b/view/stylesheets/custom/_schemes.scss @@ -1,5 +1,5 @@ @use "sass:map"; -@use "../pico/settings" as *; +@use "../node_modules/@picocss/pico/scss/settings" as *; @use "light"; @use "dark"; @@ -35,4 +35,4 @@ #{$parent-selector} [type="radio"], #{$parent-selector} [type="range"] { accent-color: var(#{$css-var-prefix}primary); -} \ No newline at end of file +} diff --git a/view/stylesheets/custom/_styles.scss b/view/stylesheets/custom/_styles.scss index 4a64726..b8c3d2c 100644 --- a/view/stylesheets/custom/_styles.scss +++ b/view/stylesheets/custom/_styles.scss @@ -1,7 +1,7 @@ @use "sass:map"; -@use "../pico/colors" as *; -@use "../pico/settings" as *; -@use "../pico/helpers/functions"; +@use "../node_modules/@picocss/pico/scss/colors" as *; +@use "../node_modules/@picocss/pico/scss/settings" as *; +@use "../node_modules/@picocss/pico/scss/helpers/functions"; @use "theme-colors"; @@ -472,4 +472,4 @@ input:not([type="submit"], } } } -} \ No newline at end of file +} diff --git a/view/stylesheets/custom/_theme-colors.scss b/view/stylesheets/custom/_theme-colors.scss index 3fc18f7..025115d 100644 --- a/view/stylesheets/custom/_theme-colors.scss +++ b/view/stylesheets/custom/_theme-colors.scss @@ -1,6 +1,6 @@ @use "sass:map"; -@use "../pico/colors" as *; -@use "../pico/settings" as *; +@use "../node_modules/@picocss/pico/scss/colors" as *; +@use "../node_modules/@picocss/pico/scss/settings" as *; $color-mappings: ( "crabnpaper": ( diff --git a/view/stylesheets/pico/_index.scss b/view/stylesheets/pico/_index.scss deleted file mode 100644 index 33d57be..0000000 --- a/view/stylesheets/pico/_index.scss +++ /dev/null @@ -1,49 +0,0 @@ -@use "helpers/copyright"; - -// Config -@forward "settings"; - -// Theming -@use "themes/default"; - -// Layout -@use "layout/document"; // html -@use "layout/landmarks"; // body, header, main, footer -@use "layout/section"; // section -@use "layout/container"; // .container, .container-fluid -@use "layout/grid"; // .grid -@use "layout/overflow-auto"; // .overflow-auto - -// Content -@use "content/typography"; // headings, p, ul, blockquote, ... -@use "content/link"; // a, role="link" -@use "content/button"; // button, role="button", type="button", type="submit" ... -@use "content/table"; // table, tr, td, ... -@use "content/embedded"; // audio, canvas, iframe, img, svg, video -@use "content/code"; // pre, code, ... -@use "content/figure"; // figure, figcaption -@use "content/miscs"; // hr, template, [hidden], dialog, canvas - -// Forms -@use "forms/basics"; // input, select, textarea, label, fieldset, legend -@use "forms/checkbox-radio-switch"; // type="checkbox", type="radio", role="switch" -@use "forms/input-color"; // type="color" -@use "forms/input-date"; // type="date", type="datetime-local", type="month", type="time", type="week" -@use "forms/input-file"; // type="file" -@use "forms/input-range"; // type="range" -@use "forms/input-search"; // type="search" - -// Components -@use "components/accordion"; // details, summary -@use "components/card"; // article -@use "components/dropdown"; // details.dropdown -@use "components/group"; // role="group" -@use "components/loading"; // aria-busy=true -@use "components/modal"; // dialog -@use "components/nav"; // nav -@use "components/progress"; // progress -@use "components/tooltip"; // data-tooltip - -// Utilities -@use "utilities/accessibility"; // -ms-touch-action, aria-* -@use "utilities/reduce-motion"; // prefers-reduced-motion diff --git a/view/stylesheets/pico/_settings.scss b/view/stylesheets/pico/_settings.scss deleted file mode 100644 index d1fa911..0000000 --- a/view/stylesheets/pico/_settings.scss +++ /dev/null @@ -1,148 +0,0 @@ -@use "sass:map"; - -// Settings -// –––––––––––––––––––– - -// Theme color -$theme-color: "azure" !default; // amber, azure, blue, cyan, fuchsia, green, grey, indigo, jade, lime, orange, pink, pumpkin, purple, red, sand, slate, violet, yellow, zinc - -// Prefix for CSS variables -$css-var-prefix: "--pico-" !default; // Must start with "--" - -// Define the root element used to target
,
,