2 posts tagged

my website

Website code intact

The time has come for my website’s code to be cleaned up. Before I refreshed it today, it was a rusty old attic with no sense of order at all. The only reasonable place to have this kind of code is a Halloween website party.

Its incomprehensibility obstructed me from improving my website. While there are no major changes in the design, there is now a starting point for going forward.

What’s new
All colours are specified in RGB;
margins and paddings are in sync with each other as well as being noted correctly;
the amount of styles has been reduced;
code is now easier to read.

robertblinov.net

P. S. May the Force be with my website!

 No comments    4   1 mon   my website   release

The first website in the world with “prefers-color-scheme: dark”

As Apple begins the dark mode revolution, it wants it to be everywhere. I love dark mode, and I agree. A couple of days ago they released a new version of the Safari Developer Preview with support of the CSS feature “prefers-color-scheme: dark”. There is only one website in the world that supports it, and I happen to really like it.

It’s really simple to take advantage of:

@media (prefers-color-scheme: light) {
//code that is//
}

@media (prefers-color-scheme: dark) {
//code that changes//
}

Yep, it’s my website.

 No comments    1   7 mon   Apple   CSS   my projects   my website