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/_viz_editor.scss

301 lines
5.0 KiB

.panel-editor-container {
display: flex;
flex-direction: column;
height: 100%;
}
.panel-editor-container__panel {
flex: 1 1 0;
}
.panel-editor-container__editor {
margin-top: $panel-margin*2;
display: flex;
flex-direction: column;
height: 65%;
position: relative;
}
.panel-editor__scroll {
flex-grow: 1;
min-width: 0;
display: flex;
padding: 0 5px;
}
.panel-editor__content {
padding: 40px 15px;
}
.panel-in-fullscreen {
.scroll-canvas--dashboard {
height: 100%;
}
.sidemenu {
display: none;
}
.main-view {
background: unset;
}
.dashboard-container {
padding: 0;
}
.submenu-controls {
padding: $dashboard-padding $dashboard-padding $panel-margin $dashboard-padding;
}
.panel-editor-container__panel {
margin: 0 $dashboard-padding;
}
}
.viz-picker {
margin-bottom: $spacer;
}
.viz-picker__items {
display: flex;
flex-wrap: wrap;
margin-bottom: 13px;
}
.viz-picker__item {
background: $card-background;
box-shadow: $card-shadow;
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 {
.viz-picker__item-name {
color: $text-color;
}
}
}
.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-resizer {
position: absolute;
height: 2px;
width: 100%;
top: -23px;
text-align: center;
border-bottom: 2px dashed transparent;
&:hover {
transition: border-color 0.2s ease-in 0.4s;
transition-delay: 0.2s;
border-color: $text-color-faint;
}
}
.panel-editor-resizer__handle {
display: inline-block;
width: 180px;
position: relative;
border-radius: 2px;
height: 10px;
cursor: grabbing;
background: $dark-4;
top: -8px;
&:hover {
transition: background 0.2s ease-in 0.4s;
transition-delay: 0.2s;
background: $blue-dark;
.panel-editor-resizer__handle-dots {
transition: opacity 0.2s ease-in;
opacity: 0;
}
}
}
.panel-editor-resizer__handle-dots {
border-top: 2px dashed $text-color-faint;
position: relative;
top: 4px;
}
.panel-editor {
height: calc(100% - 10px);
}
.form-option-box {
margin-bottom: 20px;
}
.form-option-box__header {
border-bottom: 2px solid $blue-dark;
padding: 5px 0px;
font-size: $font-size-lg;
margin-bottom: 20px;
}
.edit-section {
position: relative;
}
.edit-section__header {
display: flex;
align-content: center;
align-items: center;
background: linear-gradient(90deg, #292a2d, black);
padding: 7px 30px 7px 20px;
box-shadow: 0 0 20px black;
cursor: pointer;
}
.edit-section__selected {
padding: $input-padding-y $input-padding-x;
font-size: $font-size-md;
line-height: $input-line-height;
color: $input-color;
background-color: $input-bg;
border: $input-border;
border-radius: $input-border-radius;
display: flex;
align-items: center;
.fa {
margin-left: 20px;
display: inline-block;
position: relative;
}
}
.edit-section__title {
font-size: $font-size-lg;
padding-right: 20px;
width: 150px;
}
.edit-section__selected-image {
margin-right: 10px;
display: inline-block;
width: 20px;
height: 20px;
}
.panel-editor-tabs {
z-index: 1;
box-shadow: $page-header-shadow;
border-bottom: 1px solid $page-header-border-color;
padding: 0 $dashboard-padding;
@include clearfix();
.active.gf-tabs-link {
background: #242427;
}
}
.panel-editor-tabs__close {
float: right;
padding: 0;
margin: 0;
background-color: transparent;
border: none;
padding: $tabs-padding;
color: $text-color;
i {
font-size: 120%;
}
&:hover {
color: $text-color-strong;
}
}
.editor-toolbar-view {
position: relative;
padding: 10px 20px;
background-color: $empty-list-cta-bg;
border-top: 3px solid $orange;
margin: 0 100px;
margin-bottom: 20px;
}
.editor-toolbar-view__close {
background: transparent;
padding: 4px 8px 4px 9px;
border: none;
position: absolute;
right: 9px;
top: 7px;
font-size: $font-size-md;
&:hover {
color: $text-color-strong;
}
}
.ds-picker-list {
display: flex;
flex-wrap: wrap;
margin-bottom: 13px;
flex-direction: column;
}
.ds-picker-list__item {
background: $card-background;
box-shadow: $card-shadow;
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;
}