nwg-piotr/nwg-wrapper

CSS relative to screen size

xeruf opened this issue · 5 comments

xeruf commented

Is there a unit I can use in the CSS that is relative to my current screen size/resolution?

xeruf commented

The v* units as listed on https://www.w3schools.com/CSSref/css_units.asp do not seem to work.

Look here. There's something on units relative to viewport. I'm not sure if it's going to help.

xeruf commented

tried that, see my second comment :/

GTK does not support all the CSS specification.

xeruf commented

See here: https://docs.gtk.org/gtk4/css-properties.html#basic-types
So unless some magic can be done with calc (maybe nwg can predefine CSS variables containing the screen size?), I'm out of luck :/