L
L
lookingfor22020-06-22 15:13:36
css
lookingfor2, 2020-06-22 15:13:36

Scss, how does it work?

I need to be able to adjust all fonts and their sizes from
one
5ef0a0103eb50531637194.png
place

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex Glebov, 2020-06-22
@SkiperX

It is already more convenient to do this through css variables, because they can be overridden in media directly.

:root {
  --fz-h1: 33px;
}
@media(max-width: 991px) {
  :root {
  --fz-h1: 25px;
}
}


h1 {
  font-size: var(--fz-h1)
}

for sass everything will be clear as soon as you read the doc
https://sass-guidelin.es/ru/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question