signal-desktop/stylesheets/components/BadgeDialog.scss

134 lines
2.4 KiB
SCSS
Raw Normal View History

2021-11-02 23:01:13 +00:00
// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
.BadgeDialog {
@mixin fixed-height($height) {
height: $height;
overflow-y: auto;
}
user-select: none;
&__width-container {
2021-11-02 23:01:13 +00:00
max-width: 420px;
}
&__contents {
2021-11-02 23:01:13 +00:00
display: flex;
align-items: center;
}
&__nav {
$light-color: $color-gray-65;
$dark-color: $color-gray-05;
@include button-reset;
align-items: center;
border-radius: 4px;
display: flex;
justify-content: center;
2023-04-20 17:03:43 +00:00
padding-block: 3px;
padding-inline: 0;
2021-11-02 23:01:13 +00:00
&[disabled] {
visibility: hidden;
}
&::before {
content: '';
display: block;
width: 20px;
height: 20px;
}
@include light-theme {
&:hover,
&:focus {
background: $color-gray-02;
}
&:active {
background: $color-gray-05;
}
}
@include dark-theme {
&:hover,
&:focus {
background: $color-gray-80;
}
&:active {
background: $color-gray-75;
}
}
&--previous::before {
@include light-theme {
@include color-svg(
2023-05-04 18:04:22 +00:00
'../images/icons/v3/chevron/chevron-left.svg',
2021-11-02 23:01:13 +00:00
$light-color
);
}
@include dark-theme {
@include color-svg(
2023-05-04 18:04:22 +00:00
'../images/icons/v3/chevron/chevron-left.svg',
2021-11-02 23:01:13 +00:00
$dark-color
);
}
}
&--next::before {
@include light-theme {
@include color-svg(
2023-05-04 18:04:22 +00:00
'../images/icons/v3/chevron/chevron-right.svg',
2021-11-02 23:01:13 +00:00
$light-color
);
}
@include dark-theme {
@include color-svg(
2023-05-04 18:04:22 +00:00
'../images/icons/v3/chevron/chevron-right.svg',
2021-11-02 23:01:13 +00:00
$dark-color
);
}
}
}
&__main {
flex-grow: 1;
text-align: center;
2023-04-20 17:03:43 +00:00
padding-block: 24px;
padding-inline: 10px;
2021-11-02 23:01:13 +00:00
}
&__name {
@include font-title-2;
@include fixed-height(3.5em);
align-items: center;
display: flex;
justify-content: center;
2021-11-02 23:01:13 +00:00
margin-bottom: 8px;
margin-top: 12px;
2021-11-02 23:01:13 +00:00
}
&__description {
@include font-body-1;
@include fixed-height(5.5em);
margin-bottom: 12px;
}
&__instructions-button {
width: 100%;
// We use this selector for specificity.
&.module-Button {
font-size: 17px;
}
&--hidden {
visibility: hidden;
}
}
.BadgeCarouselIndex {
margin-top: 24px;
2021-11-02 23:01:13 +00:00
}
}