grafana/public/sass/components/_viz_editor.scss
2018-11-06 18:55:35 +01:00

226 lines
3.5 KiB
SCSS

.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;
}
.viz-picker {
margin-bottom: $spacer;
}
.viz-picker__items {
display: flex;
flex-wrap: wrap;
// for scrollbar
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__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;
padding: 20px 30px 10px 20px;
white-space: nowrap;
i {
font-size: 25px;
position: relative;
top: 1px;
padding-right: 5px;
}
}
.viz-picker__bar {
margin-bottom: $spacer;
}
.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;
}