grafana/public/sass/components/_code_editor.scss
2017-08-26 12:14:45 +03:00

71 lines
1.5 KiB
SCSS

.gf-code-editor {
min-height: 2.60rem;
min-width: 20rem;
flex-grow: 1;
margin-right: 0.25rem;
&.ace_editor {
@include font-family-monospace();
font-size: 1rem;
min-height: 2.60rem;
}
}
.ace_editor.ace_autocomplete {
@include font-family-monospace();
font-size: 1rem;
// 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: 320px !important;
.ace_scroller {
.ace_selected, .ace_active-line, .ace_line-hover {
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;
}
}
}
$doc-font-size: 0.8rem;
$doc-text-padding: $doc-font-size * 0.5;
.ace_tooltip.ace_doc-tooltip {
@include font-family-monospace();
font-size: $doc-font-size;
background-color: $dropdownBackground;
background-image: none;
color: $dropdownLinkColor;
border: 1px solid $dropdownBorder;
padding-top: $doc-text-padding;
padding-bottom: 0px;
hr {
background-color: $dropdownDividerBottom;
margin-top: $doc-text-padding;
margin-bottom: $doc-text-padding;
}
code {
padding: 0px 1px;
margin: 0px;
}
}