diff --git a/static/css/default_light/main.css b/static/css/default_light/main.css index c696e1a..37b0e9d 100644 --- a/static/css/default_light/main.css +++ b/static/css/default_light/main.css @@ -258,42 +258,34 @@ label { border-radius: 8px; } #time-selector { + position: absolute; + top: 16px; + right: 16px; display: grid; - grid-template-columns: min-content min-content; - grid-gap: 6px 16px; + grid-template-columns: 8px repeat(2, min-content) 8px 1px 8px repeat(3, min-content) 8px repeat(3, min-content) 8px 1px 8px repeat(2, min-content) 8px; + grid-gap: 6px 8px; + align-items: center; width: min-content; background-color: #fff; border: 1px solid #2979b8; - padding: 16px; border-radius: 6px; } #time-selector.hidden { display: none; } +#time-selector .vertical-line { + background-color: #2979b8; +} +#time-selector .header { + padding-top: 12px; + font-weight: bold; + font-size: 0.85em; +} #time-selector button { width: 100px; margin-top: 12px; justify-self: end; } -#time-selector #time-filter { - display: grid; - grid-template-columns: min-content repeat(3, min-content); - grid-gap: 16px; - margin-top: 16px; - align-items: center; - justify-items: center; -} -#time-selector #time-filter .header-1 { - font-weight: bold; - justify-self: start; -} -#time-selector #time-filter .header-2 { - font-weight: bold; - justify-self: start; - grid-column: 2 / -1; -} -#time-selector #time-filter .preset { +#time-selector div { white-space: nowrap; - justify-self: start; - padding-right: 32px; } diff --git a/static/css/gruvbox/main.css b/static/css/gruvbox/main.css index 519aa6d..4853b99 100644 --- a/static/css/gruvbox/main.css +++ b/static/css/gruvbox/main.css @@ -258,42 +258,34 @@ label { border-radius: 8px; } #time-selector { + position: absolute; + top: 16px; + right: 16px; display: grid; - grid-template-columns: min-content min-content; - grid-gap: 6px 16px; + grid-template-columns: 8px repeat(2, min-content) 8px 1px 8px repeat(3, min-content) 8px repeat(3, min-content) 8px 1px 8px repeat(2, min-content) 8px; + grid-gap: 6px 8px; + align-items: center; width: min-content; background-color: #282828; border: 1px solid #333; - padding: 16px; border-radius: 6px; } #time-selector.hidden { display: none; } +#time-selector .vertical-line { + background-color: #333; +} +#time-selector .header { + padding-top: 12px; + font-weight: bold; + font-size: 0.85em; +} #time-selector button { width: 100px; margin-top: 12px; justify-self: end; } -#time-selector #time-filter { - display: grid; - grid-template-columns: min-content repeat(3, min-content); - grid-gap: 16px; - margin-top: 16px; - align-items: center; - justify-items: center; -} -#time-selector #time-filter .header-1 { - font-weight: bold; - justify-self: start; -} -#time-selector #time-filter .header-2 { - font-weight: bold; - justify-self: start; - grid-column: 2 / -1; -} -#time-selector #time-filter .preset { +#time-selector div { white-space: nowrap; - justify-self: start; - padding-right: 32px; } diff --git a/static/images/gruvbox/ok.svg b/static/images/gruvbox/ok.svg new file mode 100644 index 0000000..2f2b62e --- /dev/null +++ b/static/images/gruvbox/ok.svg @@ -0,0 +1,67 @@ + + + + + + + + + + image/svg+xml + + + + + + check-circle + + + diff --git a/static/images/gruvbox/warning.svg b/static/images/gruvbox/warning.svg new file mode 100644 index 0000000..93ac751 --- /dev/null +++ b/static/images/gruvbox/warning.svg @@ -0,0 +1,68 @@ + + + + + + + + + + image/svg+xml + + + + + + alert + + + diff --git a/static/less/main.less b/static/less/main.less index 6cc0804..33d6845 100644 --- a/static/less/main.less +++ b/static/less/main.less @@ -291,51 +291,42 @@ label { } #time-selector { + position: absolute; + + top: 16px; + right: 16px; + display: grid; - grid-template-columns: min-content min-content; - grid-gap: 6px 16px; + grid-template-columns: 8px repeat(2,min-content) 8px 1px 8px repeat(3,min-content) 8px repeat(3,min-content) 8px 1px 8px repeat(2,min-content) 8px; + grid-gap: 6px 8px; + align-items: center; width: min-content; background-color: @bg1; border: 1px solid @bg3; - padding: 16px; border-radius: 6px; &.hidden { display: none; } + .vertical-line { + background-color: @bg3; + } + + .header { + padding-top: 12px; + font-weight: bold; + font-size: 0.85em; + } + button { width: 100px; margin-top: 12px; justify-self: end; } - #time-filter { - display: grid; - grid-template-columns: min-content repeat(3, min-content); - grid-gap: 16px; - margin-top: 16px; - - align-items: center; - justify-items: center; - - .header-1 { - font-weight: bold; - justify-self: start; - } - - .header-2 { - font-weight: bold; - justify-self: start; - grid-column: ~"2 / -1"; - } - - .preset { - white-space: nowrap; - justify-self: start; - padding-right: 32px; - } + div { + white-space: nowrap; } } - diff --git a/views/components/timefilter.gotmpl b/views/components/timefilter.gotmpl index 0944254..df24df0 100644 --- a/views/components/timefilter.gotmpl +++ b/views/components/timefilter.gotmpl @@ -19,9 +19,96 @@
+ + {{/* Row 1 */}} +
+
Date and time
+ +
+
 
+
+ +
Offsets
+ +
+
+
+ +
Presets
+
+ + + {{/* Row 2 */}} +
+
From
+ + +
+ {{/* Vertical line */}} +
+ +
+
Hour
+
+ +
+ +
+
Week
+
+ +
+ {{/* Vertical line */}} +
+ +
⚫︎ Last hour
+
⚫︎ Last 7 days
+
+ + + {{/* Row 3 */}} +
+
To
+ + +
+ {{/* Vertical line */}} +
+ +
+
Day
+
+ +
+ +
+
Month
+
+ +
+ {{/* Vertical line */}} +
+ +
⚫︎ Last 24 hours
+
⚫︎ Last 31 days
+ +
+ + + {{/* Row 4 */}} +
+
+
+ + + {{/*
From
To
+
+
+
+ @@ -49,6 +136,8 @@
Last 31 days
+
Last 24 hours
+
Last 24 hours
Month
@@ -56,6 +145,7 @@
+ */}} {{ end }} diff --git a/views/pages/datapoint_values.gotmpl b/views/pages/datapoint_values.gotmpl index 3aa49e0..c2019f9 100644 --- a/views/pages/datapoint_values.gotmpl +++ b/views/pages/datapoint_values.gotmpl @@ -12,6 +12,7 @@ {{ if eq .Data.Datapoint.Datatype "INT" }}
+
{{ end }} diff --git a/views/pages/problems.gotmpl b/views/pages/problems.gotmpl index 40d3e92..50f8757 100644 --- a/views/pages/problems.gotmpl +++ b/views/pages/problems.gotmpl @@ -10,23 +10,26 @@ {{ block "page_label" . }}{{ end }} -
- - -
- -
- - {{ block "timefilter" . }}{{ end }} - -
- - -
- +
+
+ Problem selection
+ +
+ +
+
+ Show
+ +
+ +
+ +
+ {{ block "timefilter" . }}{{ end }} +