Aside

My Bearblog theme CSS, lightly annotated

After Robert mentioned my post on short-form content, I received questions about the CSS I shared. I also saw a few test pages in the discovery feed.

It became clear that pre-existing theme CSS played a large role in whether the CSS I shared worked out-of-the-box. For some themes, further CSS adjustments were needed to properly style & display the embedded content.

I tried to address the most common issues in the FAQ.


A few people expressed interest in learning CSS. One asked, "Do you have any advice for self-learning?"

I shared that I sharpened my CSS skills as a teen from customizing blogs and personal websites. (I designed & wrote CSS for a lot of LiveJournal and MySpace pages for myself & friends.) I learned by reading the source code of websites I liked. A lot of it was trying different things and seeing what worked.

Today, a similar path might be customizing Bearblog pages. There's a community here exploring CSS & JS extensions on their blogs, and many are learning in public.

For those brand new to websites, HTML for People is a good intro to HTML & CSS.

And for those who understand the basics, I think right-click & Inspect goes a long way. When I'm interested in how a website looks, I examine how it was built. I also often refer to Mozilla's web docs, CSS: Cascading Style Sheets. It's a good reference for everything that's possible with CSS.


My theme CSS

In the spirit of learning in public, I wanted to share my Bearblog's theme CSS and the Markdown for my pages.

For reference, I have a test page that demos how all of the styles look.

Some notes: