Use url_name instead of request.path for view-based styles

This commit is contained in:
thatmattlove
2021-09-01 15:22:38 -07:00
parent b0addfbe13
commit 4b14b31853
5 changed files with 6 additions and 6 deletions

View File

@@ -971,7 +971,7 @@ div.card-overlay {
// Page-specific styles.
html {
// Shade the home page content background-color.
&[data-netbox-path='/'] {
&[data-netbox-url-name='home'] {
.content-container,
.search {
background-color: $gray-100 !important;
@@ -985,7 +985,7 @@ html {
}
// Don't show the django-messages toasts on the login screen in favor of the alert component.
&[data-netbox-path*='/login'] {
&[data-netbox-url-name='login'] {
#django-messages {
display: none;
}