tgui-core 1.8.4 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/constants.d.ts +4 -0
- package/dist/common/constants.js +17 -0
- package/dist/common/hotkeys.js +48 -48
- package/dist/common/ui.d.ts +6 -0
- package/dist/common/ui.js +63 -59
- package/dist/components/AnimatedNumber.d.ts +1 -1
- package/dist/components/Button.d.ts +3 -3
- package/dist/components/Button.js +21 -22
- package/dist/components/Chart.d.ts +3 -15
- package/dist/components/Chart.js +68 -86
- package/dist/components/ColorBox.js +3 -3
- package/dist/components/Dialog.d.ts +16 -0
- package/dist/components/Dialog.js +5 -5
- package/dist/components/DmIcon.d.ts +1 -1
- package/dist/components/DraggableControl.d.ts +56 -0
- package/dist/components/DraggableControl.js +126 -176
- package/dist/components/Dropdown.d.ts +8 -6
- package/dist/components/Dropdown.js +137 -129
- package/dist/components/FitText.d.ts +1 -1
- package/dist/components/Floating.d.ts +75 -0
- package/dist/components/Floating.js +2235 -0
- package/dist/components/ImageButton.d.ts +2 -3
- package/dist/components/ImageButton.js +88 -98
- package/dist/components/InfinitePlane.d.ts +35 -32
- package/dist/components/InfinitePlane.js +123 -133
- package/dist/components/Knob.d.ts +22 -6
- package/dist/components/Knob.js +45 -46
- package/dist/components/MenuBar.js +81 -97
- package/dist/components/Modal.js +12 -12
- package/dist/components/NumberInput.d.ts +1 -1
- package/dist/components/Popper.d.ts +5 -1
- package/dist/components/Popper.js +1026 -121
- package/dist/components/ProgressBar.js +3 -3
- package/dist/components/RoundGauge.js +30 -30
- package/dist/components/Section.js +7 -7
- package/dist/components/Slider.d.ts +22 -6
- package/dist/components/Slider.js +55 -56
- package/dist/components/Stack.js +3 -3
- package/dist/components/Table.js +7 -7
- package/dist/components/Tabs.js +7 -7
- package/dist/components/TextArea.d.ts +17 -0
- package/dist/components/TextArea.js +35 -33
- package/dist/components/Tooltip.d.ts +3 -34
- package/dist/components/Tooltip.js +14 -77
- package/dist/components/TrackOutsideClicks.d.ts +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +64 -62
- package/package.json +26 -27
- package/styles/base.scss +13 -11
- package/styles/colors.scss +63 -67
- package/styles/components/BlockQuote.scss +5 -8
- package/styles/components/Button.scss +123 -99
- package/styles/components/Dialog.scss +23 -30
- package/styles/components/Dimmer.scss +3 -8
- package/styles/components/Divider.scss +6 -7
- package/styles/components/Dropdown.scss +103 -51
- package/styles/components/Flex.scss +0 -1
- package/styles/components/Floating.scss +60 -0
- package/styles/components/ImageButton.scss +136 -192
- package/styles/components/Input.scss +24 -26
- package/styles/components/Knob.scss +37 -41
- package/styles/components/LabeledList.scss +8 -6
- package/styles/components/MenuBar.scss +17 -21
- package/styles/components/Modal.scss +8 -7
- package/styles/components/NoticeBox.scss +22 -26
- package/styles/components/NumberInput.scss +30 -28
- package/styles/components/ProgressBar.scss +27 -19
- package/styles/components/RoundGauge.scss +46 -26
- package/styles/components/Section.scss +17 -32
- package/styles/components/Slider.scss +18 -15
- package/styles/components/Stack.scss +8 -48
- package/styles/components/Table.scss +2 -2
- package/styles/components/Tabs.scss +92 -66
- package/styles/components/TextArea.scss +32 -36
- package/styles/components/Tooltip.scss +10 -13
- package/styles/functions.scss +1 -62
- package/styles/main.scss +6 -1
- package/styles/reset.scss +7 -11
- package/styles/vars-colors.scss +108 -0
- package/styles/vars-components.scss +162 -0
- package/styles/vars-values.scss +110 -0
- package/dist/popper-CiqSDJTE.js +0 -906
|
@@ -2,66 +2,118 @@
|
|
|
2
2
|
|
|
3
3
|
.Dropdown {
|
|
4
4
|
display: flex;
|
|
5
|
-
align-items:
|
|
6
|
-
|
|
5
|
+
align-items: stretch;
|
|
6
|
+
gap: var(--space-s);
|
|
7
|
+
margin-right: var(--space-xs);
|
|
8
|
+
margin-bottom: var(--space-xs);
|
|
7
9
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
overflow: hidden;
|
|
13
|
-
user-select: none;
|
|
14
|
-
width: base.em(100px);
|
|
15
|
-
}
|
|
10
|
+
&:last-child {
|
|
11
|
+
margin-right: 0;
|
|
12
|
+
margin-bottom: 0;
|
|
13
|
+
}
|
|
16
14
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
15
|
+
// Override Button styles
|
|
16
|
+
.Button {
|
|
17
|
+
margin: 0;
|
|
18
|
+
align-content: center;
|
|
19
|
+
}
|
|
23
20
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
21
|
+
&__control {
|
|
22
|
+
display: flex;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
flex: 1;
|
|
25
|
+
font-family: var(--font-family);
|
|
26
|
+
font-size: base.em(12px);
|
|
27
|
+
line-height: base.em(16px);
|
|
28
|
+
height: base.em(22px);
|
|
29
|
+
border-radius: var(--button-border-radius);
|
|
30
|
+
}
|
|
33
31
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
&__selected-text {
|
|
33
|
+
flex: 1;
|
|
34
|
+
display: inline-block;
|
|
35
|
+
align-content: center;
|
|
36
|
+
text-overflow: ellipsis;
|
|
37
|
+
white-space: nowrap;
|
|
38
|
+
height: 100%;
|
|
39
|
+
padding: var(--space-s) var(--space-m);
|
|
40
|
+
border-right: var(--border-thickness-tiny) solid var(--color-border-dark);
|
|
41
|
+
}
|
|
37
42
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
43
|
+
&__icon {
|
|
44
|
+
display: inline-block;
|
|
45
|
+
align-content: center;
|
|
46
|
+
text-align: center;
|
|
47
|
+
height: 100%;
|
|
48
|
+
width: base.em(22px);
|
|
49
|
+
transition: transform var(--dropdown-transition);
|
|
44
50
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
51
|
+
&--arrow {
|
|
52
|
+
&.open:not(.over),
|
|
53
|
+
&.over:not(.open) {
|
|
54
|
+
transform: rotate(180deg);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
49
57
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
58
|
+
// Move text closer to icon
|
|
59
|
+
~ .Dropdown__selected-text {
|
|
60
|
+
padding-left: 0;
|
|
61
|
+
}
|
|
53
62
|
}
|
|
54
|
-
}
|
|
55
63
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
64
|
+
&__menu {
|
|
65
|
+
overflow-y: auto;
|
|
66
|
+
scrollbar-width: thin;
|
|
67
|
+
scrollbar-color: var(--color-scrollbar-thumb) transparent;
|
|
68
|
+
max-height: base.em(200px);
|
|
69
|
+
padding: var(--space-sm);
|
|
70
|
+
|
|
71
|
+
&--wrapper {
|
|
72
|
+
overflow: hidden;
|
|
73
|
+
background-color: var(--dropdown-menu-background);
|
|
74
|
+
color: var(--dropdown-menu-color);
|
|
75
|
+
border: var(--dropdown-menu-border);
|
|
76
|
+
border-radius: var(--dropdown-menu-border-radius);
|
|
77
|
+
backdrop-filter: var(--dropdown-menu-blur);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&--entry {
|
|
81
|
+
user-select: none;
|
|
82
|
+
overflow: hidden;
|
|
83
|
+
white-space: nowrap;
|
|
84
|
+
text-overflow: ellipsis;
|
|
85
|
+
font-family: var(--font-family);
|
|
86
|
+
font-size: base.em(12px);
|
|
87
|
+
line-height: base.em(16px);
|
|
88
|
+
padding: var(--space-xs) var(--space-m);
|
|
89
|
+
border-radius: var(--dropdown-entry-border-radius);
|
|
90
|
+
transition: background-color var(--dropdown-entry-transition);
|
|
91
|
+
|
|
92
|
+
&.selected {
|
|
93
|
+
background-color: var(--dropdown-entry-background-selected) !important;
|
|
94
|
+
transition-duration: 0s;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&:not(.selected) {
|
|
98
|
+
cursor: var(--cursor-pointer);
|
|
99
|
+
|
|
100
|
+
&:hover {
|
|
101
|
+
background-color: var(--dropdown-entry-background-hover);
|
|
102
|
+
transition-duration: 0s;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&:active {
|
|
106
|
+
background-color: var(--dropdown-entry-background-active);
|
|
107
|
+
transition-duration: 0s;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
59
112
|
}
|
|
60
113
|
|
|
61
|
-
.
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
width: calc(100% - 1.2em);
|
|
114
|
+
.Dropdown__control--icon-only {
|
|
115
|
+
align-items: center;
|
|
116
|
+
display: flex;
|
|
117
|
+
justify-content: center;
|
|
118
|
+
max-width: 2rem;
|
|
67
119
|
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
.Floating {
|
|
2
|
+
z-index: 5;
|
|
3
|
+
|
|
4
|
+
&--animated {
|
|
5
|
+
&[data-transition="open"] {
|
|
6
|
+
opacity: 1;
|
|
7
|
+
transform: scale(1);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
&[data-transition="close"],
|
|
11
|
+
&[data-transition="initial"] {
|
|
12
|
+
opacity: 0;
|
|
13
|
+
transform: scale(0.9);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&[data-transition="open"],
|
|
17
|
+
&[data-transition="close"] {
|
|
18
|
+
transition-duration: var(--floating-transition-time);
|
|
19
|
+
transition-timing-function: var(--floating-transition-timing);
|
|
20
|
+
transition-property: opacity, transform;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// MARK: Transform origin handling
|
|
25
|
+
&[data-position="top"] {
|
|
26
|
+
transform-origin: bottom;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&[data-position="top-start"],
|
|
30
|
+
&[data-position="right-end"] {
|
|
31
|
+
transform-origin: bottom left;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&[data-position="top-end"],
|
|
35
|
+
&[data-position="left-end"] {
|
|
36
|
+
transform-origin: bottom right;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&[data-position="bottom"] {
|
|
40
|
+
transform-origin: top;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&[data-position="bottom-start"],
|
|
44
|
+
&[data-position="right-start"] {
|
|
45
|
+
transform-origin: top left;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&[data-position="bottom-end"],
|
|
49
|
+
&[data-position="left-start"] {
|
|
50
|
+
transform-origin: top right;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&[data-position="right"] {
|
|
54
|
+
transform-origin: left;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&[data-position="left"] {
|
|
58
|
+
transform-origin: right;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -1,159 +1,127 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file
|
|
3
|
-
* @copyright 2024 Aylong (https://github.com/AyIong)
|
|
4
|
-
* @license MIT
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
@use "../base";
|
|
8
1
|
@use "../colors";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
$color
|
|
13
|
-
|
|
14
|
-
$color-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
$color,
|
|
20
|
-
$border-color: rgba(lighten($color, 50%), 0.2),
|
|
21
|
-
$border-width: 1px 0 0 0,
|
|
22
|
-
$opacity: 0.2,
|
|
23
|
-
$hoverable: true,
|
|
24
|
-
$transition-duration: 0.2s
|
|
25
|
-
) {
|
|
26
|
-
$luminance: luminance($color);
|
|
27
|
-
$text-color: if($luminance > 0.3, rgba(0, 0, 0, 1), rgba(255, 255, 255, 1));
|
|
28
|
-
|
|
29
|
-
background-color: rgba($color, $opacity);
|
|
30
|
-
color: $text-color;
|
|
31
|
-
border: solid $border-color;
|
|
32
|
-
border-width: $border-width;
|
|
33
|
-
transition:
|
|
34
|
-
background-color $transition-duration,
|
|
35
|
-
border-color $transition-duration;
|
|
36
|
-
|
|
37
|
-
@if $hoverable {
|
|
2
|
+
|
|
3
|
+
$bg-map: colors.$color-map !default;
|
|
4
|
+
|
|
5
|
+
@mixin button-style($color) {
|
|
6
|
+
background-color: hsl(
|
|
7
|
+
from $color h s calc(l - var(--adjust-color) * 2) / 0.2
|
|
8
|
+
);
|
|
9
|
+
border: 1px solid hsl(from $color h s calc(l + var(--adjust-color) * 2) / 0.2);
|
|
10
|
+
|
|
11
|
+
&:not(.ImageButton--disabled) {
|
|
38
12
|
&:hover {
|
|
39
|
-
background-color:
|
|
13
|
+
background-color: hsl(
|
|
14
|
+
from $color h s calc(l - var(--adjust-color) + var(--adjust-hover)) /
|
|
15
|
+
0.2
|
|
16
|
+
);
|
|
40
17
|
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
18
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
19
|
+
&:active {
|
|
20
|
+
box-shadow: inset var(--shadow-glow-small) hsl(from $color h s l / 0.5);
|
|
21
|
+
transition-duration: 0s;
|
|
22
|
+
}
|
|
48
23
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
24
|
+
/* Disable hover/active effects if hovered on buttons container */
|
|
25
|
+
&:hover,
|
|
26
|
+
&:active {
|
|
27
|
+
&:has(.ImageButton__buttons:hover),
|
|
28
|
+
&:has(.ImageButton__buttons:active) {
|
|
29
|
+
background-color: hsl(
|
|
30
|
+
from $color h s calc(l - var(--adjust-color) * 2) / 0.2
|
|
31
|
+
);
|
|
32
|
+
box-shadow: none;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
56
35
|
}
|
|
57
36
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
$opacity: 0.33,
|
|
63
|
-
$hoverable: false,
|
|
64
|
-
$transition-duration: 0
|
|
65
|
-
);
|
|
37
|
+
/* Make non-fluid content opaque */
|
|
38
|
+
&:not(.ImageButton--fluid) .ImageButton__content {
|
|
39
|
+
background-color: hsl(from $color h s calc(l - var(--adjust-hover)));
|
|
40
|
+
border-top: var(--border-thickness-tiny) solid $color;
|
|
66
41
|
}
|
|
67
42
|
}
|
|
68
43
|
|
|
69
|
-
|
|
70
|
-
|
|
44
|
+
@each $color-name, $color-value in $bg-map {
|
|
45
|
+
.ImageButton__color--#{$color-name} {
|
|
46
|
+
@include button-style($color-value);
|
|
47
|
+
}
|
|
71
48
|
}
|
|
72
49
|
|
|
73
|
-
.
|
|
74
|
-
|
|
75
|
-
border-color: rgba($color-disabled, 0.25) !important;
|
|
50
|
+
.ImageButton__color--default {
|
|
51
|
+
@include button-style(hsl(from var(--color-base) h s 30));
|
|
76
52
|
}
|
|
77
53
|
|
|
78
54
|
.ImageButton--selected {
|
|
79
|
-
@include button-style(
|
|
80
|
-
$color-selected,
|
|
81
|
-
$border-color: rgba($color-selected, 0.25),
|
|
82
|
-
$border-width: 1px
|
|
83
|
-
);
|
|
55
|
+
@include button-style(var(--button-background-selected));
|
|
84
56
|
}
|
|
85
57
|
|
|
86
|
-
.ImageButton--
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
$hoverable: false
|
|
92
|
-
);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.ImageButton--contentDisabled {
|
|
96
|
-
background-color: $color-disabled !important;
|
|
97
|
-
border-top: 1px solid lighten($color-disabled, 25%) !important;
|
|
98
|
-
}
|
|
58
|
+
.ImageButton--disabled {
|
|
59
|
+
.ImageButton__container {
|
|
60
|
+
cursor: var(--cursor-disabled);
|
|
61
|
+
opacity: 0.5;
|
|
62
|
+
}
|
|
99
63
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
$color-selected,
|
|
103
|
-
$border-color: lighten($color-selected, 25%),
|
|
104
|
-
$opacity: 1,
|
|
105
|
-
$hoverable: false
|
|
106
|
-
);
|
|
107
|
-
}
|
|
64
|
+
&.ImageButton--fluid {
|
|
65
|
+
filter: contrast(75%);
|
|
108
66
|
|
|
109
|
-
.
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
$hoverable: false,
|
|
114
|
-
$transition-duration: 0
|
|
115
|
-
);
|
|
67
|
+
.ImageButton__buttons {
|
|
68
|
+
filter: contrast(125%);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
116
71
|
}
|
|
117
72
|
|
|
118
73
|
.ImageButton {
|
|
119
|
-
|
|
120
|
-
|
|
74
|
+
overflow: hidden;
|
|
75
|
+
user-select: none;
|
|
121
76
|
position: relative;
|
|
77
|
+
display: inline-flex;
|
|
122
78
|
text-align: center;
|
|
123
79
|
margin: 0.25em;
|
|
124
|
-
|
|
125
|
-
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
pointer-events: none;
|
|
129
|
-
}
|
|
80
|
+
border-radius: var(--border-radius-medium);
|
|
81
|
+
transition-property: background-color, border-color, box-shadow;
|
|
82
|
+
transition-duration: var(--transition-time-medium);
|
|
83
|
+
border-width: 0;
|
|
130
84
|
|
|
131
|
-
|
|
85
|
+
&__container {
|
|
86
|
+
cursor: var(--cursor-pointer);
|
|
132
87
|
display: flex;
|
|
133
88
|
flex-direction: column;
|
|
134
|
-
|
|
89
|
+
transition: opacity var(--transition-time-medium);
|
|
90
|
+
border-color: inherit;
|
|
135
91
|
}
|
|
136
92
|
|
|
137
|
-
|
|
93
|
+
&__image {
|
|
138
94
|
position: relative;
|
|
139
95
|
align-self: center;
|
|
140
96
|
pointer-events: none;
|
|
141
97
|
overflow: hidden;
|
|
142
98
|
line-height: 0;
|
|
143
|
-
padding:
|
|
144
|
-
border
|
|
99
|
+
padding: var(--space-s);
|
|
100
|
+
border: 1px solid;
|
|
101
|
+
border-bottom: 0;
|
|
102
|
+
border-color: inherit;
|
|
103
|
+
border-radius: var(--border-radius-medium) var(--border-radius-medium) 0 0;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&__content {
|
|
107
|
+
user-select: none;
|
|
108
|
+
overflow: hidden;
|
|
109
|
+
text-overflow: ellipsis;
|
|
110
|
+
white-space: nowrap;
|
|
111
|
+
padding: 0.25em 0.33em;
|
|
112
|
+
z-index: 2;
|
|
145
113
|
}
|
|
146
114
|
|
|
147
|
-
|
|
115
|
+
&__buttons {
|
|
148
116
|
display: flex;
|
|
149
117
|
position: absolute;
|
|
150
118
|
overflow: hidden;
|
|
151
|
-
left:
|
|
119
|
+
left: 0;
|
|
152
120
|
bottom: 1.8em;
|
|
153
121
|
max-width: 100%;
|
|
154
122
|
z-index: 1;
|
|
155
123
|
|
|
156
|
-
|
|
124
|
+
&--alt {
|
|
157
125
|
overflow: visible;
|
|
158
126
|
flex-direction: column;
|
|
159
127
|
pointer-events: none;
|
|
@@ -161,120 +129,96 @@ $bg-map: colors.$bg-map !default;
|
|
|
161
129
|
bottom: inherit !important;
|
|
162
130
|
/** Text outline. Sort of. */
|
|
163
131
|
text-shadow:
|
|
164
|
-
0px
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
0px
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
&.buttonsEmpty {
|
|
171
|
-
bottom: 1px;
|
|
132
|
+
0px 1px 2px var(--color-base),
|
|
133
|
+
-1px 0px 2px var(--color-base),
|
|
134
|
+
1px 0px 2px var(--color-base),
|
|
135
|
+
0px -1px 2px var(--color-base);
|
|
172
136
|
}
|
|
173
137
|
|
|
174
138
|
& > * {
|
|
175
139
|
/* I know !important is bad, but here's no other way */
|
|
176
140
|
margin: 0 !important;
|
|
177
|
-
padding: 0
|
|
141
|
+
padding: 0 !important;
|
|
178
142
|
border-radius: 0 !important;
|
|
179
143
|
}
|
|
180
144
|
}
|
|
181
|
-
|
|
182
|
-
.content {
|
|
183
|
-
-ms-user-select: none;
|
|
184
|
-
user-select: none;
|
|
185
|
-
overflow: hidden;
|
|
186
|
-
text-overflow: ellipsis;
|
|
187
|
-
white-space: nowrap;
|
|
188
|
-
padding: 0.25em 0.33em;
|
|
189
|
-
margin: -1px;
|
|
190
|
-
border-radius: 0 0 0.33em 0.33em;
|
|
191
|
-
z-index: 2;
|
|
192
|
-
}
|
|
193
145
|
}
|
|
194
146
|
|
|
195
147
|
.ImageButton--fluid {
|
|
196
148
|
display: flex;
|
|
197
149
|
flex-direction: row;
|
|
198
|
-
position: relative;
|
|
199
|
-
text-align: center;
|
|
200
150
|
margin: 0 0 0.33em 0;
|
|
201
|
-
|
|
202
|
-
-ms-user-select: none;
|
|
151
|
+
border-width: var(--border-thickness-tiny);
|
|
203
152
|
|
|
204
153
|
&:last-child {
|
|
205
154
|
margin-bottom: 0;
|
|
206
155
|
}
|
|
207
156
|
|
|
208
|
-
.
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
}
|
|
157
|
+
.ImageButton {
|
|
158
|
+
&__container {
|
|
159
|
+
flex-direction: row;
|
|
160
|
+
flex: 1;
|
|
161
|
+
}
|
|
214
162
|
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
163
|
+
&__image {
|
|
164
|
+
padding: 0;
|
|
165
|
+
border: 0;
|
|
166
|
+
}
|
|
218
167
|
|
|
219
|
-
|
|
168
|
+
&__content {
|
|
169
|
+
flex: 1;
|
|
170
|
+
display: flex;
|
|
171
|
+
flex-direction: column;
|
|
172
|
+
justify-content: center;
|
|
173
|
+
white-space: normal;
|
|
174
|
+
padding: 0;
|
|
220
175
|
margin: 0 0.5em;
|
|
221
|
-
|
|
222
|
-
}
|
|
223
|
-
}
|
|
176
|
+
color: var(--color-text);
|
|
224
177
|
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
178
|
+
&--title {
|
|
179
|
+
font-weight: bold;
|
|
180
|
+
padding: 0.5em;
|
|
181
|
+
}
|
|
229
182
|
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
183
|
+
&--divider {
|
|
184
|
+
border-bottom: var(--border-thickness-small) solid var(--color-border);
|
|
185
|
+
}
|
|
233
186
|
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
187
|
+
&--text {
|
|
188
|
+
padding: 0.5em;
|
|
189
|
+
}
|
|
237
190
|
}
|
|
238
|
-
}
|
|
239
191
|
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
.buttonsContainer {
|
|
245
|
-
position: relative;
|
|
246
|
-
left: inherit;
|
|
247
|
-
bottom: inherit;
|
|
248
|
-
border-radius: 0 0.33em 0.33em 0;
|
|
249
|
-
|
|
250
|
-
&.buttonsEmpty {
|
|
192
|
+
&__buttons {
|
|
193
|
+
position: relative;
|
|
194
|
+
left: inherit;
|
|
251
195
|
bottom: inherit;
|
|
252
|
-
|
|
196
|
+
background-color: inherit;
|
|
253
197
|
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
text-shadow: none;
|
|
198
|
+
&--alt {
|
|
199
|
+
pointer-events: all;
|
|
200
|
+
top: inherit;
|
|
201
|
+
text-shadow: none;
|
|
259
202
|
|
|
260
|
-
|
|
261
|
-
|
|
203
|
+
& > * {
|
|
204
|
+
border-top: 1px solid hsla(0, 0%, 100%, 0.075);
|
|
262
205
|
|
|
263
|
-
|
|
264
|
-
|
|
206
|
+
&:first-child {
|
|
207
|
+
border-top: 0;
|
|
208
|
+
}
|
|
265
209
|
}
|
|
266
210
|
}
|
|
267
|
-
}
|
|
268
211
|
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
212
|
+
& > * {
|
|
213
|
+
display: inline-flex;
|
|
214
|
+
flex-direction: column;
|
|
215
|
+
justify-content: center;
|
|
216
|
+
text-align: center;
|
|
217
|
+
white-space: pre-wrap;
|
|
218
|
+
line-height: 1.15em;
|
|
219
|
+
height: 100%;
|
|
220
|
+
border-left: var(--border-thickness-tiny) solid var(--color-border);
|
|
221
|
+
}
|
|
278
222
|
}
|
|
279
223
|
}
|
|
280
224
|
}
|