diff options
| author | 2022-02-04 15:41:51 +0100 | |
|---|---|---|
| committer | 2022-02-04 15:41:51 +0100 | |
| commit | 5a891dc0e4d1e5c7d36609bba4bd3df5063b9745 (patch) | |
| tree | 4b420f96082fcde911a36ed8fc709ed12a500089 /p/themes/Mapco/_layout.scss | |
| parent | 88b934da8bec70da1400525748336c0b71864b1a (diff) | |
Update dev dependencies stylelint SASS (#4173)
* Update dev dependencies stylelint SASS
Major update for stylelint with breaking changes
https://stylelint.io/migration-guide/to-14/
Applied automatic SASS migration to current syntax
https://sass-lang.com/documentation/cli/migrator#migrations
And a few manual fixes such as:
https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/dollar-variable-no-missing-interpolation/README.md
Other dev dependencies are minor updates.
* RTLCSS
* Fix color-hex-length bug
* Implement make bin/composer
* Update git hash
Diffstat (limited to 'p/themes/Mapco/_layout.scss')
| -rw-r--r-- | p/themes/Mapco/_layout.scss | 100 |
1 files changed, 52 insertions, 48 deletions
diff --git a/p/themes/Mapco/_layout.scss b/p/themes/Mapco/_layout.scss index d3f87c9e2..30feb9f19 100644 --- a/p/themes/Mapco/_layout.scss +++ b/p/themes/Mapco/_layout.scss @@ -1,9 +1,13 @@ +@use "mixins"; + +@use "variables"; + /*=== STRUCTURE */ /*===============*/ /*=== Header */ .header { padding: 0.5rem 1.35rem; - background: $sid-bg; + background: variables.$sid-bg; display: block; width: auto; table-layout: none; @@ -36,22 +40,22 @@ // width: 50%; input { width: 230px; - color: $sid-font-color; + color: variables.$sid-font-color; border: none; border-radius: 2px 0 0 2px; - background-color: $sid-bg-alt; + background-color: variables.$sid-bg-alt; - @include transition(all, 0.15s, ease-in-out); + @include mixins.transition(all, 0.15s, ease-in-out); &:hover { - background-color: $sid-bg-dark; + background-color: variables.$sid-bg-dark; } &:focus { width: 350px; - color: $grey-dark; + color: variables.$grey-dark; - background-color: $white; + background-color: variables.$white; } } @@ -61,7 +65,7 @@ width: 3rem; border-radius: 0 2px 2px 0; - background-color: $main-first; + background-color: variables.$main-first; background-position: center; background-repeat: no-repeat; background-image: url(icons/magnifier.svg); @@ -70,7 +74,7 @@ min-height: 35px; &:hover { - background-color: $main-first-alt; + background-color: variables.$main-first-alt; } } } @@ -137,19 +141,19 @@ /*=== New article notification */ #new-article { - background: $main-first; + background: variables.$main-first; font-size: 1rem; text-align: center; } #new-article:hover { - background: $main-first-alt; + background: variables.$main-first-alt; } #new-article > a { line-height: 3em; font-weight: bold; - color: $white; + color: variables.$white; } #new-article > a:hover { @@ -159,7 +163,7 @@ /*=== Day indication */ .day { padding: 1rem 0 0 1.25rem; - color: $light-font-color; + color: variables.$light-font-color; font-size: 0.875rem; font-weight: 700; line-height: 3em; @@ -169,7 +173,7 @@ .name { padding: 0 1rem 0 1rem; // font-weight: 700; - color: $main-font-color; + color: variables.$main-font-color; font-size: 0.875rem; position: relative; left: 0; @@ -187,33 +191,33 @@ .btn { border-left-width: 0; padding: 0.5rem 1rem; - background-color: $grey-lighter; + background-color: variables.$grey-lighter; background-position: center; background-repeat: no-repeat; &:hover { - background-color: $grey-light; + background-color: variables.$grey-light; } } .stick { - background: $grey-lighter; + background: variables.$grey-lighter; .btn { border-left-width: 0; padding: 0.5rem 1rem; - background-color: $grey-lighter; + background-color: variables.$grey-lighter; background-position: center; background-repeat: no-repeat; - @include transition(all, 0.15s, ease-in-out); + @include mixins.transition(all, 0.15s, ease-in-out); &:hover { - background-color: $grey-medium-light; + background-color: variables.$grey-medium-light; } &.active { - background-color: $main-first; + background-color: variables.$main-first; } img.icon {display: none;} // on efface pour afficher nos icones, mouhahaha !! @@ -256,13 +260,13 @@ &.read_all { padding: 5px 16px; // min-height: 0; - color: $main-font-color; - background-color: $grey-lighter; + color: variables.$main-font-color; + background-color: variables.$grey-lighter; - @include transition(all, 0.15s, ease-in-out); + @include mixins.transition(all, 0.15s, ease-in-out); &:hover { - background-color: $grey-medium-light; + background-color: variables.$grey-medium-light; } } @@ -309,7 +313,7 @@ #dropdown-query ~ .dropdown-menu .dropdown-header .icon { vertical-align: middle; - background-color: $grey-medium-dark; + background-color: variables.$grey-medium-dark; border-radius: 3px; } @@ -323,19 +327,19 @@ h1.title, h1 { a { - color: $main-font-color; + color: variables.$main-font-color; font-family: "spectral", serif; font-size: 2rem; &:hover { - color: $main-first; + color: variables.$main-first; text-decoration: none; } } } .author { - color: $light-font-color; + color: variables.$light-font-color; font-size: 1.125rem; } @@ -346,7 +350,7 @@ .content hr { margin: 30px 10px; - background: $grey-medium-light; + background: variables.$grey-medium-light; height: 1px; border: 0; box-shadow: 0 2px 5px #ccc; @@ -356,22 +360,22 @@ margin: 10px auto; padding: 10px 20px; overflow: auto; - background: $main-first-darker; - color: $white; + background: variables.$main-first-darker; + color: variables.$white; font-size: 0.9rem; border-radius: 3px; code { background: transparent; - color: $white; + color: variables.$white; border: none; } } code { padding: 2px 5px; - background: $grey-lighter; - border: 1px solid $grey-light; + background: variables.$grey-lighter; + border: 1px solid variables.$grey-light; border-radius: 3px; } @@ -379,11 +383,11 @@ blockquote { margin: 0; padding: 5px 20px; - background: $grey-lighter; + background: variables.$grey-lighter; display: block; - color: $main-font-color; - border-top: 1px solid $grey-medium-light; - border-bottom: 1px solid $grey-medium-light; + color: variables.$main-font-color; + border-top: 1px solid variables.$grey-medium-light; + border-bottom: 1px solid variables.$grey-medium-light; p { margin: 0; @@ -397,10 +401,10 @@ .notification { padding: 1rem 0; - background: $grey-medium-light; + background: variables.$grey-medium-light; width: 100%; height: 3rem; - color: $grey-dark; + color: variables.$grey-dark; // font-weight: bold; font-size: 1em; // border-radius: 3px; @@ -421,13 +425,13 @@ } &.good { - background: $success-bg; - color: $white; + background: variables.$success-bg; + color: variables.$white; } &.bad { - background: $alert-bg; - color: $white; + background: variables.$alert-bg; + color: variables.$white; } a.close { @@ -437,11 +441,11 @@ } &.good a.close:hover { - background: $success-text; + background: variables.$success-text; } &.bad a.close:hover { - background: $alert-text; + background: variables.$alert-text; } &#actualizeProgress { @@ -460,5 +464,5 @@ text-align: center; line-height: 3em; table-layout: fixed; - background: $sid-bg; + background: variables.$sid-bg; } |
