tweak-ui 0.4.3 → 0.8.0
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/LICENSE +7 -7
- package/README.md +32 -32
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/lib/builder.d.ts +102 -162
- package/dist/lib/builder.d.ts.map +1 -1
- package/dist/lib/color/adapter.d.ts +7 -0
- package/dist/lib/color/adapter.d.ts.map +1 -0
- package/dist/lib/color/array-format.d.ts +9 -0
- package/dist/lib/color/array-format.d.ts.map +1 -0
- package/dist/lib/{color-formats → color}/converter.d.ts +18 -18
- package/dist/lib/color/converter.d.ts.map +1 -0
- package/dist/lib/color/css-string-format.d.ts +8 -0
- package/dist/lib/color/css-string-format.d.ts.map +1 -0
- package/dist/lib/color/formatter.d.ts +9 -0
- package/dist/lib/color/formatter.d.ts.map +1 -0
- package/dist/lib/color/hex-string-format.d.ts +9 -0
- package/dist/lib/color/hex-string-format.d.ts.map +1 -0
- package/dist/lib/{color-formats → color}/index.d.ts +3 -3
- package/dist/lib/color/index.d.ts.map +1 -0
- package/dist/lib/color/number-format.d.ts +9 -0
- package/dist/lib/color/number-format.d.ts.map +1 -0
- package/dist/lib/{color-formats → color}/object-format.d.ts +14 -14
- package/dist/lib/color/object-format.d.ts.map +1 -0
- package/dist/lib/{color-formats → color}/types.d.ts +107 -101
- package/dist/lib/color/types.d.ts.map +1 -0
- package/dist/lib/components/container/bar.d.ts +28 -0
- package/dist/lib/components/container/bar.d.ts.map +1 -0
- package/dist/lib/components/container/dialog.d.ts +14 -0
- package/dist/lib/components/container/dialog.d.ts.map +1 -0
- package/dist/lib/components/container/grid.d.ts +22 -0
- package/dist/lib/components/container/grid.d.ts.map +1 -0
- package/dist/lib/components/container/group.d.ts +55 -0
- package/dist/lib/components/container/group.d.ts.map +1 -0
- package/dist/lib/components/container/index.d.ts +10 -0
- package/dist/lib/components/container/index.d.ts.map +1 -0
- package/dist/lib/components/container/list.d.ts +25 -0
- package/dist/lib/components/container/list.d.ts.map +1 -0
- package/dist/lib/components/container/section.d.ts +28 -0
- package/dist/lib/components/container/section.d.ts.map +1 -0
- package/dist/lib/components/container/split.d.ts +40 -0
- package/dist/lib/components/container/split.d.ts.map +1 -0
- package/dist/lib/components/container/tabs.d.ts +23 -0
- package/dist/lib/components/container/tabs.d.ts.map +1 -0
- package/dist/lib/components/container/tree.d.ts +25 -0
- package/dist/lib/components/container/tree.d.ts.map +1 -0
- package/dist/lib/components/controls/angle.d.ts +47 -51
- package/dist/lib/components/controls/angle.d.ts.map +1 -1
- package/dist/lib/components/controls/bitmask.d.ts +41 -0
- package/dist/lib/components/controls/bitmask.d.ts.map +1 -0
- package/dist/lib/components/controls/bool.d.ts +52 -0
- package/dist/lib/components/controls/bool.d.ts.map +1 -0
- package/dist/lib/components/controls/color-picker.d.ts +41 -56
- package/dist/lib/components/controls/color-picker.d.ts.map +1 -1
- package/dist/lib/components/controls/color.d.ts +37 -51
- package/dist/lib/components/controls/color.d.ts.map +1 -1
- package/dist/lib/components/controls/index.d.ts +14 -10
- package/dist/lib/components/controls/index.d.ts.map +1 -1
- package/dist/lib/components/controls/input.d.ts +44 -0
- package/dist/lib/components/controls/input.d.ts.map +1 -0
- package/dist/lib/components/controls/matrix.d.ts +58 -0
- package/dist/lib/components/controls/matrix.d.ts.map +1 -0
- package/dist/lib/components/controls/point.d.ts +41 -47
- package/dist/lib/components/controls/point.d.ts.map +1 -1
- package/dist/lib/components/controls/poll.d.ts +12 -0
- package/dist/lib/components/controls/poll.d.ts.map +1 -0
- package/dist/lib/components/controls/scalar.d.ts +67 -0
- package/dist/lib/components/controls/scalar.d.ts.map +1 -0
- package/dist/lib/components/controls/select.d.ts +53 -59
- package/dist/lib/components/controls/select.d.ts.map +1 -1
- package/dist/lib/components/controls/spherical.d.ts +37 -74
- package/dist/lib/components/controls/spherical.d.ts.map +1 -1
- package/dist/lib/components/controls/string.d.ts +46 -0
- package/dist/lib/components/controls/string.d.ts.map +1 -0
- package/dist/lib/components/controls/vector.d.ts +54 -0
- package/dist/lib/components/controls/vector.d.ts.map +1 -0
- package/dist/lib/components/elements/button.d.ts +36 -0
- package/dist/lib/components/elements/button.d.ts.map +1 -0
- package/dist/lib/components/elements/divider.d.ts +4 -0
- package/dist/lib/components/elements/divider.d.ts.map +1 -0
- package/dist/lib/components/elements/graph.d.ts +8 -0
- package/dist/lib/components/elements/graph.d.ts.map +1 -0
- package/dist/lib/components/elements/image.d.ts +33 -0
- package/dist/lib/components/elements/image.d.ts.map +1 -0
- package/dist/lib/components/elements/index.d.ts +6 -0
- package/dist/lib/components/elements/index.d.ts.map +1 -0
- package/dist/lib/components/elements/widget.d.ts +27 -0
- package/dist/lib/components/elements/widget.d.ts.map +1 -0
- package/dist/lib/components/index.d.ts +3 -5
- package/dist/lib/components/index.d.ts.map +1 -1
- package/dist/lib/core/control.d.ts +20 -0
- package/dist/lib/core/control.d.ts.map +1 -0
- package/dist/lib/core/index.d.ts +3 -4
- package/dist/lib/core/index.d.ts.map +1 -1
- package/dist/lib/core/render.d.ts +7 -9
- package/dist/lib/core/render.d.ts.map +1 -1
- package/dist/lib/core/types.d.ts +73 -87
- package/dist/lib/core/types.d.ts.map +1 -1
- package/dist/lib/core/utils.d.ts +78 -93
- package/dist/lib/core/utils.d.ts.map +1 -1
- package/dist/lib/index.d.ts +21 -27
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/mount.d.ts +35 -45
- package/dist/lib/mount.d.ts.map +1 -1
- package/dist/lib/stats/index.d.ts +2 -0
- package/dist/lib/stats/index.d.ts.map +1 -0
- package/dist/lib/stats/sampler.d.ts +66 -0
- package/dist/lib/stats/sampler.d.ts.map +1 -0
- package/dist/lib/stats/stats-renderer.d.ts +16 -0
- package/dist/lib/stats/stats-renderer.d.ts.map +1 -0
- package/dist/style.css +1 -0
- package/dist/style.d.ts +4 -0
- package/dist/tweak-ui.module.js +2938 -2393
- package/dist/tweak-ui.module.js.map +1 -1
- package/dist/tweak-ui.umd.js +33 -4420
- package/dist/tweak-ui.umd.js.map +1 -1
- package/package.json +37 -51
- package/dist/index.html +0 -1063
- package/dist/lib/color-formats/array-format.d.ts +0 -9
- package/dist/lib/color-formats/array-format.d.ts.map +0 -1
- package/dist/lib/color-formats/array-format.spec.d.ts +0 -2
- package/dist/lib/color-formats/array-format.spec.d.ts.map +0 -1
- package/dist/lib/color-formats/converter.d.ts.map +0 -1
- package/dist/lib/color-formats/converter.spec.d.ts +0 -2
- package/dist/lib/color-formats/converter.spec.d.ts.map +0 -1
- package/dist/lib/color-formats/css-string-format.d.ts +0 -8
- package/dist/lib/color-formats/css-string-format.d.ts.map +0 -1
- package/dist/lib/color-formats/css-string-format.spec.d.ts +0 -2
- package/dist/lib/color-formats/css-string-format.spec.d.ts.map +0 -1
- package/dist/lib/color-formats/formatter.d.ts +0 -9
- package/dist/lib/color-formats/formatter.d.ts.map +0 -1
- package/dist/lib/color-formats/formatter.spec.d.ts +0 -2
- package/dist/lib/color-formats/formatter.spec.d.ts.map +0 -1
- package/dist/lib/color-formats/hex-string-format.d.ts +0 -8
- package/dist/lib/color-formats/hex-string-format.d.ts.map +0 -1
- package/dist/lib/color-formats/hex-string-format.spec.d.ts +0 -2
- package/dist/lib/color-formats/hex-string-format.spec.d.ts.map +0 -1
- package/dist/lib/color-formats/index.d.ts.map +0 -1
- package/dist/lib/color-formats/number-format.d.ts +0 -9
- package/dist/lib/color-formats/number-format.d.ts.map +0 -1
- package/dist/lib/color-formats/number-format.spec.d.ts +0 -2
- package/dist/lib/color-formats/number-format.spec.d.ts.map +0 -1
- package/dist/lib/color-formats/object-format.d.ts.map +0 -1
- package/dist/lib/color-formats/object-format.spec.d.ts +0 -2
- package/dist/lib/color-formats/object-format.spec.d.ts.map +0 -1
- package/dist/lib/color-formats/types.d.ts.map +0 -1
- package/dist/lib/components/button.d.ts +0 -29
- package/dist/lib/components/button.d.ts.map +0 -1
- package/dist/lib/components/content.d.ts +0 -22
- package/dist/lib/components/content.d.ts.map +0 -1
- package/dist/lib/components/controls/checkbox.d.ts +0 -29
- package/dist/lib/components/controls/checkbox.d.ts.map +0 -1
- package/dist/lib/components/controls/number.d.ts +0 -48
- package/dist/lib/components/controls/number.d.ts.map +0 -1
- package/dist/lib/components/controls/position.d.ts +0 -56
- package/dist/lib/components/controls/position.d.ts.map +0 -1
- package/dist/lib/components/controls/text.d.ts +0 -36
- package/dist/lib/components/controls/text.d.ts.map +0 -1
- package/dist/lib/components/groups/accordion.d.ts +0 -22
- package/dist/lib/components/groups/accordion.d.ts.map +0 -1
- package/dist/lib/components/groups/container.d.ts +0 -25
- package/dist/lib/components/groups/container.d.ts.map +0 -1
- package/dist/lib/components/groups/group.d.ts +0 -49
- package/dist/lib/components/groups/group.d.ts.map +0 -1
- package/dist/lib/components/groups/index.d.ts +0 -5
- package/dist/lib/components/groups/index.d.ts.map +0 -1
- package/dist/lib/components/groups/tabs.d.ts +0 -22
- package/dist/lib/components/groups/tabs.d.ts.map +0 -1
- package/dist/lib/components/image.d.ts +0 -37
- package/dist/lib/components/image.d.ts.map +0 -1
- package/dist/lib/core/registry.d.ts +0 -18
- package/dist/lib/core/registry.d.ts.map +0 -1
- package/dist/lib/core/value-accessor.d.ts +0 -18
- package/dist/lib/core/value-accessor.d.ts.map +0 -1
- package/dist/scss/_style.scss +0 -120
- package/dist/scss/_themes.scss +0 -23
- package/dist/scss/_utils.scss +0 -24
- package/dist/scss/_variables.scss +0 -30
- package/dist/scss/controls/_angle.scss +0 -64
- package/dist/scss/controls/_button.scss +0 -0
- package/dist/scss/controls/_checkbox.scss +0 -19
- package/dist/scss/controls/_color-picker.scss +0 -124
- package/dist/scss/controls/_color.scss +0 -14
- package/dist/scss/controls/_container.scss +0 -13
- package/dist/scss/controls/_group.scss +0 -69
- package/dist/scss/controls/_image.scss +0 -27
- package/dist/scss/controls/_number.scss +0 -38
- package/dist/scss/controls/_point.scss +0 -36
- package/dist/scss/controls/_position.scss +0 -9
- package/dist/scss/controls/_select.scss +0 -0
- package/dist/scss/controls/_spherical.scss +0 -87
- package/dist/scss/controls/_tabs.scss +0 -38
- package/dist/scss/controls/_text.scss +0 -0
- package/dist/scss/index.scss +0 -21
- package/dist/tweak-ui.css +0 -653
- package/dist/tweak-ui.css.map +0 -1
- package/dist/tweak-ui.min.css +0 -1
- package/dist/tweak-ui.min.css.map +0 -1
- package/dist/tweak-ui.umd.min.js +0 -17
- package/dist/tweak-ui.umd.min.js.map +0 -1
package/dist/scss/_style.scss
DELETED
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
.twui-root {
|
|
2
|
-
@include color(background-color, primary);
|
|
3
|
-
@include color(color, on-primary);
|
|
4
|
-
|
|
5
|
-
font-family: $font-family-base;
|
|
6
|
-
font-size: $font-size-base;
|
|
7
|
-
padding: 0;
|
|
8
|
-
margin: 0;
|
|
9
|
-
width: 20rem;
|
|
10
|
-
flex: auto 0 0; // dont resize in flex context
|
|
11
|
-
overflow: auto;
|
|
12
|
-
overflow-x: hidden;
|
|
13
|
-
box-sizing: border-box;
|
|
14
|
-
|
|
15
|
-
//
|
|
16
|
-
// Scrollbars
|
|
17
|
-
//
|
|
18
|
-
|
|
19
|
-
&::-webkit-scrollbar {
|
|
20
|
-
width: 0.5rem
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&::-webkit-scrollbar-track {
|
|
24
|
-
@include color(background-color, primary);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&::-webkit-scrollbar-thumb {
|
|
28
|
-
border-width: 1px;
|
|
29
|
-
border-style: solid;
|
|
30
|
-
transition: background-color 0.2s ease-in-out;
|
|
31
|
-
@include color(background-color, primary);
|
|
32
|
-
@include color(border-color, primary-dark);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
&::-webkit-scrollbar-thumb:hover {
|
|
36
|
-
@include color(background-color, secondary);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
//
|
|
40
|
-
// Input Elements
|
|
41
|
-
//
|
|
42
|
-
|
|
43
|
-
label {
|
|
44
|
-
user-select: none;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
select, button, a {
|
|
48
|
-
cursor: pointer;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
input:not([type="checkbox"]),
|
|
52
|
-
button,
|
|
53
|
-
select {
|
|
54
|
-
@include color(background-color, secondary);
|
|
55
|
-
@include color(color, on-secondary);
|
|
56
|
-
|
|
57
|
-
-webkit-appearance: none;
|
|
58
|
-
-moz-appearance: none;
|
|
59
|
-
appearance: none;
|
|
60
|
-
border-radius: 0;
|
|
61
|
-
outline: none;
|
|
62
|
-
border: none;
|
|
63
|
-
box-sizing: border-box;
|
|
64
|
-
|
|
65
|
-
height: $line-height - 2 * $spacer;
|
|
66
|
-
line-height: $line-height - 2 * $spacer;
|
|
67
|
-
padding: $input-pad-y $input-pad-x;
|
|
68
|
-
margin: $spacer;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
button {
|
|
72
|
-
line-height: $line-height - 2 * $spacer - 2 * $button-pad-y;
|
|
73
|
-
padding: $button-pad-y $button-pad-x;
|
|
74
|
-
margin: $spacer;
|
|
75
|
-
|
|
76
|
-
font-weight: 400;
|
|
77
|
-
text-align: center;
|
|
78
|
-
white-space: nowrap;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
button, select, input:not([type="checkbox"]), .twui-progress {
|
|
82
|
-
border-bottom: 1px solid;
|
|
83
|
-
@include color(border-color, primary-dark);
|
|
84
|
-
transition: border-color 0.2s ease-in-out, background-color 0.2s ease-in-out;
|
|
85
|
-
|
|
86
|
-
&:hover,
|
|
87
|
-
&.checked {
|
|
88
|
-
@include color(background-color, secondary-light);
|
|
89
|
-
@include color(border-color, secondary-dark);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
&:focus,
|
|
93
|
-
&.checked {
|
|
94
|
-
outline: none;
|
|
95
|
-
@include color(border-color, accent);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
&:disabled,
|
|
99
|
-
.disabled {
|
|
100
|
-
opacity: 0.5;
|
|
101
|
-
cursor: not-allowed;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.disabled {
|
|
106
|
-
opacity: 0.5;
|
|
107
|
-
cursor: not-allowed;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
select, input:not([type="checkbox"]) {
|
|
111
|
-
&:focus {
|
|
112
|
-
@include color(color, accent);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
input[type="number"] {
|
|
117
|
-
padding-right: 0;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
|
package/dist/scss/_themes.scss
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
.twui-dark {
|
|
2
|
-
--twui-color-primary: #263238;
|
|
3
|
-
--twui-color-primary-dark: #000a12;
|
|
4
|
-
--twui-color-primary-light: #4f5b62;
|
|
5
|
-
--twui-color-secondary: #37474f;
|
|
6
|
-
--twui-color-secondary-dark: #102027;
|
|
7
|
-
--twui-color-secondary-light: #62727b;
|
|
8
|
-
--twui-color-on-primary: #fff;
|
|
9
|
-
--twui-color-on-secondary: #fff;
|
|
10
|
-
--twui-color-accent: #f9AA33;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.twui-light {
|
|
14
|
-
--twui-color-primary: #fafafa;
|
|
15
|
-
--twui-color-primary-dark: #c7c7c7;
|
|
16
|
-
--twui-color-primary-light: #ffffff;
|
|
17
|
-
--twui-color-secondary: #cfd8dc;
|
|
18
|
-
--twui-color-secondary-dark: #9ea7aa;
|
|
19
|
-
--twui-color-secondary-light: #ffffff;
|
|
20
|
-
--twui-color-on-primary: #000000;
|
|
21
|
-
--twui-color-on-secondary: #000000;
|
|
22
|
-
--twui-color-accent: #2196f3;
|
|
23
|
-
}
|
package/dist/scss/_utils.scss
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
$colorMap: (
|
|
2
|
-
"primary": $color-primary,
|
|
3
|
-
"primary-dark": $color-primary-dark,
|
|
4
|
-
"primary-light": $color-primary-light,
|
|
5
|
-
"secondary": $color-secondary,
|
|
6
|
-
"secondary-dark": $color-secondary-dark,
|
|
7
|
-
"secondary-light": $color-secondary-light,
|
|
8
|
-
"on-primary": $color-on-primary,
|
|
9
|
-
"on-secondary": $color-on-secondary,
|
|
10
|
-
"accent": $color-accent,
|
|
11
|
-
);
|
|
12
|
-
|
|
13
|
-
@function getColor($colorName) {
|
|
14
|
-
@return map-get($colorMap, $colorName);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
@function getColorVar($colorName) {
|
|
18
|
-
@return var(--twui-color-#{$colorName}, getColor($colorName));
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
@mixin color($property, $colorName) {
|
|
22
|
-
#{$property}: getColor($colorName);
|
|
23
|
-
#{$property}: getColorVar($colorName);
|
|
24
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
$color-primary: #344955 !default;
|
|
2
|
-
$color-primary-dark: #0b222c !default;
|
|
3
|
-
$color-primary-light: #5f7481 !default;
|
|
4
|
-
$color-secondary: #4A6572 !default;
|
|
5
|
-
$color-secondary-dark: #203b47 !default;
|
|
6
|
-
$color-secondary-light: #7793a1 !default;
|
|
7
|
-
$color-on-primary: #E0E5E7 !default;
|
|
8
|
-
$color-on-secondary: #E0E5E7 !default;
|
|
9
|
-
$color-accent: #f9AA33 !default;
|
|
10
|
-
|
|
11
|
-
$font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !default;
|
|
12
|
-
$font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !default;
|
|
13
|
-
$font-family-base: $font-family-sans-serif !default;
|
|
14
|
-
|
|
15
|
-
$font-size-base: 0.75rem !default;
|
|
16
|
-
|
|
17
|
-
$line-height: 1.5rem;
|
|
18
|
-
$spacer: 0.125rem;
|
|
19
|
-
|
|
20
|
-
$label-width: 7rem;
|
|
21
|
-
$label-pad-x: 0.25rem;
|
|
22
|
-
$label-pad-y: 0.0rem;
|
|
23
|
-
|
|
24
|
-
$input-height: $line-height;
|
|
25
|
-
$input-pad-x: 0.25rem;
|
|
26
|
-
$input-pad-y: 0.0rem;
|
|
27
|
-
|
|
28
|
-
$button-height: $line-height;
|
|
29
|
-
$button-pad-x: 0.5rem;
|
|
30
|
-
$button-pad-y: 0.25rem;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
.twui-angle {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: row;
|
|
4
|
-
align-items: flex-start;
|
|
5
|
-
|
|
6
|
-
.left-container {
|
|
7
|
-
flex: 1;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.right-container {
|
|
11
|
-
flex: none;
|
|
12
|
-
display: grid;
|
|
13
|
-
grid-template-columns: max-content max-content;
|
|
14
|
-
|
|
15
|
-
.twui-checkbox {
|
|
16
|
-
grid-column: span 2;
|
|
17
|
-
input {
|
|
18
|
-
margin-left: 0;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
label {
|
|
24
|
-
text-align: right;
|
|
25
|
-
line-height: $input-height;
|
|
26
|
-
padding: 0 $label-pad-x;
|
|
27
|
-
}
|
|
28
|
-
input[type=number] {
|
|
29
|
-
width: 3.5rem;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.pane {
|
|
33
|
-
position: relative;
|
|
34
|
-
width: 100%;
|
|
35
|
-
padding-top: 100%;
|
|
36
|
-
&::before {
|
|
37
|
-
position: absolute;
|
|
38
|
-
content: '';
|
|
39
|
-
width: calc(100% - 2rem);
|
|
40
|
-
height: calc(100% - 2rem);
|
|
41
|
-
left: 1rem;
|
|
42
|
-
top: 1rem;
|
|
43
|
-
border: 1px solid;
|
|
44
|
-
border-radius: 50%;
|
|
45
|
-
@include color(border-color, primary-light);
|
|
46
|
-
box-sizing: border-box;
|
|
47
|
-
background-image: conic-gradient(getColorVar(primary-light) var(--angle-percent), transparent 0);
|
|
48
|
-
transform: scaleX(-1) rotate(180deg);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.angle-knob {
|
|
53
|
-
border: 0px solid transparent;
|
|
54
|
-
border-radius: 100%;
|
|
55
|
-
@include color(background-color, primary-light);
|
|
56
|
-
|
|
57
|
-
&:hover {
|
|
58
|
-
@include color(background-color, secondary-light);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
.angle-pane.is-dragging .angle-knob {
|
|
62
|
-
@include color(background-color, accent);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
File without changes
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
.twui-checkbox {
|
|
2
|
-
min-height: $line-height - 2 * $spacer;
|
|
3
|
-
line-height: $line-height - 2 * $spacer;
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: row;
|
|
6
|
-
align-items: center;
|
|
7
|
-
|
|
8
|
-
margin: 0;
|
|
9
|
-
padding: 0;
|
|
10
|
-
cursor: pointer;
|
|
11
|
-
transition: background-color 0.2s ease-in-out;
|
|
12
|
-
|
|
13
|
-
&:hover { @include color(background-color, secondary); }
|
|
14
|
-
|
|
15
|
-
input {
|
|
16
|
-
margin-right: 1ch;
|
|
17
|
-
margin-left: 1ch;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
.twui-color-picker {
|
|
3
|
-
flex: auto 1 1;
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: row;
|
|
6
|
-
|
|
7
|
-
.color-picker-panel {
|
|
8
|
-
flex: 1;
|
|
9
|
-
position: relative;
|
|
10
|
-
margin: $spacer;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.color-picker-inputs {
|
|
14
|
-
flex: none;
|
|
15
|
-
display: flex;
|
|
16
|
-
flex-direction: column;
|
|
17
|
-
|
|
18
|
-
.input-r {
|
|
19
|
-
border-color: #f00;
|
|
20
|
-
}
|
|
21
|
-
.input-g {
|
|
22
|
-
border-color: #0f0;
|
|
23
|
-
}
|
|
24
|
-
.input-b {
|
|
25
|
-
border-color: #00f;
|
|
26
|
-
}
|
|
27
|
-
.input-a {
|
|
28
|
-
border-image: linear-gradient(to right, #fff, transparent);
|
|
29
|
-
}
|
|
30
|
-
.input-hex {
|
|
31
|
-
border-color: #000;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
input {
|
|
35
|
-
display: block;
|
|
36
|
-
width: 4rem;
|
|
37
|
-
flex: none;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.color-picker-sv,
|
|
42
|
-
.color-picker-h,
|
|
43
|
-
.color-picker-a {
|
|
44
|
-
&:focus {
|
|
45
|
-
outline: none;
|
|
46
|
-
@include color(border-color, accent);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.color-picker-sv {
|
|
51
|
-
width: 100%;
|
|
52
|
-
padding-top: 100%;
|
|
53
|
-
position: relative;
|
|
54
|
-
box-sizing: border-box;
|
|
55
|
-
cursor: crosshair;
|
|
56
|
-
z-index: 1;
|
|
57
|
-
border-bottom: 1px solid;
|
|
58
|
-
@include color(border-color, primary-dark);
|
|
59
|
-
}
|
|
60
|
-
.color-picker-sv-bg {
|
|
61
|
-
position: absolute;
|
|
62
|
-
top: 0;
|
|
63
|
-
left: 0;
|
|
64
|
-
right: 0;
|
|
65
|
-
bottom: 0;
|
|
66
|
-
}
|
|
67
|
-
.color-picker-sv-cursor {
|
|
68
|
-
box-sizing: border-box;
|
|
69
|
-
position: absolute;
|
|
70
|
-
width: 10px;
|
|
71
|
-
height: 10px;
|
|
72
|
-
margin-top: -5px;
|
|
73
|
-
margin-left: -5px;
|
|
74
|
-
border: 1px solid white;
|
|
75
|
-
border-radius: 5px;
|
|
76
|
-
box-shadow: 0px 0px 2px 1px rgba(0,0,0,0.75);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.color-picker-h,
|
|
80
|
-
.color-picker-a {
|
|
81
|
-
position: relative;
|
|
82
|
-
height: 1rem;
|
|
83
|
-
box-sizing: border-box;
|
|
84
|
-
cursor: ew-resize;
|
|
85
|
-
margin-top: $spacer * 2;
|
|
86
|
-
border-bottom: 1px solid;
|
|
87
|
-
@include color(border-color, primary-dark);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.color-picker-h-cursor,
|
|
91
|
-
.color-picker-a-cursor {
|
|
92
|
-
position: absolute;
|
|
93
|
-
width: 4px;
|
|
94
|
-
height: calc(1rem - 2px);
|
|
95
|
-
margin-left: -3px;
|
|
96
|
-
border: 1px solid white;
|
|
97
|
-
border-radius: 2px;
|
|
98
|
-
box-shadow: 0px 0px 2px 1px rgba(0,0,0,0.75);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.color-picker-a {
|
|
102
|
-
background-image: /* tint image */
|
|
103
|
-
linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)),
|
|
104
|
-
/* checkered effect */
|
|
105
|
-
linear-gradient(to right, grey 50%, white 50%),
|
|
106
|
-
linear-gradient(to bottom, grey 50%, white 50%);
|
|
107
|
-
background-blend-mode: normal, difference, normal;
|
|
108
|
-
background-size: 1rem 1rem;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.color-picker-a-bg {
|
|
112
|
-
position: absolute;
|
|
113
|
-
top: 0;
|
|
114
|
-
left: 0;
|
|
115
|
-
right: 0;
|
|
116
|
-
bottom: 0;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.color-picker-sv,
|
|
120
|
-
.color-picker-h,
|
|
121
|
-
.color-picker-a {
|
|
122
|
-
@include color(border-color, primary-dark);
|
|
123
|
-
}
|
|
124
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
.twui-group {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-flow: column nowrap;
|
|
4
|
-
align-items: stretch;
|
|
5
|
-
|
|
6
|
-
@include color(border-color, primary-dark);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.twui-group-title {
|
|
10
|
-
margin: 0;
|
|
11
|
-
width: auto;
|
|
12
|
-
height: $line-height;
|
|
13
|
-
line-height: $line-height;
|
|
14
|
-
@include color(background-color, primary-dark);
|
|
15
|
-
padding-left: 2 * $spacer;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.twui-group-collapsible .twui-group-title {
|
|
19
|
-
padding-left: 0;
|
|
20
|
-
cursor: pointer;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.twui-group-collapsible > .twui-group-title::before {
|
|
24
|
-
content: '▶';
|
|
25
|
-
display: inline-block;
|
|
26
|
-
width: $line-height;
|
|
27
|
-
height: $line-height;
|
|
28
|
-
text-align: center;
|
|
29
|
-
transition: transform 0.1s ease-in-out;
|
|
30
|
-
transform: rotateZ(90deg);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.twui-group-inset,
|
|
34
|
-
.twui-group-collapsible > .twui-group-collapsible {
|
|
35
|
-
border-left: 0.25rem solid;
|
|
36
|
-
@include color(border-left-color, primary-light);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.twui-group-collapsed > .twui-group-title::before {
|
|
40
|
-
transform: rotateZ(0deg);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.twui-group-control {
|
|
44
|
-
display: flex;
|
|
45
|
-
flex-flow: row nowrap;
|
|
46
|
-
align-items: stretch;
|
|
47
|
-
min-height: $line-height;
|
|
48
|
-
box-sizing: border-box;
|
|
49
|
-
|
|
50
|
-
> label:first-child {
|
|
51
|
-
flex: none;
|
|
52
|
-
box-sizing: border-box;
|
|
53
|
-
width: $label-width - 2 * $label-pad-x;
|
|
54
|
-
min-width: $label-width - 2 * $label-pad-x;
|
|
55
|
-
min-height: $line-height - 2 * $spacer;
|
|
56
|
-
line-height: $line-height - 2 * $spacer;
|
|
57
|
-
padding: $label-pad-y $label-pad-x;
|
|
58
|
-
margin: $spacer;
|
|
59
|
-
|
|
60
|
-
overflow: hidden;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
> section {
|
|
64
|
-
flex: 1;
|
|
65
|
-
display: flex;
|
|
66
|
-
flex-flow: column nowrap;
|
|
67
|
-
align-items: stretch;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
.twui-image {
|
|
2
|
-
max-width: 100%;
|
|
3
|
-
display: block;
|
|
4
|
-
img {
|
|
5
|
-
width: 100%;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.twui-image-aspect {
|
|
10
|
-
position: relative;
|
|
11
|
-
&::before {
|
|
12
|
-
content: '';
|
|
13
|
-
display: block;
|
|
14
|
-
width: 100%;
|
|
15
|
-
padding-top: 100%;
|
|
16
|
-
padding-top: var(--twui-aspect);
|
|
17
|
-
}
|
|
18
|
-
img {
|
|
19
|
-
position: absolute;
|
|
20
|
-
top: 0;
|
|
21
|
-
left: 0;
|
|
22
|
-
width: 100%;
|
|
23
|
-
height: 100%;
|
|
24
|
-
object-fit: fill;
|
|
25
|
-
object-fit: var(--twui-fit);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
.twui-number,
|
|
2
|
-
.twui-slider {
|
|
3
|
-
display: flex;
|
|
4
|
-
flex-flow: row nowrap;
|
|
5
|
-
align-items: stretch;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.twui-number input {
|
|
9
|
-
flex: 1;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.twui-slider {
|
|
13
|
-
.twui-progress {
|
|
14
|
-
flex: 1;
|
|
15
|
-
display: flex;
|
|
16
|
-
margin: $spacer;
|
|
17
|
-
cursor: ew-resize;
|
|
18
|
-
transition: background-color 0.2s ease-in-out;
|
|
19
|
-
|
|
20
|
-
@include color(background-color, secondary);
|
|
21
|
-
&:hover {
|
|
22
|
-
@include color(background-color, secondary-dark);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.twui-progress.disabled {
|
|
27
|
-
cursor: not-allowed;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.twui-progress-bar {
|
|
31
|
-
@include color(background-color, secondary-light);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
input[type="number"] {
|
|
35
|
-
flex: none;
|
|
36
|
-
width: 3.5rem;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
.twui-point {
|
|
3
|
-
@include color(background-color, secondary);
|
|
4
|
-
@include color(border-color, primary-dark);
|
|
5
|
-
background-image:
|
|
6
|
-
linear-gradient(getColor(primary-light) 1px, transparent 1px),
|
|
7
|
-
linear-gradient(90deg, getColor(primary-light) 1px, transparent 1px);
|
|
8
|
-
background-image:
|
|
9
|
-
linear-gradient(getColorVar(primary-light) 1px, transparent 1px),
|
|
10
|
-
linear-gradient(90deg, getColorVar(primary-light) 1px, transparent 1px);
|
|
11
|
-
background-size: 10% 10%, 10% 10%;
|
|
12
|
-
transition: border-color 0.2s ease-in-out, background-color 0.2s ease-in-out;
|
|
13
|
-
|
|
14
|
-
position: relative;
|
|
15
|
-
width: 100%;
|
|
16
|
-
padding-top: 100%;
|
|
17
|
-
box-sizing: border-box;
|
|
18
|
-
cursor: crosshair;
|
|
19
|
-
z-index: 1;
|
|
20
|
-
// border-bottom: 1px solid;
|
|
21
|
-
overflow: visible;
|
|
22
|
-
|
|
23
|
-
.point-x-axis,
|
|
24
|
-
.point-y-axis {
|
|
25
|
-
@include color(background-color, primary-dark);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
&:focus {
|
|
29
|
-
.point-x-axis,
|
|
30
|
-
.point-y-axis {
|
|
31
|
-
@include color(background-color, accent);
|
|
32
|
-
}
|
|
33
|
-
@include color(border-color, accent);
|
|
34
|
-
outline: none;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
File without changes
|