signal-desktop/stylesheets/components/Toast.scss

57 lines
1.1 KiB
SCSS
Raw Normal View History

2021-09-22 20:59:54 +00:00
// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
.Toast {
@include font-body-2;
2021-10-06 21:00:51 +00:00
align-items: center;
2021-09-22 20:59:54 +00:00
border-radius: 4px;
bottom: 62px;
2021-10-06 21:00:51 +00:00
display: flex;
justify-content: space-between;
2021-09-22 20:59:54 +00:00
left: 50%;
position: absolute;
text-align: center;
transform: translate(-50%, 0);
2021-09-29 20:23:06 +00:00
user-select: none;
2021-09-22 20:59:54 +00:00
z-index: 100;
@include light-theme {
2021-10-06 21:00:51 +00:00
background-color: $color-gray-80;
2021-09-22 20:59:54 +00:00
color: $color-white;
box-shadow: 0 4px 16px 0 $color-black-alpha-20,
0 0 0 0.5px $color-black-alpha-05;
}
@include dark-theme {
2021-10-06 21:00:51 +00:00
background-color: $color-gray-75;
color: $color-gray-05;
2021-09-22 20:59:54 +00:00
box-shadow: 0 4px 16px 0 $color-white-alpha-20;
}
2021-10-06 21:00:51 +00:00
&__content {
padding: 8px 12px;
}
&__button {
@include font-body-2-bold;
2021-09-22 20:59:54 +00:00
cursor: pointer;
2021-10-06 21:00:51 +00:00
padding: 8px 12px;
@include light-theme {
border-left: 1px solid $color-gray-65;
}
@include dark-theme {
border-left: 1px solid $color-gray-60;
}
&:hover {
@include light-theme {
background-color: $color-gray-65;
}
@include dark-theme {
background-color: $color-gray-60;
}
}
2021-09-22 20:59:54 +00:00
}
}