DEV: Refactor `dark-light-diff` usage in stylesheets
- Adds new `$danger-low-mid` SCSS variable - Removes `dark-light-diff` outside variables and color transformations
This commit is contained in:
parent
c9485692ed
commit
69efbd213b
|
@ -255,7 +255,7 @@
|
||||||
background: blend-primary-secondary(5%);
|
background: blend-primary-secondary(5%);
|
||||||
&:hover {
|
&:hover {
|
||||||
color: $primary;
|
color: $primary;
|
||||||
background: dark-light-diff($primary, $secondary, 90%, -80%);
|
background: $primary-low;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* as a big ol' click target, don't let text inside be selected */
|
/* as a big ol' click target, don't let text inside be selected */
|
||||||
|
|
|
@ -789,12 +789,7 @@ blockquote > *:last-child {
|
||||||
}
|
}
|
||||||
|
|
||||||
.small-action.deleted {
|
.small-action.deleted {
|
||||||
background-color: dark-light-diff(
|
background-color: $danger-low-mid;
|
||||||
rgba($danger, 0.7),
|
|
||||||
$secondary,
|
|
||||||
50%,
|
|
||||||
-60%
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.small-action-desc.timegap {
|
.small-action-desc.timegap {
|
||||||
|
|
|
@ -16,13 +16,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
&.deleted {
|
&.deleted {
|
||||||
opacity: 0.8;
|
background-color: $danger-low-mid;
|
||||||
background-color: dark-light-diff(
|
|
||||||
rgba($danger, 0.7),
|
|
||||||
$secondary,
|
|
||||||
50%,
|
|
||||||
-10%
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&.hidden {
|
&.hidden {
|
||||||
|
|
|
@ -64,6 +64,12 @@ $highlight-high: dark-light-diff($highlight, $secondary, -50%, -10%) !default;
|
||||||
|
|
||||||
//danger
|
//danger
|
||||||
$danger-low: dark-light-diff($danger, $secondary, 85%, -64%) !default;
|
$danger-low: dark-light-diff($danger, $secondary, 85%, -64%) !default;
|
||||||
|
$danger-low-mid: dark-light-diff(
|
||||||
|
rgba($danger, 0.7),
|
||||||
|
$secondary,
|
||||||
|
50%,
|
||||||
|
-60%
|
||||||
|
) !default;
|
||||||
$danger-medium: dark-light-diff($danger, $secondary, 30%, -35%) !default;
|
$danger-medium: dark-light-diff($danger, $secondary, 30%, -35%) !default;
|
||||||
|
|
||||||
//success
|
//success
|
||||||
|
|
|
@ -418,7 +418,7 @@ pre.copy-codeblocks:hover .copy-cmd {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
&:hover {
|
&:hover {
|
||||||
color: $primary;
|
color: $primary;
|
||||||
background: dark-light-diff($primary, $secondary, 90%, -80%);
|
background: $primary-low;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -512,12 +512,7 @@ video {
|
||||||
|
|
||||||
.deleted {
|
.deleted {
|
||||||
.topic-body {
|
.topic-body {
|
||||||
background-color: dark-light-diff(
|
background-color: $danger-low-mid;
|
||||||
rgba($danger, 0.7),
|
|
||||||
$secondary,
|
|
||||||
50%,
|
|
||||||
-60%
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -312,12 +312,7 @@ button.select-post {
|
||||||
|
|
||||||
.deleted {
|
.deleted {
|
||||||
.topic-body {
|
.topic-body {
|
||||||
background-color: dark-light-diff(
|
background-color: $danger-low-mid;
|
||||||
rgba($danger, 0.7),
|
|
||||||
$secondary,
|
|
||||||
50%,
|
|
||||||
-60%
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue