File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5252 font-weight : 425 ;
5353}
5454
55+ /* UTILITIES / DECORATION / SHADOWS
56+ =================================================== */
57+ @utility shadow-sm-b {
58+ box-shadow : 0 3px 2px -1px hsl (0deg 0% 90% ), 0 1px 2px hsl (0deg 0% 90% );
59+ & : where (.dark , .dark * ) {
60+ box-shadow : unset;
61+ }
62+ }
63+
5564/* UTILITIES / STATES
5665=================================================== */
5766/* Here we typically need a negative outline-offset because of the inner shadow on inputs */
130139 @apply bg-white/85 backdrop-blur-sm;
131140}
132141
133- /* UTILITIES / STATES / DECORATION / MASK BACKGROUND
142+ /* UTILITIES / DECORATION / MASK BACKGROUND
134143=================================================== */
135144/* Notes...
136145
181190 }
182191}
183192
184- /* UTILITIES / STATES / DECORATION / ARCHIECTURAL LINES
193+ /* UTILITIES / DECORATION / ARCHIECTURAL LINES
185194=================================================== */
186195/* Notes...
187196
283292 }
284293}
285294
286- /* UTILITIES / STATES / DECORATION / CHECKERBOARD
295+ /* UTILITIES / DECORATION / CHECKERBOARD
287296=================================================== */
288297@utility bg-checkerboard {
289298 --checkerboard-light : url ("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h12v12H0zm12 12h12v12H12z' fill='%23f3f4f6'/%3E%3C/svg%3E" );
Original file line number Diff line number Diff line change 11/* ==========================================================================
22 TABLES
33 ========================================================================== */
4-
54.data-table {
65 @apply w-full max-w-full outline-hidden text-gray-500 antialiased border-separate border-spacing-y-0 min-w-full overflow-x-auto text-start;
76
2928 }
3029
3130 tbody {
32- @apply text-sm bg-white dark:bg-gray-900 shadow-sm rounded-xl outline-none;
31+ @apply text-sm shadow-sm-b rounded-xl outline-none;
3332 .contained & {
3433 @apply shadow-none rounded-none;
3534 }
4140 @apply ltr:rounded-tl-xl rtl:rounded-tr-xl;
4241 }
4342
43+ td {
44+ @apply border-t border-t-gray-200 dark:border-t-gray-800;
45+ }
46+
4447 td : last-child ,
4548 th : last-child {
4649 @apply ltr:rounded-tr-xl rtl:rounded-tl-xl;
4750 }
48-
49- td {
50- @apply border-0;
51- }
5251 }
5352
5453 & : last-child {
5554 @apply border-none;
5655
56+ td {
57+ @apply border-b border-b-gray-200 dark:border-b-gray-800;
58+ }
59+
5760 td : first-child ,
5861 th : first-child {
5962 @apply ltr:rounded-bl-xl rtl:rounded-br-xl;
6568 }
6669 }
6770
68- & : hover {
69- @apply bg-gray-50 dark:bg-white/2.5;
70- }
71-
7271 th {
7372 @apply py-2 ltr:pr-4 rtl:pl-4;
7473 }
7574
7675 td {
76+ @apply bg-white dark:bg-gray-900;
7777 @apply pl-4.5 pr-2.5 py-3 border-t border-gray-200 dark:border-white/10;
7878 @apply text-gray-900 dark:text-gray-200;
79+ & : first-child {
80+ @apply border-s border-s-gray-200 dark:border-s-gray-800;
81+ }
82+ & : last-child {
83+ @apply border-e border-e-gray-200 dark:border-e-gray-800;
84+ }
85+ }
86+
87+ /* When the row is hovered, change the background of all its cells to a hover state color */
88+ & : has (: hover ) td {
89+ @apply bg-gray-50 dark:bg-white/2.5;
7990 }
8091 }
8192
You can’t perform that action at this time.
0 commit comments