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

43 lines
951 B
SCSS
Raw Normal View History

2017-04-10 14:32:40 +02:00
@import "../global";
$padding-snack-horizontal: $spacing-vertical;
.snack-bar {
$height-snack: $spacing-vertical * 2;
$padding-snack-vertical: $spacing-vertical / 4;
line-height: $height-snack - $padding-snack-vertical * 2;
padding: $padding-snack-vertical $padding-snack-horizontal;
position: fixed;
top: $spacing-vertical;
left: 0;
right: 0;
margin-left: auto;
margin-right: auto;
min-width: 300px;
max-width: 500px;
2017-08-18 07:37:35 +02:00
background: var(--color-black-transparent);
2017-04-10 14:32:40 +02:00
color: #f0f0f0;
display: flex;
justify-content: space-between;
align-items: center;
border-radius: 2px;
2017-08-18 07:37:35 +02:00
transition: all var(--standard-transition);
2017-04-10 14:32:40 +02:00
z-index: 10000; /*hack to get it over react modal */
}
.snack-bar__action {
display: inline-block;
text-transform: uppercase;
2017-08-18 07:37:35 +02:00
color: var(--color-primary-light);
2017-04-10 14:32:40 +02:00
margin: 0px 0px 0px $padding-snack-horizontal;
min-width: min-content;
&:hover {
text-decoration: underline;
}
}