From: Lady Date: Sun, 24 Sep 2023 22:19:58 +0000 (-0400) Subject: Improve timeline styling X-Git-Tag: 0.4.1^0 X-Git-Url: https://git.ladys.computer/GitWikiWeb/commitdiff_plain/fe585e579bb3362a929b2ea5083d64666ca5bb49 Improve timeline styling --- diff --git a/style.css b/style.css index d53f889..47eabe8 100644 --- a/style.css +++ b/style.css @@ -30,6 +30,15 @@ ol,ul{ Margin-Block: .75EM; Padding-Inline: 2EM 0 } .thread>:is(ol,ul)>li:First-Child{ Margin-Block-Start: -.5EM; Border-Block-Start: None } .thread li::before{ Position: Absolute; Inset-Block-Start: .5EM; Inset-Inline-Start: 0; Content: "💭" } .thread li li li li li :is(ol,ul){ Padding-Inline: 0; List-Style-Position: Inside } +.timeline>details>summary{ Box-Sizing: Border-Box; Margin-Block: 0 .75EM; Margin-Inline: 1PX; Border-Bottom: Thin Solid; Padding-Inline: 1CH; Min-Inline-Size: Calc(8EM / 1.5); Inline-Size: Max-Content; Max-Inline-Size: Calc(100% - 2PX); Font-Size: 1.5EM; Font-Weight: 550 } +.timeline>details>dl{ Margin-Block: 0 } +.timeline>details>dl>div { Position: Relative; Margin-Block: .75EM; Border: Thin Solid; Border-Radius: .5EM; Padding-Inline-Start: 8EM } +.timeline>details>dl>div>dt { Position: Absolute; Box-Sizing: Border-Box; Inset-Block: 0; Inset-Inline: 0 Auto; Margin: Auto; Padding-Inline: 1CH; Block-Size: 1EM; Inline-Size: 8EM; Text-Align: End; Line-Height: 1 } +.timeline>details>dl>div>dd { Display: Flow-Root; Margin: 0; Border-Inline-Start: Thin Solid; Padding-Block: .5EM } +.timeline>details>dl>div>dd>ul { Margin: 0; Padding: 0 } +.timeline>details>dl>div>dd>ul>li { Display: Block; Padding-Inline: 2CH } +.timeline>details>dl>div>dd>ul>li+li { Margin-Block-Start: .5EM; Border-Block-Start: Thin Dashed } +.timeline>details>dl>div>dd>ul>li>small:First-Child { Opacity: .6 } dl{ Margin-Block: 1EM } dt{ Margin-Block: 1EM .5EM; Font-Weight: 650 } hr{ Margin-Block: .5EM; Border-Block-Start: Thin Dashed; Border-Block-End: None; Border-Inline: None }