pfy.css

The pfy.ch stylesheet

For the small tools I make that should look like the site.

This is the CSS pfy.ch uses, pulled out so I can use it on other things. It styles plain HTML tags, so you don't need any classes. The body is the glass panel over the background, and the header, footer and anything directly inside main turn into cards. Links to other pages are underlined, and links to other sites also get a ↗︎. Put text in a sparkle span to give it the logo gradient.

Text

Inline elements

Footnotes1, H2O, x2, ⌘ K, highlighted text, crossed out text and small text.

Blockquotes get a line down the left side and nothing else.
const example = 'long lines in a code block scroll sideways instead of wrapping';
  1. Footnotes use the same markup marked outputs, so posts work as they are. ↩

Rows

A div directly inside main becomes a row, and each thing inside it becomes a card. Cards go next to each other until one would be narrower than about 300px, then they wrap. Add style="flex-grow: 2" to a card to make it wider.

A <figure> in a row is a photo card, like the ones on the home page. It gets the same 8px border as the other cards, is cropped from the top, and is as tall as the card next to it.

Photo from the pfy.ch home page

Forms & buttons

Inputs have square corners. Buttons swap colours when you hover them and sit on a dithered shadow.

Visibility

Graphs

Bar graphs are in a separate file, graphs.css. It does the simple bar graph here and the timeline below.

Estrogen levels

Made up numbers. Grey bars are estimates, the solid one is today.

My current level is estimated @ 1282 pmol/L

2026 SEP 16
2026 SEP 26
2026 OCT 06
2026 OCT 16
2026 OCT 26
2026 NOV 05
2026 NOV 15
2026 NOV 25
2026 DEC 05
2026 DEC 15
2026 DEC 25

From “2 Years on HRT”

Timeline

The bars are blood test results, and the notes in between are what changed.

Before starting any medication I got an initial blood testing done

14/06/2024

I then started on Gel, before quickly swapping to patches

05/09/2024
05/12/2024

I swap to 1x 100mg pellet implant

27/05/2025

My body quickly metabolises the implant and my levels don't stay high for as long as expected

05/07/2025

I get 2x 100mg pellets implanted

18/09/2025
21/01/2026

Another 2x Implants + Monotherapy!

20/05/2026

Levels have finally stabilised ~

Data

Asset Format Size
caustic avif 46 kB
caustic webp 273 kB
caustic gif 581 kB
Details

This was hidden until you opened it.

Using it

Add the stylesheet to your page:

<link rel="stylesheet" href="https://pfy.ch/styles/pfy.css">

If you want the graphs too, add https://pfy.ch/styles/graphs.css. The theme is light unless you set data-theme="dark" or data-theme="auto" on <html>. Changing it inside document.startViewTransition(() => …) makes it fade.

Or use it from Sass with your own settings:

@use 'pfy' with ($caustic: '/caustic', $width: 800px);

Source: pfy.scss

Discard draft?

This deletes the copy on this device. The branch on Forgejo isn't touched.