From bdec504edc0f12908e7104bdbe37beca8f8ce3fe Mon Sep 17 00:00:00 2001 From: Anton Dergunov <1549134+anton-dergunov@users.noreply.github.com> Date: Sat, 31 Aug 2024 23:34:49 +0100 Subject: [PATCH] Right alignment for the comments Make the comments look more like in LaTeX package documentation: https://ctan.math.washington.edu/tex-archive/macros/latex/contrib/algpseudocodex/algpseudocodex.pdf --- styles.css | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/styles.css b/styles.css index 8a39ce1..d483274 100644 --- a/styles.css +++ b/styles.css @@ -1399,12 +1399,22 @@ If your plugin does not need CSS, delete this file. text-transform: none; } -.ps-root .ps-comment { - font-family: KaTeX_Main, "Times New Roman", Times, serif; - font-weight: 400; - font-variant: normal; - font-style: normal; - text-transform: none; +.ps-root { + font-family: KaTeX_Main, "Times New Roman", Times, serif; + font-weight: 400; + font-variant: normal; + font-style: normal; + text-transform: none; +} + +.ps-comment { + font-family: KaTeX_Main, "Times New Roman", Times, serif; + font-weight: 400; + font-variant: normal; + font-style: italic; + text-transform: none; + opacity: 70%; + float: right; } .ps-root .ps-linenum { @@ -1468,4 +1478,4 @@ If your plugin does not need CSS, delete this file. background-color: white; opacity: 1; color: black; -} \ No newline at end of file +}