< Notes...

there really are no uninteresting things...

Found 6 notes tagged as “css”, as shown below. All notes in chronological order.

See all available tags...

amazon4 apple102 appletv6 architecture2 art22 birthdays11 claudine15 cryptography14 css6 design25 disney+3 elders5 family33 finances18 fonts22 food34 friends41 games38 george17 github6 google20 hbomax3 health46 help8 holidays15 horsie52 html3 hugo36 hulu6 humans37 humour67 interesting49 japan38 kdramas9 lawn21 life152 llm53 manga9 martin9 me109 memes1 movies51 mum21 music11 netflix26 nyc11 oobie25 paramount1 philosophy46 pinned1 politics125 prime3 quotes26 random83 rants167 re9 ring2 science8 security10 selfhost15 series55 social47 staticgen5 tech284 tesla6 themet5 thoughts146 travels10 tubes91 unix24 via68 videos17 weather50 woodblock5 work71 wwdc3 youtube19

07 Oct 2025 @ 08:54:34

These are 100 bytes of CSS that will pretty much make any “vanilla” HMTL look good. I have tested it, and it does look good indeed!

html {
  max-width: 70ch;
  padding: 3em 1em;
  margin: auto;
  line-height: 1.75;
  font-size: 1.25em;
}

If we add an additional, but optional, 100 bytes—so, 200 bytes in total then—things can get much prettier (this works as a light theme).

h1,h2,h3,h4,h5,h6 {
  margin: 3em 0 1em;
}

p,ul,ol {
  margin-bottom: 2em;
  color: #1d1d1d;
  font-family: sans-serif;
}
css html
04 Oct 2025 @ 12:42:59

Just came across daisyUI and, though perhaps overkill for anything I might need at a personal level, it looks truly amazing. It has pretty much all the components to create a uniform, powerful, beautiful looking web interface. That is, whether an application, or a website. It’s lovely!

css html
02 Aug 2025 @ 15:18:22

I am defeated by Hugo’s syntax highlighter. I don’t use code blocks much around here, but the few I have do not want to play nice, and show fonts with different sizes on desktop, and mobile. I haven’t been able to figure out, for the good of me, how to fix that weird behaviour. For now, the few code blocks I around have syntax highlighting turned off.

Update: 06 Oct 2025 @ 19:34:06

OMG! This guy is a saviour! In his own words:

“Lately, I’ve been coming across many blogs that have weird font-size rendering issues for code blocks on iOS. Basically, in a code snippet, the text-size would sometimes be much larger for some lines than others.”

Exactly my problem. Applied the fix he recommends and, boom, just like that, magic! Thank you, Nathan!

code {
    text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}
css hugo
26 May 2025 @ 17:01:59

I didn’t know about this one, but I can assure you it will add some genuine je ne sais quoi to the transition between pages within your website. In use here now, and forever. Try it!

@media screen and (prefers-reduced-motion: no-preference) {
        @view-transition {
                navigation: auto;
        }
}

➝ Via Ariel Salminen.

css tech
19 Sep 2023 @ 19:33:51

I was having a weird issue in which blue heart next to the timestamp would appear off place, and quickly jump into place on page load/refresh. Took the problem over IRC (Libera.Chat) #css channel and, sure enough, hassoon and DPA found the issue, and provided a solution, in no time.

Suffice it to say, very, very grateful.

css social
31 May 2023 @ 12:41:00

CommonMark’s ability to set classes and identifiers is amazing. Hugo (which I use to generate this notes) is using it. They work like so, in CommonMark markdown:

Hello world.
{.foo .bar #foh}

Which, in turn, will render and HTML code like this:

<p class="foo bar" id="foh">Hello world.</p>

Now all you have to do is define the class and id on your CSS, or whatever. Neat, right?

css hugo tech