W
W
waltaki2020-01-07 18:34:57
Sass
waltaki, 2020-01-07 18:34:57

Scss - Is it possible to make your own class names?

There is a code:

.cursor {
  .pointer {
    cursor: pointer;
  }

  .unset {
    cursor: unset;
  }
}

Is it possible to make it so that as a result there are classes cursor-pointer, cursor-unset?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
lilwings, 2020-01-07
@waltaki

.cursor {
  &-pointer {
    cursor: pointer;
  }

  &-unset {
    cursor: unset;
  }
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question