Skip to content

Commit

Permalink
feat(core): ✨ clean up th styles
Browse files Browse the repository at this point in the history
- th should not use the same styles as label
- Restore font weight and color to th
- Sync different th styles in extensions
  • Loading branch information
alistair3149 committed Jul 7, 2024
1 parent fccc024 commit 232fd0c
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 29 deletions.
1 change: 1 addition & 0 deletions resources/skins.citizen.styles/common/common.less
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ sub {

th {
font-weight: var( --font-weight-semibold );
color: var( --color-emphasized );
}

td {
Expand Down
3 changes: 0 additions & 3 deletions resources/skins.citizen.styles/skinning/content.tables.less
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,7 @@
}

th {
font-weight: var( --font-weight-normal );
color: var( --color-subtle );
text-align: start;
letter-spacing: 0.05em;
}

th,
Expand Down
4 changes: 0 additions & 4 deletions skinStyles/extensions/Cargo/ext.cargo.main.less
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,8 @@ table.cargoTable td {
}

table.cargoTable th {
font-size: var( --font-size-x-small );
font-weight: var( --font-weight-normal );
/* Sync with wikitable */
color: var( --color-subtle );
text-align: start;
letter-spacing: 0.05em;
}

table.cargoTable td {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@
.searchdigest-stats-table thead th {
padding-top: var( --space-xs ) !important;
padding-bottom: var( --space-xs ) !important;
font-weight: var( --font-weight-normal );
color: var( --color-subtle );
letter-spacing: 0.05em;
}

.searchdigest-stats-table thead th,
Expand Down
5 changes: 0 additions & 5 deletions skinStyles/jquery/datatables.less
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@ table.dataTable tfoot th {
table.dataTable thead th,
table.dataTable thead td {
padding: var( --space-xs ) var( --space-sm );
font-size: var( --font-size-x-small );
font-weight: var( --font-weight-normal );
color: var( --color-subtle );
text-align: start;
letter-spacing: 0.05em;
border-bottom-color: var( --border-color-base );
}

Expand Down
14 changes: 1 addition & 13 deletions skinStyles/mediawiki/action/mediawiki.action.view.filepage.less
Original file line number Diff line number Diff line change
Expand Up @@ -148,18 +148,6 @@
.mw_metadata td,
.mw_metadata th {
padding: var( --space-xs );
border: 0;
}

// Citizen label styles
.mw_metadata th {
font-weight: var( --font-weight-normal );
color: var( --color-subtle );
text-align: start;
letter-spacing: 0.05em;
background-color: transparent;
}

.mw_metadata td {
background-color: transparent;
border: 0;
}
1 change: 0 additions & 1 deletion skinStyles/mediawiki/mediawiki.content.json.less
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
}

th {
letter-spacing: 0.05em;
background-color: var( --color-surface-0 );
}

Expand Down

0 comments on commit 232fd0c

Please sign in to comment.