Skip to content

Commit 0b54a9b

Browse files
committed
Simplify staff table component css nesting
Also remove th, td first-child background color and font weight styles already set in table object css.
1 parent b0b0a88 commit 0b54a9b

1 file changed

Lines changed: 13 additions & 27 deletions

File tree

css/components/staff.css

Lines changed: 13 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -17,36 +17,22 @@
1717
}
1818
}
1919

20-
tbody tr {
21-
td {
22-
&:last-child {
23-
a {
24-
display: flex;
25-
justify-content: center;
20+
tbody td:last-child a {
21+
display: flex;
22+
justify-content: center;
2623

27-
&::before {
28-
content: '';
29-
flex: none;
30-
block-size: 1.5rem;
31-
inline-size: 1.5rem;
32-
background-color: var(--color-gold);
33-
mask: url('data-url:npm:fa-solid/circle-user.svg') center / contain;
34-
}
35-
36-
span {
37-
position: absolute;
38-
inset-inline-start: -9999px;
39-
}
40-
}
41-
}
24+
&::before {
25+
content: '';
26+
flex: none;
27+
block-size: 1.5rem;
28+
inline-size: 1.5rem;
29+
background-color: var(--color-gold);
30+
mask: url('data-url:npm:fa-solid/circle-user.svg') center / contain;
4231
}
4332

44-
th,
45-
td {
46-
&:first-child {
47-
background-color: oklch(95% 0 0deg);
48-
font-weight: 600;
49-
}
33+
span {
34+
position: absolute;
35+
inset-inline-start: -9999px;
5036
}
5137
}
5238
}

0 commit comments

Comments
 (0)