Tweaking CSS in Tangent
Adjusting CSS rules for Tangent
Hide filename top header if there’s a level 1 header.
Code Sample
:where(main):has(article h1) > :where(header) {
display: none;
}
Colorize emphasized text and strongly emphasized text so ADHD brain notices there might be something important there.
Code Sample
:where(main) :is(em, strong) {
color: var(--warningTextColor);
}
Diminish my big-ass frontmatter so it’s out of the way until editing time.
Code Sample
:where(div.frontMatter):not(:has([data-focus="focused"])) {
max-height: 5em;
overflow-y: scroll;
background-color: var(--accentDeemphasizedBackgroundColor);
opacity: 0.6;
}
div.frontMatter:not(:has([data-focus="focused"])) :where(.start) {
display: none;
}
Add line numbers to code blocks to see if I can. Not sure if I’ll keep it, but it’s handy to know!
Code Sample
:where(pre) > :where(code) {
counter-reset: line-number;
}
:where(pre) > :where(code) :where(div.line)::before {
content: counter(line-number);
counter-increment: line-number;
display: inline-block;
left: var(--spaceWidth);
margin-right: calc(var(--spaceWidth) * 2.5);
min-width: 1.5rem;
opacity: .3;
position: sticky;
text-align: right;
}
Activity Log
hackers.town: 2025-03-08 Sat 06:57
Sudden urge to watch Noises Off again.
A collection of legends.
noises off 1992 michael caine - YouTube
hackers.town: 2025-03-08 Sat 08:40
Ways to make a character autistic-coded before we knew “autistic-coded” could be anything but Rainman.
Freddy: The only thing I like about tech rehearsals is you get a chance to sit on the furniture.
Belinda: It’s so nice to see you cheering up and making a joke!
Freddy: Oh, was that a joke?
hackers.town: 2025-03-08 Sat 08:45
and also getting hung up on the logic of an action his character takes
Freddy: Lloyd, I know it’s rather late in the day to go into this, but–
Lloyd: No Freddy, we’ve got several more minutes left before we open.
Freddy: Thank you, Lloyd. As long as we’re not too rushed.
hackers.town: 2025-03-08 Sat 09:26
I’m also remembering another favorite, Death Trap (1982). If I had a nickel for every play-within-a-play-about-a-play featuring Michael Caine and Christopher Reeve I’d have ten cents which isn’t much but the fact that there’s more than one is kind of a shock.
hackers.town: 2025-03-08 Sat 13:47
Having more fun tweaking CSS in Tangent
hackers.town: 2025-03-08 Sat 22:42
oh no people in other regions are fiddling with their clocks
time to be extra special confused for a bit again
hackers.town: 2025-03-08 Sat 22:48
see this part of Arizona doesn’t do daylight savings, so local time is best expressed as UTC-7
or 1861 depending on what you mean