cartodb-4.42/app/assets/stylesheets/editor-3/_codemirror-hints.scss

59 lines
1.0 KiB
SCSS
Raw Normal View History

2024-04-06 13:25:13 +08:00
@import 'cdb-variables/colors';
@import 'cdb-variables/sizes';
.CodeMirror-hints {
display: block;
position: absolute;
z-index: 10;
width: 220px;
max-width: 240px;
height: auto;
max-height: 128px;
overflow-y: auto;
border: 1px solid #354148;
border-radius: 2px;
background: #27333A;
box-shadow: 0 3px 6px 0 rgba(#000, 0.16);
}
.CodeMirror-hint {
display: block;
position: relative;
margin: 0;
padding: $baseSize;
color: $cAltText;
font: 10px 'Monaco', 'Monospace';
span {
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.has-letter {
width: 60%;
}
.has-letter::after {
content: attr(data-type);
position: absolute;
top: 50%;
right: $baseSize;
transform: translateY(-50%);
color: #768085;
font-family: 'Monaco', 'Monospace';
letter-spacing: -0.5;
}
}
.CodeMirror-hint-active {
background: rgba($cWhite, 0.08);
color: $cWhite;
text-decoration: none;
.has-letter::after {
color: $cAlert;
}
}