The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
grafana/public/sass/components/_panel_editor.scss

275 lines
4.4 KiB

.panel-editor-container {
display: flex;
flex-direction: column;
height: 100%;
}
.panel-wrapper {
height: 100%;
&--edit {
flex: 1 1 0;
height: unset;
margin: 0 $dashboard-padding;
}
&--view {
flex: 1 1 0;
height: 80%;
margin: 0 $dashboard-padding;
padding-top: $dashboard-padding;
}
}
.panel-editor-container__editor {
margin-top: $panel-margin*2;
display: flex;
flex-direction: row;
height: 60%;
position: relative;
}
.panel-editor__right {
display: flex;
flex-direction: column;
flex-grow: 1;
7 years ago
background: $page-bg;
margin: 0 62px;
7 years ago
border-left: 2px solid #ac5224;
border-radius: 3px;
7 years ago
box-shadow: $popover-shadow;
}
.panel-editor__scroll {
flex-grow: 1;
min-width: 0;
display: flex;
}
.panel-editor__content {
padding: 40px 20px;
}
.panel-editor__toolbar-view {
background: $black;
padding: 20px;
}
.panel-in-fullscreen {
.sidemenu {
display: none;
}
.dashboard-container {
padding: 0;
}
.submenu-controls {
padding: 0 $dashboard-padding $panel-margin $dashboard-padding;
}
.panel-editor-container__panel {
margin: 0 $dashboard-padding;
}
}
7 years ago
.panel-editor-resizer {
position: absolute;
height: 2px;
width: 100%;
top: -23px;
text-align: center;
7 years ago
border-bottom: 2px dashed transparent;
&:hover {
7 years ago
transition: border-color 0.2s ease-in 0.4s;
transition-delay: 0.2s;
border-color: $text-color-faint;
}
7 years ago
}
.panel-editor-resizer__handle {
display: inline-block;
width: 180px;
7 years ago
position: relative;
border-radius: 2px;
7 years ago
height: 7px;
7 years ago
cursor: grabbing;
background: $input-label-bg;
7 years ago
top: -9px;
&:hover {
7 years ago
transition: background 0.2s ease-in 0.4s;
transition-delay: 0.2s;
background: linear-gradient(90deg, $orange, $red);
.panel-editor-resizer__handle-dots {
7 years ago
transition: opacity 0.2s ease-in;
opacity: 0;
}
}
7 years ago
}
.panel-editor-resizer__handle-dots {
border-top: 2px dashed $text-color-faint;
7 years ago
position: relative;
top: 4px;
7 years ago
}
.viz-picker {
display: flex;
flex-wrap: wrap;
margin-bottom: 13px;
}
.viz-picker__item {
background: $panel-bg;
border: $panel-border;
border-radius: 3px;
height: 90px;
width: 150px;
flex-shrink: 0;
flex-direction: column;
text-align: center;
cursor: pointer;
display: flex;
margin-right: 10px;
margin-bottom: 10px;
border: 1px solid transparent;
align-items: center;
&:hover {
background: $card-background-hover;
}
&--selected {
box-shadow: 0 0 12px #ff4d00;
}
}
.viz-picker__item-name {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
font-size: $font-size-sm;
display: flex;
flex-direction: column;
align-self: center;
height: 23px;
}
.viz-picker__item-img {
height: 55px;
}
.panel-editor-tabs {
position: relative;
z-index: 2;
display: flex;
flex-direction: column;
7 years ago
position: absolute;
7 years ago
top: 79px;
7 years ago
left: 9px;
align-items: flex-start;
7 years ago
&::before {
content: '';
display: block;
position: absolute;
top: 0;
bottom: 0;
7 years ago
left: 21px;
7 years ago
width: 2px;
background: #8e8e8e;
}
}
.panel-editor-tabs__item {
margin-bottom: 25px;
7 years ago
position: relative;
z-index: 1;
text-align: center;
&:last-child {
margin-bottom: 0;
}
}
.panel-editor-tabs__link {
display: inline-block;
&.active {
position: relative;
}
img {
height: 44px;
}
}
.ds-picker-list {
display: flex;
flex-wrap: wrap;
margin-bottom: 13px;
flex-direction: column;
}
.ds-picker-list__item {
background: $panel-bg;
border: $panel-border;
border-radius: 3px;
display: flex;
cursor: pointer;
margin-bottom: 3px;
padding: 5px 15px;
align-items: center;
&:hover {
background: $card-background-hover;
}
&--selected {
.ds-picker-list__name {
color: $text-color;
}
}
}
.ds-picker-list__name {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
font-size: $font-size-md;
padding-left: 15px;
}
.ds-picker-list__img {
width: 30px;
}
.form-option-box {
margin-bottom: 20px;
}
.form-option-box__header {
7 years ago
border-bottom: 2px solid $dark-4;
padding: 5px 0px;
7 years ago
font-size: $font-size-md;
margin-bottom: 20px;
}
.form-section {
margin-bottom: 10px;
}
.form-section__header {
padding: 5px 10px;
font-size: $font-size-h5;
margin-bottom: 20px;
background: $input-label-bg;
border-radius: 3px;
}
.form-section__body {
padding: 0 10px;
}