aboutsummaryrefslogtreecommitdiff
path: root/p/themes/Mapco/_components.scss
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2022-02-04 15:41:51 +0100
committerGravatar GitHub <noreply@github.com> 2022-02-04 15:41:51 +0100
commit5a891dc0e4d1e5c7d36609bba4bd3df5063b9745 (patch)
tree4b420f96082fcde911a36ed8fc709ed12a500089 /p/themes/Mapco/_components.scss
parent88b934da8bec70da1400525748336c0b71864b1a (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/_components.scss')
-rw-r--r--p/themes/Mapco/_components.scss104
1 files changed, 55 insertions, 49 deletions
diff --git a/p/themes/Mapco/_components.scss b/p/themes/Mapco/_components.scss
index 35b4e5790..11b1ca92c 100644
--- a/p/themes/Mapco/_components.scss
+++ b/p/themes/Mapco/_components.scss
@@ -1,3 +1,9 @@
+@use "sass:string";
+
+@use "mixins";
+
+@use "variables";
+
/*=== COMPONENTS */
/*===============*/
/*=== Forms */
@@ -22,7 +28,7 @@
.dropdown-menu {
margin: 9px 0 0 0;
padding: 0.5rem 0 1rem 0;
- background: $grey-lighter;
+ background: variables.$grey-lighter;
font-size: 1rem;
border: none;
border-radius: 3px;
@@ -39,7 +45,7 @@
margin: 1.75rem 0 0.5rem 2rem;
font-weight: bold;
text-align: left;
- color: $grey-dark;
+ color: variables.$grey-dark;
text-transform: uppercase;
letter-spacing: 1px;
@@ -47,22 +53,22 @@
.item {
- @include transition(all, 0.075s, ease-in-out);
+ @include mixins.transition(all, 0.075s, ease-in-out);
a, span, .as-link {
padding: 0 2rem;
- color: $main-font-color;
+ color: variables.$main-font-color;
font-size: 1rem;
line-height: 2.5em;
}
&:hover {
- background: $main-first;
- color: $white;
+ background: variables.$main-first;
+ color: variables.$white;
a, button {
text-decoration: none;
- color: $white;
+ color: variables.$white;
}
}
@@ -84,7 +90,7 @@
.separator {
margin: 0.75rem 0;
- border-bottom: 1px solid $grey-light;
+ border-bottom: 1px solid variables.$grey-light;
// display: none;
}
@@ -97,15 +103,15 @@
a,
button {
- color: $main-font-color;
+ color: variables.$main-font-color;
&:hover {
- color: $white;
+ color: variables.$white;
}
}
&:hover {
- background: $main-first;
+ background: variables.$main-first;
}
}
}
@@ -118,12 +124,12 @@
margin: 1rem 0;
// width: 100%;
padding: 1rem;
- background: $grey-lighter;
- color: $grey-dark;
+ background: variables.$grey-lighter;
+ color: variables.$grey-dark;
font-size: 1rem;
- border: 1px solid $grey-medium;
+ border: 1px solid variables.$grey-medium;
border-radius: 3px;
- text-shadow: 0 0 1px $grey-light;
+ text-shadow: 0 0 1px variables.$grey-light;
}
.alert-head {
@@ -136,48 +142,48 @@
}
.alert-warn {
- background: $warning-light;
- color: $warning-text;
- border: 1px solid unquote($warning-text+'33'); // on ajoute l’opacité à la fin
+ background: variables.$warning-light;
+ color: variables.$warning-text;
+ border: 1px solid string.unquote(variables.$warning-text + '33'); // on ajoute l’opacité à la fin
}
.alert-success {
- background: $success-light;
- color: $success-text;
- border: 1px solid unquote($success-text+'33');
+ background: variables.$success-light;
+ color: variables.$success-text;
+ border: 1px solid string.unquote(variables.$success-text + '33');
}
.alert-error {
- background: $alert-light;
- color: $alert-text;
- border: 1px solid unquote($alert-text+'33');
+ background: variables.$alert-light;
+ color: variables.$alert-text;
+ border: 1px solid string.unquote(variables.$alert-text + '33');
}
/*=== Pagination */
.pagination {
- background: $grey-light;
- color: $main-font-color;
+ background: variables.$grey-light;
+ color: variables.$main-font-color;
font-size: 0.8em;
text-align: center;
.item {
&.pager-current {
- background: $sid-bg;
- color: $grey-light;
+ background: variables.$sid-bg;
+ color: variables.$grey-light;
font-size: 1.5em;
font-weight: bold;
}
a {
display: block;
- color: $main-font-color;
+ color: variables.$main-font-color;
font-style: italic;
line-height: 3em;
text-decoration: none;
&:hover {
- background: $main-font-color;
- color: $grey-light;
+ background: variables.$main-font-color;
+ color: variables.$grey-light;
}
}
}
@@ -197,7 +203,7 @@
/*=== Boxes */
.box {
- background: $white;
+ background: variables.$white;
// border: 1px solid #ddd;
border: none;
border-radius: 3px;
@@ -207,8 +213,8 @@
.box-title {
margin: 0;
padding: 5px 10px;
- background: $grey-light;
- color: $main-font-color;
+ background: variables.$grey-light;
+ color: variables.$main-font-color;
// border-bottom: 1px solid #ddd;
border-radius: 2px 2px 0 0;
@@ -233,7 +239,7 @@
}
&:hover {
- background: url("icons/cog-white.svg") no-repeat 4px 4px $main-first;
+ background: url("icons/cog-white.svg") no-repeat 4px 4px variables.$main-first;
}
}
}
@@ -269,9 +275,9 @@
.item {
padding: 0.5rem 0;
- color: $main-font-color;
+ color: variables.$main-font-color;
font-size: 1rem;
- border-bottom: 1px solid $grey-light;
+ border-bottom: 1px solid variables.$grey-light;
line-height: 1.7em;
img {
@@ -295,7 +301,7 @@
&:hover {
// background: $main-first;
- background: url("icons/cog-white.svg") no-repeat 4px 4px $main-first;
+ background: url("icons/cog-white.svg") no-repeat 4px 4px variables.$main-first;
}
}
@@ -311,13 +317,13 @@
#bigMarkAsRead {
text-align: center;
text-decoration: none;
- background: $main-first-light;
- color: $main-first;
+ background: variables.$main-first-light;
+ color: variables.$main-first;
- @include transition(all, 0.15s, ease-in-out);
+ @include mixins.transition(all, 0.15s, ease-in-out);
&:hover {
- background: $main-first;
+ background: variables.$main-first;
color: #fff;
.bigTick {
@@ -338,7 +344,7 @@
// page de login
.formLogin {
- background: $sid-bg;
+ background: variables.$sid-bg;
.header {
.configure {
@@ -349,13 +355,13 @@
}
a.signin {
- color: $white;
+ color: variables.$white;
}
}
}
h1 {
- color: $white;
+ color: variables.$white;
}
form#crypto-form {
@@ -363,18 +369,18 @@
margin-bottom: 1rem;
label {
- color: $grey-medium;
+ color: variables.$grey-medium;
font-size: 1rem;
}
input {
- background: $main-first-darker;
+ background: variables.$main-first-darker;
&:focus {
- background: $grey-lighter;
- color: $main-font-color;
+ background: variables.$grey-lighter;
+ color: variables.$main-font-color;
}
}
}