Skip to content

Move quoteback-component styles from inline HTML to main CSS file - #13

Merged
MattSLangford merged 1 commit into
microdotblog:mainfrom
chasenlehara:main
Jun 25, 2025
Merged

MattSLangford merged 1 commit into
microdotblog:mainfrom
chasenlehara:main

Conversation

@chasenlehara

Copy link
Copy Markdown
Contributor

This change relocates the quoteback-component block styles from layouts/_default/baseof.html to static/css/main.css to keep styling in the stylesheet and remove a validation error from having it in the <body>.

This has a downside: If someone has used microhook-uncss.html, now this style won’t be defined for them. I think this is ok—the component still shows up, it just doesn’t have these nicer styles.

There’s an upside too: Now that these styles are in the main.css, they’re easier to override without !important in a user’s custom.css.

This change can be seen live here: https://web.chasen.dev/2025/06/18/one-of-the-things-i.html

This change relocates the `quoteback-component` block styles from `layouts/_default/baseof.html` to `static/css/main.css` to keep styling in the stylesheet and remove a validation error from having it in the `<body>`.

This has a downside: If someone has used `microhook-uncss.html`, now this style won’t be defined for them. I think this is ok—the component still shows up, it just doesn’t have these nicer styles.

There’s an upside too: Now that these styles are in the `main.css`, they’re easier to override without `!important` in a user’s `custom.css`.
@MattSLangford
MattSLangford merged commit fdc161a into microdotblog:main Jun 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants