Parcourir la source

Add --nbx-color-* variables for theme colors

Preparatory work for moving row styling to CSS
Per von Zweigbergk il y a 2 ans
Parent
commit
41e1f24cf7

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
netbox/project-static/dist/netbox-dark.css


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
netbox/project-static/dist/netbox-light.css


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
netbox/project-static/dist/netbox-print.css


+ 7 - 0
netbox/project-static/styles/netbox.scss

@@ -835,6 +835,13 @@ table tbody {
   }
 }
 
+// Expose theme colors as variables. (Useful for dynamic styling of choices etc.)
+:root {
+  @each $color, $value in $theme-colors {
+    --nbx-color-#{$color}: #{$value};
+  }
+}
+
 // Style objects with statuses/roles within a table. As of implementation, used for IP addresses
 // assigned to interfaces.
 table .table-badge-group {

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff