Files
grafana/public/sass/components/_panel_editor.scss

330 lines
5.8 KiB
SCSS
Raw Normal View History

2018-10-28 10:26:49 -07:00
.panel-editor-container {
display: flex;
flex-direction: column;
height: 100%;
}
.panel-wrapper {
height: 100%;
&--edit {
flex: 1 1 0;
height: unset;
margin: 0 $dashboard-padding;
}
&--view {
flex: 1 1 0;
height: 80%;
margin: 0 $dashboard-padding;
padding-top: $dashboard-padding;
}
2018-10-28 10:26:49 -07:00
}
.panel-editor-container__editor {
margin-top: $panel-margin*2;
display: flex;
2018-11-21 20:32:04 +01:00
flex-direction: row;
2018-11-22 15:34:55 +01:00
height: 60%;
2018-10-28 10:26:49 -07:00
position: relative;
}
2018-11-21 20:32:04 +01:00
.panel-editor__right {
display: flex;
flex-direction: column;
flex-grow: 1;
2018-11-22 08:46:54 +01:00
background: $page-bg;
margin: 0 20px 0 84px;
border-left: 2px solid $orange;
2018-11-22 08:46:54 +01:00
border-radius: 3px;
box-shadow: $panel-editor-shadow;
2018-11-21 20:32:04 +01:00
}
2018-11-23 07:43:25 +01: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 10:26:49 -07:00
flex-grow: 1;
min-width: 0;
display: flex;
}
.panel-editor__content {
2018-11-20 11:26:01 +01:00
padding: 40px 20px;
2018-10-28 10:26:49 -07:00
}
2018-11-22 12:13:28 +01:00
.panel-editor__toolbar-view {
background: $panel-editor-toolbar-view-bg;
2018-11-22 12:13:28 +01:00
padding: 20px;
}
2018-10-27 10:14:38 +02:00
.panel-in-fullscreen {
.sidemenu {
display: none;
}
.dashboard-container {
padding: 0;
}
.submenu-controls {
2018-11-10 07:34:09 -08:00
padding: 0 $dashboard-padding $panel-margin $dashboard-padding;
2018-10-27 10:14:38 +02:00
}
.panel-editor-container__panel {
margin: 0 $dashboard-padding;
}
2018-07-07 05:10:03 -07:00
}
2018-10-27 15:09:36 +02:00
.panel-editor-resizer {
position: absolute;
height: 2px;
width: 100%;
2018-11-06 08:01:00 +01:00
top: -23px;
text-align: center;
2018-11-06 08:33:49 +01:00
border-bottom: 2px dashed transparent;
2018-11-06 08:01:00 +01:00
&:hover {
2018-11-06 08:33:49 +01:00
transition: border-color 0.2s ease-in 0.4s;
transition-delay: 0.2s;
border-color: $text-color-faint;
2018-11-06 08:01:00 +01:00
}
2018-10-27 15:09:36 +02:00
}
.panel-editor-resizer__handle {
display: inline-block;
2018-11-06 08:01:00 +01:00
width: 180px;
2018-10-27 15:09:36 +02:00
position: relative;
border-radius: 2px;
2018-11-14 15:17:28 +01:00
height: 7px;
2018-10-27 15:09:36 +02:00
cursor: grabbing;
2018-11-11 17:46:40 +01:00
background: $input-label-bg;
2018-11-14 15:17:28 +01:00
top: -9px;
2018-11-06 08:01:00 +01:00
&:hover {
2018-11-06 08:33:49 +01:00
transition: background 0.2s ease-in 0.4s;
transition-delay: 0.2s;
2018-11-11 17:46:40 +01:00
background: linear-gradient(90deg, $orange, $red);
2018-11-06 08:01:00 +01:00
.panel-editor-resizer__handle-dots {
2018-11-06 08:33:49 +01:00
transition: opacity 0.2s ease-in;
opacity: 0;
2018-11-06 08:01:00 +01:00
}
}
2018-10-27 15:09:36 +02:00
}
.panel-editor-resizer__handle-dots {
2018-11-06 08:01:00 +01:00
border-top: 2px dashed $text-color-faint;
2018-10-27 15:09:36 +02:00
position: relative;
2018-11-06 08:01:00 +01:00
top: 4px;
2018-10-27 15:09:36 +02:00
}
2018-11-10 17:27:25 +01:00
.viz-picker {
display: flex;
flex-wrap: wrap;
margin-bottom: 13px;
2018-11-06 18:55:35 +01:00
}
2018-11-10 17:27:25 +01:00
.viz-picker__item {
background: $panel-editor-viz-item-bg;
border: $panel-editor-viz-item-border;
2018-11-10 17:27:25 +01:00
border-radius: 3px;
height: 100px;
2018-11-10 17:27:25 +01:00
width: 150px;
flex-shrink: 0;
flex-direction: column;
text-align: center;
cursor: pointer;
display: flex;
2018-11-10 17:27:25 +01:00
margin-right: 10px;
margin-bottom: 10px;
//border: 1px solid transparent;
align-items: center;
justify-content: center;
padding-bottom: 6px;
transition: transform 1 ease;
2018-11-10 17:27:25 +01:00
&:hover {
//background: $card-background-hover;
transform: scale(1.05);
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 17:27:25 +01:00
}
&--selected {
box-shadow: 0 0 6px $orange;
border: 1px solid $orange;
&:hover {
transform: scale(1.05);
box-shadow: 0 0 6px $orange;
border: 1px solid $orange;
background: $panel-editor-viz-item-bg-hover-active;
}
}
}
2018-11-10 17:27:25 +01: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 17:27:25 +01:00
.viz-picker__item-img {
height: 55px;
}
.panel-editor-tabs {
position: relative;
z-index: 2;
2018-11-21 20:32:04 +01:00
display: flex;
flex-direction: column;
2018-11-22 08:46:54 +01:00
position: absolute;
top: 44px;
left: 20px;
2018-11-23 07:31:13 +01:00
align-items: flex-start;
2018-11-22 08:46:54 +01:00
&::before {
content: '';
display: block;
position: absolute;
top: 10px;
bottom: 10px;
2018-11-23 07:31:13 +01:00
left: 21px;
2018-11-22 08:46:54 +01:00
width: 2px;
background: $panel-editor-tabs-line-color;
2018-11-22 08:46:54 +01:00
}
}
2018-11-21 20:32:04 +01:00
.panel-editor-tabs__item {
margin-bottom: 25px;
2018-11-22 08:46:54 +01: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 08:46:54 +01:00
height: 44px;
width: 53px;
transition: transform 0.1s ease;
margin-right: 5px;
&:hover {
filter: $panel-editor-side-menu-shadow;
transform: translate(-2px, -2px);
transform: scale(1.1);
}
2018-11-22 08:46:54 +01:00
}
}
2018-11-09 15:49:55 +01:00
.ds-picker-list {
display: flex;
flex-wrap: wrap;
margin-bottom: 13px;
flex-direction: column;
}
.ds-picker-list__item {
background: $panel-editor-viz-item-bg;
border: $panel-editor-viz-item-border;
2018-11-09 15:49:55 +01:00
border-radius: 3px;
display: flex;
cursor: pointer;
margin-bottom: 3px;
padding: 5px 15px;
align-items: center;
height: 44px;
2018-11-09 15:49:55 +01:00
&:hover {
background: $card-background-hover;
transform: scaleY(1.1);
box-shadow: $panel-editor-viz-item-shadow-hover;
background: $panel-editor-viz-item-bg-hover;
border: $panel-editor-viz-item-border-hover;
2018-11-09 15:49:55 +01:00
}
&--selected {
box-shadow: 0 0 6px $orange;
border: 1px solid $orange;
2018-11-09 15:49:55 +01:00
.ds-picker-list__name {
color: $text-color;
}
}
}
.ds-picker-list__name {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
font-size: $font-size-md;
padding-left: 15px;
}
.ds-picker-list__img {
width: 30px;
}
2018-11-10 17:27:25 +01:00
.form-option-box {
margin-bottom: 20px;
}
.form-option-box__header {
2018-11-10 12:17:40 -08:00
border-bottom: 2px solid $dark-4;
2018-11-10 17:27:25 +01:00
padding: 5px 0px;
2018-11-10 12:17:40 -08:00
font-size: $font-size-md;
2018-11-10 17:27:25 +01:00
margin-bottom: 20px;
}
2018-11-20 11:06:36 +01:00
.form-section {
margin-bottom: 10px;
}
.form-section__header {
2018-11-20 11:26:01 +01:00
padding: 5px 10px;
2018-11-20 11:06:36 +01:00
font-size: $font-size-h5;
margin-bottom: 20px;
2018-11-20 11:26:01 +01:00
background: $input-label-bg;
border-radius: 3px;
2018-11-20 11:06:36 +01:00
}
.form-section__body {
2018-11-20 11:26:01 +01:00
padding: 0 10px;
2018-11-20 11:06:36 +01:00
}
.panel-editor-tabs__item-popover {
background: $orange;
}