mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 13:09:22 -06:00
274 lines
4.1 KiB
SCSS
274 lines
4.1 KiB
SCSS
.query-keyword {
|
|
font-weight: $font-weight-semi-bold;
|
|
color: $blue;
|
|
}
|
|
|
|
.query-segment-operator {
|
|
color: $orange;
|
|
}
|
|
|
|
.query-editor-rows {
|
|
margin: 20px 0;
|
|
}
|
|
|
|
.gf-form-query {
|
|
.gf-form,
|
|
.gf-form-filler {
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.gf-form-switch,
|
|
.gf-form-switch label,
|
|
.gf-form-input,
|
|
.gf-form-select-wrapper,
|
|
.gf-form-filler,
|
|
.gf-form-label {
|
|
margin-right: 2px;
|
|
}
|
|
|
|
.gf-form + .gf-form {
|
|
margin-left: 0;
|
|
}
|
|
}
|
|
|
|
.gf-form-query-content {
|
|
flex-grow: 2;
|
|
|
|
&--collapsed {
|
|
overflow: hidden;
|
|
|
|
.gf-form-label {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
width: 100%;
|
|
white-space: nowrap;
|
|
}
|
|
}
|
|
}
|
|
|
|
.gf-form-query-letter-cell {
|
|
flex-shrink: 0;
|
|
|
|
.gf-form-query-letter-cell-carret {
|
|
display: inline-block;
|
|
width: 0.7rem;
|
|
position: relative;
|
|
left: -2px;
|
|
}
|
|
.gf-form-query-letter-cell-letter {
|
|
font-weight: bold;
|
|
color: $blue;
|
|
}
|
|
.gf-form-query-letter-cell-ds {
|
|
color: $text-color-weak;
|
|
}
|
|
}
|
|
|
|
.gf-query-ds-label {
|
|
text-align: center;
|
|
width: 44px;
|
|
}
|
|
|
|
.grafana-metric-options {
|
|
margin-top: 25px;
|
|
}
|
|
|
|
.tight-form-func {
|
|
background: $tight-form-func-bg;
|
|
|
|
&.show-function-controls {
|
|
padding-top: 5px;
|
|
min-width: 100px;
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
input[type='text'].tight-form-func-param {
|
|
font-size: 0.875rem;
|
|
background: transparent;
|
|
border: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.tight-form-func-controls {
|
|
display: none;
|
|
text-align: center;
|
|
|
|
.fa-arrow-left {
|
|
float: left;
|
|
position: relative;
|
|
top: 2px;
|
|
}
|
|
.fa-arrow-right {
|
|
float: right;
|
|
position: relative;
|
|
top: 2px;
|
|
}
|
|
.fa-remove {
|
|
margin-left: 10px;
|
|
}
|
|
}
|
|
|
|
.grafana-metric-options {
|
|
margin-top: 25px;
|
|
}
|
|
|
|
.tight-form-func {
|
|
background: $tight-form-func-bg;
|
|
|
|
&.show-function-controls {
|
|
padding-top: 5px;
|
|
min-width: 100px;
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
.query-troubleshooter {
|
|
font-size: $font-size-sm;
|
|
margin: $gf-form-margin;
|
|
border: 1px solid $btn-secondary-bg;
|
|
min-height: 100px;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.query-troubleshooter__header {
|
|
float: right;
|
|
font-size: $font-size-sm;
|
|
text-align: right;
|
|
padding: $input-padding-y $input-padding-x;
|
|
a {
|
|
margin-left: $spacer;
|
|
}
|
|
}
|
|
|
|
.query-troubleshooter__body {
|
|
padding: $spacer 0;
|
|
}
|
|
|
|
.rst-text::before {
|
|
content: ' ';
|
|
}
|
|
|
|
.rst-unknown.rst-directive {
|
|
font-family: monospace;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.rst-interpreted_text {
|
|
font-family: monospace;
|
|
display: inline;
|
|
}
|
|
|
|
.rst-bullet-list {
|
|
padding-left: 1.5rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.rst-paragraph:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.drop-element.drop-popover.drop-function-def .drop-content {
|
|
max-width: 30rem;
|
|
}
|
|
|
|
.rst-literal-block .rst-text {
|
|
display: block;
|
|
}
|
|
|
|
.query-editor-row {
|
|
margin-bottom: 2px;
|
|
|
|
&:hover {
|
|
.query-editor-row__actions {
|
|
display: flex;
|
|
}
|
|
}
|
|
|
|
&--disabled {
|
|
.query-keyword {
|
|
color: darken($blue, 20%);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
.query-editor-row__header {
|
|
display: flex;
|
|
padding: 4px 0px 4px 8px;
|
|
position: relative;
|
|
height: 35px;
|
|
background: $page-bg;
|
|
flex-wrap: nowrap;
|
|
align-items: center;
|
|
}
|
|
|
|
.query-editor-row__ref-id {
|
|
font-weight: $font-weight-semi-bold;
|
|
color: $blue;
|
|
font-size: $font-size-md;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
i {
|
|
padding-right: 5px;
|
|
color: $text-muted;
|
|
position: relative;
|
|
}
|
|
}
|
|
|
|
.query-editor-row__collapsed-text {
|
|
padding: 0 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
flex-grow: 1;
|
|
overflow: hidden;
|
|
|
|
> div {
|
|
color: $text-muted;
|
|
font-style: italic;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
font-size: $font-size-sm;
|
|
min-width: 0;
|
|
}
|
|
}
|
|
|
|
.query-editor-row__actions {
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
color: $text-muted;
|
|
}
|
|
|
|
.query-editor-row__action {
|
|
margin-left: 3px;
|
|
background: transparent;
|
|
border: none;
|
|
box-shadow: none;
|
|
|
|
&:hover {
|
|
color: $text-color;
|
|
}
|
|
}
|
|
|
|
.query-editor-row__body {
|
|
margin: 0 0 10px 40px;
|
|
background: $page-bg;
|
|
|
|
&--collapsed {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.query-editor-row__context-info {
|
|
font-style: italic;
|
|
font-size: $font-size-sm;
|
|
color: $text-muted;
|
|
padding-left: 10px;
|
|
}
|
|
|