lbry-desktop/ui/scss/component/_snack-bar.scss
jessopb 3034f4ce6c
bring in styles (#7542)
* bring in ody styles; modify; cleanup

* workflow

* workflow

* v0.52.6-alpha.teststyles.1

* fix hook

* v0.52.6-alpha.teststyles.2

* style fixes

* fix pagination styling

* v0.52.6-alpha.teststyles.3

* wallet icon was bad

* restore deploy script

* fixes

* fix player close button

* modal inputs

* cleanup

* cleanup

* fix staked indicator

* fix profile menu button skel delay

* fix view-all-playlists hover

* fix overlay buttons on collection page

* fix header buttons
2022-04-17 13:04:56 -04:00

73 lines
1.5 KiB
SCSS

.snack-bar {
bottom: 2rem;
right: 2rem;
max-width: 20rem;
background-color: var(--color-primary);
color: var(--color-primary-contrast);
border-radius: var(--border-radius);
padding: var(--spacing-s) var(--spacing-l) var(--spacing-s) var(--spacing-m);
position: fixed;
transition: all var(--transition-duration) var(--transition-type);
z-index: 10000; // hack to get it over react modal
display: flex;
flex-direction: column;
.button__label {
color: var(--color-primary-contrast);
}
}
.snack-bar--upgrade {
@extend .snack-bar;
left: auto;
right: 2rem;
background-color: var(--color-snack-bg-upgrade);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.snack-bar--error {
background-color: var(--color-snack-bg-error);
}
.snack-bar--notification {
@extend .card;
background-color: var(--color-card-background);
color: var(--color-text);
}
.snack-bar__action {
display: inline-block;
margin: var(--spacing-s) 0;
margin-left: auto;
min-width: min-content;
color: var(--color-white);
span:hover {
text-decoration: underline;
}
}
.snack-bar__message {
align-items: center;
display: flex;
flex-direction: row;
font-size: var(--font-body);
.credit-amount {
color: inherit;
}
.icon--CheckCircle,
.icon--AlertCircle {
margin-right: var(--spacing-m);
min-width: 1rem;
}
}
.snack-bar__messageText {
min-width: 0;
text-overflow: ellipsis;
overflow: hidden;
}