Better styling: tables with borders, line breaks

This commit is contained in:
Théo Marchal 2024-04-08 00:04:39 +02:00
parent 6e29281f91
commit e86450abd3
2 changed files with 22 additions and 2 deletions

View File

@ -69,7 +69,6 @@ const config: QuartzConfig = {
Plugin.TableOfContents(),
Plugin.CrawlLinks({ markdownLinkResolution: "shortest" }),
Plugin.Description(),
Plugin.HardLineBreaks(),
],
filters: [Plugin.RemoveDrafts()],
emitters: [

View File

@ -27,8 +27,23 @@
--color: #a672c0;
}
table {
border: 2px solid var(--gray);
& thead > tr {
border-bottom: 2px solid var(--lightgray);
& th {
border: 1px solid var(--lightgray);
}
}
& td {
border: 1px solid var(--lightgray);
}
}
.callout.note {
& table {
margin: 0;
margin-bottom: 0.5rem;
@ -65,8 +80,14 @@ ul.overflow::after, ol.overflow::after {
& .center {
& p {
font-size: 1.15rem;
white-space: break-spaces;
hyphens: none;
}
& li {
font-size: 1.15rem;
}
& h3 {
font-size: 1.5rem;
}