♻️ refactor: unify table styling
This commit is contained in:
parent
8e1473bba9
commit
787243c3c5
@ -112,35 +112,6 @@ a:not(.no-hover-padding):hover::before {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
table {
|
|
||||||
justify-self: center;
|
|
||||||
font: inherit;
|
|
||||||
overflow: hidden;
|
|
||||||
border-style: hidden !important;
|
|
||||||
margin: 2rem 0;
|
|
||||||
min-width: 400px;
|
|
||||||
border: none;
|
|
||||||
margin-left: auto;
|
|
||||||
margin-right: auto;
|
|
||||||
min-width: 13rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
table thead tr {
|
|
||||||
background-color: var(--primary-color);
|
|
||||||
color: var(--hover-color);
|
|
||||||
text-align: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
table th,
|
|
||||||
table td {
|
|
||||||
padding: 0.5em 0.7em;
|
|
||||||
font-family: 'Source Serif Pro', serif;
|
|
||||||
}
|
|
||||||
|
|
||||||
table tbody tr:nth-child(even) {
|
|
||||||
background-color: var(--bg-0);
|
|
||||||
}
|
|
||||||
|
|
||||||
.footnote-reference {
|
.footnote-reference {
|
||||||
font-family: var(--serif-font);
|
font-family: var(--serif-font);
|
||||||
font-size: 0.7rem;
|
font-size: 0.7rem;
|
||||||
|
@ -1,15 +1,27 @@
|
|||||||
table {
|
table {
|
||||||
border-spacing: 0;
|
border-spacing: 0;
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
|
justify-self: center;
|
||||||
|
font: inherit;
|
||||||
|
overflow: hidden;
|
||||||
|
border-style: hidden !important;
|
||||||
|
margin: 2rem auto;
|
||||||
|
min-width: 13rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
table th {
|
table th,
|
||||||
|
table td {
|
||||||
padding: 6px 13px;
|
padding: 6px 13px;
|
||||||
border: 1px solid #dfe2e5;
|
border: 1px solid #dfe2e5;
|
||||||
font-size: large;
|
font-size: large;
|
||||||
}
|
}
|
||||||
|
|
||||||
table td {
|
table thead tr {
|
||||||
padding: 6px 13px;
|
background-color: var(--primary-color);
|
||||||
border: 1px solid #dfe2e5;
|
color: var(--hover-color);
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
table tbody tr:nth-child(even) {
|
||||||
|
background-color: var(--bg-0);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user