mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 06:13:38 +00:00
Desktop/browser: explicitly define themed text ::selection styles (#3675)
This commit is contained in:
@@ -392,6 +392,18 @@ input[type="password"]::-ms-reveal {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Text selection styles
|
||||||
|
// Set explicit selection styles (assumes primary accent color has sufficient
|
||||||
|
// contrast against the background, so its inversion is also still readable)
|
||||||
|
// and suppress user selection for most elements (to make it more app-like)
|
||||||
|
|
||||||
|
::selection {
|
||||||
|
@include themify($themes) {
|
||||||
|
color: themed("backgroundColor");
|
||||||
|
background-color: themed("primaryAccentColor");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
h1,
|
h1,
|
||||||
h2,
|
h2,
|
||||||
h3,
|
h3,
|
||||||
|
|||||||
@@ -492,6 +492,18 @@ app-root > #loading,
|
|||||||
border-radius: 50% !important;
|
border-radius: 50% !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Text selection styles
|
||||||
|
// Set explicit selection styles (assumes primary accent color has sufficient
|
||||||
|
// contrast against the background, so its inversion is also still readable)
|
||||||
|
// and suppress user selection for most elements (to make it more app-like)
|
||||||
|
|
||||||
|
::selection {
|
||||||
|
@include themify($themes) {
|
||||||
|
color: themed("backgroundColor");
|
||||||
|
background-color: themed("primaryAccentColor");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
h1,
|
h1,
|
||||||
h2,
|
h2,
|
||||||
h3,
|
h3,
|
||||||
|
|||||||
Reference in New Issue
Block a user