mirror of
https://github.com/bitwarden/browser
synced 2025-12-20 10:13:31 +00:00
[PM-1643] Tweak search box styling (#4788)
* Set explicit selection foreground/background for header search input * Modify solarized dark colours for search
This commit is contained in:
@@ -289,6 +289,14 @@ header {
|
|||||||
color: themed("headerInputColor");
|
color: themed("headerInputColor");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&::selection {
|
||||||
|
@include themify($themes) {
|
||||||
|
// explicitly set text selection to invert foreground/background
|
||||||
|
background-color: themed("headerInputColor");
|
||||||
|
color: themed("headerInputBackgroundColor");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
border-radius: $border-radius;
|
border-radius: $border-radius;
|
||||||
outline: none;
|
outline: none;
|
||||||
|
|||||||
@@ -266,10 +266,10 @@ $themes: (
|
|||||||
headerBackgroundColor: $solarizedDarkBase02,
|
headerBackgroundColor: $solarizedDarkBase02,
|
||||||
headerBackgroundHoverColor: $solarizedDarkBase01,
|
headerBackgroundHoverColor: $solarizedDarkBase01,
|
||||||
headerBorderColor: $solarizedDarkBase03,
|
headerBorderColor: $solarizedDarkBase03,
|
||||||
headerInputBackgroundColor: $solarizedDarkBase2,
|
headerInputBackgroundColor: darken($solarizedDarkBase0, 5%),
|
||||||
headerInputBackgroundFocusColor: $solarizedDarkBase1,
|
headerInputBackgroundFocusColor: $solarizedDarkBase1,
|
||||||
headerInputColor: $solarizedDarkBase01,
|
headerInputColor: $solarizedDarkBase02,
|
||||||
headerInputPlaceholderColor: $solarizedDarkBase00,
|
headerInputPlaceholderColor: lighten($solarizedDarkBase02, 5%),
|
||||||
listItemBackgroundHoverColor: lighten($solarizedDarkBase02, 5%),
|
listItemBackgroundHoverColor: lighten($solarizedDarkBase02, 5%),
|
||||||
disabledIconColor: $solarizedDarkBase0,
|
disabledIconColor: $solarizedDarkBase0,
|
||||||
disabledBoxOpacity: 0.5,
|
disabledBoxOpacity: 0.5,
|
||||||
|
|||||||
@@ -73,6 +73,14 @@
|
|||||||
color: themed("headerInputColor");
|
color: themed("headerInputColor");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&::selection {
|
||||||
|
@include themify($themes) {
|
||||||
|
// explicitly set text selection to invert foreground/background
|
||||||
|
background-color: themed("headerInputColor");
|
||||||
|
color: themed("headerInputBackgroundColor");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
border-radius: $border-radius;
|
border-radius: $border-radius;
|
||||||
outline: none;
|
outline: none;
|
||||||
|
|||||||
Reference in New Issue
Block a user