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
This commit is contained in:
Anton Dergunov 2024-08-31 23:34:49 +01:00 committed by GitHub
parent 882556f4e3
commit bdec504edc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1399,7 +1399,7 @@ If your plugin does not need CSS, delete this file.
text-transform: none; text-transform: none;
} }
.ps-root .ps-comment { .ps-root {
font-family: KaTeX_Main, "Times New Roman", Times, serif; font-family: KaTeX_Main, "Times New Roman", Times, serif;
font-weight: 400; font-weight: 400;
font-variant: normal; font-variant: normal;
@ -1407,6 +1407,16 @@ If your plugin does not need CSS, delete this file.
text-transform: none; 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 { .ps-root .ps-linenum {
font-size: 0.8em; font-size: 0.8em;
line-height: 1em; line-height: 1em;