@skeletonlabs/skeleton-common 4.7.4 → 4.9.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/package.json +1 -1
- package/src/components/carousel.css +51 -0
- package/src/components/navigation.css +43 -0
- package/src/index.css +1 -0
package/package.json
CHANGED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
[data-scope='carousel'] {
|
|
2
|
+
&[data-part='root'] {
|
|
3
|
+
:has(> [data-orientation='horizontal']) & {
|
|
4
|
+
width: 100%;
|
|
5
|
+
}
|
|
6
|
+
:has(> [data-orientation='vertical']) & {
|
|
7
|
+
height: 100%;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/* &[data-part='control'] {} */
|
|
12
|
+
|
|
13
|
+
/* &[data-part='prev-trigger'] {} */
|
|
14
|
+
/* &[data-part='next-trigger'] {} */
|
|
15
|
+
/* &[data-part='autoplay-trigger'] {} */
|
|
16
|
+
|
|
17
|
+
&[data-part='item-group'] {
|
|
18
|
+
display: flex;
|
|
19
|
+
gap: --spacing(4);
|
|
20
|
+
|
|
21
|
+
:has(> [data-orientation='horizontal']) & {
|
|
22
|
+
flex-direction: row;
|
|
23
|
+
}
|
|
24
|
+
:has(> [data-orientation='vertical']) & {
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* &[data-part='item'] {} */
|
|
30
|
+
|
|
31
|
+
&[data-part='indicator-group'] {
|
|
32
|
+
display: flex;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
gap: --spacing(2);
|
|
35
|
+
margin-top: --spacing(4);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&[data-part='indicator'] {
|
|
39
|
+
border: 1px solid var(--color-surface-500);
|
|
40
|
+
display: block;
|
|
41
|
+
width: --spacing(4);
|
|
42
|
+
aspect-ratio: 1 / 1;
|
|
43
|
+
border-radius: 100%;
|
|
44
|
+
|
|
45
|
+
&[data-current] {
|
|
46
|
+
background-color: var(--color-surface-950-50);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* &[data-part='progress-text'] {} */
|
|
51
|
+
}
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
&[data-layout='sidebar'] {
|
|
49
49
|
display: flex;
|
|
50
50
|
flex-direction: column;
|
|
51
|
+
width: 100%;
|
|
51
52
|
gap: --spacing(2);
|
|
52
53
|
}
|
|
53
54
|
}
|
|
@@ -74,6 +75,48 @@
|
|
|
74
75
|
&[data-layout='sidebar'] {
|
|
75
76
|
flex-direction: column;
|
|
76
77
|
align-items: stretch;
|
|
78
|
+
width: 100%;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&[data-part='trigger'],
|
|
83
|
+
&[data-part='trigger-anchor'] {
|
|
84
|
+
@apply btn hover:preset-tonal;
|
|
85
|
+
|
|
86
|
+
&[data-layout='bar'] {
|
|
87
|
+
flex-direction: column;
|
|
88
|
+
align-items: center;
|
|
89
|
+
gap: --spacing(1);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&[data-layout='rail'] {
|
|
93
|
+
aspect-ratio: 1 / 1;
|
|
94
|
+
width: 100%;
|
|
95
|
+
max-width: 84px;
|
|
96
|
+
display: flex;
|
|
97
|
+
flex-direction: column;
|
|
98
|
+
align-items: center;
|
|
99
|
+
gap: 0.5;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&[data-layout='sidebar'] {
|
|
103
|
+
justify-content: start;
|
|
104
|
+
padding-inline: --spacing(2);
|
|
105
|
+
width: 100%;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
&[data-part='trigger-text'] {
|
|
110
|
+
&[data-layout='bar'] {
|
|
111
|
+
font-size: --spacing(2.5);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&[data-layout='rail'] {
|
|
115
|
+
font-size: --spacing(2.5);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&[data-layout='sidebar'] {
|
|
119
|
+
font-size: var(--text-base);
|
|
77
120
|
}
|
|
78
121
|
}
|
|
79
122
|
}
|
package/src/index.css
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@import './components/accordion.css';
|
|
2
2
|
@import './components/app-bar.css';
|
|
3
3
|
@import './components/avatar.css';
|
|
4
|
+
@import './components/carousel.css';
|
|
4
5
|
@import './components/collapsible.css';
|
|
5
6
|
@import './components/combobox.css';
|
|
6
7
|
@import './components/date-picker.css';
|