-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
/
BadgeDialog.scss
126 lines (110 loc) · 2.22 KB
/
BadgeDialog.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
// 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;
// We use this selector for specificity.
&.module-Modal {
max-width: 420px;
}
&__contents {
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;
padding: 3px 0;
&[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(
'../images/icons/v2/chevron-left-24.svg',
$light-color
);
}
@include dark-theme {
@include color-svg(
'../images/icons/v2/chevron-left-24.svg',
$dark-color
);
}
}
&--next::before {
@include light-theme {
@include color-svg(
'../images/icons/v2/chevron-right-24.svg',
$light-color
);
}
@include dark-theme {
@include color-svg(
'../images/icons/v2/chevron-right-24.svg',
$dark-color
);
}
}
}
&__main {
flex-grow: 1;
text-align: center;
padding: 24px 10px;
}
&__name {
@include font-title-2;
@include fixed-height(3.5em);
align-items: center;
display: flex;
justify-content: center;
margin-bottom: 8px;
margin-top: 12px;
}
&__description {
@include font-body-1;
@include fixed-height(5.5em);
margin-bottom: 12px;
}
&__instructions-button {
width: 100%;
&--hidden {
visibility: hidden;
}
}
.BadgeCarouselIndex {
margin-top: 24px;
}
}