M
M
Max Zhukov2018-04-23 17:14:08
Sass
Max Zhukov, 2018-04-23 17:14:08

How to access the required class?

There are for example classes:
.btn, .obr {
display: block;
// something like .btn {
//font-size: 24px;
//}
}
and I need to refer only to .btn inside, so as not to write separately for it, but write inside the brackets
and so that the compilation
outputs .btn,.obr{
display:block;
}
.btn {
font-size: 24px;
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
andead, 2018-04-23
@MaksZhukov

.btn,
.obr {
  display:block;
  @at-root {
    .btn {
      font-size: 24px;
    }
  }
}

https://sass-scss.ru/documentation/pravila_i_direk...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question