ngx-strata 0.1.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/README.md +1 -0
- package/assets/fonts/Inter-VariableFont.ttf +0 -0
- package/assets/icons/arrow-down.svg +1 -0
- package/assets/icons/arrow-left.svg +1 -0
- package/assets/icons/arrow-right.svg +1 -0
- package/assets/icons/arrow-up.svg +1 -0
- package/assets/icons/clipboard.svg +1 -0
- package/assets/icons/close.svg +1 -0
- package/assets/icons/expand-up-down.svg +1 -0
- package/assets/icons/more.svg +1 -0
- package/assets/icons/question.svg +1 -0
- package/assets/styles/base.scss +26 -0
- package/assets/styles/breakpoints.scss +6 -0
- package/assets/styles/colors.scss +57 -0
- package/assets/styles/components/accordion.scss +75 -0
- package/assets/styles/components/action-menu.scss +66 -0
- package/assets/styles/components/avatar.scss +132 -0
- package/assets/styles/components/button.scss +174 -0
- package/assets/styles/components/card.scss +82 -0
- package/assets/styles/components/checkbox.scss +71 -0
- package/assets/styles/components/divider.scss +41 -0
- package/assets/styles/components/grid.scss +242 -0
- package/assets/styles/components/icon.scss +36 -0
- package/assets/styles/components/input-field.scss +72 -0
- package/assets/styles/components/item.scss +69 -0
- package/assets/styles/components/modal.scss +126 -0
- package/assets/styles/components/notification.scss +58 -0
- package/assets/styles/components/number-display.scss +25 -0
- package/assets/styles/components/overlay.scss +3 -0
- package/assets/styles/components/pagination.scss +28 -0
- package/assets/styles/components/progress.scss +118 -0
- package/assets/styles/components/segmented-control.scss +49 -0
- package/assets/styles/components/select.scss +127 -0
- package/assets/styles/components/slider.scss +127 -0
- package/assets/styles/components/spinner.scss +93 -0
- package/assets/styles/components/table.scss +66 -0
- package/assets/styles/components/tag.scss +60 -0
- package/assets/styles/components/text-stack.scss +29 -0
- package/assets/styles/components/toggle.scss +64 -0
- package/assets/styles/components/tooltip.scss +68 -0
- package/assets/styles/focus-outline.scss +11 -0
- package/assets/styles/public-api.scss +36 -0
- package/assets/styles/scrollbar.scss +29 -0
- package/assets/styles/shadows.scss +4 -0
- package/assets/styles/sizes.scss +12 -0
- package/assets/styles/typography.scss +66 -0
- package/dist/my-lib/strata.css +1 -0
- package/dist/strata/strata.css +1 -0
- package/fesm2022/ngx-strata.mjs +1720 -0
- package/fesm2022/ngx-strata.mjs.map +1 -0
- package/package.json +35 -0
- package/types/ngx-strata.d.ts +639 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
st-number-display {
|
|
2
|
+
--st-number-display-color-positive: rgb(89, 204, 89);
|
|
3
|
+
--st-number-display-color-negatve: red;
|
|
4
|
+
font-weight: 500;
|
|
5
|
+
white-space: nowrap;
|
|
6
|
+
|
|
7
|
+
.integer-number {
|
|
8
|
+
font-size: 1rem;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.positive {
|
|
12
|
+
color: var(--st-number-display-color-positive);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.negative {
|
|
16
|
+
color: var(--st-number-display-color-negatve);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.decimal-number {
|
|
20
|
+
&.deemphasize {
|
|
21
|
+
opacity: 0.8;
|
|
22
|
+
font-size: 0.8rem;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
st-pagination {
|
|
2
|
+
display: flex;
|
|
3
|
+
width: 100%;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
gap: 8px;
|
|
6
|
+
|
|
7
|
+
button {
|
|
8
|
+
padding: 8px 12px;
|
|
9
|
+
background: none;
|
|
10
|
+
border: none;
|
|
11
|
+
border-radius: 8px;
|
|
12
|
+
|
|
13
|
+
&.clickable:not(.selected):not(:disabled):hover {
|
|
14
|
+
background-color: whitesmoke;
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&.selected {
|
|
19
|
+
background-color: black;
|
|
20
|
+
color: white;
|
|
21
|
+
cursor: default;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:disabled.hideOnDisabled {
|
|
25
|
+
visibility: hidden;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
st-progress {
|
|
2
|
+
--st-progress-fill-color: var(--st-text);
|
|
3
|
+
--st-progress-radial-size: 120px;
|
|
4
|
+
--st-progress-radial-half-size: calc(var(--st-progress-radial-size) / 2);
|
|
5
|
+
--st-progress-radial-stroke-width: 10px;
|
|
6
|
+
--st-progress-radial-radius: calc((var(--st-progress-radial-size) - var(--st-progress-radial-stroke-width)) / 2);
|
|
7
|
+
--st-progress-radial-circumference: calc(2 * pi * var(--st-progress-radial-radius));
|
|
8
|
+
--st-progress-radial-dash-offset: calc(
|
|
9
|
+
var(--st-progress-radial-circumference) * (1 - var(--st-progress-percentage) / 100)
|
|
10
|
+
);
|
|
11
|
+
|
|
12
|
+
&.linear {
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: row;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
align-items: center;
|
|
17
|
+
gap: 8px;
|
|
18
|
+
width: 100%;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&.radial {
|
|
22
|
+
text-align: center;
|
|
23
|
+
.label {
|
|
24
|
+
position: absolute;
|
|
25
|
+
inset: 0;
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
justify-content: center;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&.st-theme-brand {
|
|
33
|
+
--st-progress-fill-color: var(--st-brand);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&.st-theme-info {
|
|
37
|
+
--st-progress-fill-color: var(--st-info);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&.st-theme-success {
|
|
41
|
+
--st-progress-fill-color: var(--st-success);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&.st-theme-warning {
|
|
45
|
+
--st-progress-fill-color: var(--st-warning);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&.st-theme-danger {
|
|
49
|
+
--st-progress-fill-color: var(--st-danger);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.linear-container {
|
|
53
|
+
position: relative;
|
|
54
|
+
width: 100%;
|
|
55
|
+
height: var(--st-size-xxs);
|
|
56
|
+
background: var(--st-bg-light);
|
|
57
|
+
border-radius: var(--st-border-radius-sm);
|
|
58
|
+
overflow: hidden;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.linear-bar {
|
|
62
|
+
height: 100%;
|
|
63
|
+
background: var(--st-progress-fill-color);
|
|
64
|
+
border-radius: var(--st-border-radius-sm);
|
|
65
|
+
|
|
66
|
+
transition: width 0.2s ease;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&.grow-left {
|
|
70
|
+
.linear-bar {
|
|
71
|
+
margin-left: auto;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.progress {
|
|
75
|
+
transform-origin: center;
|
|
76
|
+
transform: scaleY(-1);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.label {
|
|
81
|
+
font-size: var(--st-font-sm);
|
|
82
|
+
font-weight: 600;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.radial-container {
|
|
86
|
+
position: relative;
|
|
87
|
+
display: inline-block;
|
|
88
|
+
width: var(--st-progress-radial-size);
|
|
89
|
+
height: var(--st-progress-radial-size);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
svg {
|
|
93
|
+
transform: rotate(-90deg);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
circle {
|
|
97
|
+
fill: none;
|
|
98
|
+
cx: var(--st-progress-radial-half-size);
|
|
99
|
+
cy: var(--st-progress-radial-half-size);
|
|
100
|
+
r: var(--st-progress-radial-radius);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.background {
|
|
104
|
+
stroke: var(--st-bg-light);
|
|
105
|
+
stroke-width: var(--st-progress-radial-stroke-width);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.progress {
|
|
109
|
+
stroke: var(--st-progress-fill-color);
|
|
110
|
+
transition: stroke-dashoffset 0.2s ease;
|
|
111
|
+
cx: var(--st-progress-radial-half-size);
|
|
112
|
+
cy: var(--st-progress-radial-half-size);
|
|
113
|
+
stroke-width: var(--st-progress-radial-stroke-width);
|
|
114
|
+
r: var(--st-progress-radial-radius);
|
|
115
|
+
stroke-dasharray: var(--st-progress-radial-circumference);
|
|
116
|
+
stroke-dashoffset: var(--st-progress-radial-dash-offset);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
st-segmented-control {
|
|
2
|
+
display: flex;
|
|
3
|
+
position: relative;
|
|
4
|
+
border-radius: var(--st-border-radius-sm);
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
background-color: var(--st-bg-light);
|
|
7
|
+
width: fit-content;
|
|
8
|
+
height: var(--st-interactive-element-height-md);
|
|
9
|
+
|
|
10
|
+
button,
|
|
11
|
+
st-segmented-control-item {
|
|
12
|
+
border: none;
|
|
13
|
+
color: var(--st-text);
|
|
14
|
+
background-color: transparent;
|
|
15
|
+
|
|
16
|
+
&[disabled] {
|
|
17
|
+
pointer-events: none;
|
|
18
|
+
color: var(--st-text-faded);
|
|
19
|
+
cursor: unset;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&:hover:not([disabled]) {
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
background-color: var(--st-bg-contrast-dark);
|
|
25
|
+
color: var(--st-text-contrast);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.selection-item,
|
|
30
|
+
st-segmented-control-item {
|
|
31
|
+
height: var(--st-interactive-element-height-md);
|
|
32
|
+
padding: 8px 16px;
|
|
33
|
+
border-radius: var(--st-border-radius-sm);
|
|
34
|
+
font-size: 16px;
|
|
35
|
+
font-weight: 500;
|
|
36
|
+
user-select: none;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
#selection-indicator {
|
|
40
|
+
cursor: default;
|
|
41
|
+
position: absolute;
|
|
42
|
+
background-color: var(--st-bg-contrast-light);
|
|
43
|
+
color: var(--st-text-contrast);
|
|
44
|
+
text-wrap: nowrap;
|
|
45
|
+
transition:
|
|
46
|
+
0.15s ease-in margin-left,
|
|
47
|
+
0.15s ease-in width;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
st-dropdown {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
width: 100%;
|
|
5
|
+
|
|
6
|
+
&.sm .dropdown-input {
|
|
7
|
+
height: var(--st-interactive-element-height-sm);
|
|
8
|
+
font-size: var(--st-font-sm);
|
|
9
|
+
st-icon {
|
|
10
|
+
width: var(--st-icon-size-xs);
|
|
11
|
+
height: var(--st-icon-size-xs);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&.md .dropdown-input {
|
|
16
|
+
height: var(--st-interactive-element-height-md);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&.lg .dropdown-input {
|
|
20
|
+
height: var(--st-interactive-element-height-lg);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.dropdown-input {
|
|
24
|
+
padding-left: var(--st-size-xs);
|
|
25
|
+
padding-right: var(--st-size-xs);
|
|
26
|
+
border: 1px solid var(--st-border);
|
|
27
|
+
border-radius: var(--st-border-radius-sm);
|
|
28
|
+
min-width: 128px;
|
|
29
|
+
width: 100%;
|
|
30
|
+
user-select: none;
|
|
31
|
+
position: relative;
|
|
32
|
+
box-sizing: border-box;
|
|
33
|
+
display: inline-flex;
|
|
34
|
+
flex-direction: row;
|
|
35
|
+
gap: 4px;
|
|
36
|
+
background-color: var(--st-bg);
|
|
37
|
+
justify-content: space-between;
|
|
38
|
+
align-items: center;
|
|
39
|
+
|
|
40
|
+
.placeholder-text {
|
|
41
|
+
color: var(--st-text-faded);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
st-icon {
|
|
45
|
+
width: var(--st-icon-size-sm);
|
|
46
|
+
height: var(--st-icon-size-sm);
|
|
47
|
+
}
|
|
48
|
+
&:hover {
|
|
49
|
+
background-color: var(--st-bg-light);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&:has(.dropdown-selector:hover) {
|
|
53
|
+
background-color: unset;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.dropdown-selector[data-show] {
|
|
57
|
+
height: unset;
|
|
58
|
+
visibility: visible;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.dropdown-selector {
|
|
62
|
+
border: 1px solid var(--st-border);
|
|
63
|
+
border-radius: var(--st-border-radius-sm);
|
|
64
|
+
width: max-content;
|
|
65
|
+
visibility: hidden;
|
|
66
|
+
position: absolute;
|
|
67
|
+
user-select: none;
|
|
68
|
+
top: 0;
|
|
69
|
+
left: 0;
|
|
70
|
+
box-sizing: border-box;
|
|
71
|
+
overflow: hidden;
|
|
72
|
+
background-color: var(--st-bg);
|
|
73
|
+
box-shadow: var(--st-shadow-1);
|
|
74
|
+
z-index: 1000;
|
|
75
|
+
|
|
76
|
+
.dropdown-item {
|
|
77
|
+
padding: 8px;
|
|
78
|
+
margin: 4px;
|
|
79
|
+
border-radius: 4px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.dropdown-item:hover {
|
|
83
|
+
background-color: var(--st-bg-light);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.dropdown-selector {
|
|
90
|
+
border: 1px solid var(--st-border);
|
|
91
|
+
border-radius: var(--st-border-radius-sm);
|
|
92
|
+
width: max-content;
|
|
93
|
+
position: absolute;
|
|
94
|
+
user-select: none;
|
|
95
|
+
top: 0;
|
|
96
|
+
left: 0;
|
|
97
|
+
box-sizing: border-box;
|
|
98
|
+
overflow: hidden;
|
|
99
|
+
background-color: var(--st-bg);
|
|
100
|
+
box-shadow: var(--st-shadow-1);
|
|
101
|
+
z-index: 1000;
|
|
102
|
+
|
|
103
|
+
.dropdown-item {
|
|
104
|
+
padding: 8px;
|
|
105
|
+
margin: 4px;
|
|
106
|
+
border-radius: 4px;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.dropdown-item:hover {
|
|
110
|
+
background-color: var(--st-bg-light);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
st-input-field {
|
|
114
|
+
padding: var(--st-size-xxs);
|
|
115
|
+
|
|
116
|
+
st-button {
|
|
117
|
+
visibility: hidden;
|
|
118
|
+
&.visible {
|
|
119
|
+
visibility: visible;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.dropdown-selector.full-width {
|
|
126
|
+
width: var(--st-overlay-anchor-element-width);
|
|
127
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
st-slider {
|
|
2
|
+
--st-slider-track-height: var(--st-size-xxs);
|
|
3
|
+
--st-slider-track-color: var(--st-bg-light);
|
|
4
|
+
--st-slider-thumb-size: var(--st-size-sm);
|
|
5
|
+
--st-slider-thumb-color: var(--st-bg-contrast);
|
|
6
|
+
--st-slider-tick-color: var(--st-border);
|
|
7
|
+
--st-slider-tick-width: 1px;
|
|
8
|
+
width: 100%;
|
|
9
|
+
height: var(--st-slider-thumb-size);
|
|
10
|
+
|
|
11
|
+
/* slider track */
|
|
12
|
+
.range-wrapper input[type='range']::-webkit-slider-runnable-track {
|
|
13
|
+
-webkit-appearance: none;
|
|
14
|
+
appearance: none;
|
|
15
|
+
|
|
16
|
+
height: var(--st-slider-track-height);
|
|
17
|
+
border-radius: var(--st-border-radius-sm);
|
|
18
|
+
background-color: var(--st-slider-track-color);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.range-wrapper input[type='range']::-moz-range-track {
|
|
22
|
+
-webkit-appearance: none;
|
|
23
|
+
appearance: none;
|
|
24
|
+
|
|
25
|
+
height: var(--st-slider-track-height);
|
|
26
|
+
border-radius: var(--st-border-radius-sm);
|
|
27
|
+
background-color: var(--st-slider-track-color);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.range-wrapper.stepped input[type='range']::-webkit-slider-runnable-track {
|
|
31
|
+
-webkit-appearance: none;
|
|
32
|
+
appearance: none;
|
|
33
|
+
background-image:
|
|
34
|
+
/* repeating ticks */
|
|
35
|
+
linear-gradient(
|
|
36
|
+
to right,
|
|
37
|
+
var(--st-slider-tick-color) 0,
|
|
38
|
+
var(--st-slider-tick-color) var(--st-slider-tick-width),
|
|
39
|
+
transparent var(--st-slider-tick-width)
|
|
40
|
+
),
|
|
41
|
+
/* base track fill */ linear-gradient(var(--st-slider-track-color), var(--st-slider-track-color));
|
|
42
|
+
|
|
43
|
+
background-size:
|
|
44
|
+
var(--st-slider-interval-px) 100%,
|
|
45
|
+
100% 100%;
|
|
46
|
+
|
|
47
|
+
background-position:
|
|
48
|
+
var(--st-slider-thumb-offset) 0,
|
|
49
|
+
0 0;
|
|
50
|
+
|
|
51
|
+
background-repeat: repeat-x, no-repeat;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.range-wrapper.stepped input[type='range']::-moz-range-track {
|
|
55
|
+
-webkit-appearance: none;
|
|
56
|
+
appearance: none;
|
|
57
|
+
background-image:
|
|
58
|
+
/* repeating ticks */
|
|
59
|
+
linear-gradient(
|
|
60
|
+
to right,
|
|
61
|
+
var(--st-slider-tick-color) 0,
|
|
62
|
+
var(--st-slider-tick-color) var(--st-slider-tick-width),
|
|
63
|
+
transparent var(--st-slider-tick-width)
|
|
64
|
+
),
|
|
65
|
+
/* base track fill */ linear-gradient(var(--st-slider-track-color), var(--st-slider-track-color));
|
|
66
|
+
|
|
67
|
+
background-size:
|
|
68
|
+
var(--st-slider-interval-px) 100%,
|
|
69
|
+
100% 100%;
|
|
70
|
+
|
|
71
|
+
background-position:
|
|
72
|
+
var(--st-slider-thumb-offset) 0,
|
|
73
|
+
0 0;
|
|
74
|
+
|
|
75
|
+
background-repeat: repeat-x, no-repeat;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/* slider thumb */
|
|
79
|
+
input[type='range']::-webkit-slider-thumb {
|
|
80
|
+
-webkit-appearance: none; /* Override default look */
|
|
81
|
+
appearance: none;
|
|
82
|
+
margin-top: calc(var(--st-slider-track-height) * -0.5); /* Centers thumb on the track */
|
|
83
|
+
background-color: var(--st-slider-thumb-color);
|
|
84
|
+
border-radius: 50%;
|
|
85
|
+
height: var(--st-slider-thumb-size);
|
|
86
|
+
width: var(--st-slider-thumb-size);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
input[type='range']::-moz-range-thumb {
|
|
90
|
+
-webkit-appearance: none;
|
|
91
|
+
/* Override default look */
|
|
92
|
+
appearance: none;
|
|
93
|
+
margin-top: calc(var(--st-slider-track-height) * -1);
|
|
94
|
+
/* Centers thumb on the track */
|
|
95
|
+
background-color: var(--st-slider-thumb-color);
|
|
96
|
+
border-radius: 50%;
|
|
97
|
+
height: var(--st-slider-thumb-size);
|
|
98
|
+
width: var(--st-slider-thumb-size);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
input[type='range']:focus::-moz-range-thumb {
|
|
102
|
+
outline: var(--st-focus-ring-width) var(--st-focus-ring-style) var(--st-focus-ring-color);
|
|
103
|
+
outline-offset: var(--st-focus-ring-offset);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
input[type='range']:focus::-webkit-slider-thumb {
|
|
107
|
+
outline: var(--st-focus-ring-width) var(--st-focus-ring-style) var(--st-focus-ring-color);
|
|
108
|
+
outline-offset: var(--st-focus-ring-offset);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.range-wrapper input[type='range'] {
|
|
112
|
+
height: var(--st-slider-thumb-size);
|
|
113
|
+
-webkit-appearance: none;
|
|
114
|
+
appearance: none;
|
|
115
|
+
background: transparent;
|
|
116
|
+
cursor: pointer;
|
|
117
|
+
width: 100%;
|
|
118
|
+
margin: 0;
|
|
119
|
+
position: relative;
|
|
120
|
+
z-index: 2;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/* Removes default focus */
|
|
124
|
+
input[type='range']:focus {
|
|
125
|
+
outline: none;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
st-spinner {
|
|
2
|
+
--st-spinner-size: var(--st-size-xl);
|
|
3
|
+
--st-spinner-stroke-width: var(--st-size-xxxxs);
|
|
4
|
+
--st-spinner-main-color: var(--st-text-faded);
|
|
5
|
+
--st-spinner-accent-color: var(--st-text);
|
|
6
|
+
--st-spinner-inner-width: calc(var(--st-spinner-size) - (var(--st-spinner-stroke-width) * 4));
|
|
7
|
+
|
|
8
|
+
display: flex;
|
|
9
|
+
justify-items: center;
|
|
10
|
+
align-items: center;
|
|
11
|
+
|
|
12
|
+
&.xs {
|
|
13
|
+
--st-spinner-size: var(--st-size-md);
|
|
14
|
+
--st-spinner-stroke-width: var(--st-size-xxxxs);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&.sm {
|
|
18
|
+
--st-spinner-size: var(--st-size-lg);
|
|
19
|
+
--st-spinner-stroke-width: var(--st-size-xxxxs);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&.lg {
|
|
23
|
+
--st-spinner-size: var(--st-size-xxl);
|
|
24
|
+
--st-spinner-stroke-width: var(--st-size-xxxs);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&.st-theme-brand {
|
|
28
|
+
--st-spinner-accent-color: var(--st-brand);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&.st-theme-info {
|
|
32
|
+
--st-spinner-accent-color: var(--st-info);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&.st-theme-success {
|
|
36
|
+
--st-spinner-accent-color: var(--st-success);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&.st-theme-warning {
|
|
40
|
+
--st-spinner-accent-color: var(--st-warning);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&.st-theme-danger {
|
|
44
|
+
--st-spinner-accent-color: var(--st-danger);
|
|
45
|
+
}
|
|
46
|
+
.st-spinner {
|
|
47
|
+
width: var(--st-spinner-size);
|
|
48
|
+
height: var(--st-spinner-size);
|
|
49
|
+
border-radius: 50%;
|
|
50
|
+
display: inline-block;
|
|
51
|
+
position: relative;
|
|
52
|
+
border: var(--st-spinner-stroke-width) solid;
|
|
53
|
+
border-color: var(--st-spinner-main-color) var(--st-spinner-main-color) transparent;
|
|
54
|
+
box-sizing: border-box;
|
|
55
|
+
animation: rotation 1s linear infinite;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.st-spinner::after {
|
|
59
|
+
content: '';
|
|
60
|
+
box-sizing: border-box;
|
|
61
|
+
position: absolute;
|
|
62
|
+
left: 0;
|
|
63
|
+
right: 0;
|
|
64
|
+
top: 0;
|
|
65
|
+
bottom: 0;
|
|
66
|
+
margin: auto;
|
|
67
|
+
border: var(--st-spinner-stroke-width) solid;
|
|
68
|
+
border-color: transparent var(--st-spinner-accent-color) var(--st-spinner-accent-color);
|
|
69
|
+
width: var(--st-spinner-inner-width);
|
|
70
|
+
height: var(--st-spinner-inner-width);
|
|
71
|
+
border-radius: 50%;
|
|
72
|
+
animation: rotationBack 0.5s linear infinite;
|
|
73
|
+
transform-origin: center center;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@keyframes rotation {
|
|
77
|
+
0% {
|
|
78
|
+
transform: rotate(0deg);
|
|
79
|
+
}
|
|
80
|
+
100% {
|
|
81
|
+
transform: rotate(360deg);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@keyframes rotationBack {
|
|
86
|
+
0% {
|
|
87
|
+
transform: rotate(0deg);
|
|
88
|
+
}
|
|
89
|
+
100% {
|
|
90
|
+
transform: rotate(-360deg);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
table.st-table {
|
|
2
|
+
--st-table-background-color: var(transparent);
|
|
3
|
+
--st-table-background-color-even-row: var(--st-bg);
|
|
4
|
+
--st-table-divider-color: var(--st-border-faded);
|
|
5
|
+
|
|
6
|
+
width: 100%;
|
|
7
|
+
text-align: left;
|
|
8
|
+
border-collapse: collapse;
|
|
9
|
+
background-color: var(--st-table-background-color);
|
|
10
|
+
|
|
11
|
+
thead tr {
|
|
12
|
+
background-color: var(--st-table-background-color-even-row);
|
|
13
|
+
border-bottom: 1px solid var(--st-border-muted);
|
|
14
|
+
|
|
15
|
+
th {
|
|
16
|
+
font-weight: var(--st-font-weight-bold);
|
|
17
|
+
color: var(--st-text-muted);
|
|
18
|
+
font-size: var(--st-font-sm);
|
|
19
|
+
padding: var(--st-size-xxxs);
|
|
20
|
+
padding-bottom: var(--st-size-xxs);
|
|
21
|
+
padding-top: var(--st-size-xs);
|
|
22
|
+
|
|
23
|
+
&:first-of-type {
|
|
24
|
+
padding-left: var(--st-size-xs);
|
|
25
|
+
}
|
|
26
|
+
&:last-of-type {
|
|
27
|
+
padding-left: var(--st-size-xs);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
tbody tr {
|
|
33
|
+
border-bottom: 1px solid var(--st-table-divider-color);
|
|
34
|
+
|
|
35
|
+
td {
|
|
36
|
+
padding: var(--st-size-xxxs);
|
|
37
|
+
padding-top: var(--st-size-xs);
|
|
38
|
+
padding-bottom: var(--st-size-xs);
|
|
39
|
+
font-size: var(--st-font-md);
|
|
40
|
+
|
|
41
|
+
&:first-of-type {
|
|
42
|
+
padding-left: var(--st-size-xs);
|
|
43
|
+
}
|
|
44
|
+
&:last-of-type {
|
|
45
|
+
padding-left: var(--st-size-xs);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&.tight tbody tr td {
|
|
51
|
+
padding-top: var(--st-size-xxxs);
|
|
52
|
+
padding-bottom: var(--st-size-xxxs);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
st-card {
|
|
57
|
+
&.with-padding table.st-table {
|
|
58
|
+
margin: calc(var(--st-size-xs) * -1);
|
|
59
|
+
width: calc(var(--st-size-xs) + var(--st-size-xs) + 100%);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&:not(.outline) table.st-table {
|
|
63
|
+
--st-table-background-color-even-row: var(--st-bg-light);
|
|
64
|
+
--st-table-divider-color: var(--st-border-muted);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
st-tag {
|
|
2
|
+
--st-tag-border-color: var(--st-divider);
|
|
3
|
+
--st-tag-background-color: var(--st-bg-light);
|
|
4
|
+
--st-tag-text-color: var(--st-text);
|
|
5
|
+
color: var(--st-tag-text-color);
|
|
6
|
+
border: 1px solid var(--st-tag-border-color);
|
|
7
|
+
border-radius: var(--st-border-radius-sm);
|
|
8
|
+
background-color: var(--st-tag-background-color);
|
|
9
|
+
width: max-content;
|
|
10
|
+
height: fit-content;
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
|
|
15
|
+
&.sm {
|
|
16
|
+
padding: 0 8px;
|
|
17
|
+
height: var(--st-size-sm);
|
|
18
|
+
border-radius: var(--st-size-xxs);
|
|
19
|
+
font-size: 10px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&.md {
|
|
23
|
+
padding: 0 10px;
|
|
24
|
+
font-size: 12px;
|
|
25
|
+
height: var(--st-size-md);
|
|
26
|
+
border-radius: var(--st-size-xs);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&.lg {
|
|
30
|
+
padding: 0 12px;
|
|
31
|
+
font-size: 14px;
|
|
32
|
+
height: var(--st-size-lg);
|
|
33
|
+
border-radius: var(--st-size-sm);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&.st-theme-brand {
|
|
37
|
+
--st-tag-background-color: var(--st-brand);
|
|
38
|
+
--st-tag-text-color: var(--st-text-contrast);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&.st-theme-info {
|
|
42
|
+
--st-tag-background-color: var(--st-info);
|
|
43
|
+
--st-tag-text-color: var(--st-text-contrast);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&.st-theme-success {
|
|
47
|
+
--st-tag-background-color: var(--st-success);
|
|
48
|
+
--st-tag-text-color: var(--st-text-contrast);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&.st-theme-danger {
|
|
52
|
+
--st-tag-background-color: var(--st-danger);
|
|
53
|
+
--st-tag-text-color: var(--st-text-contrast);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&.st-theme-warning {
|
|
57
|
+
--st-tag-background-color: var(--st-warning);
|
|
58
|
+
--st-tag-text-color: var(--st-text-contrast);
|
|
59
|
+
}
|
|
60
|
+
}
|