style(frontend): enforce scss dollar-variable-pattern in layout styles
- Stylelint: - re-enable `scss/dollar-variable-pattern` in the frontend Stylelint config while keeping the agreed Angular and legacy Sass exceptions intact - SCSS: - rename the remaining camelCase layout Sass variables to kebab-case and update all layout partial references accordingly - Validation: - `just ui stylelint`
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
min-height: 100dvh;
|
min-height: 100dvh;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding: 5rem 1.1rem 1.1rem 3.6rem;
|
padding: 5rem 1.1rem 1.1rem 3.6rem;
|
||||||
transition: margin-left variables.$transitionDuration;
|
transition: margin-left variables.$transition-duration;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
width: -webkit-fill-available;
|
width: -webkit-fill-available;
|
||||||
|
|||||||
@@ -10,10 +10,10 @@
|
|||||||
user-select: none;
|
user-select: none;
|
||||||
top: 5rem;
|
top: 5rem;
|
||||||
left: 1.1rem;
|
left: 1.1rem;
|
||||||
transition: transform variables.$transitionDuration, left variables.$transitionDuration;
|
transition: transform variables.$transition-duration, left variables.$transition-duration;
|
||||||
background-color: var(--card-background);
|
background-color: var(--card-background);
|
||||||
border: 1px solid var(--p-content-border-color);
|
border: 1px solid var(--p-content-border-color);
|
||||||
border-radius: variables.$borderRadius;
|
border-radius: variables.$border-radius;
|
||||||
padding: 0.5rem 0.8rem 0.5rem 1.35rem;
|
padding: 0.5rem 0.8rem 0.5rem 1.35rem;
|
||||||
box-shadow: 0 3px 5px rgb(0 0 0 / 2%), 0 0 2px rgb(0 0 0 / 5%), 0 1px 4px rgb(0 0 0 / 8%);
|
box-shadow: 0 3px 5px rgb(0 0 0 / 2%), 0 0 2px rgb(0 0 0 / 5%), 0 1px 4px rgb(0 0 0 / 8%);
|
||||||
}
|
}
|
||||||
@@ -75,13 +75,13 @@
|
|||||||
color: var(--text-color);
|
color: var(--text-color);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
padding: 0.45rem 0.3rem 0.45rem 0.6rem;
|
padding: 0.45rem 0.3rem 0.45rem 0.6rem;
|
||||||
border-radius: variables.$borderRadius;
|
border-radius: variables.$border-radius;
|
||||||
transition: background-color variables.$transitionDuration, box-shadow variables.$transitionDuration;
|
transition: background-color variables.$transition-duration, box-shadow variables.$transition-duration;
|
||||||
|
|
||||||
.layout-submenu-toggler {
|
.layout-submenu-toggler {
|
||||||
font-size: 75%;
|
font-size: 75%;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
transition: transform variables.$transitionDuration;
|
transition: transform variables.$transition-duration;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.active-route {
|
&.active-route {
|
||||||
@@ -100,7 +100,7 @@
|
|||||||
|
|
||||||
ul {
|
ul {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
border-radius: variables.$borderRadius;
|
border-radius: variables.$border-radius;
|
||||||
|
|
||||||
li {
|
li {
|
||||||
a {
|
a {
|
||||||
|
|||||||
@@ -95,7 +95,7 @@
|
|||||||
|
|
||||||
.layout-mask {
|
.layout-mask {
|
||||||
display: block;
|
display: block;
|
||||||
animation: fadein variables.$transitionDuration;
|
animation: fadein variables.$transition-duration;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
background-color: color-mix(in srgb, var(--card-background) 25%, transparent);
|
background-color: color-mix(in srgb, var(--card-background) 25%, transparent);
|
||||||
border: none;
|
border: none;
|
||||||
border-bottom: 1px solid var(--p-content-border-color);
|
border-bottom: 1px solid var(--p-content-border-color);
|
||||||
transition: left variables.$transitionDuration;
|
transition: left variables.$transition-duration;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
box-shadow: 0 3px 5px rgb(0 0 0 / 2%), 0 0 2px rgb(0 0 0 / 5%), 0 1px 4px rgb(0 0 0 / 8%);
|
box-shadow: 0 3px 5px rgb(0 0 0 / 2%), 0 0 2px rgb(0 0 0 / 5%), 0 1px 4px rgb(0 0 0 / 8%);
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ h6 {
|
|||||||
mark {
|
mark {
|
||||||
background: #FFF8E1;
|
background: #FFF8E1;
|
||||||
padding: .25rem .4rem;
|
padding: .25rem .4rem;
|
||||||
border-radius: variables.$borderRadius;
|
border-radius: variables.$border-radius;
|
||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/* General */
|
/* General */
|
||||||
$scale: 14px; /* main font size */
|
$scale: 14px; /* main font size */
|
||||||
$borderRadius: 12px; /* border radius of layout element e.g. card, sidebar */
|
$border-radius: 12px; /* border radius of layout element e.g. card, sidebar */
|
||||||
$transitionDuration: .2s; /* transition duration of layout elements e.g. sidebar, overlay menus */
|
$transition-duration: .2s; /* transition duration of layout elements e.g. sidebar, overlay menus */
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
"scss/dollar-variable-empty-line-before": null,
|
"scss/dollar-variable-empty-line-before": null,
|
||||||
"scss/dollar-variable-pattern": null,
|
|
||||||
"scss/load-partial-extension": null,
|
"scss/load-partial-extension": null,
|
||||||
"scss/load-no-partial-leading-underscore": null,
|
"scss/load-no-partial-leading-underscore": null,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user