@remvst/design-system 1.0.0 → 1.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/.github/workflows/check.yaml +19 -19
- package/.prettierrc +4 -0
- package/lib/alignment/alignment.css +13 -13
- package/lib/alignment/alignment.d.ts +1 -1
- package/lib/alignment/alignment.js +1 -1
- package/lib/animations/animations.css +90 -90
- package/lib/balanced-row/balanced-row.css +4 -4
- package/lib/balanced-stack/balanced-stack.css +5 -5
- package/lib/buttons/buttons.css +5 -5
- package/lib/buttons/buttons.d.ts +3 -1
- package/lib/buttons/buttons.js +8 -1
- package/lib/dim/dim.css +3 -3
- package/lib/flow-list/flow-list.css +5 -5
- package/lib/focusable.d.ts +1 -0
- package/lib/focusable.js +6 -3
- package/lib/frame/frame.css +1 -1
- package/lib/gauge/gauge.css +16 -16
- package/lib/highlightable-row/highlightable-row.css +3 -3
- package/lib/highlightable-row/highlightable-row.js +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/key-value-layout/key-value-layout.css +7 -7
- package/lib/labels/labels.css +13 -13
- package/lib/reset/reset.css +8 -8
- package/lib/screen-column-layout/screen-column-layout.css +77 -77
- package/lib/screen-stack-layout/screen-stack-layout.css +14 -14
- package/lib/scrollable-content/scrollable-content.css +3 -3
- package/lib/slider/slider.css +44 -44
- package/lib/spacing/spacing.css +7 -7
- package/lib/stack-list/stack-list.css +2 -2
- package/lib/tabs/tabs.css +10 -10
- package/lib/typography/typography.css +7 -7
- package/package.json +26 -25
- package/src/alignment/alignment.css +13 -13
- package/src/alignment/alignment.tsx +5 -5
- package/src/animations/animations.css +90 -90
- package/src/animations/animations.ts +14 -14
- package/src/balanced-row/balanced-row.css +4 -4
- package/src/balanced-row/balanced-row.tsx +10 -10
- package/src/balanced-stack/balanced-stack.css +5 -5
- package/src/balanced-stack/balanced-stack.tsx +10 -10
- package/src/buttons/buttons.css +5 -5
- package/src/buttons/buttons.tsx +7 -2
- package/src/component-with-class-name.tsx +8 -8
- package/src/dim/dim.css +3 -3
- package/src/dim/dim.tsx +1 -1
- package/src/flow-list/flow-list.css +5 -5
- package/src/flow-list/flow-list.tsx +10 -10
- package/src/focusable.tsx +39 -35
- package/src/frame/frame.css +1 -1
- package/src/frame/frame.tsx +1 -1
- package/src/gauge/gauge.css +16 -16
- package/src/gauge/gauge.tsx +19 -16
- package/src/highlightable-row/highlightable-row.css +3 -3
- package/src/highlightable-row/highlightable-row.tsx +10 -8
- package/src/index.ts +1 -1
- package/src/key-value-layout/key-value-layout.css +7 -7
- package/src/key-value-layout/key-value-layout.tsx +1 -1
- package/src/labels/labels.css +13 -13
- package/src/labels/labels.tsx +7 -7
- package/src/reset/reset.css +8 -8
- package/src/screen-column-layout/screen-column-layout.css +77 -77
- package/src/screen-column-layout/screen-column-layout.tsx +6 -6
- package/src/screen-stack-layout/screen-stack-layout.css +14 -14
- package/src/screen-stack-layout/screen-stack-layout.tsx +4 -4
- package/src/scrollable-content/scrollable-content.css +3 -3
- package/src/scrollable-content/scrollable-content.tsx +1 -1
- package/src/slider/slider.css +44 -44
- package/src/slider/slider.tsx +45 -45
- package/src/spacing/spacing.css +7 -7
- package/src/spacing/spacing.ts +7 -7
- package/src/stack-list/stack-list.css +2 -2
- package/src/stack-list/stack-list.tsx +10 -10
- package/src/tabs/tabs.css +10 -10
- package/src/tabs/tabs.tsx +15 -15
- package/src/typography/typography.css +7 -7
- package/src/typography/typography.ts +7 -7
- package/tsconfig.json +11 -11
|
@@ -2,16 +2,18 @@ import { Focusable } from "../focusable";
|
|
|
2
2
|
import "./highlightable-row.css";
|
|
3
3
|
|
|
4
4
|
interface Props extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
-
|
|
5
|
+
highlighted?: boolean;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
export class HighlightableRow extends Focusable<Props> {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
protected saneProps(): Props {
|
|
10
|
+
const { highlighted, ...other } = this.props;
|
|
11
|
+
return other;
|
|
12
|
+
}
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
protected get className() {
|
|
15
|
+
return (
|
|
16
|
+
"highlightable-row" + (this.props.highlighted ? " highlighted" : "")
|
|
17
|
+
);
|
|
18
|
+
}
|
|
17
19
|
}
|
package/src/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./reset/reset.css";
|
|
2
2
|
|
|
3
|
-
export * from "./animations/animations";
|
|
4
3
|
export * from "./alignment/alignment";
|
|
4
|
+
export * from "./animations/animations";
|
|
5
5
|
export * from "./balanced-row/balanced-row";
|
|
6
6
|
export * from "./balanced-stack/balanced-stack";
|
|
7
7
|
export * from "./buttons/buttons";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
.key-value-layout {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: row;
|
|
4
|
+
flex-wrap: nowrap;
|
|
5
|
+
justify-content: space-between;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.key-value-layout > *:first-child {
|
|
9
|
-
|
|
9
|
+
flex: 1 0 auto;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.key-value-layout > * {
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
align-self: center;
|
|
14
|
+
max-width: 50%;
|
|
15
15
|
}
|
|
@@ -2,5 +2,5 @@ import { ComponentWithClassName } from "../component-with-class-name";
|
|
|
2
2
|
import "./key-value-layout.css";
|
|
3
3
|
|
|
4
4
|
export class KeyValueLayout extends ComponentWithClassName {
|
|
5
|
-
|
|
5
|
+
protected readonly className = "key-value-layout";
|
|
6
6
|
}
|
package/src/labels/labels.css
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
.label-giant {
|
|
2
|
-
|
|
2
|
+
font-size: 100px;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.label-large {
|
|
6
|
-
|
|
6
|
+
font-size: var(--font-size-l);
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.label-medium {
|
|
10
|
-
|
|
10
|
+
font-size: var(--font-size-m);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.label-small {
|
|
14
|
-
|
|
14
|
+
font-size: var(--font-size-s);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.label-tiny {
|
|
18
|
-
|
|
18
|
+
font-size: var(--font-size-xs);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.main-title {
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
text-align: center;
|
|
23
|
+
font-size: var(--font-size-xxl);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.text-block {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
font-size: var(--font-size-m);
|
|
28
|
+
color: white;
|
|
29
|
+
padding: 10px 10%;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.text-block p {
|
|
33
|
-
|
|
33
|
+
margin: 10px 0px;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
.text-block ul {
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
margin-left: 20px;
|
|
38
|
+
list-style-type: square;
|
|
39
39
|
}
|
package/src/labels/labels.tsx
CHANGED
|
@@ -2,29 +2,29 @@ import { ComponentWithClassName } from "../component-with-class-name";
|
|
|
2
2
|
import "./labels.css";
|
|
3
3
|
|
|
4
4
|
export class GiantLabel extends ComponentWithClassName {
|
|
5
|
-
|
|
5
|
+
readonly className = "label label-giant";
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
export class LargeLabel extends ComponentWithClassName {
|
|
9
|
-
|
|
9
|
+
readonly className = "label label-large";
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export class MediumLabel extends ComponentWithClassName {
|
|
13
|
-
|
|
13
|
+
readonly className = "label label-medium";
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
export class SmallLabel extends ComponentWithClassName {
|
|
17
|
-
|
|
17
|
+
readonly className = "label label-small";
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export class TinyLabel extends ComponentWithClassName {
|
|
21
|
-
|
|
21
|
+
readonly className = "label label-tiny";
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
export class MainTitle extends ComponentWithClassName {
|
|
25
|
-
|
|
25
|
+
readonly className = "label main-title";
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
export class TextBlock extends ComponentWithClassName {
|
|
29
|
-
|
|
29
|
+
readonly className = "text-block";
|
|
30
30
|
}
|
package/src/reset/reset.css
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
* {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
margin: 0;
|
|
3
|
+
padding: 0;
|
|
4
|
+
-ms-box-sizing: border-box;
|
|
5
|
+
-moz-box-sizing: border-box;
|
|
6
|
+
-webkit-box-sizing: border-box;
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
user-select: none;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
*:focus {
|
|
12
|
-
|
|
12
|
+
outline: none;
|
|
13
13
|
}
|
|
@@ -1,126 +1,126 @@
|
|
|
1
1
|
.screen-layout-column {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: row;
|
|
4
|
+
height: 100%;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
.screen-layout-column > * {
|
|
8
|
-
|
|
8
|
+
height: 100%;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.screen-layout-column > .screen-layout-column-main-column {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
flex: 0 0 45%;
|
|
13
|
+
background-color: rgba(0, 0, 0, 0.7);
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.screen-layout-column
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
19
|
+
> .screen-layout-column-main-column
|
|
20
|
+
> .screen-layout-column-main-column-header {
|
|
21
|
+
flex-basis: 40%;
|
|
22
|
+
flex-shrink: 0;
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
padding-left: 5%;
|
|
27
|
+
padding-right: 5%;
|
|
28
|
+
text-align: center;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
.screen-layout-column
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
32
|
+
> .screen-layout-column-main-column
|
|
33
|
+
> .screen-layout-column-main-column-footer {
|
|
34
|
+
flex-basis: 100px;
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
justify-content: center;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.screen-layout-column
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
> .screen-layout-column-main-column
|
|
42
|
+
> .screen-layout-column-main-column-content {
|
|
43
|
+
flex: 1 0 0;
|
|
44
|
+
overflow: hidden auto;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
.screen-layout-column > .screen-layout-column-central-content {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
flex: 1 1 auto;
|
|
49
|
+
display: flex;
|
|
50
|
+
flex-direction: column;
|
|
51
|
+
padding: 10%;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
.mobile .screen-layout-column > .screen-central-content {
|
|
55
|
-
|
|
55
|
+
display: none;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
.mobile .screen-layout-column > .screen-layout-column-main-column {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
59
|
+
flex-basis: 100%;
|
|
60
|
+
background: transparent;
|
|
61
|
+
justify-content: start;
|
|
62
|
+
padding-left: 10px;
|
|
63
|
+
padding-right: 10px;
|
|
64
|
+
margin-left: auto;
|
|
65
|
+
margin-right: auto;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
.mobile
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
69
|
+
.screen-layout-column
|
|
70
|
+
> .screen-layout-column-main-column
|
|
71
|
+
> .screen-layout-column-main-column-header {
|
|
72
|
+
flex-basis: 30%;
|
|
73
|
+
flex-shrink: 1;
|
|
74
|
+
justify-content: end;
|
|
75
|
+
padding-left: 20px;
|
|
76
|
+
padding-right: 20px;
|
|
77
|
+
position: relative;
|
|
78
|
+
z-index: 1;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
.mobile
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
82
|
+
.screen-layout-column
|
|
83
|
+
> .screen-layout-column-main-column
|
|
84
|
+
> .screen-layout-column-main-column-content {
|
|
85
|
+
flex: 0 1 auto;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
.mobile
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
89
|
+
.screen-layout-column
|
|
90
|
+
> .screen-layout-column-main-column
|
|
91
|
+
> .screen-layout-column-main-column-footer {
|
|
92
|
+
padding-top: 50px;
|
|
93
|
+
justify-content: end;
|
|
94
|
+
flex-basis: auto;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
.mobile .screen-layout-column .screen-layout-column-main-column-content,
|
|
98
98
|
.mobile .screen-layout-column .screen-layout-column-main-column-footer {
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
background-color: rgba(0, 0, 0, 0.7);
|
|
100
|
+
padding: 5px;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
.mobile
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
104
|
+
.screen-layout-column
|
|
105
|
+
> .screen-layout-column-main-column
|
|
106
|
+
> .screen-layout-column-main-column-header
|
|
107
|
+
.main-title {
|
|
108
|
+
color: black;
|
|
109
|
+
text-shadow: none;
|
|
110
|
+
background: white;
|
|
111
|
+
margin: 0px;
|
|
112
112
|
|
|
113
|
-
|
|
114
|
-
|
|
113
|
+
position: relative;
|
|
114
|
+
top: 20px;
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
.mobile .screen-layout-column .screen-layout-column-main-column-content {
|
|
118
|
-
|
|
118
|
+
padding-top: 30px;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
.mobile
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
122
|
+
.main-menu
|
|
123
|
+
.screen-layout-column
|
|
124
|
+
.screen-layout-column-main-column-content {
|
|
125
|
+
padding: 5px;
|
|
126
126
|
}
|
|
@@ -2,25 +2,25 @@ import { ComponentWithClassName } from "../component-with-class-name";
|
|
|
2
2
|
import "./screen-column-layout.css";
|
|
3
3
|
|
|
4
4
|
export class ScreenColumnLayout extends ComponentWithClassName {
|
|
5
|
-
|
|
5
|
+
protected readonly className = "screen-layout-column";
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
export class ScreenColumnLayoutMainColumn extends ComponentWithClassName {
|
|
9
|
-
|
|
9
|
+
protected readonly className = "screen-layout-column-main-column";
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export class ScreenColumnLayoutMainColumnHeader extends ComponentWithClassName {
|
|
13
|
-
|
|
13
|
+
protected readonly className = "screen-layout-column-main-column-header";
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
export class ScreenColumnLayoutMainColumnFooter extends ComponentWithClassName {
|
|
17
|
-
|
|
17
|
+
protected readonly className = "screen-layout-column-main-column-footer";
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export class ScreenColumnLayoutMainColumnContent extends ComponentWithClassName {
|
|
21
|
-
|
|
21
|
+
protected readonly className = "screen-layout-column-main-column-content";
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
export class ScreenColumnLayoutCentralContent extends ComponentWithClassName {
|
|
25
|
-
|
|
25
|
+
protected readonly className = "screen-layout-column-central-content";
|
|
26
26
|
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
.screen-stack-layout {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
margin: auto;
|
|
5
|
+
height: 100%;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.screen-stack-layout-top,
|
|
9
9
|
.screen-stack-layout-bottom {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
flex: 0 0 100px;
|
|
11
|
+
display: flex;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
flex-direction: column;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.screen-stack-layout-content {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
flex: 1 1 auto;
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
overflow: hidden;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
.screen-stack-layout-content > * {
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
flex: 1 1 auto;
|
|
25
|
+
max-height: 100%;
|
|
26
26
|
}
|
|
@@ -2,17 +2,17 @@ import { ComponentWithClassName } from "../component-with-class-name";
|
|
|
2
2
|
import "./screen-stack-layout.css";
|
|
3
3
|
|
|
4
4
|
export class ScreenStackLayout extends ComponentWithClassName {
|
|
5
|
-
|
|
5
|
+
protected readonly className = "screen-stack-layout";
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
export class ScreenStackLayoutTop extends ComponentWithClassName {
|
|
9
|
-
|
|
9
|
+
protected readonly className = "screen-stack-layout-top";
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export class ScreenStackLayoutContent extends ComponentWithClassName {
|
|
13
|
-
|
|
13
|
+
protected readonly className = "screen-stack-layout-content";
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
export class ScreenStackLayoutBottom extends ComponentWithClassName {
|
|
17
|
-
|
|
17
|
+
protected readonly className = "screen-stack-layout-bottom";
|
|
18
18
|
}
|
|
@@ -2,5 +2,5 @@ import { ComponentWithClassName } from "../component-with-class-name";
|
|
|
2
2
|
import "./scrollable-content.css";
|
|
3
3
|
|
|
4
4
|
export class ScrollableContent extends ComponentWithClassName {
|
|
5
|
-
|
|
5
|
+
protected readonly className = "scrollable-content";
|
|
6
6
|
}
|
package/src/slider/slider.css
CHANGED
|
@@ -1,85 +1,85 @@
|
|
|
1
1
|
input[type="range"] {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
background: transparent;
|
|
3
|
+
cursor: pointer;
|
|
4
|
+
appearance: none;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
input[type="range"]::-webkit-slider-thumb {
|
|
8
|
-
|
|
8
|
+
-webkit-appearance: none;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
input[type="range"]:focus {
|
|
12
|
-
|
|
12
|
+
outline: none; /* Removes the blue border. You should probably do some kind of focus styling for accessibility reasons though. */
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
input[type="range"]::-webkit-slider-thumb {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
-webkit-appearance: none;
|
|
17
|
+
border: none;
|
|
18
|
+
background: #000;
|
|
19
|
+
margin-top: -10px; /* You need to specify a margin in Chrome, but in Firefox and IE it is automatic */
|
|
20
|
+
width: 20px;
|
|
21
|
+
height: 20px;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
input[type="range"]::-moz-range-thumb {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
border: none;
|
|
26
|
+
box-shadow: 0px 2px #000;
|
|
27
|
+
height: 15px;
|
|
28
|
+
width: 15px;
|
|
29
|
+
background: #fff;
|
|
30
|
+
border-radius: 0px;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
input[type="range"]::-webkit-slider-runnable-track {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
width: 100%;
|
|
35
|
+
height: 0px;
|
|
36
|
+
background-color: #fff;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
input[type="range"]::-moz-range-track {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
width: 100%;
|
|
41
|
+
height: 2px;
|
|
42
|
+
background-color: #fff;
|
|
43
|
+
box-shadow: 0px 2px #000;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
.labelled-slider {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
background-color: white;
|
|
48
|
+
padding: 1px;
|
|
49
|
+
position: relative;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
.labelled-slider > *:nth-child(1) {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
width: 100%;
|
|
54
|
+
height: 100%;
|
|
55
|
+
display: block;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
.labelled-slider > *:nth-child(2) {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
59
|
+
min-width: 50px;
|
|
60
|
+
text-align: right;
|
|
61
|
+
position: absolute;
|
|
62
|
+
right: 0;
|
|
63
|
+
top: 100%;
|
|
64
|
+
margin: 0;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
.labelled-slider input[type="range"] {
|
|
68
|
-
|
|
68
|
+
height: 20px;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
.labelled-slider input[type="range"]::-moz-range-thumb {
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
width: 0px;
|
|
73
|
+
box-shadow: none;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
.labelled-slider input[type="range"]::-moz-range-progress {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
background: black;
|
|
78
|
+
height: 100%;
|
|
79
|
+
width: 100%;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
.labelled-slider input[type="range"]::-moz-range-track {
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
background-color: transparent;
|
|
84
|
+
box-shadow: none;
|
|
85
85
|
}
|