+
+ Quick ranges
-
-
-
-
- {/*
-
*/}
-
-
+
+ {Object.keys(timeOptions).map(section => {
+ const group = timeOptions[section];
+ return (
+
+ );
+ })}
-
-
Quick ranges
- {Object.keys(timeOptions).map(section => {
- const group = timeOptions[section];
- return (
-
- );
- })}
+
+
+ Custom range
+
+
+
+
+
+
+
+
+
+
+
);
diff --git a/public/sass/_grafana.scss b/public/sass/_grafana.scss
index bfb186c0b02..bc6b024f643 100644
--- a/public/sass/_grafana.scss
+++ b/public/sass/_grafana.scss
@@ -104,6 +104,7 @@
@import 'components/thresholds';
@import 'components/toggle_button_group';
@import 'components/value-mappings';
+@import 'components/popover-box';
// PAGES
@import 'pages/login';
diff --git a/public/sass/components/_popover-box.scss b/public/sass/components/_popover-box.scss
new file mode 100644
index 00000000000..6f0b3fb4310
--- /dev/null
+++ b/public/sass/components/_popover-box.scss
@@ -0,0 +1,31 @@
+.popover-box {
+ background-color: $popover-bg;
+ color: $popover-color;
+ border: 1px solid $popover-border-color;
+ border-radius: $border-radius;
+ max-width: 500px;
+}
+
+.popover-box__header {
+ background-color: $popover-border-color;
+ padding: 6px 10px;
+ display: flex;
+}
+
+.popover-box__title {
+ font-weight: $font-weight-semi-bold;
+ padding-right: $spacer;
+ overflow: hidden;
+ display: inline-block;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+ flex-grow: 1;
+}
+
+.popover-box__body {
+ padding: 20px 10px 10px 10px;
+}
+
+.popover-box__close {
+ cursor: pointer;
+}
diff --git a/public/sass/components/_thresholds.scss b/public/sass/components/_thresholds.scss
index dbcc9951ff7..ff89a6b6ea6 100644
--- a/public/sass/components/_thresholds.scss
+++ b/public/sass/components/_thresholds.scss
@@ -66,9 +66,6 @@
padding: 5px 8px;
}
-.threshold-row-base {
-}
-
.threshold-row-remove {
display: flex;
align-items: center;
diff --git a/public/sass/components/_timepicker.scss b/public/sass/components/_timepicker.scss
index 51a730926ba..f3a2079f749 100644
--- a/public/sass/components/_timepicker.scss
+++ b/public/sass/components/_timepicker.scss
@@ -13,23 +13,28 @@
}
.gf-timepicker-dropdown {
- position: absolute;
- top: $navbarHeight;
- right: 0;
- padding: 10px 20px;
background-color: $page-bg;
border-radius: 0 0 0 4px;
box-shadow: $search-shadow;
z-index: $zindex-dropdown;
-}
+ display: flex;
+ flex-direction: column;
+ position: absolute;
+ right: 20px;
+ top: $navbarHeight;
+ width: 550px;
-.gf-timepicker-absolute-section {
- width: 290px;
- float: left;
- padding: 0 10px;
- select {
- width: 183px;
- margin-bottom: 0;
+ .popover-box {
+ max-width: 100%;
+
+ &:first-child {
+ border-radius: $border-radius $border-radius 0 0;
+ border-bottom: 0;
+ }
+
+ &:last-child {
+ border-radius: 0 0 $border-radius $border-radius;
+ }
}
}
@@ -48,9 +53,9 @@
}
.gf-timepicker-relative-section {
- padding: 0 20px 0 30px;
min-height: 237px;
float: left;
+
ul {
list-style: none;
float: left;