|
|
|
|
|
by mariocesar
832 days ago
|
|
I like how it behaves on desktop, but I don't like making it "responsive" on mobile. We can fix that :D :root {
font-size: 1rem;
}
@media (pointer: fine) {
:root {
font-size: calc(1rem + 0.25vw);
}
}
@media (pointer: coarse) {
:root {
font-size: 1.25rem;
}
}
"pointer" refers to the way a user interacts with a device's screen, either using a precise pointing device like a mouse (fine pointer) or a less precise one like a finger on a touchscreen (coarse pointer). |
|