Skip to content

Commit 9c1ff1c

Browse files
committed
feat(styles/components): item styles
1 parent e7a3e37 commit 9c1ff1c

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
@layer components {
2+
.gecut-list-item {
3+
&.interactive {
4+
@apply focus-ring-inner state-onSurface;
5+
}
6+
&.multiline {
7+
.gecut-list-item-content {
8+
@apply min-h-12;
9+
}
10+
}
11+
&.supporting-text-two-line {
12+
.gecut-list-item-leading {
13+
@apply items-start;
14+
}
15+
.gecut-list-item-supporting-text {
16+
@apply line-clamp-2;
17+
}
18+
}
19+
20+
& &-body {
21+
@apply flex gap-4 py-3 px-4;
22+
}
23+
24+
& &-leading {
25+
@apply empty:hidden flex items-center shrink-0;
26+
}
27+
& &-content {
28+
@apply flex flex-col min-h-8 grow justify-center;
29+
}
30+
& &-trailing {
31+
@apply empty:hidden flex justify-center items-center shrink-0 gap-4;
32+
}
33+
34+
& &-headline {
35+
@apply text-onSurface text-bodyLarge text-start line-clamp-1;
36+
}
37+
& &-supporting-text {
38+
@apply text-onSurfaceVariant text-bodyMedium line-clamp-1 text-start;
39+
}
40+
41+
& &-trailing-supporting-text {
42+
@apply text-onSurfaceVariant text-labelSmall;
43+
}
44+
45+
& &-slot-avatar-character {
46+
@apply bg-tertiaryContainer text-onTertiaryContainer uppercase size-10 flex items-center justify-center text-bodyLarge rounded-full;
47+
}
48+
& &-slot-thumbnail {
49+
img {
50+
@apply w-full h-full object-cover;
51+
}
52+
53+
@apply size-14 rounded elevation-1;
54+
}
55+
56+
@apply relative flex flex-col shrink-0 select-none list-none w-full bg-transparent text-onSurface overflow-hidden rounded-lg disabled:cursor-default disabled:pointer-events-none;
57+
}
58+
}

0 commit comments

Comments
 (0)