Skip to content

Commit 3c6bb1f

Browse files
committed
feat(styles/components): list styles
1 parent 9c1ff1c commit 3c6bb1f

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
@import './button.css';
2+
@import './card.css';
3+
@import './icon-button.css';
4+
@import './icon.css';
5+
@import './item.css';
6+
@import './list.css';
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
@layer components {
2+
.gecut-list {
3+
&.card {
4+
& .gecut-list-body::-webkit-scrollbar-track {
5+
@apply my-3;
6+
}
7+
8+
& .gecut-list-item {
9+
@apply rounded-md;
10+
}
11+
& .gecut-list-item:first-child {
12+
@apply !rounded-t-2xl;
13+
}
14+
& .gecut-list-item:last-child {
15+
@apply !rounded-b-2xl;
16+
}
17+
18+
&.top-fade::before,
19+
&.bottom-fade::after {
20+
@apply flex absolute content-[''] w-full h-0 shadow-[0_0_24px_8px_rgba(0,0,0,0.8)] z-above shrink-0;
21+
}
22+
&.top-fade::before {
23+
@apply top-0;
24+
}
25+
&.bottom-fade::after {
26+
@apply bottom-0;
27+
}
28+
29+
@apply p-0 m-0;
30+
}
31+
32+
&.scrollable {
33+
.gecut-list-body {
34+
@apply overflow-y-auto scroll-smooth shrink;
35+
}
36+
37+
@apply shrink;
38+
}
39+
40+
& &-body {
41+
@apply flex flex-col;
42+
}
43+
44+
@apply relative flex flex-col shrink-0 overflow-hidden;
45+
}
46+
}

0 commit comments

Comments
 (0)