Remove !important from table styles and improve selector specificity
- Remove all !important declarations from table cell styles in _index.scss - Increase selector specificity by changing .location-cell to td.location-cell - Change .details-cell to td.details-cell, .time-cell to td.time-cell, etc. - This eliminates the need for !important while maintaining proper cascade order - Follows CSS best practices for maintainable and readable stylesheets
This commit is contained in:
parent
9716fe9f1d
commit
4f6b158022
2 changed files with 10 additions and 10 deletions
File diff suppressed because one or more lines are too long
|
@ -146,7 +146,7 @@
|
|||
td {
|
||||
padding: 1rem;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
color: var(--text-color) !important;
|
||||
color: var(--text-color);
|
||||
vertical-align: top;
|
||||
|
||||
&:first-child {
|
||||
|
@ -171,8 +171,8 @@
|
|||
}
|
||||
|
||||
// Specific cell styles
|
||||
.location-cell {
|
||||
color: var(--text-color) !important;
|
||||
td.location-cell {
|
||||
color: var(--text-color);
|
||||
font-size: $font-size-sm;
|
||||
font-weight: 500;
|
||||
max-width: 250px;
|
||||
|
@ -181,8 +181,8 @@
|
|||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.details-cell {
|
||||
color: var(--text-color) !important;
|
||||
td.details-cell {
|
||||
color: var(--text-color);
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
max-width: 200px;
|
||||
|
@ -192,14 +192,14 @@
|
|||
font-style: italic;
|
||||
}
|
||||
|
||||
.time-cell {
|
||||
color: var(--text-color) !important;
|
||||
td.time-cell {
|
||||
color: var(--text-color);
|
||||
font-size: 12px;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.remaining-cell {
|
||||
color: var(--text-color) !important;
|
||||
td.remaining-cell {
|
||||
color: var(--text-color);
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue