-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlist.css
75 lines (60 loc) · 1.29 KB
/
list.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/* Lists - Base Styles */
ul, ol {
@apply my-4 pl-8 text-gray-800 dark:text-gray-400 marker:text-yellow-700 dark:marker:text-yellow-400;
}
li {
@apply my-4 text-sm sm:text-lg md:text-xl leading-relaxed tracking-wide;
}
/* Unordered Lists */
ul {
@apply list-disc;
}
ul ul {
@apply list-circle mt-2 mb-4;
}
ul ul ul {
@apply list-square;
}
/* Ordered Lists */
ol {
@apply list-decimal;
}
ol ol {
@apply list-alpha mt-2 mb-4;
}
ol ol ol {
@apply list-roman;
}
/* Responsive Adjustments */
@media (max-width: 640px) {
ul, ol {
@apply pl-6;
}
li {
@apply text-base;
}
}
/* Interactive States */
li:hover {
@apply text-gray-700 dark:text-gray-300 transition-colors duration-200;
}
/* List Groups */
ul[role="listbox"],
ol[role="listbox"] {
@apply divide-y divide-gray-200 dark:divide-gray-700;
}
ul[role="listbox"] li,
ol[role="listbox"] li {
@apply py-3 px-4 cursor-pointer hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors duration-200;
}
/* Breadcrumb Lists */
ul[role="breadcrumb"] {
@apply flex flex-wrap list-none pl-0 items-center;
}
ul[role="breadcrumb"] li {
@apply flex items-center;
}
ul[role="breadcrumb"] li:not(:last-child)::after {
content: "/";
@apply mx-2 text-gray-600 dark:text-gray-400;
}