mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-13 18:17:02 +01:00
miscellaneous css fixes / reorganization
This commit is contained in:
parent
1d7ddcc10d
commit
6478db13e6
4 changed files with 50 additions and 51 deletions
|
|
@ -35,10 +35,15 @@
|
|||
.sidebar .nav-link {
|
||||
font-weight: 500;
|
||||
|
||||
&:hover, &.active {
|
||||
&:hover, &.active, &:focus {
|
||||
color: var(--bs-primary);
|
||||
}
|
||||
|
||||
&:focus-visible {
|
||||
outline: none;
|
||||
background-color: var(--bs-body-bg);
|
||||
}
|
||||
|
||||
&.active {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -137,19 +137,19 @@ export class SettingsService {
|
|||
}
|
||||
|
||||
// remove these in case they were there
|
||||
this.renderer.removeClass(this.document.body, 'text-bg-dark')
|
||||
this.renderer.removeClass(this.document.body, 'text-bg-light')
|
||||
this.renderer.removeClass(this.document.body, 'primary-dark')
|
||||
this.renderer.removeClass(this.document.body, 'primary-light')
|
||||
|
||||
if (themeColor) {
|
||||
const hsl = hexToHsl(themeColor)
|
||||
const bgBrightnessEstimate = estimateBrightnessForColor(themeColor)
|
||||
|
||||
if (bgBrightnessEstimate == BRIGHTNESS.DARK) {
|
||||
this.renderer.addClass(this.document.body, 'text-bg-dark')
|
||||
this.renderer.removeClass(this.document.body, 'text-bg-light')
|
||||
this.renderer.addClass(this.document.body, 'primary-dark')
|
||||
this.renderer.removeClass(this.document.body, 'primary-light')
|
||||
} else {
|
||||
this.renderer.addClass(this.document.body, 'text-bg-light')
|
||||
this.renderer.removeClass(this.document.body, 'text-bg-dark')
|
||||
this.renderer.addClass(this.document.body, 'primary-light')
|
||||
this.renderer.removeClass(this.document.body, 'primary-dark')
|
||||
}
|
||||
this.renderer.setStyle(
|
||||
document.documentElement,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue