DEV Community

Discussion on: how to change the whole page scale (zoom) ?

Collapse
sanidz profile image
sanidz

Include additional variable for ratio for example:

base-size: 1em
base-ratio: 1.5

Use ratio for calculating picture sizes and fonts as well...
Single img selector that uses calc will do:
img {
height: calc(100% *var(--base-ratio));
}