grafana/public/sass/components/_timepicker.scss

152 lines
2.3 KiB
SCSS
Raw Normal View History

2016-02-15 08:27:41 -06:00
.timepicker-timestring {
font-weight: normal;
}
2017-12-01 08:56:08 -06:00
.gf-timepicker-nav {
flex-wrap: nowrap;
display: flex;
2016-02-15 08:27:41 -06:00
}
.gf-timepicker-nav-btn {
text-overflow: ellipsis;
overflow: hidden;
2019-02-11 06:42:37 -06:00
.fa-clock-o {
margin-right: 4px;
}
}
2016-02-15 08:27:41 -06:00
.gf-timepicker-dropdown {
2017-12-08 07:38:33 -06:00
background-color: $page-bg;
border-radius: 0 0 0 4px;
box-shadow: $search-shadow;
2018-11-05 05:33:40 -06:00
z-index: $zindex-dropdown;
display: flex;
flex-direction: column;
position: absolute;
left: 20px;
right: 20px;
top: $navbarHeight;
@include media-breakpoint-up(md) {
left: auto;
width: 550px;
}
2016-02-15 08:27:41 -06:00
.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;
}
2016-02-15 08:27:41 -06:00
}
}
.gf-timepicker-btn-apply {
margin: 0 0 0 15px;
}
.gf-timepicker-utc {
color: $orange;
font-size: 75%;
padding: 3px;
border-radius: 2px;
2017-12-08 07:38:33 -06:00
font-weight: 500;
2016-02-15 08:27:41 -06:00
margin-left: 4px;
}
.gf-timepicker-relative-section {
min-height: 237px;
2016-02-15 08:27:41 -06:00
float: left;
2016-02-15 08:27:41 -06:00
ul {
list-style: none;
float: left;
margin: 0 30px 10px 0px;
2018-12-25 13:18:38 -06:00
2016-02-15 08:27:41 -06:00
li {
line-height: 22px;
}
2018-12-25 13:18:38 -06:00
2016-02-15 08:27:41 -06:00
li.active {
border-bottom: 1px solid $blue;
margin: 3px 0;
2017-12-08 07:38:33 -06:00
font-weight: 500;
2016-02-15 08:27:41 -06:00
}
}
}
.gf-timepicker-component {
padding: $spacer/2 0 $spacer 0;
td {
padding: 1px;
}
2018-12-25 13:18:38 -06:00
button {
2016-02-19 07:21:57 -06:00
@include buttonBackground($btn-inverse-bg, $btn-inverse-bg-hl);
2016-02-15 08:27:41 -06:00
background-image: none;
border: none;
2016-02-16 02:42:46 -06:00
color: $text-color;
2018-12-25 13:18:38 -06:00
2016-02-15 08:27:41 -06:00
&.active span {
color: $blue;
2016-02-15 08:27:41 -06:00
font-weight: bold;
}
2018-12-25 13:18:38 -06:00
2016-02-15 08:27:41 -06:00
.text-info {
color: $orange;
font-weight: bold;
}
2018-12-25 13:18:38 -06:00
&.btn-sm {
font-size: $font-size-sm;
padding: 5px 11px;
}
2018-12-25 13:18:38 -06:00
2018-05-04 03:30:42 -05:00
&:hover {
color: $text-color-strong;
}
2018-12-25 13:18:38 -06:00
2018-05-04 03:30:42 -05:00
&[disabled] {
color: $text-color;
}
2016-02-15 08:27:41 -06:00
}
}
.input-datetime-format {
2017-12-19 09:22:41 -06:00
color: $link-color-disabled;
2016-02-15 08:27:41 -06:00
}
.fa {
display: inline-block;
font: normal normal normal 14px/1 FontAwesome;
font-size: inherit;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.fa-chevron-left::before {
content: '\f053';
}
2018-12-25 13:18:38 -06:00
.fa-chevron-right::before {
content: '\f054';
}
.glyphicon-chevron-right {
@extend .fa;
@extend .fa-chevron-right;
}
.glyphicon-chevron-left {
@extend .fa;
@extend .fa-chevron-left;
}