grafana/public/sass/components/_viz_editor.scss

113 lines
1.7 KiB
SCSS
Raw Normal View History

2018-07-07 07:10:03 -05:00
.viz-editor {
height: 100%;
2018-07-07 07:10:03 -05:00
}
.viz-picker {
}
.viz-picker__search {
flex-grow: 0;
}
.viz-picker__items {
flex-grow: 1;
2018-10-26 09:29:08 -05:00
display: flex;
flex-wrap: wrap;
2018-07-07 07:10:03 -05:00
}
.viz-picker__item {
background: $card-background;
box-shadow: $card-shadow;
border-radius: 3px;
padding: $spacer;
2018-07-07 07:10:03 -05:00
height: 60px;
2018-10-26 09:29:08 -05:00
width: 157px;
2018-07-07 07:10:03 -05:00
text-align: center;
2018-10-26 09:29:08 -05:00
margin: 0 7px 7px 0;
2018-07-07 07:10:03 -05:00
cursor: pointer;
display: flex;
flex-shrink: 0;
2018-07-08 15:03:22 -05:00
border: 1px solid transparent;
@include left-brand-border;
2018-07-07 07:10:03 -05:00
&:hover {
background: $card-background-hover;
}
&--selected {
.viz-picker__item-name {
color: $text-color;
}
}
2018-07-07 07:10:03 -05:00
}
.viz-picker__item-name {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
font-size: $font-size-h5;
display: flex;
flex-direction: column;
align-self: center;
padding-left: $spacer;
font-size: $font-size-md;
color: $text-muted;
2018-07-07 07:10:03 -05:00
}
.viz-picker__item-img {
height: 100%;
2018-07-07 07:10:03 -05:00
}
2018-10-26 06:20:10 -05:00
.panel-editor-container {
display: flex;
flex-direction: column;
height: 100%;
}
.panel-editor-container__panel {
height: 35%;
}
.panel-editor-container__editor {
height: 65%;
2018-10-26 09:29:08 -05:00
margin-top: $panel-margin*2;
2018-10-26 06:20:10 -05:00
display: flex;
flex-direction: row;
}
.panel-editor__content {
flex-grow: 1;
min-width: 0;
height: 100%;
2018-10-26 09:29:08 -05:00
padding: 0px 0 20px 20px;
2018-10-26 06:20:10 -05:00
max-width: 1100px;
}
.panel-editor__aside {
padding: 18px 0 0 20px;
background: $panel-bg;
display: flex;
flex-direction: column;
}
.panel-editor__aside-header {
color: $text-muted;
font-size: $font-size-h3;
padding-right: 50px;
white-space: nowrap;
margin-bottom: $spacer;
i {
font-size: 25px;
position: relative;
top: 1px;
padding-right: 5px;
}
}
2018-10-26 09:29:08 -05:00
.viz-picker__bar {
display: flex;
margin-bottom: $spacer;
}