grafana/public/sass/components/_code_editor.scss

85 lines
1.7 KiB
SCSS
Raw Normal View History

.gf-code-editor {
2017-12-19 09:22:41 -06:00
min-height: 2.6rem;
min-width: 20rem;
flex-grow: 1;
margin-right: 0.25rem;
&.ace_editor {
2017-08-26 04:14:45 -05:00
@include font-family-monospace();
font-size: 1rem;
2017-12-19 09:22:41 -06:00
min-height: 2.6rem;
2017-08-26 04:36:08 -05:00
@include border-radius($input-border-radius-sm);
border: $input-btn-border-width solid $input-border-color;
}
.ace_content {
z-index: 0;
}
}
2017-08-08 07:20:02 -05:00
.ace_editor.ace_autocomplete {
2017-08-26 04:14:45 -05:00
@include font-family-monospace();
font-size: 1rem;
2017-08-08 07:20:02 -05:00
// Ace editor adds <style> tag at the end of <head>, after grafana.css, so !important
// is used for overriding styles with the same CSS specificity.
background-color: $dropdownBackground !important;
color: $dropdownLinkColor !important;
border: 1px solid $dropdownBorder !important;
width: 550px !important;
2017-08-08 07:20:02 -05:00
.ace_scroller {
2017-12-19 09:22:41 -06:00
.ace_selected,
.ace_active-line,
.ace_line-hover {
2017-08-08 07:20:02 -05:00
color: $dropdownLinkColorHover;
background-color: $dropdownLinkBackgroundHover !important;
}
.ace_line-hover {
border-color: transparent;
}
.ace_completion-highlight {
color: $yellow;
}
.ace_rightAlignedText {
color: $text-muted;
z-index: 0;
}
}
}
2017-08-29 08:51:54 -05:00
$doc-font-size: $font-size-sm;
2017-08-26 04:14:45 -05:00
2017-08-08 07:20:02 -05:00
.ace_tooltip.ace_doc-tooltip {
2017-08-26 04:14:45 -05:00
@include font-family-monospace();
font-size: $doc-font-size;
2017-08-29 08:51:54 -05:00
background-color: $popover-help-bg;
color: $popover-help-color;
2017-08-08 07:20:02 -05:00
background-image: none;
border: 1px solid $dropdownBorder;
2017-08-29 08:51:54 -05:00
padding: 0.5rem 1rem;
2017-08-08 07:20:02 -05:00
hr {
2017-08-29 08:51:54 -05:00
background-color: $popover-help-color;
margin: 0.5rem 0rem;
2017-08-26 04:14:45 -05:00
}
code {
padding: 0px 1px;
margin: 0px;
2017-08-08 07:20:02 -05:00
}
}
2017-08-29 08:51:54 -05:00
.ace_tooltip {
border-radius: 3px;
}
.ace_hidden-cursors .ace_cursor {
opacity: 0 !important;
}