Skip to content

Commit 35e2cf9

Browse files
17117 change caret to html entity to fix safari performacne issue (#17246)
* 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 <[email protected]>
1 parent 1d2ea90 commit 35e2cf9

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

netbox/project-static/dist/netbox.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

netbox/project-static/styles/overrides/_tabler.scss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,19 @@ table a {
4545
background-color: rgba(var(--tblr-primary-rgb),.48)
4646
}
4747

48+
// Do not apply padding to <code> elements inside a <pre>
4849
pre code {
4950
padding: unset;
5051
}
52+
53+
// Use an icon instead of Tabler's native "caret" for dropdowns (avoids a Safari bug)
54+
.dropdown-toggle:after{
55+
font-family: "Material Design Icons";
56+
content: '\F0140';
57+
padding-right: 9px;
58+
border-bottom: none;
59+
border-left: none;
60+
transform: none;
61+
vertical-align: .05em;
62+
height: auto;
63+
}

0 commit comments

Comments
 (0)