chirun-ncl / chirun

A Python package providing the command line interface for building flexible and accessible content with Chirun.
https://chirun.org.uk/
Other
29 stars 4 forks source link

A few style suggestions #188

Closed chrismgraham closed 9 months ago

chrismgraham commented 9 months ago

A few suggestions for style changes that I've added to custom.css but think might be appropriate for the main stylesheet. Feel free to ignore any that are just my personal likes!

item-content h3 {

margin-top: calc(2*var(--spacing)); }


- For code display, my preference is for the code output blocks to be pressed up to the input box that's usually above it. I find that the following works reliably when changing font size etc. Obviously a standalone block you wouldn't want this, so I wonder if there's a case for having an output class that has negative margin and a standalone class that doesn't

.output-block{ margin-top: -1em; }


- And finally, I found that the code blocks didn't really stand out from the main text, particularly the output which I think uses the page background colour. So I'm in favour of something like

pre { border: 1px solid #CCC; }

christianp commented 9 months ago

Can you give an example of what you mean about .output-block?

chrismgraham commented 9 months ago

Sure, so this code

2/3
0.6666666666666666

gives this output

Screenshot 2023-09-22 at 10 30 06

and this with the proposed adjustment

Screenshot 2023-09-22 at 10 30 24
chrismgraham commented 9 months ago

Ah, Github rendered the source, but hopefully you can see what I mean