grafana/public/sass/components/_viz_editor.scss

226 lines
3.5 KiB
SCSS
Raw Normal View History

2018-10-28 12:26:49 -05:00
.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;
}
2018-10-27 03:14:38 -05:00
.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;
}
2018-07-07 07:10:03 -05:00
}
.viz-picker__search {
flex-grow: 0;
}
2018-10-28 14:44:47 -05:00
.viz-picker {
margin-bottom: $spacer;
}
.viz-picker__items {
2018-10-26 09:29:08 -05:00
display: flex;
2018-11-06 11:14:29 -06:00
flex-wrap: wrap;
2018-10-27 08:09:36 -05:00
// for scrollbar
2018-10-28 05:31:42 -05:00
margin-bottom: 13px;
2018-07-07 07:10:03 -05:00
}
.viz-picker__item {
background: $card-background;
box-shadow: $card-shadow;
border-radius: 3px;
2018-11-06 11:14:29 -06:00
height: 90px;
width: 150px;
2018-10-27 08:09:36 -05:00
flex-shrink: 0;
flex-direction: column;
2018-07-07 07:10:03 -05:00
text-align: center;
cursor: pointer;
display: flex;
2018-11-06 11:14:29 -06:00
margin-right: 10px;
margin-bottom: 10px;
2018-07-08 15:03:22 -05:00
border: 1px solid transparent;
2018-10-27 08:09:36 -05:00
align-items: center;
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;
2018-10-27 08:09:36 -05:00
font-size: $font-size-sm;
display: flex;
flex-direction: column;
align-self: center;
2018-11-06 11:14:29 -06:00
height: 23px;
2018-07-07 07:10:03 -05:00
}
.viz-picker__item-img {
2018-11-06 11:14:29 -06:00
height: 55px;
2018-07-07 07:10:03 -05:00
}
2018-10-26 06:20:10 -05:00
.panel-editor__aside {
background: $panel-bg;
display: flex;
flex-direction: column;
}
2018-10-27 03:14:38 -05:00
.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;
2018-10-27 03:14:38 -05:00
button {
margin-bottom: 10px;
2018-10-27 03:14:38 -05:00
}
}
2018-10-26 06:20:10 -05:00
.panel-editor__aside-header {
color: $text-muted;
font-size: $font-size-h3;
2018-10-27 08:09:36 -05:00
padding: 20px 30px 10px 20px;
2018-10-26 06:20:10 -05:00
white-space: nowrap;
i {
font-size: 25px;
position: relative;
top: 1px;
padding-right: 5px;
}
}
2018-10-26 09:29:08 -05:00
.viz-picker__bar {
margin-bottom: $spacer;
}
2018-10-27 08:09:36 -05:00
.panel-editor-resizer {
position: absolute;
height: 2px;
width: 100%;
2018-11-06 01:01:00 -06:00
top: -23px;
text-align: center;
2018-11-06 01:33:49 -06:00
border-bottom: 2px dashed transparent;
2018-11-06 01:01:00 -06:00
&:hover {
2018-11-06 01:33:49 -06:00
transition: border-color 0.2s ease-in 0.4s;
transition-delay: 0.2s;
border-color: $text-color-faint;
2018-11-06 01:01:00 -06:00
}
2018-10-27 08:09:36 -05:00
}
.panel-editor-resizer__handle {
display: inline-block;
2018-11-06 01:01:00 -06:00
width: 180px;
2018-10-27 08:09:36 -05:00
position: relative;
border-radius: 2px;
2018-11-06 01:01:00 -06:00
height: 10px;
2018-10-27 08:09:36 -05:00
cursor: grabbing;
2018-11-06 01:01:00 -06:00
background: $dark-4;
top: -8px;
&:hover {
2018-11-06 01:33:49 -06:00
transition: background 0.2s ease-in 0.4s;
transition-delay: 0.2s;
background: $blue-dark;
2018-11-06 01:01:00 -06:00
.panel-editor-resizer__handle-dots {
2018-11-06 01:33:49 -06:00
transition: opacity 0.2s ease-in;
opacity: 0;
2018-11-06 01:01:00 -06:00
}
}
2018-10-27 08:09:36 -05:00
}
.panel-editor-resizer__handle-dots {
2018-11-06 01:01:00 -06:00
border-top: 2px dashed $text-color-faint;
2018-10-27 08:09:36 -05:00
position: relative;
2018-11-06 01:01:00 -06:00
top: 4px;
2018-10-27 08:09:36 -05:00
}
.panel-editor {
height: calc(100% - 10px);
}
2018-11-06 11:55:35 -06:00
.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;
}