Penggabungan Pseudo-class dalam LESS

Ampersand (&) mudah digunakan saat bekerja dengan pseudo-class. Lihat contoh:

styles.lessa {
  color: blue;
  &:hover {
    color: red;
  }
}

Hasil kompilasi:

styles.cssa {
  color: blue;
}
a:hover { 
  color: red;
}
Задание 1

Jelaskan, bagaimana hasil kompilasi dari kode berikut:

styles.lessa.class {
  &:link {
    color: red;
  }
  &:visited {
    color: blue;
  }
  &:hover {
    color: green;
  }
}
Задание 2

Sederhanakan kode yang diberikan:

styles.css#block {
  width: 300px;
}
#block a:link, #block a:visited {
  color: red;
}
#block a:hover {
  color: blue;
}