mirror of
https://github.com/netbox-community/netbox.git
synced 2026-04-10 03:13:48 +02:00
* change caret to html entity to fix safari performacne issue * change caret to html entity to fix safari performacne issue * 17117 use material icon * 17117 use material icon * 17117 use material icon * 17117 fix vertical align * Add comments & tweak padding --------- Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
64 lines
1.3 KiB
SCSS
64 lines
1.3 KiB
SCSS
// Disable font-ligatures for Chromium based browsers
|
|
// Chromium requires `font-variant-ligatures: none` in addition to `font-feature-settings "liga" 0`
|
|
* {
|
|
font-feature-settings: "liga" 0;
|
|
font-variant-ligatures: none;
|
|
}
|
|
|
|
// Restore default foreground & background colors for <pre> blocks
|
|
pre {
|
|
background-color: transparent;
|
|
color: inherit;
|
|
}
|
|
|
|
// Buttons
|
|
.btn {
|
|
// Tabler sets display: flex
|
|
display: inline-block;
|
|
}
|
|
.btn-sm {
|
|
// $border-radius-sm (2px) is too small
|
|
border-radius: $border-radius;
|
|
}
|
|
|
|
// Tabs
|
|
.nav-tabs {
|
|
.nav-link {
|
|
// Tabler sets display: flex
|
|
display: inline-block;
|
|
}
|
|
}
|
|
|
|
// Dropdown items
|
|
.dropdown-item {
|
|
// Tabler sets display: flex
|
|
display: inline-block;;
|
|
}
|
|
|
|
table a {
|
|
// Adjust table anchor link contrast as not enough contrast in dark mode
|
|
filter: brightness(110%);
|
|
}
|
|
|
|
// Override background color alpha value
|
|
[data-bs-theme=dark] ::selection {
|
|
background-color: rgba(var(--tblr-primary-rgb),.48)
|
|
}
|
|
|
|
// 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)
|
|
.dropdown-toggle:after{
|
|
font-family: "Material Design Icons";
|
|
content: '\F0140';
|
|
padding-right: 9px;
|
|
border-bottom: none;
|
|
border-left: none;
|
|
transform: none;
|
|
vertical-align: .05em;
|
|
height: auto;
|
|
}
|