Remove illegal usages of CSS variables in SCSS functions

This flattens out the buttons on the settings page which makes the styles simpler (and more modern-looking IMO) and removes the box-shadow on the button, which was completely invisible to me.
pull/858/head
Jed Fox 7 years ago
parent 0cef40728c
commit bf3c8e6a69

@ -416,14 +416,12 @@
line-height: normal; line-height: normal;
white-space: nowrap; white-space: nowrap;
padding: .375rem .675rem; padding: .375rem .675rem;
background-image: linear-gradient(lighten(var(--boxBackground), 4%), darken(var(--boxBackground), 2%)); background-color: var(--boxBackground);
border: 1px solid var(--boxBorder); border: 1px solid var(--boxBorder);
border-radius: 3px; border-radius: 3px;
box-shadow: 0 1px rgba(var(--boxBorder), .08);
cursor: pointer; cursor: pointer;
&:active { &:active {
background-color: var(--boxBackground);
box-shadow: inset 0 1px 1px rgba(black, .05), inset 0 1px 4px var(--boxBorder); box-shadow: inset 0 1px 1px rgba(black, .05), inset 0 1px 4px var(--boxBorder);
} }
} }

@ -164,7 +164,7 @@
font-size: .875rem; font-size: .875rem;
background: var(--contentBackground); background: var(--contentBackground);
border: 1px solid; border: 1px solid;
border-color: darken(var(--headerBorder), 2%); border-color: var(--searchBorder);
border-radius: 3px; border-radius: 3px;
&:focus { &:focus {

@ -28,6 +28,7 @@ html.dark {
--headerBackground: #1c1c1c; --headerBackground: #1c1c1c;
--headerBorder: #000; --headerBorder: #000;
--searchTagBackground: darken(#1c1c1c, 5%); --searchTagBackground: darken(#1c1c1c, 5%);
--searchBorder: darken(#000, 2%)
--sidebarBackground: #24282a; --sidebarBackground: #24282a;
--transparentSidebarBackground: rgba(#24282a, 0); --transparentSidebarBackground: rgba(#24282a, 0);

@ -28,6 +28,7 @@ html:not(.dark) {
--headerBackground: #eee; --headerBackground: #eee;
--headerBorder: #d7d7d7; --headerBorder: #d7d7d7;
--searchTagBackground: darken(#eee, 5%); --searchTagBackground: darken(#eee, 5%);
--searchBorder: darken(#d7d7d7, 2%)
--sidebarBackground: #f9f9f9; --sidebarBackground: #f9f9f9;
--transparentSidebarBackground: rgba(#f9f9f9, 0); --transparentSidebarBackground: rgba(#f9f9f9, 0);

Loading…
Cancel
Save