lbry-desktop/src/ui/scss/component/_snack-bar.scss

45 lines
865 B
SCSS
Raw Normal View History

2017-04-10 14:32:40 +02:00
.snack-bar {
bottom: 2rem;
left: 2rem;
2018-10-17 19:14:24 +02:00
background-color: $lbry-teal-4;
border-radius: 0.5rem;
color: $lbry-white;
2019-06-11 20:10:58 +02:00
padding: var(--spacing-small) var(--spacing-large) var(--spacing-small) var(--spacing-medium);
2018-04-17 07:24:02 +02:00
position: fixed;
transition: all var(--transition-duration) var(--transition-type);
2018-10-17 19:14:24 +02:00
z-index: 10000; // hack to get it over react modal
2017-04-10 14:32:40 +02:00
}
.snack-bar--error {
background-color: $lbry-red-5;
}
2017-04-10 14:32:40 +02:00
.snack-bar__action {
display: inline-block;
2019-06-11 20:10:58 +02:00
margin: var(--spacing-small) 0;
2017-04-10 14:32:40 +02:00
min-width: min-content;
2018-04-17 07:24:02 +02:00
text-transform: uppercase;
span:hover {
text-decoration: underline;
2018-04-17 07:24:02 +02:00
}
}
.snack-bar__message {
align-items: center;
display: flex;
flex-direction: row;
div {
&:nth-of-type(1) {
font-size: 1.5rem;
2019-06-11 20:10:58 +02:00
margin-right: var(--spacing-medium);
2018-04-17 07:24:02 +02:00
}
2018-04-17 07:24:02 +02:00
&:nth-of-type(2) {
font-size: 1.25rem;
2018-04-17 07:24:02 +02:00
}
2017-04-10 14:32:40 +02:00
}
}