|
@@ -5,25 +5,24 @@
|
|
|
font-variant-ligatures: none;
|
|
font-variant-ligatures: none;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// TODO: Remove when Tabler releases fix for https://github.com/tabler/tabler/issues/2271
|
|
|
|
|
-// and NetBox upgrades to that version. Fix merged to Tabler dev branch in PR #2548.
|
|
|
|
|
|
|
+// Keep the layout from shifting when a page gains a scrollbar
|
|
|
:root,
|
|
:root,
|
|
|
:host {
|
|
:host {
|
|
|
@include media-breakpoint-up(lg) {
|
|
@include media-breakpoint-up(lg) {
|
|
|
- margin-left: 0;
|
|
|
|
|
scrollbar-gutter: stable;
|
|
scrollbar-gutter: stable;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// Restore default foreground & background colors for <pre> blocks
|
|
|
|
|
-pre {
|
|
|
|
|
- background-color: transparent;
|
|
|
|
|
- color: inherit;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
// Slightly increase alert contrast between bg and text
|
|
// Slightly increase alert contrast between bg and text
|
|
|
.alert {
|
|
.alert {
|
|
|
background: var(--#{$prefix}bg-surface);
|
|
background: var(--#{$prefix}bg-surface);
|
|
|
|
|
+ // Keep the gap Tabler 1.4 put between an alert's flex children
|
|
|
|
|
+ gap: 1rem;
|
|
|
|
|
+
|
|
|
|
|
+ // Tabler 1.6 colors alert text with the variant, 1.4 kept the body color
|
|
|
|
|
+ &:not(.alert-important) {
|
|
|
|
|
+ color: inherit;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// Permit copying of badge text
|
|
// Permit copying of badge text
|
|
@@ -42,10 +41,6 @@ pre {
|
|
|
outline: 2px solid var(--tblr-primary) !important;
|
|
outline: 2px solid var(--tblr-primary) !important;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-.btn-sm {
|
|
|
|
|
- // $border-radius-sm (2px) is too small
|
|
|
|
|
- border-radius: $border-radius;
|
|
|
|
|
-}
|
|
|
|
|
|
|
|
|
|
// Dropdown items
|
|
// Dropdown items
|
|
|
.dropdown-item {
|
|
.dropdown-item {
|
|
@@ -66,16 +61,15 @@ pre {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+// Opaque page background, also painted by the active page tab and the sticky form actions
|
|
|
|
|
+:root {
|
|
|
|
|
+ --tblr-page-bg: color-mix(in srgb, var(--tblr-body-color) 2.5%, var(--tblr-bg-surface-secondary));
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
// Altering background colors
|
|
// Altering background colors
|
|
|
.page,
|
|
.page,
|
|
|
.page-tabs .nav-tabs .nav-link.active {
|
|
.page-tabs .nav-tabs .nav-link.active {
|
|
|
- background-color: var(--#{$prefix}bg-surface-tertiary) !important;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-// Navigation bar
|
|
|
|
|
-.navbar {
|
|
|
|
|
- // Lighten highlight color of active item
|
|
|
|
|
- --tblr-navbar-active-bg: rgba(0, 0, 0, 0.06);
|
|
|
|
|
|
|
+ background-color: var(--#{$prefix}page-bg) !important;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// Dark mode colors
|
|
// Dark mode colors
|
|
@@ -83,6 +77,8 @@ pre {
|
|
|
@include color-mode(dark, true) {
|
|
@include color-mode(dark, true) {
|
|
|
--#{$prefix}alert-color: darken(var(--#{$prefix}warning), 10%);
|
|
--#{$prefix}alert-color: darken(var(--#{$prefix}warning), 10%);
|
|
|
--#{$prefix}link-color: #{$bright-teal};
|
|
--#{$prefix}link-color: #{$bright-teal};
|
|
|
|
|
+ // Tabler 1.6 lightens the hovered link, 1.4 darkened it
|
|
|
|
|
+ --#{$prefix}link-hover-color: color-mix(in srgb, #{$bright-teal}, black 20%);
|
|
|
--#{$prefix}link-color-rgb: 0, 242, 212;
|
|
--#{$prefix}link-color-rgb: 0, 242, 212;
|
|
|
--#{$prefix}link-hover-color-rgb: 0, 242, 212;
|
|
--#{$prefix}link-hover-color-rgb: 0, 242, 212;
|
|
|
--#{$prefix}secondary: #{$gray-400};
|
|
--#{$prefix}secondary: #{$gray-400};
|
|
@@ -90,6 +86,9 @@ pre {
|
|
|
--#{$prefix}primary-fg: #{$rich-black};
|
|
--#{$prefix}primary-fg: #{$rich-black};
|
|
|
--#{$prefix}primary-rgb: 0, 242, 212;
|
|
--#{$prefix}primary-rgb: 0, 242, 212;
|
|
|
--#{$prefix}btn-active-color: #{$rich-black};
|
|
--#{$prefix}btn-active-color: #{$rich-black};
|
|
|
|
|
+ // Tabler 1.7's translucent tertiary surface hides card headers on the dark cards
|
|
|
|
|
+ --#{$prefix}bg-surface-tertiary: var(--#{$prefix}gray-800);
|
|
|
|
|
+ --#{$prefix}page-bg: #{$rich-black-light};
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -104,6 +103,16 @@ html[data-bs-theme='dark'] {
|
|
|
color: $rich-black !important;
|
|
color: $rich-black !important;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ // 4.x kept these gray-500 in dark mode, 1.7 paints them from the gray-400 secondary
|
|
|
|
|
+ .text-bg-secondary,
|
|
|
|
|
+ .text-bg-gray {
|
|
|
|
|
+ background-color: color-mix(
|
|
|
|
|
+ in oklab,
|
|
|
|
|
+ var(--tblr-gray-500) calc(var(--tblr-bg-opacity, 1) * 100%),
|
|
|
|
|
+ transparent
|
|
|
|
|
+ ) !important;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
// Change content color when primary teal changes with theme
|
|
// Change content color when primary teal changes with theme
|
|
|
.bg-primary {
|
|
.bg-primary {
|
|
|
.card-title,
|
|
.card-title,
|
|
@@ -127,10 +136,6 @@ html[data-bs-theme='dark'] {
|
|
|
.page-header {
|
|
.page-header {
|
|
|
background-color: $rich-black;
|
|
background-color: $rich-black;
|
|
|
}
|
|
}
|
|
|
- .page,
|
|
|
|
|
- .page-tabs .nav-tabs .nav-link.active {
|
|
|
|
|
- background-color: $rich-black-light !important;
|
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
.page-link.active,
|
|
.page-link.active,
|
|
|
.active > .page-link {
|
|
.active > .page-link {
|
|
@@ -161,21 +166,12 @@ html[data-bs-theme='dark'] {
|
|
|
--tblr-table-hover-color: inherit;
|
|
--tblr-table-hover-color: inherit;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- // Tabler bakes a white glyph into the checked data URI, which reads at 1.4:1 against
|
|
|
|
|
- // the teal dark-mode primary. A data URI is an isolated document, so the color cannot
|
|
|
|
|
- // come from a custom property and has to be baked in at build time.
|
|
|
|
|
|
|
+ // Tabler's white checkbox glyph reads at 1.4:1 against the teal dark-mode primary
|
|
|
.form-check-input:checked[type='checkbox'] {
|
|
.form-check-input:checked[type='checkbox'] {
|
|
|
- --tblr-form-check-bg-image: #{escape-svg(
|
|
|
|
|
- url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16'><path fill='none' stroke='#{$rich-black}' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8.5l2.5 2.5l5.5 -5.5'/></svg>")
|
|
|
|
|
- )};
|
|
|
|
|
|
|
+ --tblr-form-check-icon-color: #{$rich-black};
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// Do not apply padding to <code> elements inside a <pre>
|
|
|
|
|
-pre code {
|
|
|
|
|
- padding: unset;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
// Use an icon instead of Tabler's native "caret" for dropdowns (avoids a Safari bug)
|
|
// Use an icon instead of Tabler's native "caret" for dropdowns (avoids a Safari bug)
|
|
|
.dropdown-toggle:after {
|
|
.dropdown-toggle:after {
|
|
|
font-family: 'Material Design Icons';
|
|
font-family: 'Material Design Icons';
|