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.TableOfContents(),
Plugin.CrawlLinks({ markdownLinkResolution: "shortest" }), Plugin.CrawlLinks({ markdownLinkResolution: "shortest" }),
Plugin.Description(), Plugin.Description(),
Plugin.HardLineBreaks(),
], ],
filters: [Plugin.RemoveDrafts()], filters: [Plugin.RemoveDrafts()],
emitters: [ emitters: [

View File

@ -27,8 +27,23 @@
--color: #a672c0; --color: #a672c0;
} }
.callout.note { 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 { & table {
margin: 0; margin: 0;
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
@ -65,6 +80,12 @@ ul.overflow::after, ol.overflow::after {
& .center { & .center {
& p { & p {
font-size: 1.15rem; font-size: 1.15rem;
white-space: break-spaces;
hyphens: none;
}
& li {
font-size: 1.15rem;
} }
& h3 { & h3 {