2018-06-11 10:36:45 -05:00
|
|
|
.slate-query-field {
|
2019-12-16 10:45:33 -06:00
|
|
|
font-size: $font-size-base;
|
2018-06-11 10:36:45 -05:00
|
|
|
font-family: $font-family-monospace;
|
|
|
|
height: auto;
|
2018-10-17 10:52:21 -05:00
|
|
|
word-break: break-word;
|
2020-06-03 10:35:21 -05:00
|
|
|
// Affects only placeholder in query field. Adds scrollbar only if content is cropped.
|
|
|
|
overflow: auto;
|
2018-06-11 10:36:45 -05:00
|
|
|
}
|
|
|
|
|
2018-12-09 11:44:59 -06:00
|
|
|
.slate-query-field__wrapper {
|
2018-06-11 10:36:45 -05:00
|
|
|
position: relative;
|
|
|
|
display: inline-block;
|
2020-04-05 13:02:52 -05:00
|
|
|
padding: 6px 8px;
|
2019-03-13 03:40:56 -05:00
|
|
|
min-height: $input-height;
|
2018-06-11 10:36:45 -05:00
|
|
|
width: 100%;
|
|
|
|
line-height: $line-height-base;
|
2018-12-03 10:20:02 -06:00
|
|
|
color: $text-color;
|
2018-12-04 02:41:36 -06:00
|
|
|
background-color: $input-bg;
|
2018-06-11 10:36:45 -05:00
|
|
|
background-image: none;
|
2020-06-01 03:52:57 -05:00
|
|
|
border: $input-border;
|
2018-06-11 10:36:45 -05:00
|
|
|
border-radius: $border-radius;
|
|
|
|
transition: all 0.3s;
|
2019-02-01 06:40:46 -06:00
|
|
|
line-height: $input-line-height;
|
2018-06-11 10:36:45 -05:00
|
|
|
}
|
|
|
|
|
2018-12-09 11:44:59 -06:00
|
|
|
.slate-query-field__wrapper--disabled {
|
|
|
|
background-color: inherit;
|
2020-04-25 15:48:20 -05:00
|
|
|
cursor: not-allowed;
|
2018-12-09 11:44:59 -06:00
|
|
|
}
|
|
|
|
|
2018-06-11 10:36:45 -05:00
|
|
|
.slate-typeahead {
|
|
|
|
.typeahead {
|
2019-09-23 06:26:05 -05:00
|
|
|
position: relative;
|
2020-04-23 04:46:13 -05:00
|
|
|
z-index: $zindex-typeahead;
|
2018-06-11 10:36:45 -05:00
|
|
|
border-radius: $border-radius;
|
|
|
|
border: $panel-border;
|
|
|
|
max-height: calc(66vh);
|
|
|
|
overflow-y: scroll;
|
|
|
|
overflow-x: hidden;
|
|
|
|
outline: none;
|
|
|
|
list-style: none;
|
|
|
|
background: $panel-bg;
|
|
|
|
color: $text-color;
|
|
|
|
box-shadow: $typeahead-shadow;
|
|
|
|
}
|
|
|
|
|
|
|
|
.typeahead-group__title {
|
|
|
|
color: $text-color-weak;
|
|
|
|
font-size: $font-size-sm;
|
|
|
|
line-height: $line-height-base;
|
2019-03-28 05:13:53 -05:00
|
|
|
padding: $space-sm;
|
2018-06-11 10:36:45 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.typeahead-item {
|
|
|
|
height: auto;
|
|
|
|
font-family: $font-family-monospace;
|
2019-03-28 05:13:53 -05:00
|
|
|
padding: $space-sm $space-sm $space-sm $space-md;
|
2018-06-11 10:36:45 -05:00
|
|
|
font-size: $font-size-sm;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
z-index: 1;
|
|
|
|
display: block;
|
|
|
|
white-space: nowrap;
|
|
|
|
cursor: pointer;
|
|
|
|
transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), border-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1),
|
|
|
|
background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
.typeahead-item__selected {
|
|
|
|
background-color: $typeahead-selected-bg;
|
2018-06-12 10:12:03 -05:00
|
|
|
|
|
|
|
.typeahead-item-hint {
|
|
|
|
font-size: $font-size-xs;
|
|
|
|
color: $text-color;
|
2018-07-26 07:04:12 -05:00
|
|
|
white-space: normal;
|
2018-06-12 10:12:03 -05:00
|
|
|
}
|
2018-06-11 10:36:45 -05:00
|
|
|
}
|
2018-10-05 06:00:45 -05:00
|
|
|
|
|
|
|
.typeahead-match {
|
|
|
|
color: $typeahead-selected-color;
|
|
|
|
border-bottom: 1px solid $typeahead-selected-color;
|
|
|
|
// Undoing mark styling
|
|
|
|
padding: inherit;
|
|
|
|
background: inherit;
|
|
|
|
}
|
2018-06-11 10:36:45 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
/* SYNTAX */
|
|
|
|
|
|
|
|
.slate-query-field {
|
|
|
|
.token.comment,
|
|
|
|
.token.block-comment,
|
|
|
|
.token.prolog,
|
|
|
|
.token.doctype,
|
|
|
|
.token.cdata {
|
|
|
|
color: $text-color-weak;
|
|
|
|
}
|
|
|
|
|
2018-12-03 10:20:02 -06:00
|
|
|
.token.variable,
|
|
|
|
.token.entity {
|
|
|
|
color: $text-color;
|
2018-06-11 10:36:45 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.property,
|
|
|
|
.token.tag,
|
|
|
|
.token.constant,
|
|
|
|
.token.symbol,
|
|
|
|
.token.deleted {
|
|
|
|
color: $query-red;
|
|
|
|
}
|
|
|
|
|
2018-12-03 10:20:02 -06:00
|
|
|
.token.attr-value,
|
2018-06-11 10:36:45 -05:00
|
|
|
.token.selector,
|
|
|
|
.token.string,
|
|
|
|
.token.char,
|
|
|
|
.token.builtin,
|
|
|
|
.token.inserted {
|
|
|
|
color: $query-green;
|
|
|
|
}
|
|
|
|
|
2018-12-03 10:20:02 -06:00
|
|
|
.token.boolean,
|
|
|
|
.token.number,
|
2018-06-11 10:36:45 -05:00
|
|
|
.token.operator,
|
2018-12-03 10:20:02 -06:00
|
|
|
.token.url {
|
2018-06-11 10:36:45 -05:00
|
|
|
color: $query-purple;
|
|
|
|
}
|
|
|
|
|
2018-12-03 10:20:02 -06:00
|
|
|
.token.function,
|
|
|
|
.token.attr-name,
|
|
|
|
.token.function-name,
|
2018-06-11 10:36:45 -05:00
|
|
|
.token.atrule,
|
|
|
|
.token.keyword,
|
|
|
|
.token.class-name {
|
2020-04-13 02:58:40 -05:00
|
|
|
color: $text-blue;
|
2018-06-11 10:36:45 -05:00
|
|
|
}
|
|
|
|
|
2018-12-03 10:20:02 -06:00
|
|
|
.token.punctuation,
|
2018-06-11 10:36:45 -05:00
|
|
|
.token.regex,
|
|
|
|
.token.important {
|
|
|
|
color: $query-orange;
|
|
|
|
}
|
|
|
|
|
|
|
|
.token.important {
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
.token.bold {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2020-04-25 15:48:20 -05:00
|
|
|
|
2018-06-11 10:36:45 -05:00
|
|
|
.token.italic {
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
|
|
|
|
.token.entity {
|
|
|
|
cursor: help;
|
|
|
|
}
|
|
|
|
|
|
|
|
.namespace {
|
|
|
|
opacity: 0.7;
|
|
|
|
}
|
|
|
|
}
|