From 4b14b31853892f4ffdff228354599844097a37a3 Mon Sep 17 00:00:00 2001 From: thatmattlove Date: Wed, 1 Sep 2021 15:22:38 -0700 Subject: [PATCH] Use `url_name` instead of `request.path` for view-based styles --- netbox/project-static/dist/netbox-dark.css | Bin 807517 -> 807537 bytes netbox/project-static/dist/netbox-light.css | Bin 502342 -> 502362 bytes netbox/project-static/dist/netbox-print.css | Bin 1658424 -> 1658484 bytes netbox/project-static/styles/netbox.scss | 4 ++-- netbox/templates/base/base.html | 2 +- 5 files changed, 3 insertions(+), 3 deletions(-) diff --git a/netbox/project-static/dist/netbox-dark.css b/netbox/project-static/dist/netbox-dark.css index 4caf6a4e6cfafce47a046b21ea50968958202774..196966fea5aa79954b36720afe3a87bdb484140b 100644 GIT binary patch delta 144 zcmcb+#PH)1!-f{d7N!>F7M2#)7Pc1l7LFFq7OocVEj%p&yro4sx_ODYskRyUxvA3= z19?2qgw6%>$V~s>$;LMQUjUCCn&ien9);;Cfjq95;W0Ij++ AtN;K2 delta 138 zcmeyk#PIGC!-f{d7N!>F7M2#)7Pc1l7LFFq7OocVEj%p&90iFb8MaFLO4BC>@OTKq zc(Dq4#i@x!$r;lb)j33_86v*-(*uHd6anrUD&7D9 diff --git a/netbox/project-static/dist/netbox-light.css b/netbox/project-static/dist/netbox-light.css index f5db11538a1391058a460e58b3d43507e7ea0fb7..b915a414f6b04f25980b73e5d93b7cea95d3564c 100644 GIT binary patch delta 124 zcmX?hMef!WxrP?T7N!>F7M2#)7Pc+yUsv#!7Uk&XCFZ8uX5{ClPVZaEu7)P0y^`Gy gO{j1syECSc!t^^U*{%8D2Il0aXXZ^;UB#{l0HS>^$p8QV delta 114 zcmcb0Mef)YxrP?T7N!>F7M2#)7Pc+yUsrGxB$i~@D(NdtpSzM>4Z(Z6l3iwcfgBUt s^#5B}xTj04Vi!b6HmqcKM({4IWRKCnrBWGf!!{F7M2#)7Pc1l7LFFq7OocV7M>Q~7QPn#7J(MQ7NHj57LgXw z7O@ub7KtsAj-I@wMLD{8iMgq^8Tq-X(+_$|N=`TTmJ~u07xa=;n`|J&Hhq@2q#&9c zP>%`bz4F7M2#)7Pc1l7LFFq7OocV7M>Q~7QPn#7J(MQ7NHj57LgXw z7O@ub7KtsAj-DI^i6t4fO8QFE9la&B5xjgKNwvuaLTuCT`AP~Rgn^1ArzgZq$f1b? zmD{1I`rspJfDrQXm6VyjKuAz!x`C&pAScY$*vW-c6sO2ktP099+H9ooz0tiW%Mi+z-M7^J{q%R-HEn2`J$jML7%u|~F T*H=;>ZUGiacXY8JKS?D3qUd*F diff --git a/netbox/project-static/styles/netbox.scss b/netbox/project-static/styles/netbox.scss index b05cc07d4..e7b67a3e4 100644 --- a/netbox/project-static/styles/netbox.scss +++ b/netbox/project-static/styles/netbox.scss @@ -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; } diff --git a/netbox/templates/base/base.html b/netbox/templates/base/base.html index ad2cefced..71172e901 100644 --- a/netbox/templates/base/base.html +++ b/netbox/templates/base/base.html @@ -4,7 +4,7 @@