mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
support separate css files for light/dark themes.
This commit is contained in:
@@ -10,13 +10,17 @@
|
||||
|
||||
[[if .User.LightTheme]]
|
||||
<link rel="stylesheet" href="[[.AppSubUrl]]/css/grafana.light.min.css">
|
||||
[[ range $css := .PluginCss ]]
|
||||
<link rel="stylesheet" href="[[$.AppSubUrl]]/[[ $css.Light ]]">
|
||||
[[ end ]]
|
||||
[[else]]
|
||||
<link rel="stylesheet" href="[[.AppSubUrl]]/css/grafana.dark.min.css">
|
||||
[[ range $css := .PluginCss ]]
|
||||
<link rel="stylesheet" href="[[$.AppSubUrl]]/[[ $css.Dark ]]">
|
||||
[[ end ]]
|
||||
[[end]]
|
||||
|
||||
[[ range $css := .PluginCss ]]
|
||||
<link rel="stylesheet" href="[[$.AppSubUrl]]/[[ $css ]]">
|
||||
[[ end ]]
|
||||
|
||||
|
||||
<link rel="icon" type="image/png" href="[[.AppSubUrl]]/img/fav32.png">
|
||||
<base href="[[.AppSubUrl]]/" />
|
||||
|
||||
Reference in New Issue
Block a user