79 lines
1.5 KiB
SCSS
79 lines
1.5 KiB
SCSS
// Copyright 2021 Signal Messenger, LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
.Toast {
|
|
$border-radius-px: 8px;
|
|
|
|
@include font-body-2;
|
|
|
|
align-items: center;
|
|
border-radius: $border-radius-px;
|
|
box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.05), 0px 4px 12px rgba(0, 0, 0, 0.3);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
position: absolute;
|
|
text-align: center;
|
|
user-select: none;
|
|
overflow: hidden;
|
|
z-index: $z-index-toast;
|
|
bottom: 62px;
|
|
left: 50%;
|
|
transform: translate(-50%, 0);
|
|
|
|
@include light-theme {
|
|
background-color: $color-gray-80;
|
|
color: $color-white;
|
|
}
|
|
@include dark-theme {
|
|
background-color: $color-gray-75;
|
|
color: $color-gray-05;
|
|
}
|
|
|
|
&--align-center {
|
|
bottom: 62px;
|
|
left: 50%;
|
|
transform: translate(-50%, 0);
|
|
}
|
|
|
|
&--align-left {
|
|
left: 20px;
|
|
bottom: 18px;
|
|
}
|
|
|
|
&__content {
|
|
padding: 8px 12px;
|
|
}
|
|
|
|
&__button {
|
|
@include font-body-2-bold;
|
|
cursor: pointer;
|
|
padding: 8px 12px;
|
|
white-space: nowrap;
|
|
|
|
@include light-theme {
|
|
border-left: 1px solid $color-gray-65;
|
|
}
|
|
@include dark-theme {
|
|
border-left: 1px solid $color-gray-60;
|
|
}
|
|
|
|
outline: none;
|
|
|
|
&:hover {
|
|
@include light-theme {
|
|
background-color: $color-gray-65;
|
|
}
|
|
@include dark-theme {
|
|
background-color: $color-gray-60;
|
|
}
|
|
}
|
|
&:focus {
|
|
@include keyboard-mode {
|
|
background-color: $color-gray-65;
|
|
}
|
|
@include dark-keyboard-mode {
|
|
background-color: $color-gray-60;
|
|
}
|
|
}
|
|
}
|
|
}
|