@geoffcox/sterling-svelte-themes 2.0.6 → 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 +4 -0
- package/css/sterling/Splitter.base.css +124 -0
- package/css/sterling/Splitter.css +1 -0
- package/css/sterling.css +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -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");
|