LESS හි තේරීම්කරු කොටස් සම්බන්ධ කිරීම

එක් පන්තියක කොටස් පවා සම්බන්ධ කළ හැකිය. උදාහරණයක් වශයෙන්, මේ ආකාරයට:

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

ප්‍රතිඵලයක් වශයෙන්, සම්පාදනය කිරීමෙන් පසු අපට පහත කේතය ලැබෙනු ඇත:

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

ලබා දී ඇති කේතය සරල කරන්න:

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