jlelse's Blog

Thoughts, stories and ideas

Tags: CSS


Be careful when using "::file-selector-button"!

Published on in ๐Ÿ‘จโ€๐Ÿ’ป Dev
Updated on

A reader pointed out to me today that the styling of buttons on my sites was broken in the Firefox ESR version 78. I took this notice as a reason to search for the root cause, because I had already noticed the error in the Tor browser, but I always thought it was due to some security rules.

View

Simple.css and classless CSS frameworks

Published on in ๐Ÿ”— Links

Kev Quirk recently released his new project Simple.css, a CSS stylesheet that focuses on vanilla HTML without classes.

View

Pure CSS Minesweeper

Published on in ๐Ÿ”— Links

I once wrote about pure CSS paintings. Itโ€™s amazing what you can achieve with just HTML and CSS. Another amazing thing is CSS-Sweeper, a Minesweeper clone written in just HTML and CSS. Itโ€™s not the fastest implementation but more a โ€œstress testโ€ and will probably have lags on average computing devices. Nevertheless, itโ€™s awesome! You can play it here.

View

Make your website more printable with @print CSS

Published on in ๐Ÿ‘จโ€๐Ÿ’ป Dev

I just added some CSS rules to my Hugo theme to make my blog more printable. Why and how does this work?

View

"sans-serif" only

Published on in ๐Ÿ‘จโ€๐Ÿ’ป Dev

I used to use system fonts for my blog theme, but I rethought this decision and converted to the following font-family in my CSS:

View

XP.css

Published on in ๐Ÿ”— Links

I shared a link to 98.css the other day. Now there is also XP.css in the style of Windows XP. This brings back some memories, because I actually worked quite a lot with Windows XP. But I am curious about 7.css and 10.css. ๐Ÿ˜‚

View

98.css

Published on in ๐Ÿ”— Links

The first Windows I used was Windows 2000 on the computer my parents gave me sometime in primary school. But with 98.css it is now even possible to make websites in the style of Windows 98. Wouldnโ€™t that be an idea for the next homepage redesign?

View

Pure CSS Lightbox in Hugo theme

Published on in ๐Ÿ‘จโ€๐Ÿ’ป Dev

Hugo themes have the option to override the default rendering of Markdown images by using โ€œMarkdown Render Hooksโ€ since version 0.62.0. By creating a file in layouts/_default/_markup named render-image.html it is possible to use a custom template for rendered images. This gives a lot of flexibility. I just used that flexibility to create a lightbox with pure CSS (without using JavaScript, like many lightbox implementations do). After clicking (or tapping) on an content image, you will see it filling the browser view. Another click brings you back to the content.

View

Use system fonts to make your site load faster

Although itโ€™s great to self-host your web fonts instead of using a service like Google Fonts (that may decrease the privacy of your siteโ€™s visitors, because Google can log IP addresses and other stuff), itโ€™s probably not necessary to use web fonts at all. Every PC or tablet or phone has a lot of fonts already pre-installed, which are more than perfect for displaying your website (unless you take a lot of care about corporate design or your personal brand and require a specific font).

View

SCSS adventures

Published on in ๐Ÿ’ญ Thoughts

Iโ€™m currently in the process of improving my sites Hugo theme. I removed features I never used and simplified unorganized HTML and CSS, to enable adding new features (like better support for IndieWeb things) later.

View

Next

Jan-Lukas Else