web: nicer tables
This commit is contained in:
@@ -83,6 +83,77 @@ textarea {
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.md-table-scroll {
|
||||
max-width: 100%;
|
||||
margin: 0.35rem 0 1rem;
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
border: 1px solid hsl(var(--border) / 0.86);
|
||||
border-radius: 0.625rem;
|
||||
background: hsl(246 34% 10% / 0.76);
|
||||
box-shadow: inset 0 1px 0 hsl(258 80% 88% / 0.06);
|
||||
}
|
||||
|
||||
.md-content table {
|
||||
width: max-content;
|
||||
min-width: 100%;
|
||||
border-collapse: separate;
|
||||
border-spacing: 0;
|
||||
font-size: 0.94em;
|
||||
line-height: 1.48;
|
||||
}
|
||||
|
||||
.md-table-scroll::-webkit-scrollbar {
|
||||
height: 0.45rem;
|
||||
}
|
||||
|
||||
.md-table-scroll::-webkit-scrollbar-thumb {
|
||||
border-radius: 9999px;
|
||||
background: hsl(263 78% 72% / 0.34);
|
||||
}
|
||||
|
||||
.md-content th,
|
||||
.md-content td {
|
||||
padding: 0.48rem 0.7rem;
|
||||
border-right: 1px solid hsl(var(--border) / 0.72);
|
||||
border-bottom: 1px solid hsl(var(--border) / 0.7);
|
||||
text-align: left;
|
||||
vertical-align: top;
|
||||
word-break: normal;
|
||||
}
|
||||
|
||||
.md-content th:last-child,
|
||||
.md-content td:last-child {
|
||||
border-right: 0;
|
||||
}
|
||||
|
||||
.md-content tr:last-child td {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.md-content th {
|
||||
background: hsl(251 40% 15% / 0.92);
|
||||
color: hsl(258 36% 98%);
|
||||
font-weight: 700;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.md-content td {
|
||||
color: hsl(258 34% 94% / 0.96);
|
||||
}
|
||||
|
||||
.md-content tbody tr:nth-child(odd) td {
|
||||
background: hsl(242 32% 10% / 0.58);
|
||||
}
|
||||
|
||||
.md-content tbody tr:nth-child(even) td {
|
||||
background: hsl(252 36% 13% / 0.46);
|
||||
}
|
||||
|
||||
.md-content tbody tr:hover td {
|
||||
background: hsl(263 46% 20% / 0.48);
|
||||
}
|
||||
|
||||
.md-content p + p {
|
||||
margin-top: 0.85rem;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user