Rasmus​.krats​.se

Denna sida på svenska

Posts tagged “css”

Reminiscing this and that, on the web since 1994.

Rsass 0.28.0 released

Posted 2023-07-09 12:45. Tagged , , , , .

It is time to announce rsass, rsass-macros and rsass-cli version 0.28.0. Almost half a year has gone since the last release, and as usual, there is a bunch of breaking changes and a bunch of improvements.

A small symbolic milestone is that 2/3 of the tests in sass-spec now passes (up from 66.5 % in the previous release to 66.8 % now). Also, I have reduced the number of cases where rsass fails with the wrong output even further.

My thanks to new contributor Grey Hill.

Read whole Rsass 0.28.0 released.

Rsass 0.27.0 released

Posted 2023-01-17 21:06. Tagged , , , , .

Again, after almost four months since the last release, it is time to announce rsass 0.27.0. There is a bunch of breaking changes and a bunch of improvements.

This time, one change may seem drastic: The rsass crate no longer contains the command-line program rsass. Instead, that is now provided by a separate rsass-cli crate. So you no longer have to enable a “commandline” feature, instead you can install the command line interface with:

:; cargo install rsass-cli

There is also a new rsass-macros crate. Read on into the Macros section for that.

Read whole Rsass 0.27.0 released.

Rsass 0.26.0 released

Posted 2022-09-18 20:04. Tagged , , , , .

More than three months after the last release, is is now the time to announce rsass 0.26.0. There is a bunch of breaking changes and a bunch of improvements. The changelog has the whole (too long) list.

But this time, some of the changes may go a bit deeper. As usual, the breaking changes is breaking mainly to users who in some way modify the global context from rust code, maybe by providing their own builtin functions or maybe just by inserting a global variable.

Also this time, there is an improved way of calling ructe from a cargo build.rs program, see the Cargo section below.

Read whole Rsass 0.26.0 released.

Light or dark?

Posted 2022-05-16 22:11. Tagged , , , , .

I’ve had a light and a dark theme on this site since I switch from python to rust. But until now I have only used css @media selection to enable the dark theme, so it hasn’t been very discoverable. If you have a browser that supports the prefers-color-scheme query and you have found that setting and enabled dark mode, you have seen this site in the dark theme (and may not know that it had a light theme), otherwise you have seen the site in the light theme (and not known about the dark).

Read whole Light or dark?.

New blog software

Posted 2022-01-16 22:07. Tagged , , , , .

I have written a new blog software again! The previous one was named r5, as in Rasmus (5 letters omitted). The new one is written in Rust (.rs source files), so it was natural to call it r4s, also as in Rasmus (but with only 4 letters omitted 😎).

Now let’s see if having a new shiny project for my blog engine makes me write more posts.

Read whole New blog software.

A simple and usable lightbox

Posted 2012-01-13 20:50. Tagged , , , , , , .

I have written a new jQuery plugin. It is a lightbox with focus on simplicity and usability. I call it kratsbox, and it’s availiable on github. Instructions for use are in the readme at the github page.

Read whole A simple and usable lightbox with 1 comments.

Ny design

Publicerad 2009-06-02 21:00. Taggat , , .

Nu får min webb nytt utseende. Dels hoppas jag det är snyggare, dels försöker jag underlätta för små skärmar (telefoner). Min design har alltid varit “relativ” så tillvida att jag försöker utnyttja den fönster­storlek man har på ett ett bra sätt, men när skärmen är mindre än 400 pixlar bred kan man ändå behöva special­anpassningar. Samtidigt vill man ju att det ska se snyggt ut även med högupplösta skärmar, i alla fall uppemot 1920x1200 …

Läs hela Ny design.

Utskrift av websidor

Publicerad 2006-03-12 20:21. Taggat , , .

Websidor är i första hand tänkta att läsas på skärm, men visst ska det gå att göra snygga utskrifter av dem också. Många större siter har en länk för “utskriftsformat” på varje sida. Men ska användaren verkligen behöva leta upp en sådan länk, som heter olika på varje site, för att få en utskrift som inte ser ut som sju svåra år?

Läs hela Utskrift av websidor.

StyleScript

Posted 1998-12-14 12:00. Last updated 2003-12-28 12:00. Tagged , , , .

An open-source HTML / SGML printer that uses CSS2.

StyleScript reads a HTML / SGML file, local or from an URL, and writes a Postscript file. I use the sp library, so only files that names a dtd and conforms to it is supported.

If your document passes the W3C validator without errors, it should be printable.

Update 2003-12-28: StyleScript is dead, viva Passepartout

Read whole StyleScript.