grafana/public/sass/components/_panel_editor.scss

259 lines
4.2 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-wrapper {
height: 100%;
&--edit {
2018-12-03 05:31:55 -06:00
height: 40%;
margin: 0 $dashboard-padding;
}
&--view {
flex: 1 1 0;
height: 80%;
margin: 0 $dashboard-padding;
padding-top: $dashboard-padding;
}
2018-10-28 12:26:49 -05:00
}
.panel-editor-container__editor {
margin-top: $panel-margin*2;
display: flex;
2018-11-21 13:32:04 -06:00
flex-direction: row;
2018-12-03 05:31:55 -06:00
flex: 1 1 0;
2018-10-28 12:26:49 -05:00
position: relative;
}
2018-11-21 13:32:04 -06:00
.panel-editor__right {
display: flex;
flex-direction: column;
flex-grow: 1;
2018-12-13 06:14:39 -06:00
background: $input-bg;
margin: 0 20px 0 84px;
2018-11-22 01:46:54 -06:00
border-radius: 3px;
box-shadow: $panel-editor-shadow;
2018-11-21 13:32:04 -06:00
}
2018-11-23 00:43:25 -06:00
.panel-editor__close {
@include buttonBackground($btn-inverse-bg, $btn-inverse-bg-hl);
position: absolute;
left: 11px;
top: 5px;
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
i {
flex-grow: 1;
text-align: center;
font-size: 20px;
}
}
.panel-editor__scroll {
2018-10-28 12:26:49 -05:00
flex-grow: 1;
min-width: 0;
display: flex;
}
.panel-editor__content {
2018-12-13 06:27:33 -06:00
padding: 15px;
2018-11-22 05:13:28 -06:00
}
2018-10-27 03:14:38 -05:00
.panel-in-fullscreen {
.sidemenu {
display: none;
}
.dashboard-container {
padding: 0;
}
.submenu-controls {
2018-11-10 09:34:09 -06:00
padding: 0 $dashboard-padding $panel-margin $dashboard-padding;
2018-10-27 03:14:38 -05:00
}
.panel-editor-container__panel {
margin: 0 $dashboard-padding;
}
2018-07-07 07:10:03 -05:00
}
.panel-editor-container__resizer {
position: relative;
margin-top: -3px;
2018-10-27 08:09:36 -05:00
}
.panel-editor-resizer__handle {
position: relative;
display: block;
background: $vertical-resize-handle-bg;
width: 150px;
margin-left: -75px;
height: 6px;
cursor: ns-resize;
border-radius: 3px;
margin: 0 auto;
2018-11-06 01:01:00 -06:00
&::before {
content: ' ';
position: absolute;
left: 10px;
right: 10px;
top: 2px;
border-top: 2px dotted $vertical-resize-handle-dots;
2018-11-06 01:01:00 -06:00
}
2018-10-27 08:09:36 -05:00
&:hover::before {
border-color: $vertical-resize-handle-dots-hover;
}
2018-10-27 08:09:36 -05:00
}
2018-11-10 10:27:25 -06:00
.viz-picker {
2018-12-13 14:24:41 -06:00
padding: 0px 20px;
2018-12-12 07:44:40 -06:00
position: relative;
}
.viz-picker-list {
2018-11-10 10:27:25 -06:00
display: flex;
flex-wrap: wrap;
2018-11-06 11:55:35 -06:00
}
2018-11-10 10:27:25 -06:00
.viz-picker__item {
2018-12-13 06:14:39 -06:00
background: $panel-editor-viz-item-bg;
border: $panel-editor-viz-item-border;
2018-11-10 10:27:25 -06:00
border-radius: 3px;
height: 100px;
2018-12-13 14:24:41 -06:00
width: 145px;
2018-11-10 10:27:25 -06:00
flex-shrink: 0;
flex-direction: column;
text-align: center;
cursor: pointer;
display: flex;
2018-11-10 10:27:25 -06:00
margin-right: 10px;
margin-bottom: 10px;
align-items: center;
justify-content: center;
padding-bottom: 6px;
transition: transform 1 ease;
2018-11-10 10:27:25 -06:00
&--current {
box-shadow: 0 0 6px $orange;
border: 1px solid $orange;
}
2018-12-12 05:51:39 -06:00
&:hover {
box-shadow: $panel-editor-viz-item-shadow-hover;
background: $panel-editor-viz-item-bg-hover;
border: $panel-editor-viz-item-border-hover;
}
}
2018-11-10 10:27:25 -06:00
.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;
font-weight: 500;
}
2018-11-10 10:27:25 -06:00
.viz-picker__item-img {
height: 55px;
}
.panel-editor-tabs {
position: relative;
z-index: 2;
2018-11-21 13:32:04 -06:00
display: flex;
flex-direction: column;
2018-11-22 01:46:54 -06:00
position: absolute;
top: 44px;
left: 20px;
2018-11-23 00:31:13 -06:00
align-items: flex-start;
2018-11-22 01:46:54 -06:00
&::before {
content: '';
display: block;
position: absolute;
top: 10px;
bottom: 10px;
2018-11-23 00:31:13 -06:00
left: 21px;
2018-11-22 01:46:54 -06:00
width: 2px;
background: $panel-editor-tabs-line-color;
2018-11-22 01:46:54 -06:00
}
}
2018-11-21 13:32:04 -06:00
.panel-editor-tabs__item {
margin-bottom: 25px;
2018-11-22 01:46:54 -06:00
position: relative;
z-index: 1;
text-align: center;
&:last-child {
margin-bottom: 0;
}
}
.panel-editor-tabs__link {
display: inline-block;
&.active {
position: relative;
}
.gicon {
2018-11-22 01:46:54 -06:00
height: 44px;
width: 53px;
margin-right: 5px;
2018-12-03 05:31:55 -06:00
transition: transform 0.1s ease 0.1s;
&:hover {
filter: $panel-editor-side-menu-shadow;
transform: translate(-2px, -2px);
transform: scale(1.1);
}
2018-11-22 01:46:54 -06:00
}
}
2018-12-11 10:03:38 -06:00
.ds-picker {
position: relative;
2018-12-11 11:49:48 -06:00
min-width: 200px;
2018-12-11 10:03:38 -06:00
}
2018-12-13 06:14:39 -06:00
.panel-option-section {
margin-bottom: 10px;
2018-12-13 09:02:14 -06:00
border: $panel-option-section-border;
border-radius: $border-radius;
2018-11-09 08:49:55 -06:00
}
2018-11-10 10:27:25 -06:00
2018-12-13 06:05:43 -06:00
.panel-option-section__header {
2018-12-13 09:02:14 -06:00
padding: 4px 20px;
font-size: 1.1rem;
background: $panel-option-section-header-bg;
2018-12-12 06:59:19 -06:00
position: relative;
.btn {
position: absolute;
right: 0;
2018-12-15 03:04:25 -06:00
top: 0px;
2018-12-12 06:59:19 -06:00
}
2018-11-20 04:06:36 -06:00
}
2018-12-13 06:05:43 -06:00
.panel-option-section__body {
padding: 20px;
2018-12-13 06:14:39 -06:00
background: $page-bg;
&--queries {
2018-12-13 14:24:41 -06:00
min-height: 200px;
}
}