@geoffcox/sterling-svelte-themes 2.0.5 → 2.0.7
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
CHANGED
|
@@ -22,6 +22,14 @@ https://github.com/GeoffCox/sterling-svelte-themes
|
|
|
22
22
|
|
|
23
23
|
## Change Log
|
|
24
24
|
|
|
25
|
+
### 2.0.7
|
|
26
|
+
|
|
27
|
+
- Add styles for new Splitter component
|
|
28
|
+
|
|
29
|
+
### 2.0.6
|
|
30
|
+
|
|
31
|
+
- Fixed a few of invalid CSS declarations for background and border colors
|
|
32
|
+
|
|
25
33
|
### 2.0.5
|
|
26
34
|
|
|
27
35
|
- Fixed issue with new button disabled state not applying due to specificity of colors and variants
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* ----- blue ----- */
|
|
2
2
|
|
|
3
3
|
.sterling-button.secondary.blue:not(:disabled) {
|
|
4
|
-
background-color:
|
|
4
|
+
background-color: transparent;
|
|
5
5
|
border-color: var(--stsv-button__border-color--blue);
|
|
6
6
|
color: var(--stsv-button__border-color--blue);
|
|
7
7
|
}
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
/* ----- green ----- */
|
|
28
28
|
|
|
29
29
|
.sterling-button.secondary.green:not(:disabled) {
|
|
30
|
-
background-color:
|
|
30
|
+
background-color: transparent;
|
|
31
31
|
border-color: var(--stsv-button__border-color--green);
|
|
32
32
|
color: var(--stsv-button__border-color--green);
|
|
33
33
|
}
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
/* ----- orange ----- */
|
|
54
54
|
|
|
55
55
|
.sterling-button.secondary.orange:not(:disabled) {
|
|
56
|
-
background-color:
|
|
56
|
+
background-color: transparent;
|
|
57
57
|
border-color: var(--stsv-button__border-color--orange);
|
|
58
58
|
color: var(--stsv-button__border-color--orange);
|
|
59
59
|
}
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
/* ----- red ----- */
|
|
80
80
|
|
|
81
81
|
.sterling-button.secondary.red:not(:disabled){
|
|
82
|
-
background-color:
|
|
82
|
+
background-color: transparent;
|
|
83
83
|
border-color: var(--stsv-button__border-color--red);
|
|
84
84
|
color: var(--stsv-button__border-color--red);
|
|
85
85
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/* ----- blue ----- */
|
|
2
2
|
|
|
3
3
|
.sterling-button.tool.blue:not(:disabled) {
|
|
4
|
-
background-color:
|
|
5
|
-
border-color:
|
|
4
|
+
background-color: transparent;
|
|
5
|
+
border-color: transparent;
|
|
6
6
|
color: var(--stsv-button__border-color--blue);
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
.sterling-button.tool.blue
|
|
9
|
+
.sterling-button.tool.blue:not(:disabled):hover {
|
|
10
10
|
background-color: var(--stsv-button__background-color--blue--hover);
|
|
11
11
|
color: var(--stsv-button__color--blue--hover);
|
|
12
12
|
}
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
/* ----- green ----- */
|
|
25
25
|
|
|
26
26
|
.sterling-button.tool.green:not(:disabled) {
|
|
27
|
-
background-color:
|
|
28
|
-
border-color:
|
|
27
|
+
background-color: transparent;
|
|
28
|
+
border-color: transparent;
|
|
29
29
|
color: var(--stsv-button__border-color--green);
|
|
30
30
|
}
|
|
31
31
|
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
/* ----- orange ----- */
|
|
48
48
|
|
|
49
49
|
.sterling-button.tool.orange:not(:disabled) {
|
|
50
|
-
background-color:
|
|
51
|
-
border-color:
|
|
50
|
+
background-color: transparent;
|
|
51
|
+
border-color: transparent;
|
|
52
52
|
color: var(--stsv-button__border-color--orange);
|
|
53
53
|
}
|
|
54
54
|
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
/* ----- red ----- */
|
|
71
71
|
|
|
72
72
|
.sterling-button.tool.red:not(:disabled) {
|
|
73
|
-
background-color:
|
|
74
|
-
border-color:
|
|
73
|
+
background-color: transparent;
|
|
74
|
+
border-color: transparent;
|
|
75
75
|
color: var(--stsv-button__border-color--red);
|
|
76
76
|
}
|
|
77
77
|
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/* ----- Splitter ----- */
|
|
2
|
+
.sterling-splitter {
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: 100%;
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
outline: none;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
display: grid;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.sterling-splitter.horizontal {
|
|
12
|
+
grid-template-columns: 1fr;
|
|
13
|
+
grid-template-rows: minmax(var(--min-primary-size, 0), var(--primary-size)) auto minmax(var(--min-secondary-size, 0), 1fr);
|
|
14
|
+
grid-template-areas: "primary" "split" "secondary";
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.sterling-splitter.vertical {
|
|
18
|
+
grid-template-columns: minmax(var(--min-primary-size, 0), var(--primary-size)) auto minmax(var(--min-secondary-size, 0), 1fr);
|
|
19
|
+
grid-template-rows: 1fr;
|
|
20
|
+
grid-template-areas: "primary split secondary";
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* ----- Panes ----- */
|
|
24
|
+
|
|
25
|
+
.sterling-splitter > .primary,
|
|
26
|
+
.sterling-splitter > .split,
|
|
27
|
+
.sterling-splitter > .secondary {
|
|
28
|
+
box-sizing: border-box;
|
|
29
|
+
outline: none;
|
|
30
|
+
overflow: hidden;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* ----- Primary ----- */
|
|
34
|
+
|
|
35
|
+
.sterling-splitter > .primary {
|
|
36
|
+
grid-area: primary;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.sterling-splitter.horizontal > .primary {
|
|
40
|
+
width: 100%;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.sterling-splitter.vertical > .primary {
|
|
44
|
+
height: 100%;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/* ----- Split ----- */
|
|
48
|
+
|
|
49
|
+
.sterling-splitter > .split {
|
|
50
|
+
display: flex;
|
|
51
|
+
grid-area: split;
|
|
52
|
+
height: 100%;
|
|
53
|
+
width: 100%;
|
|
54
|
+
box-sizing: border-box;
|
|
55
|
+
outline: none;
|
|
56
|
+
overflow: hidden;
|
|
57
|
+
user-select: none;
|
|
58
|
+
transition: background-color 300ms;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.sterling-splitter.horizontal > .split {
|
|
62
|
+
cursor: row-resize;
|
|
63
|
+
width: 100%;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.sterling-splitter.vertical > .split {
|
|
67
|
+
flex-direction: column;
|
|
68
|
+
cursor: col-resize;
|
|
69
|
+
height: 100%;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/* ----- Secondary ----- */
|
|
73
|
+
|
|
74
|
+
.sterling-splitter > .secondary {
|
|
75
|
+
grid-area: secondary;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.sterling-splitter.horizontal > .secondary {
|
|
79
|
+
width: 100%;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.sterling-splitter.vertical > .secondary {
|
|
83
|
+
height: 100%;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/* ----- Default Split ----- */
|
|
87
|
+
|
|
88
|
+
.sterling-splitter > .split > .default-split-line {
|
|
89
|
+
box-sizing: border-box;
|
|
90
|
+
outline: none;
|
|
91
|
+
user-select: none;
|
|
92
|
+
border: none;
|
|
93
|
+
background-color: var(--stsv-button__border-color);
|
|
94
|
+
|
|
95
|
+
transition: background-color 300ms;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.sterling-splitter.horizontal > .split > .default-split-line {
|
|
99
|
+
width: 100%;
|
|
100
|
+
height: 1px;
|
|
101
|
+
margin: 2px 0;
|
|
102
|
+
align-self: center;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.sterling-splitter.vertical > .split > .default-split-line {
|
|
106
|
+
width: 1px;
|
|
107
|
+
height: 100%;
|
|
108
|
+
margin: 0 2px;
|
|
109
|
+
align-self: center;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.sterling-splitter > .split:hover > .default-split-line {
|
|
113
|
+
background-color: var(--stsv-button__border-color--hover);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.sterling-splitter.horizontal > .split:hover > .default-split-line {
|
|
117
|
+
height: 3px;
|
|
118
|
+
margin: 1px 0;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.sterling-splitter.vertical > .split:hover > .default-split-line {
|
|
122
|
+
width: 3px;
|
|
123
|
+
margin: 0 1px;
|
|
124
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import url('./Splitter.base.css');
|
package/css/sterling.css
CHANGED
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
@import url("./sterling/Radio.css");
|
|
23
23
|
@import url("./sterling/Select.css");
|
|
24
24
|
@import url("./sterling/Slider.css");
|
|
25
|
+
@import url("./sterling/Splitter.css");
|
|
25
26
|
@import url("./sterling/Switch.css");
|
|
26
27
|
@import url("./sterling/Tab.css");
|
|
27
28
|
@import url("./sterling/TabList.css");
|