From 35d56a266f27b53b90c4c66be0bc23513e1a86bb Mon Sep 17 00:00:00 2001 From: Andrea Stagi Date: Tue, 21 Nov 2023 15:41:36 +0100 Subject: [PATCH] feat: remove bootstrap italia comuni --- _includes/head.html | 5 - rollup.config.js | 16 +- src/js/bootstrap-italia-comuni.js | 1 - src/scss/_override-comuni.scss | 50 ------- src/scss/bootstrap-italia-comuni.scss | 204 -------------------------- 5 files changed, 1 insertion(+), 275 deletions(-) delete mode 100644 src/js/bootstrap-italia-comuni.js delete mode 100644 src/scss/_override-comuni.scss delete mode 100644 src/scss/bootstrap-italia-comuni.scss diff --git a/_includes/head.html b/_includes/head.html index b73c94a21c..c819e17a06 100755 --- a/_includes/head.html +++ b/_includes/head.html @@ -10,13 +10,8 @@ {%- if page.title -%} {{ page.title | smartify }} · {{ site.title | smartify }} {%- else -%} {{ site.title | smartify }} · {{ site.description | smartify }} {%- endif -%} -{% if page.comuni %} - - -{% else %} -{% endif %} {% if page.layout == "docs" %} {% comment %}La ricerca è gestita con Algolia DocSearch https://github.com/algolia/docsearch{% endcomment %} diff --git a/rollup.config.js b/rollup.config.js index ff256517b5..85ef951505 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -140,19 +140,5 @@ export default [ NODE_ENV: 'production', }), ], - }, - // Entry for Comuni - { - input: 'src/scss/bootstrap-italia-comuni.scss', - output: { - dir: 'dist', - }, - plugins: [ - scss({ - output: 'dist/css/bootstrap-italia-comuni.min.css', - outputStyle: 'compressed', - watch: 'src/scss', - }), - ], - }, + } ] diff --git a/src/js/bootstrap-italia-comuni.js b/src/js/bootstrap-italia-comuni.js deleted file mode 100644 index 376997f887..0000000000 --- a/src/js/bootstrap-italia-comuni.js +++ /dev/null @@ -1 +0,0 @@ -import '../scss/bootstrap-italia-comuni.scss' diff --git a/src/scss/_override-comuni.scss b/src/scss/_override-comuni.scss deleted file mode 100644 index 3fe0d64939..0000000000 --- a/src/scss/_override-comuni.scss +++ /dev/null @@ -1,50 +0,0 @@ -//-modifica stili per template comuni non modificabili con la redifinizione delle variabili colore -//body -body { - color: $color-text-secondary; -} -//BUTTONS -.btn-primary, -.btn-primary:hover { - color: $btn-comuni-primary-hover; -} - -//FOOTER -.it-footer-main { - background-color: $footer-comuni-bg-color; -} -.it-footer-small-prints { - background-color: $footer-comuni-bg-color; -} - -//card bg -.card.card-bg-dark { - background-color: $card-comuni-bg-dark; -} - -//card-teaser exeption -.card-teaser .link-list-wrapper ul li a .icon-primary { - fill: $link-list-comuni-color !important; -} -.card-teaser .link-list-wrapper ul li a, -.card-teaser .link-list-wrapper ul li a span { - color: $link-list-comuni-color; -} - -//link list bar -.link-list-wrapper.menu-link-list h3:after, -.link-list-wrapper.menu-link-list .h3:after, -.link-list-wrapper.menu-link-list h4:after, -.link-list-wrapper.menu-link-list .h4:after { - background-color: $primary; -} - -//card texts color -.card .card-body h5.card-title, -.card .card-body .card-title.h5 { - color: $color-text-secondary; -} - -.text-primary { - color: $neutral-1-a7 !important; // TODO: check if still valid -} diff --git a/src/scss/bootstrap-italia-comuni.scss b/src/scss/bootstrap-italia-comuni.scss deleted file mode 100644 index 4ddb053853..0000000000 --- a/src/scss/bootstrap-italia-comuni.scss +++ /dev/null @@ -1,204 +0,0 @@ -// color custom variables - -/*figma color -primary: #007A52; -primary dark: #00402B; -primary light: #56D6AB; -primary lighter: #F0F8F5; -*/ - -// primary #007A52 -$primary-h: 160; -$primary-s: 100; -$primary-b: 48; - -//buttons custom vars - -// bootstrap italia version variable -// useful to check for the current version -@import 'custom/version'; - -// funzioni e variabili colore -@import 'functions'; -@import 'utilities/colors_vars'; - -// color custom variables -$color-text-primary-hover: hsl(160, 100%, 19%); // color-seagreen-19 -$color-text-primary-active: hsl(160, 100%, 14%); // color-seagreen-14 -$color-background-primary-lighter: hsl(160, 40%, 92%); // color-seagreen-92 -$btn-comuni-primary-hover: #fff; -$header-center-bg-color: $primary; -$header-slim-bg-color: #00402b; -$section-header-background-color: $primary-a10; -$section-user-header-background-color: #f0f8f5; -$card-link-color: $primary; -$card-comuni-bg-dark: #2c2c2c; -$footer-comuni-bg-color: #202a2e; -$link-list-comuni-color: #455a64; -$link-list-hover-color: $primary; - -//variables -@import 'variables'; - -//classi colore -@import 'utilities/colors'; - -// BS5 Configuration -@import 'bootstrap/scss/functions'; -@import 'bootstrap/scss/variables'; -//@import 'bootstrap/scss/maps'; -@import 'bootstrap/scss/mixins'; -// mixins custom -@import 'custom/mixins/buttons'; -@import 'custom/mixins/text-emphasis'; -// -@import 'bootstrap/scss/maps'; -@import 'bootstrap/scss/utilities'; - -// BS5 Layout & components -@import 'bootstrap/scss/root'; -@import 'bootstrap/scss/reboot'; -@import 'bootstrap/scss/type'; -@import 'bootstrap/scss/images'; -@import 'bootstrap/scss/containers'; -@import 'bootstrap/scss/grid'; -@import 'bootstrap/scss/tables'; -@import 'bootstrap/scss/forms'; -@import 'bootstrap/scss/buttons'; -@import 'bootstrap/scss/transitions'; -@import 'bootstrap/scss/dropdown'; -@import 'bootstrap/scss/button-group'; -@import 'bootstrap/scss/nav'; -@import 'bootstrap/scss/navbar'; -@import 'bootstrap/scss/card'; -@import 'bootstrap/scss/accordion'; -@import 'bootstrap/scss/breadcrumb'; -@import 'bootstrap/scss/pagination'; -@import 'bootstrap/scss/badge'; -@import 'bootstrap/scss/alert'; -@import 'bootstrap/scss/progress'; -@import 'bootstrap/scss/list-group'; -@import 'bootstrap/scss/close'; -@import 'bootstrap/scss/toasts'; -@import 'bootstrap/scss/modal'; -@import 'bootstrap/scss/tooltip'; -@import 'bootstrap/scss/popover'; -@import 'bootstrap/scss/carousel'; -@import 'bootstrap/scss/spinners'; -@import 'bootstrap/scss/offcanvas'; -@import 'bootstrap/scss/placeholders'; - -// Helpers -@import 'bootstrap/scss/helpers'; - -// Utilities -@import 'bootstrap/scss/utilities/api'; -// scss-docs-end import-stack - -// Customizzazioni e nuovi componenti -@import 'utilities/text-colors'; -@import 'custom/type'; -@import 'custom/grid'; -@import 'custom/tables'; -@import 'custom/breadcrumb'; -@import 'custom/modal'; -@import 'custom/accordion'; -@import 'custom/carousel'; -@import 'custom/calendar'; -@import 'custom/alert'; -@import 'custom/buttons'; -@import 'custom/font'; -@import 'custom/forms'; -@import 'custom/form-input-file'; -@import 'custom/form-input-number'; -@import 'custom/form-input-upload'; -@import 'custom/form-toggles'; -@import 'custom/form-password'; -@import 'custom/form-select'; -@import 'custom/form-transfer'; -@import 'custom/dropdown'; -@import 'custom/pager'; -@import 'custom/tab'; -@import 'custom/cookiebar'; -@import 'custom/hero'; -@import 'custom/forward'; -@import 'custom/back-to-top'; -@import 'custom/autocomplete'; -@import 'custom/linklist'; -@import 'custom/navigation'; -@import 'custom/skiplinks'; -@import 'custom/affix'; -@import 'custom/sidebar'; -@import 'custom/sidebarthemes'; -@import 'custom/megamenu'; -@import 'custom/bottomnav'; -@import 'custom/navscroll'; -@import 'custom/navscrolltheme'; -@import 'custom/callout'; -@import 'custom/toolbar'; -@import 'custom/sections'; -@import 'custom/notifications'; -@import 'custom/avatar'; -@import 'custom/thumbnav'; -@import 'custom/steppers'; -@import 'custom/card'; -@import 'custom/imgresponsive'; -@import 'custom/overlay-panel'; -@import 'custom/progress-donuts'; -@import 'custom/progress-bars'; -@import 'custom/progress-spinners'; -@import 'custom/gridlist'; -@import 'custom/popover'; -@import 'custom/tooltip'; -@import 'custom/list'; -@import 'custom/chips'; -@import 'custom/rating'; -@import 'custom/dimmer'; -@import 'custom/timeline'; -@import 'custom/anchor'; -@import 'custom/map'; -@import 'custom/point-list'; -@import 'custom/rating-list'; -@import 'custom/badge'; -@import 'custom/figcaption'; -@import 'custom/sticky'; -@import 'custom/print'; -@import 'custom/code'; -@import 'custom/images'; -@import 'custom/just-validate'; -@import 'custom/accessible-autocomplete'; -@import 'custom/page-scroll'; - -// datepicker -@import 'custom/form-datepicker'; - -// timepicker -@import 'custom/timepicker'; - -// header -@import 'custom/headerslim'; -@import 'custom/headerslimtheme'; -@import 'custom/headercenter'; -@import 'custom/headercentertheme'; -@import 'custom/headernavbar'; -@import 'custom/headernavbartheme'; -@import 'custom/header'; - -// footer -@import 'custom/footer'; - -//colors theme -@import 'custom/navigationtheme'; - -// componente di esempio -@import 'custom/componente-base'; - -//gestione dei focus -@import 'utilities/focus'; -@import 'utilities/icons'; - -// splide carousel -@import '@splidejs/splide/src/css/core/index'; - -// override comuni -@import 'override-comuni';