Skip to content

Commit

Permalink
feat(wikitable): ✨ simplify wikitable border styles
Browse files Browse the repository at this point in the history
  • Loading branch information
alistair3149 committed Feb 26, 2024
1 parent bba8398 commit b6872f9
Showing 1 changed file with 2 additions and 22 deletions.
24 changes: 2 additions & 22 deletions resources/skins.citizen.styles/skinning/content.tables.less
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

.wikitable {
margin: var( --space-md ) 0;
border: 1px solid var( --border-color-base );
border-radius: var( --border-radius--medium );
border-spacing: 0;
font-size: var( --font-size-small );

Expand Down Expand Up @@ -46,32 +48,18 @@
th,
td {
border-top: 1px solid var( --border-color-base );

&:first-of-type {
border-left: 1px solid var( --border-color-base );
}

&:last-of-type {
border-right: 1px solid var( --border-color-base );
}
}

&:first-of-type {
th,
td {
border-top: 0;

&:not( :first-child ):not( :last-child ) {
border-top: 1px solid var( --border-color-base );
}

&:first-child {
border-top: 1px solid var( --border-color-base );
border-top-left-radius: var( --border-radius--medium );
}

&:last-child {
border-top: 1px solid var( --border-color-base );
border-top-right-radius: var( --border-radius--medium );
}
}
Expand All @@ -81,18 +69,10 @@
th,
td {
&:first-child {
border-left: 1px solid var( --border-color-base );
border-bottom: 1px solid var( --border-color-base );
border-bottom-left-radius: var( --border-radius--medium );
}

&:not(:first-child):not(:last-child) {
border-bottom: 1px solid var( --border-color-base );
}

&:last-child {
border-right: 1px solid var( --border-color-base );
border-bottom: 1px solid var( --border-color-base );
border-bottom-right-radius: var( --border-radius--medium );
}
}
Expand Down

0 comments on commit b6872f9

Please sign in to comment.