Combining Selector Parts in SASS

You can even connect parts of the same class. For example, like this:

styles.scss.button {
  &-ok {
    color: green;
  }
  &-cancel {
    color: red;
  }
}

As a result, after compilation we will get the following code:

styles.css.button-ok {
  color: green;
}
.button-cancel {
  color: red;
}
Задание 1

Simplify the given code:

styles.scss.label-success {
  color: green;
}
.label-warning {
  color: yellow;
}
.label-error {
  color: red;
}