grafana/public/sass/components/_panel_editor.scss

275 lines
4.4 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 {
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 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-11-22 08:34:55 -06:00
height: 60%;
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-11-22 01:46:54 -06:00
background: $page-bg;
2018-11-22 08:34:55 -06:00
margin: 0 62px;
2018-11-22 01:46:54 -06:00
border-left: 2px solid #ac5224;
border-radius: 3px;
2018-11-23 00:31:13 -06:00
box-shadow: $popover-shadow;
2018-11-21 13:32:04 -06:00
}
.panel-editor__scroll {
2018-10-28 12:26:49 -05:00
flex-grow: 1;
min-width: 0;
display: flex;
}
.panel-editor__content {
2018-11-20 04:26:01 -06:00
padding: 40px 20px;
2018-10-28 12:26:49 -05:00
}
2018-11-22 05:13:28 -06:00
.panel-editor__toolbar-view {
background: $black;
padding: 20px;
}
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
}
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-14 08:17:28 -06:00
height: 7px;
2018-10-27 08:09:36 -05:00
cursor: grabbing;
2018-11-11 10:46:40 -06:00
background: $input-label-bg;
2018-11-14 08:17:28 -06:00
top: -9px;
2018-11-06 01:01:00 -06:00
&:hover {
2018-11-06 01:33:49 -06:00
transition: background 0.2s ease-in 0.4s;
transition-delay: 0.2s;
2018-11-11 10:46:40 -06:00
background: linear-gradient(90deg, $orange, $red);
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
}
2018-11-10 10:27:25 -06:00
.viz-picker {
display: flex;
flex-wrap: wrap;
margin-bottom: 13px;
2018-11-06 11:55:35 -06:00
}
2018-11-10 10:27:25 -06:00
.viz-picker__item {
2018-11-22 05:13:28 -06:00
background: $panel-bg;
border: $panel-border;
2018-11-10 10:27:25 -06:00
border-radius: 3px;
height: 90px;
width: 150px;
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;
border: 1px solid transparent;
align-items: center;
2018-11-10 10:27:25 -06:00
&:hover {
background: $card-background-hover;
}
&--selected {
box-shadow: 0 0 12px #ff4d00;
}
}
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;
}
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;
2018-11-22 04:41:33 -06:00
top: 79px;
2018-11-23 00:31:13 -06:00
left: 9px;
align-items: flex-start;
2018-11-22 01:46:54 -06:00
&::before {
content: '';
display: block;
position: absolute;
top: 0;
bottom: 0;
2018-11-23 00:31:13 -06:00
left: 21px;
2018-11-22 01:46:54 -06:00
width: 2px;
background: #8e8e8e;
}
}
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;
}
img {
height: 44px;
}
}
2018-11-09 08:49:55 -06:00
.ds-picker-list {
display: flex;
flex-wrap: wrap;
margin-bottom: 13px;
flex-direction: column;
}
.ds-picker-list__item {
2018-11-22 05:13:28 -06:00
background: $panel-bg;
border: $panel-border;
2018-11-09 08:49:55 -06:00
border-radius: 3px;
display: flex;
cursor: pointer;
margin-bottom: 3px;
padding: 5px 15px;
align-items: center;
&:hover {
background: $card-background-hover;
}
&--selected {
.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 10:27:25 -06:00
.form-option-box {
margin-bottom: 20px;
}
.form-option-box__header {
2018-11-10 14:17:40 -06:00
border-bottom: 2px solid $dark-4;
2018-11-10 10:27:25 -06:00
padding: 5px 0px;
2018-11-10 14:17:40 -06:00
font-size: $font-size-md;
2018-11-10 10:27:25 -06:00
margin-bottom: 20px;
}
2018-11-20 04:06:36 -06:00
.form-section {
margin-bottom: 10px;
}
.form-section__header {
2018-11-20 04:26:01 -06:00
padding: 5px 10px;
2018-11-20 04:06:36 -06:00
font-size: $font-size-h5;
margin-bottom: 20px;
2018-11-20 04:26:01 -06:00
background: $input-label-bg;
border-radius: 3px;
2018-11-20 04:06:36 -06:00
}
.form-section__body {
2018-11-20 04:26:01 -06:00
padding: 0 10px;
2018-11-20 04:06:36 -06:00
}