2017-04-10 14:32:40 +02:00
|
|
|
.snack-bar {
|
2018-12-19 06:44:53 +01:00
|
|
|
bottom: 2rem;
|
2020-07-23 16:22:57 +02:00
|
|
|
right: 2rem;
|
|
|
|
max-width: 20rem;
|
2022-02-11 19:50:55 +01:00
|
|
|
background-color: var(--color-primary);
|
|
|
|
color: var(--color-primary-contrast);
|
|
|
|
border-radius: var(--border-radius);
|
2022-03-18 04:24:58 +01:00
|
|
|
padding: var(--spacing-s) var(--spacing-m) var(--spacing-s) var(--spacing-m);
|
2018-04-17 07:24:02 +02:00
|
|
|
position: fixed;
|
2017-12-21 18:32:51 +01:00
|
|
|
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
|
2020-09-09 22:32:04 +02:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2022-02-11 19:50:55 +01:00
|
|
|
|
|
|
|
.button__label {
|
|
|
|
color: var(--color-primary-contrast);
|
|
|
|
}
|
2022-02-14 13:50:04 +01:00
|
|
|
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
bottom: var(--spacing-xxs);
|
|
|
|
right: var(--spacing-xxs);
|
|
|
|
}
|
2017-04-10 14:32:40 +02:00
|
|
|
}
|
|
|
|
|
2019-09-23 03:56:43 +02:00
|
|
|
.snack-bar--upgrade {
|
|
|
|
@extend .snack-bar;
|
|
|
|
left: auto;
|
|
|
|
right: 2rem;
|
2019-11-22 22:13:00 +01:00
|
|
|
background-color: var(--color-snack-bg-upgrade);
|
2019-09-23 03:56:43 +02:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
2018-10-29 18:23:53 +01:00
|
|
|
.snack-bar--error {
|
2019-11-22 22:13:00 +01:00
|
|
|
background-color: var(--color-snack-bg-error);
|
2018-10-29 18:23:53 +01:00
|
|
|
}
|
|
|
|
|
2022-05-06 12:08:09 +02:00
|
|
|
.snack-bar--stacked-non-error {
|
|
|
|
box-shadow: // The top layer shadow
|
|
|
|
0 1px 1px var(--color-border),
|
|
|
|
// The second layer
|
|
|
|
0 10px 0 -5px var(--color-primary),
|
|
|
|
// The second layer shadow
|
|
|
|
0 10px 1px -4px var(--color-border);
|
|
|
|
//// The third layer
|
|
|
|
//0 20px 0 -10px var(--color-primary),
|
|
|
|
//// The third layer shadow
|
|
|
|
//0 20px 1px -9px var(--color-border);
|
|
|
|
}
|
|
|
|
|
|
|
|
.snack-bar--stacked-error {
|
|
|
|
box-shadow: // The top layer shadow
|
|
|
|
0 1px 1px var(--color-border),
|
|
|
|
// The second layer
|
|
|
|
0 10px 0 -5px var(--color-snack-bg-error),
|
|
|
|
// The second layer shadow
|
|
|
|
0 10px 1px -4px var(--color-border);
|
|
|
|
//// The third layer
|
|
|
|
//0 20px 0 -10px var(--color-snack-bg-error),
|
|
|
|
//// The third layer shadow
|
|
|
|
//0 20px 1px -9px var(--color-border);
|
|
|
|
}
|
|
|
|
|
2020-07-23 16:22:57 +02:00
|
|
|
.snack-bar--notification {
|
|
|
|
@extend .card;
|
|
|
|
background-color: var(--color-card-background);
|
|
|
|
color: var(--color-text);
|
|
|
|
}
|
|
|
|
|
2017-04-10 14:32:40 +02:00
|
|
|
.snack-bar__action {
|
|
|
|
display: inline-block;
|
2020-06-01 19:03:19 +02:00
|
|
|
margin: var(--spacing-s) 0;
|
2020-09-09 22:32:04 +02:00
|
|
|
margin-left: auto;
|
2017-04-10 14:32:40 +02:00
|
|
|
min-width: min-content;
|
2019-11-25 18:42:49 +01:00
|
|
|
color: var(--color-white);
|
2022-06-02 09:29:37 +02:00
|
|
|
font-size: var(--font-small);
|
2018-04-17 07:24:02 +02:00
|
|
|
|
2018-10-17 00:29:55 +02:00
|
|
|
span:hover {
|
|
|
|
text-decoration: underline;
|
2018-04-17 07:24:02 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.snack-bar__message {
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2019-07-21 23:31:22 +02:00
|
|
|
font-size: var(--font-body);
|
2018-04-17 07:24:02 +02:00
|
|
|
|
2020-09-18 05:49:45 +02:00
|
|
|
.credit-amount {
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
.icon--CheckCircle,
|
|
|
|
.icon--AlertCircle {
|
2020-08-27 21:36:05 +02:00
|
|
|
margin-right: var(--spacing-m);
|
2020-09-09 22:32:04 +02:00
|
|
|
min-width: 1rem;
|
2017-04-10 14:32:40 +02:00
|
|
|
}
|
|
|
|
}
|
2022-03-18 04:24:58 +01:00
|
|
|
|
2021-10-04 15:21:59 +02:00
|
|
|
.snack-bar__messageText {
|
|
|
|
min-width: 0;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
2022-03-18 04:24:58 +01:00
|
|
|
|
|
|
|
.snack-bar__messageText--sub {
|
2022-03-24 09:08:40 +01:00
|
|
|
font-size: var(--font-small);
|
|
|
|
opacity: 0.8;
|
2022-03-18 04:24:58 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.snack-bar__close {
|
|
|
|
color: var(--color-primary-contrast);
|
|
|
|
margin-left: var(--spacing-m);
|
|
|
|
}
|