mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-28 00:01:05 +00:00
refactor: clean up header background var
This commit is contained in:
parent
64c89ecbf1
commit
73a18ceb56
|
@ -37,17 +37,7 @@
|
|||
/*
|
||||
* ease(x) := 1 - pow(1 - x, 2);
|
||||
*/
|
||||
background-image: linear-gradient(to bottom,
|
||||
~"rgba(var(--background-color-dp-00-rgb),1)" 0%,
|
||||
~"rgba(var(--background-color-dp-00-rgb),0.988)" 11.11%,
|
||||
~"rgba(var(--background-color-dp-00-rgb),0.951)" 22.22%,
|
||||
~"rgba(var(--background-color-dp-00-rgb),0.889)" 33.33%,
|
||||
~"rgba(var(--background-color-dp-00-rgb),0.802)" 44.44%,
|
||||
~"rgba(var(--background-color-dp-00-rgb),0.691)" 55.56%,
|
||||
~"rgba(var(--background-color-dp-00-rgb),0.556)" 66.67%,
|
||||
~"rgba(var(--background-color-dp-00-rgb),0.395)" 77.78%,
|
||||
~"rgba(var(--background-color-dp-00-rgb),0.210)" 88.89%,
|
||||
~"rgba(var(--background-color-dp-00-rgb),0)" 100%);
|
||||
background-image: linear-gradient( to bottom, ~'rgba( var( --background-color-dp-00--rgb ), 1 )' 0%, ~'rgba( var( --background-color-dp-00--rgb ), 0.988 )' 11.11%, ~'rgba( var( --background-color-dp-00--rgb ), 0.951 )' 22.22%, ~'rgba( var( --background-color-dp-00--rgb ), 0.889 )' 33.33%, ~'rgba( var( --background-color-dp-00--rgb ), 0.802 )' 44.44%, ~'rgba( var( --background-color-dp-00--rgb ), 0.691 )' 55.56%, ~'rgba( var( --background-color-dp-00--rgb ), 0.556 )' 66.67%, ~'rgba( var( --background-color-dp-00--rgb ), 0.395 )' 77.78%, ~'rgba( var( --background-color-dp-00--rgb ), 0.210 )' 88.89%, ~'rgba( var( --background-color-dp-00--rgb ), 0 )' 100% );
|
||||
content: '';
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
*/
|
||||
:root {
|
||||
/* Background Colors */
|
||||
--background-color-dp-00-rgb: red(@background-color-dp-00), green(@background-color-dp-00), blue(@background-color-dp-00);
|
||||
--background-color-dp-00: @background-color-dp-00;
|
||||
--background-color-dp-01: @background-color-dp-01;
|
||||
--background-color-dp-02: @background-color-dp-02;
|
||||
|
@ -82,12 +81,16 @@ html {
|
|||
--padding-page: @padding-page;
|
||||
}
|
||||
|
||||
.mw-header {
|
||||
// Used for header gradient only
|
||||
--background-color-dp-00--rgb: @background-color-dp-00--rgb;
|
||||
}
|
||||
|
||||
/**
|
||||
* Dark theme
|
||||
*/
|
||||
:root.skin-citizen-dark {
|
||||
/* Background Colors */
|
||||
--background-color-dp-00-rgb: red(@dark-background-color-dp-00), green(@dark-background-color-dp-00), blue(@dark-background-color-dp-00);
|
||||
--background-color-dp-00: @dark-background-color-dp-00;
|
||||
--background-color-dp-01: @dark-background-color-dp-01;
|
||||
--background-color-dp-02: @dark-background-color-dp-02;
|
||||
|
@ -132,3 +135,10 @@ html {
|
|||
--border-color-input: @dark-border-color-input;
|
||||
--border-color-input--hover: @dark-border-color-input--hover;
|
||||
}
|
||||
|
||||
.skin-citizen-dark {
|
||||
.mw-header {
|
||||
// Used for header gradient only
|
||||
--background-color-dp-00--rgb: @dark-background-color-dp-00--rgb;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -73,6 +73,7 @@
|
|||
|
||||
/* Background Colors */
|
||||
@background-color-dp-00: @color-base100;
|
||||
@background-color-dp-00--rgb: red(@background-color-dp-00), green(@background-color-dp-00), blue(@background-color-dp-00);
|
||||
@background-color-dp-01: @color-base100;
|
||||
@background-color-dp-02: @color-base100;
|
||||
@background-color-dp-03: @color-base100;
|
||||
|
@ -164,6 +165,7 @@
|
|||
|
||||
/* Background Colors */
|
||||
@dark-background-color-dp-00: @dark-color-base0;
|
||||
@dark-background-color-dp-00--rgb: red(@dark-background-color-dp-00), green(@dark-background-color-dp-00), blue(@dark-background-color-dp-00);
|
||||
@dark-background-color-dp-01: @dark-color-base10;
|
||||
@dark-background-color-dp-02: @dark-color-base20;
|
||||
@dark-background-color-dp-03: @dark-color-base30;
|
||||
|
@ -174,7 +176,7 @@
|
|||
@dark-background-color-dp-16: @dark-color-base80;
|
||||
@dark-background-color-dp-24: @dark-color-base90;
|
||||
|
||||
@dark-background-color-overlay: rgba( 19, 26, 33, 0.95 ); //base0 95% opacity
|
||||
@dark-background-color-overlay: rgba( 19, 26, 33, 0.95 ); //base0 95% opacity
|
||||
|
||||
@dark-background-color-framed: @dark-color-base10;
|
||||
@dark-background-color-framed--hover: @dark-color-base30;
|
||||
|
|
Loading…
Reference in a new issue