wgrace
December 5, 2022, 5:55am
1
I love that the display of notes can have custom CSS.
I use a large monitor (27-inch) so have some simple CSS to:
Cap the line length for readability.
Use clamp
to have the font size increase/decrease based on note width, along with max and min values, so things don’t get out of hand.
Left and right auto margins to centre the note.
You can view a small video of this in action should it interest anyone.
4 Likes
hbowie
December 5, 2022, 3:32pm
2
Very cool! Thanks for making and sharing the video!
learg12
November 9, 2024, 12:35am
3
Hey @wgrace Winston, I’m just starting to learn/understand HTML and CSS. In your video (which is very helpful btw), is the CSS thing that limits the width of the text the max-width element? Just trying to understand whether padding works to keep the text squished in a certain distance from the edge of the note.
zgr
November 9, 2024, 8:52am
4
@wgrace I wasn’t aware of that ‘clamp’ property. Thanks for sharing!
wgrace
November 11, 2024, 4:19pm
5
Yep, that max-width
. Those rules are being applied to the body
element of the HTML from memory.
wgrace
November 11, 2024, 4:20pm
6
No worries, CSS has certainly come a long way.
wgrace
November 11, 2024, 4:21pm
7
This has reminded me of a feature request thats been banging around in my head for awhile.