Files
grafana/public/sass/components/_thresholds.scss

114 lines
1.8 KiB
SCSS
Raw Normal View History

2018-11-23 16:12:53 +01:00
.thresholds {
display: flex;
margin-top: 30px;
}
2018-11-22 11:41:09 +01:00
2018-11-23 16:12:53 +01:00
.threshold-rows {
flex: 1 0 auto;
2018-11-26 10:38:43 +01:00
margin-left: 5px;
2018-11-23 16:12:53 +01:00
}
.threshold-row {
2018-11-26 15:52:50 +01:00
display: flex;
align-items: center;
margin: 5px 0;
padding: 5px;
2018-11-23 16:12:53 +01:00
&::before {
font-family: 'FontAwesome';
content: '\f0d9';
color: $input-label-border-color;
}
}
2018-11-26 15:52:50 +01:00
.threshold-row-inner {
border: 1px solid $input-label-border-color;
border-radius: $border-radius;
display: flex;
overflow: hidden;
width: 300px;
height: 37px;
}
.threshold-row-color {
width: 36px;
border-right: 1px solid $input-label-border-color;
2018-11-27 15:06:39 +01:00
display: flex;
align-items: center;
justify-content: center;
}
.threshold-row-color-inner {
border-radius: 10px;
overflow: hidden;
display: flex;
align-items: center;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
2018-11-26 15:52:50 +01:00
}
2018-11-23 16:25:46 +01:00
.threshold-row-input {
2018-11-26 15:52:50 +01:00
padding: 8px 10px;
width: 230px;
}
.threshold-row-label {
background-color: $input-label-bg;
padding: 5px;
width: 36px;
display: flex;
align-items: center;
}
.threshold-row-add-label {
align-items: center;
display: flex;
padding: 5px 8px;
2018-11-23 16:25:46 +01:00
}
2018-11-23 16:12:53 +01:00
.threshold-row-min {
margin-top: -17px;
}
.threshold-row-max {
margin-bottom: -17px;
}
2018-11-26 15:52:50 +01:00
.threshold-row-remove {
display: flex;
align-items: center;
justify-content: center;
width: 36px;
cursor: pointer;
}
2018-11-23 16:12:53 +01:00
.threshold-row-add {
2018-11-26 15:52:50 +01:00
border-right: $border-width solid $input-label-border-color;
2018-11-23 16:12:53 +01:00
display: flex;
align-items: center;
justify-content: center;
width: 36px;
background-color: $green;
}
.threshold-row-label {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
.indicator-section {
width: 100%;
border-top: 1px solid black;
cursor: pointer;
:first-of-type {
border-top: none;
}
}
.color-indicators {
2018-11-26 10:38:43 +01:00
width: 15px;
2018-11-23 16:12:53 +01:00
min-height: 40px;
flex: 0 1 auto;
2018-11-26 10:38:43 +01:00
border-radius: $border-radius;
2018-11-23 16:12:53 +01:00
}