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

198 lines
3.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: row;
height: 65%;
position: relative;
}
.panel-editor__content {
flex-grow: 1;
min-width: 0;
height: 100%;
padding: 0 20px;
}
.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__search {
flex-grow: 0;
}
7 years ago
.viz-picker {
margin-bottom: $spacer;
}
.viz-picker__items {
7 years ago
display: flex;
7 years ago
// for scrollbar
margin-bottom: 13px;
}
.viz-picker__item {
background: $card-background;
box-shadow: $card-shadow;
border-radius: 3px;
7 years ago
height: 70px;
width: 130px;
flex-shrink: 0;
flex-direction: column;
text-align: center;
cursor: pointer;
display: flex;
7 years ago
margin-right: 6px;
border: 1px solid transparent;
7 years ago
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;
7 years ago
font-size: $font-size-sm;
display: flex;
flex-direction: column;
align-self: center;
7 years ago
height: 20px;
}
.viz-picker__item-img {
7 years ago
height: 40px;
}
.panel-editor__aside {
background: $panel-bg;
display: flex;
flex-direction: column;
}
.panel-editor__aside-item {
padding: 8px 20px;
color: $text-color;
font-size: $font-size-md;
@include left-brand-border;
&.active {
@include left-brand-border-gradient();
background: $page-bg;
}
i {
width: 23px;
}
.gicon {
margin-bottom: 2px;
}
.fa {
font-size: 17px;
}
}
.panel-editor__aside-actions {
display: flex;
flex-direction: column;
height: 100%;
flex-grow: 1;
padding: 60px 15px;
button {
margin-bottom: 10px;
}
}
.panel-editor__aside-header {
color: $text-muted;
font-size: $font-size-h3;
7 years ago
padding: 20px 30px 10px 20px;
white-space: nowrap;
i {
font-size: 25px;
position: relative;
top: 1px;
padding-right: 5px;
}
}
7 years ago
.viz-picker__bar {
display: flex;
margin-bottom: $spacer;
}
7 years ago
.panel-editor-resizer {
position: absolute;
height: 2px;
width: 100%;
top: 1px;
padding-left: 32px;
}
.panel-editor-resizer__handle {
display: inline-block;
width: 100px;
position: relative;
background: $input-label-bg;
top: -12px;
border-radius: 2px;
box-shadow: 0 0 8px $black;
height: 8px;
cursor: grabbing;
}
.panel-editor-resizer__handle-dots {
border-top: 2px dotted $text-color-faint;
position: relative;
top: 3px;
}
.panel-editor {
height: calc(100% - 10px);
}