123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162 |
- .slate-query-field {
- font-size: $font-size-base;
- font-family: $font-family-monospace;
- height: auto;
- word-break: break-word;
- // Affects only placeholder in query field. Adds scrollbar only if content is cropped.
- overflow: auto;
- }
- .slate-query-field__wrapper {
- position: relative;
- display: inline-block;
- padding: 6px 8px;
- min-height: $input-height;
- width: 100%;
- color: $text-color;
- background-color: $input-bg;
- background-image: none;
- border: $input-border;
- border-radius: $border-radius;
- transition: all 0.3s;
- line-height: $input-line-height;
- }
- .slate-query-field__wrapper--disabled {
- background-color: inherit;
- cursor: not-allowed;
- }
- .slate-typeahead {
- .typeahead {
- position: relative;
- z-index: $zindex-typeahead;
- 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;
- padding: $space-sm;
- }
- .typeahead-item {
- height: auto;
- font-family: $font-family-monospace;
- padding: $space-sm $space-sm $space-sm $space-md;
- 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;
- .typeahead-item-hint {
- font-size: $font-size-xs;
- color: $text-color;
- white-space: normal;
- }
- }
- .typeahead-match {
- color: $typeahead-selected-color;
- border-bottom: 1px solid $typeahead-selected-color;
- // Undoing mark styling
- padding: inherit;
- background: inherit;
- }
- }
- /* SYNTAX */
- .slate-query-field,
- .prism-syntax-highlight {
- .token.comment,
- .token.block-comment,
- .token.prolog,
- .token.doctype,
- .token.cdata {
- color: $text-color-weak;
- }
- .token.variable,
- .token.entity {
- color: $text-color;
- }
- .token.property,
- .token.tag,
- .token.constant,
- .token.symbol,
- .token.deleted {
- color: $query-red;
- }
- .token.attr-value,
- .token.selector,
- .token.string,
- .token.char,
- .token.builtin,
- .token.inserted {
- color: $query-green;
- }
- .token.boolean,
- .token.number,
- .token.operator,
- .token.url {
- color: $query-purple;
- }
- .token.function,
- .token.attr-name,
- .token.function-name,
- .token.atrule,
- .token.keyword,
- .token.class-name {
- color: $text-blue;
- }
- .token.punctuation,
- .token.regex,
- .token.important {
- color: $query-orange;
- }
- .token.important {
- font-weight: normal;
- }
- .token.bold {
- font-weight: bold;
- }
- .token.italic {
- font-style: italic;
- }
- .token.entity {
- cursor: help;
- }
- .namespace {
- opacity: 0.7;
- }
- }
|