Make better use of explicit variables and mixins

This commit is contained in:
Guillaume AGNIERAY
2023-05-11 16:35:58 +02:00
parent 4d5350abcf
commit 4cad934780
3 changed files with 21 additions and 26 deletions

View File

@@ -358,10 +358,10 @@
} }
#main { #main {
overflow: hidden; overflow: hidden;
background: $white; background: $body-bg;
} }
#footer { #footer {
background: $white; background: $body-bg;
&::before { &::before {
content: " "; content: " ";

View File

@@ -1,3 +1,5 @@
@use "sass:math";
// //
// Additionals // Additionals
// https://www.redmine.org/plugins/additionals // https://www.redmine.org/plugins/additionals
@@ -5,7 +7,7 @@
#sidebar .dashboards .dashboard-system-default { #sidebar .dashboards .dashboard-system-default {
position: absolute; position: absolute;
transform: translateY(-175%); transform: translateY(- ($sidebar-padding-vertical + math.div($line-height-computed, 2) + math.div($font-size-base, 2)));
@if $sidebar-position == "right" { @if $sidebar-position == "right" {
right: 15px; right: 15px;
} }
@@ -14,7 +16,7 @@
.flyout-menu .dashboard-system-default { .flyout-menu .dashboard-system-default {
position: absolute; position: absolute;
right: 10px; right: 10px;
transform: translateY(-190%); transform: translateY(- ($padding-large-vertical + math.div($line-height-computed, 2) + math.div($font-size-base, 2)));
} }
@@ -132,12 +134,11 @@
line-height: 1.2em; line-height: 1.2em;
&::before { &::before {
content: "\f021"; content: $fa-var-refresh;
display: block; @include fa-icon;
width: 1em; width: 1em;
margin: 0 auto; margin: 0 auto;
color: $green; color: $green;
font-family: FontAwesome;
line-height: 1.2em; line-height: 1.2em;
} }
} }
@@ -178,10 +179,9 @@
background-image: none; background-image: none;
&::before { &::before {
content: "\f00c"; content: $fa-var-check;
display: inline-block; @include fa-icon;
color: $green; color: $green;
font-family: FontAwesome;
} }
} }
@@ -197,10 +197,9 @@
background-image: none; background-image: none;
&::before { &::before {
content: "\f00d"; content: $fa-var-times;
display: inline-block; @include fa-icon;
margin-right: 8px; margin-right: 8px;
font-family: FontAwesome;
} }
} }
} }
@@ -232,13 +231,12 @@
background-image: none; background-image: none;
&::after { &::after {
content: "\f013"; content: $fa-var-cog;
display: inline-block; @include fa-icon;
position: absolute; position: absolute;
top: 1px; top: 1px;
left: 2px; left: 2px;
color: $gray-600; color: $gray-600;
font-family: FontAwesome;
} }
} }
@@ -247,10 +245,9 @@
background-image: none; background-image: none;
&::before { &::before {
content: "\f145"; content: $fa-var-ticket;
display: inline-block; @include fa-icon;
margin-right: 4px; margin-right: 4px;
font-family: FontAwesome;
} }
} }
@@ -259,10 +256,9 @@
background-image: none; background-image: none;
&::before { &::before {
content: "\f007"; content: $fa-var-user;
display: inline-block; @include fa-icon;
margin-right: 4px; margin-right: 4px;
font-family: FontAwesome;
} }
} }
} }
@@ -278,10 +274,9 @@
// -------------------------------------------------- // --------------------------------------------------
#impersonate::before { #impersonate::before {
content: "\f21b"; content: $fa-var-user-secret;
display: inline-block; @include fa-icon;
margin-right: 5px; margin-right: 5px;
font: normal normal normal 14px/1 FontAwesome;
} }
#impersonation-bar { #impersonation-bar {

File diff suppressed because one or more lines are too long