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
package/styles/colors.scss
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Copyright (c) 2020 Aleksej Komarov
|
|
3
3
|
* SPDX-License-Identifier: MIT
|
|
4
|
+
*
|
|
5
|
+
* @deprecated Use css-variables
|
|
4
6
|
*/
|
|
5
7
|
|
|
6
8
|
@use "sass:color";
|
|
@@ -8,81 +10,75 @@
|
|
|
8
10
|
@use "sass:meta";
|
|
9
11
|
|
|
10
12
|
// Base colors
|
|
11
|
-
$black:
|
|
12
|
-
$white:
|
|
13
|
-
$red:
|
|
14
|
-
$orange:
|
|
15
|
-
$yellow:
|
|
16
|
-
$olive:
|
|
17
|
-
$green:
|
|
18
|
-
$teal:
|
|
19
|
-
$blue:
|
|
20
|
-
$violet:
|
|
21
|
-
$purple:
|
|
22
|
-
$pink:
|
|
23
|
-
$brown:
|
|
24
|
-
$grey:
|
|
25
|
-
$light-grey:
|
|
13
|
+
$black: var(--color-black) !default;
|
|
14
|
+
$white: var(--color-white) !default;
|
|
15
|
+
$red: var(--color-red) !default;
|
|
16
|
+
$orange: var(--color-orange) !default;
|
|
17
|
+
$yellow: var(--color-yellow) !default;
|
|
18
|
+
$olive: var(--color-olive) !default;
|
|
19
|
+
$green: var(--color-green) !default;
|
|
20
|
+
$teal: var(--color-teal) !default;
|
|
21
|
+
$blue: var(--color-blue) !default;
|
|
22
|
+
$violet: var(--color-violet) !default;
|
|
23
|
+
$purple: var(--color-purple) !default;
|
|
24
|
+
$pink: var(--color-pink) !default;
|
|
25
|
+
$brown: var(--color-brown) !default;
|
|
26
|
+
$grey: var(--color-grey) !default;
|
|
27
|
+
$light-grey: var(--color-light-grey) !default;
|
|
26
28
|
|
|
27
|
-
$primary:
|
|
28
|
-
$good:
|
|
29
|
-
$average:
|
|
30
|
-
$bad:
|
|
31
|
-
$label:
|
|
32
|
-
|
|
33
|
-
// Background and foreground color lightness ratios
|
|
34
|
-
$bg-lightness: -15% !default;
|
|
35
|
-
$fg-lightness: 10% !default;
|
|
36
|
-
|
|
37
|
-
@function bg($color) {
|
|
38
|
-
@return color.scale($color, $lightness: $bg-lightness);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
@function fg($color) {
|
|
42
|
-
@return color.scale($color, $lightness: $fg-lightness);
|
|
43
|
-
}
|
|
29
|
+
$primary: var(--color-primary) !default;
|
|
30
|
+
$good: var(--color-good) !default;
|
|
31
|
+
$average: var(--color-average) !default;
|
|
32
|
+
$bad: var(--color-bad) !default;
|
|
33
|
+
$label: var(--color-label) !default;
|
|
44
34
|
|
|
45
35
|
// Mappings of color names
|
|
46
|
-
|
|
36
|
+
$color-map: ();
|
|
47
37
|
$_gen_map: (
|
|
48
|
-
"black":
|
|
49
|
-
"white":
|
|
50
|
-
"red":
|
|
51
|
-
"orange":
|
|
52
|
-
"yellow":
|
|
53
|
-
"olive":
|
|
54
|
-
"green":
|
|
55
|
-
"teal":
|
|
56
|
-
"blue":
|
|
57
|
-
"violet":
|
|
58
|
-
"purple":
|
|
59
|
-
"pink":
|
|
60
|
-
"brown":
|
|
61
|
-
"grey":
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
38
|
+
"black": var(--color-black),
|
|
39
|
+
"white": var(--color-white),
|
|
40
|
+
"red": var(--color-red),
|
|
41
|
+
"orange": var(--color-orange),
|
|
42
|
+
"yellow": var(--color-yellow),
|
|
43
|
+
"olive": var(--color-olive),
|
|
44
|
+
"green": var(--color-green),
|
|
45
|
+
"teal": var(--color-teal),
|
|
46
|
+
"blue": var(--color-blue),
|
|
47
|
+
"violet": var(--color-violet),
|
|
48
|
+
"purple": var(--color-purple),
|
|
49
|
+
"pink": var(--color-pink),
|
|
50
|
+
"brown": var(--color-brown),
|
|
51
|
+
"grey": var(--color-grey),
|
|
52
|
+
"gray": var(--color-grey),
|
|
53
|
+
"light-grey": var(--color-light-grey),
|
|
54
|
+
"light-gray": var(--color-light-grey),
|
|
55
|
+
"good": var(--color-good),
|
|
56
|
+
"average": var(--color-average),
|
|
57
|
+
"bad": var(--color-bad),
|
|
58
|
+
"label": var(--color-label),
|
|
67
59
|
);
|
|
60
|
+
$low-contrast-color-map: ("yellow", "white");
|
|
68
61
|
|
|
69
|
-
//
|
|
70
|
-
$
|
|
71
|
-
|
|
72
|
-
$bg-map-keys: map.keys($_gen_map) !default;
|
|
73
|
-
|
|
74
|
-
$fg-map: ();
|
|
75
|
-
@each $color-name in $fg-map-keys {
|
|
62
|
+
// Color names for which to generate a color map
|
|
63
|
+
$color-map-keys: map.keys($_gen_map) !default;
|
|
64
|
+
@each $color-name in $color-map-keys {
|
|
76
65
|
// prettier-ignore
|
|
77
|
-
$
|
|
78
|
-
$color-name:
|
|
66
|
+
$color-map: map.merge($color-map, (
|
|
67
|
+
$color-name: map.get($_gen_map, $color-name),
|
|
79
68
|
));
|
|
80
69
|
}
|
|
81
70
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
71
|
+
/**
|
|
72
|
+
* Background and foreground color lightness ratios
|
|
73
|
+
* @deprecated
|
|
74
|
+
*/
|
|
75
|
+
$bg-lightness: -15% !default;
|
|
76
|
+
$fg-lightness: 10% !default;
|
|
77
|
+
|
|
78
|
+
@function bg($color) {
|
|
79
|
+
@return hsl(from $color h s calc(l - var(--adjust-color)));
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@function fg($color) {
|
|
83
|
+
@return hsl(from $color h s calc(l + var(--adjust-color)));
|
|
88
84
|
}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
@use "../colors";
|
|
3
|
-
|
|
4
|
-
$color-default: colors.fg(colors.$label) !default;
|
|
1
|
+
$color-default: 0 !default;
|
|
5
2
|
|
|
6
3
|
.BlockQuote {
|
|
7
|
-
color:
|
|
8
|
-
border-left:
|
|
9
|
-
padding-left:
|
|
10
|
-
margin-bottom:
|
|
4
|
+
color: var(--blockquote-color);
|
|
5
|
+
border-left: var(--blockquote-border);
|
|
6
|
+
padding-left: var(--space-m);
|
|
7
|
+
margin-bottom: var(--space-m);
|
|
11
8
|
|
|
12
9
|
&:last-child {
|
|
13
10
|
margin-bottom: 0;
|
|
@@ -1,144 +1,178 @@
|
|
|
1
1
|
@use "../base";
|
|
2
2
|
@use "../colors";
|
|
3
|
-
@use "../functions" as *;
|
|
4
|
-
|
|
5
|
-
$color-default: colors.bg(colors.$primary) !default;
|
|
6
|
-
$color-disabled: hsl(0, 0%, 60%) !default;
|
|
7
|
-
$color-selected: colors.bg(colors.$green) !default;
|
|
8
|
-
$color-caution: colors.bg(colors.$yellow) !default;
|
|
9
|
-
$color-danger: colors.bg(colors.$red) !default;
|
|
10
|
-
$color-transparent-text: rgba(255, 255, 255, 0.5) !default;
|
|
11
|
-
$border-radius: base.$border-radius !default;
|
|
12
|
-
$bg-map: colors.$bg-map !default;
|
|
13
|
-
|
|
14
|
-
@mixin button-color($color) {
|
|
15
|
-
// Adapt text color to background luminance to ensure high contast
|
|
16
|
-
$luminance: luminance($color);
|
|
17
|
-
$text-color: if($luminance > 0.4, rgba(0, 0, 0, 1), rgba(255, 255, 255, 1));
|
|
18
|
-
|
|
19
|
-
transition:
|
|
20
|
-
color 50ms,
|
|
21
|
-
background-color 50ms;
|
|
22
|
-
background-color: $color;
|
|
23
|
-
color: $text-color;
|
|
24
3
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
4
|
+
$bg-map: colors.$color-map !default;
|
|
5
|
+
$fg-map: colors.$color-map !default;
|
|
6
|
+
|
|
7
|
+
$color-default: 0 !default;
|
|
8
|
+
$color-selected: 0 !default;
|
|
9
|
+
$color-caution: 0 !default;
|
|
10
|
+
$color-danger: 0 !default;
|
|
11
|
+
$color-transparent-text: 0 !default;
|
|
12
|
+
$border-radius: 0 !default;
|
|
30
13
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
14
|
+
@mixin button-color($color, $text-color: var(--color-text-fixed-white)) {
|
|
15
|
+
cursor: var(--cursor-pointer);
|
|
16
|
+
background-color: hsl(from $color h s calc(l - var(--adjust-color)));
|
|
17
|
+
color: $text-color;
|
|
18
|
+
|
|
19
|
+
&:not(.Button--disabled) {
|
|
20
|
+
&:hover {
|
|
21
|
+
background-color: hsl(
|
|
22
|
+
from $color h s
|
|
23
|
+
calc(calc(l - var(--adjust-color)) + var(--adjust-hover))
|
|
24
|
+
);
|
|
25
|
+
color: $text-color;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&:active {
|
|
29
|
+
background-color: hsl(
|
|
30
|
+
from $color h s
|
|
31
|
+
calc(calc(l - var(--adjust-color)) - var(--adjust-active))
|
|
32
|
+
);
|
|
33
|
+
color: $text-color;
|
|
34
|
+
}
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
37
|
|
|
37
38
|
.Button {
|
|
39
|
+
cursor: var(--cursor-pointer);
|
|
38
40
|
position: relative;
|
|
39
41
|
display: inline-block;
|
|
40
|
-
line-height: 1.667em;
|
|
41
|
-
padding: 0 0.5em;
|
|
42
|
-
margin-right: base.em(2px);
|
|
43
42
|
white-space: nowrap;
|
|
43
|
+
line-height: 1.667em;
|
|
44
|
+
padding: 0 var(--space-m);
|
|
45
|
+
margin-right: var(--space-xs);
|
|
46
|
+
margin-bottom: var(--space-xs);
|
|
44
47
|
outline: 0;
|
|
45
|
-
border-radius:
|
|
46
|
-
|
|
48
|
+
border-radius: var(--button-border-radius);
|
|
49
|
+
transition-property: background-color, color, opacity;
|
|
50
|
+
transition-duration: var(--button-transition);
|
|
51
|
+
transition-timing-function: var(--button-transition-timing);
|
|
47
52
|
// Disable selection in buttons
|
|
48
53
|
user-select: none;
|
|
49
|
-
|
|
54
|
+
|
|
55
|
+
&:active {
|
|
56
|
+
transition: none;
|
|
57
|
+
}
|
|
50
58
|
|
|
51
59
|
&:last-child {
|
|
52
60
|
margin-right: 0;
|
|
53
61
|
margin-bottom: 0;
|
|
54
62
|
}
|
|
55
63
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
64
|
+
&__content {
|
|
65
|
+
display: block;
|
|
66
|
+
align-self: stretch;
|
|
67
|
+
|
|
68
|
+
&--ellipsis {
|
|
69
|
+
display: flex; // Inline flex will broke ellipsis, don't change it.
|
|
70
|
+
align-items: center;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
i {
|
|
61
75
|
min-width: 1.333em;
|
|
62
76
|
text-align: center;
|
|
77
|
+
vertical-align: middle;
|
|
63
78
|
}
|
|
64
|
-
}
|
|
65
79
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
height: base.em(22px);
|
|
69
|
-
padding: 0.2rem 0.5rem;
|
|
70
|
-
}
|
|
80
|
+
&:has(i) {
|
|
81
|
+
padding-left: 0;
|
|
71
82
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
.fas,
|
|
76
|
-
.far {
|
|
77
|
-
margin-right: 0.25em;
|
|
83
|
+
i {
|
|
84
|
+
margin: 0 var(--space-s);
|
|
85
|
+
}
|
|
78
86
|
}
|
|
79
|
-
}
|
|
80
87
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
88
|
+
&--icon-right:has(i) {
|
|
89
|
+
padding-left: var(--space-m);
|
|
90
|
+
padding-right: var(--space-s);
|
|
91
|
+
|
|
92
|
+
i {
|
|
93
|
+
margin: 0 0 0 var(--space-s);
|
|
94
|
+
}
|
|
87
95
|
}
|
|
88
|
-
}
|
|
89
96
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
overflow: hidden;
|
|
94
|
-
margin-right: -0.33em;
|
|
95
|
-
}
|
|
97
|
+
&--empty:has(i) {
|
|
98
|
+
padding: 0;
|
|
99
|
+
}
|
|
96
100
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
margin-right: 0;
|
|
101
|
-
}
|
|
101
|
+
&--compact {
|
|
102
|
+
padding: 0 var(--space-s);
|
|
103
|
+
line-height: 1.333em;
|
|
102
104
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
}
|
|
105
|
+
&:has(i) i {
|
|
106
|
+
margin: 0 var(--space-xxs);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
106
109
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
+
&--circular {
|
|
111
|
+
border-radius: var(--border-radius-circular);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&--fluid {
|
|
115
|
+
display: block;
|
|
116
|
+
margin-left: 0;
|
|
117
|
+
margin-right: 0;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&--ellipsis {
|
|
121
|
+
display: block;
|
|
122
|
+
text-overflow: ellipsis;
|
|
123
|
+
overflow: hidden;
|
|
124
|
+
margin-right: calc(-1 * var(--space-s));
|
|
125
|
+
}
|
|
110
126
|
}
|
|
111
127
|
|
|
112
128
|
@each $color-name, $color-value in $bg-map {
|
|
113
129
|
.Button--color--#{$color-name} {
|
|
130
|
+
@each $color in colors.$low-contrast-color-map {
|
|
131
|
+
@if $color-name == $color {
|
|
132
|
+
--color-text-fixed-white: var(--color-black);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
114
136
|
@include button-color($color-value);
|
|
115
137
|
}
|
|
116
138
|
}
|
|
117
139
|
|
|
140
|
+
/* Do not move it down, cause it will override selected by specificity */
|
|
141
|
+
.Button--color--transparent {
|
|
142
|
+
color: var(--button-color-transparent);
|
|
143
|
+
|
|
144
|
+
&:not(.Button--disabled) {
|
|
145
|
+
&:hover {
|
|
146
|
+
background-color: var(--color-hover);
|
|
147
|
+
color: var(--color-text);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
&:active {
|
|
151
|
+
background-color: var(--color-active);
|
|
152
|
+
color: var(--color-text);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
118
157
|
.Button--color--default {
|
|
119
|
-
@include button-color(
|
|
158
|
+
@include button-color(var(--button-background-default), var(--button-color));
|
|
120
159
|
}
|
|
121
160
|
|
|
122
161
|
.Button--color--caution {
|
|
123
|
-
@include button-color(
|
|
162
|
+
@include button-color(var(--button-background-caution));
|
|
124
163
|
}
|
|
125
164
|
|
|
126
165
|
.Button--color--danger {
|
|
127
|
-
@include button-color(
|
|
166
|
+
@include button-color(var(--button-background-danger));
|
|
128
167
|
}
|
|
129
168
|
|
|
130
|
-
.Button--
|
|
131
|
-
@include button-color(
|
|
132
|
-
background-color: rgba(base.$color-bg, 0);
|
|
133
|
-
color: $color-transparent-text;
|
|
169
|
+
.Button--selected {
|
|
170
|
+
@include button-color(var(--button-background-selected));
|
|
134
171
|
}
|
|
135
172
|
|
|
136
173
|
.Button--disabled {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
.Button--selected {
|
|
141
|
-
@include button-color($color-selected);
|
|
174
|
+
cursor: var(--cursor-disabled);
|
|
175
|
+
opacity: 0.5;
|
|
142
176
|
}
|
|
143
177
|
|
|
144
178
|
.Button--flex {
|
|
@@ -161,13 +195,3 @@ $bg-map: colors.$bg-map !default;
|
|
|
161
195
|
.Button--verticalAlignContent--bottom {
|
|
162
196
|
justify-content: flex-end;
|
|
163
197
|
}
|
|
164
|
-
|
|
165
|
-
.Button__content {
|
|
166
|
-
display: block;
|
|
167
|
-
align-self: stretch;
|
|
168
|
-
|
|
169
|
-
&--ellipsis {
|
|
170
|
-
display: flex; // Inline flex will broke ellipsis, don't change it.
|
|
171
|
-
align-items: center;
|
|
172
|
-
}
|
|
173
|
-
}
|
|
@@ -1,47 +1,41 @@
|
|
|
1
1
|
@use "../base";
|
|
2
2
|
|
|
3
|
-
$background-color: base.$color-bg !default;
|
|
4
|
-
|
|
5
3
|
.Dialog {
|
|
6
4
|
position: fixed;
|
|
7
|
-
|
|
8
|
-
top: 0;
|
|
9
|
-
right: 0;
|
|
10
|
-
bottom: 0;
|
|
11
|
-
background-color: rgba(0, 0, 0, 0.5);
|
|
5
|
+
inset: 0;
|
|
12
6
|
display: flex;
|
|
13
7
|
align-items: center;
|
|
14
8
|
justify-content: center;
|
|
9
|
+
background-color: var(--dialog-background);
|
|
15
10
|
}
|
|
16
11
|
|
|
17
12
|
.Dialog__content {
|
|
18
|
-
background-color: $background-color;
|
|
19
|
-
font-family: Consolas, monospace;
|
|
20
|
-
font-size: base.em(14px);
|
|
21
13
|
display: flex;
|
|
22
14
|
flex-direction: column;
|
|
15
|
+
font-family: var(--font-family-mono);
|
|
16
|
+
font-size: base.em(14px);
|
|
17
|
+
background-color: var(--color-base);
|
|
23
18
|
}
|
|
24
19
|
|
|
25
20
|
.Dialog__header {
|
|
21
|
+
user-select: none;
|
|
26
22
|
display: flex;
|
|
27
23
|
height: 2em;
|
|
28
24
|
line-height: 1.928em;
|
|
29
|
-
background-color:
|
|
30
|
-
user-select: none;
|
|
31
|
-
-ms-user-select: none;
|
|
25
|
+
background-color: var(--dialog-background);
|
|
32
26
|
}
|
|
33
27
|
|
|
34
28
|
.Dialog__title {
|
|
29
|
+
flex-grow: 1;
|
|
35
30
|
display: inline;
|
|
36
31
|
font-style: italic;
|
|
37
|
-
margin-left:
|
|
38
|
-
margin-right:
|
|
39
|
-
flex-grow: 1;
|
|
32
|
+
margin-left: var(--space-xl);
|
|
33
|
+
margin-right: var(--space-xxl);
|
|
40
34
|
opacity: 0.33;
|
|
41
35
|
}
|
|
42
36
|
|
|
43
37
|
.Dialog__body {
|
|
44
|
-
margin:
|
|
38
|
+
margin: var(--space-xxl) var(--space-xl);
|
|
45
39
|
flex-grow: 1;
|
|
46
40
|
}
|
|
47
41
|
|
|
@@ -49,12 +43,12 @@ $background-color: base.$color-bg !default;
|
|
|
49
43
|
display: flex;
|
|
50
44
|
flex-direction: row;
|
|
51
45
|
justify-content: flex-end;
|
|
52
|
-
padding:
|
|
53
|
-
background-color:
|
|
46
|
+
padding: var(--space-xl);
|
|
47
|
+
background-color: hsl(from var(--dialog-background) h s l / 0.25);
|
|
54
48
|
}
|
|
55
49
|
|
|
56
50
|
.Dialog__button {
|
|
57
|
-
margin: 0
|
|
51
|
+
margin: 0 var(--space-xl);
|
|
58
52
|
height: 2rem;
|
|
59
53
|
min-width: 6rem;
|
|
60
54
|
text-align: center;
|
|
@@ -64,13 +58,13 @@ $background-color: base.$color-bg !default;
|
|
|
64
58
|
display: flex;
|
|
65
59
|
flex-direction: row;
|
|
66
60
|
align-items: center;
|
|
67
|
-
padding-left: 3rem;
|
|
68
61
|
justify-content: flex-end;
|
|
69
|
-
|
|
62
|
+
padding-left: var(--space-xxl);
|
|
63
|
+
margin-right: var(--space-xl);
|
|
70
64
|
}
|
|
71
65
|
|
|
72
66
|
.SaveAsDialog__input {
|
|
73
|
-
margin-left:
|
|
67
|
+
margin-left: var(--space-xl);
|
|
74
68
|
width: 80%;
|
|
75
69
|
}
|
|
76
70
|
|
|
@@ -79,27 +73,26 @@ $background-color: base.$color-bg !default;
|
|
|
79
73
|
}
|
|
80
74
|
|
|
81
75
|
.Dialog__FileList {
|
|
76
|
+
overflow: auto scroll;
|
|
82
77
|
position: relative;
|
|
83
78
|
display: flex;
|
|
84
79
|
flex-wrap: wrap;
|
|
85
80
|
flex-grow: 1;
|
|
86
81
|
align-content: flex-start;
|
|
87
82
|
max-height: 20rem;
|
|
88
|
-
overflow: auto;
|
|
89
|
-
overflow-y: scroll;
|
|
90
83
|
}
|
|
91
84
|
|
|
92
85
|
.Dialog__FileEntry {
|
|
93
86
|
text-align: center;
|
|
94
|
-
margin:
|
|
87
|
+
margin: var(--space-xl);
|
|
95
88
|
}
|
|
96
89
|
|
|
97
90
|
.Dialog__FileIcon {
|
|
98
|
-
|
|
99
|
-
margin: 0 0 1rem 0;
|
|
91
|
+
cursor: default;
|
|
100
92
|
position: relative;
|
|
93
|
+
display: inline-block;
|
|
94
|
+
text-align: center;
|
|
101
95
|
width: 6vh;
|
|
102
96
|
height: auto;
|
|
103
|
-
|
|
104
|
-
cursor: default;
|
|
97
|
+
margin: 0 0 var(--space-xl) 0;
|
|
105
98
|
}
|
|
@@ -1,19 +1,14 @@
|
|
|
1
|
-
$background-dimness: 0
|
|
1
|
+
$background-dimness: 0 !default;
|
|
2
2
|
|
|
3
3
|
.Dimmer {
|
|
4
|
-
// Align everything in the middle.
|
|
5
|
-
// A fat middle finger for anything less than IE11.
|
|
6
4
|
display: flex;
|
|
7
5
|
justify-content: center;
|
|
8
6
|
align-items: center;
|
|
9
7
|
// Fill positioned parent
|
|
10
8
|
position: absolute;
|
|
11
|
-
|
|
12
|
-
bottom: 0;
|
|
13
|
-
left: 0;
|
|
14
|
-
right: 0;
|
|
9
|
+
inset: 0;
|
|
15
10
|
// Dim everything around it
|
|
16
|
-
background-color:
|
|
11
|
+
background-color: var(--dimmer-background);
|
|
17
12
|
// Should be enough to cover everything except tooltips
|
|
18
13
|
z-index: 100;
|
|
19
14
|
}
|
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
@use "../base";
|
|
2
2
|
|
|
3
|
-
$
|
|
4
|
-
$
|
|
5
|
-
$spacing: 0.5em;
|
|
3
|
+
$thickness: 0 !default;
|
|
4
|
+
$spacing: 0 !default;
|
|
6
5
|
|
|
7
6
|
.Divider--horizontal {
|
|
8
|
-
margin:
|
|
7
|
+
margin: var(--space-m) 0;
|
|
9
8
|
|
|
10
9
|
&:not(.Divider--hidden) {
|
|
11
|
-
border-top:
|
|
10
|
+
border-top: var(--divider-border);
|
|
12
11
|
}
|
|
13
12
|
}
|
|
14
13
|
|
|
15
14
|
.Divider--vertical {
|
|
16
15
|
height: 100%;
|
|
17
|
-
margin: 0
|
|
16
|
+
margin: 0 var(--space-m);
|
|
18
17
|
|
|
19
18
|
&:not(.Divider--hidden) {
|
|
20
|
-
border-left:
|
|
19
|
+
border-left: var(--divider-border);
|
|
21
20
|
}
|
|
22
21
|
}
|