insomnia/app/ui/css/components/toast.less
Gregory Schier e2c72987e8 Autocomplete for variables and tags (#112)
* Fixed duplication kve bug

* Autocomplete sort of works now

* Even better

* Styled autocomplete dropdown

* Minor tweaks

* Autocomplete looking pretty spiffy

* Bug fixes

* Apply dropdown to all editors

* Fixed key propagation when autocomplete open

* Fixed some modals

* Split up editor less

* Some css improvements

* Move filter help out of editor

* Fixed drag-n-drop

* Perfected autocomplete theme

* "fixed" one-line-editor hint click bug

* Better autocomplete and switch single line input on drag enter

* Don't autocomplete on Tab

* Better tag dnd

* Add constants completion API

* Autocomplete headers

* Fixed tests
2017-03-11 16:31:23 -08:00

59 lines
1.1 KiB
Plaintext

@import '../constants/dimensions';
@import '../constants/colors';
@import '../constants/animations';
.toast {
opacity: 0;
position: absolute;
z-index: 100;
bottom: @padding-md;
right: @padding-md;
background: var(--color-bg);
color: var(--color-font);
box-shadow: 0 0 1rem rgba(0, 0, 0, 0.2);
display: flex;
flex-direction: row;
align-items: center;
transition: opacity 500ms;
padding: @padding-sm @padding-xs @padding-sm @padding-md;
&.toast--show {
opacity: 1;
}
.toast__message {
display: inline-block;
padding-left: @padding-xs;
}
.toast__action {
color: var(--color-surprise);
text-transform: uppercase;
font-size: @font-size-sm;
padding-left: @padding-md;
}
.toast__action > button {
border-color: inherit;
min-width: 7em;
}
.toast__action--close {
color: @hl-md;
padding-left: @padding-sm;
&:hover {
color: @hl;
}
}
.toast__action--close > button:hover,
.toast__action--close > button {
font-size: @font-size-xs;
padding: 0 @padding-xs;
border: 0;
min-width: 0;
background: transparent;
}
}