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

46 lines
923 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;
padding: var(--spacing-vertical-small) var(--spacing-vertical-large) var(--spacing-vertical-small)
var(--spacing-vertical-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;
margin: var(--spacing-vertical-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;
margin-right: var(--spacing-vertical-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
}
}