LESS'te İç İçe Yapılar

LESS'ta kod bloklarını birbirinin içine şu şekilde yerleştirebilirsiniz:

styles.less#header {
  .menu {
    color: red;
  }
  .logo {
    width: 100px;
  }
}

Derleme sonucunda, blokların iç içe olması ilgili seçicilerin iç içe geçmesine dönüşür:

styles.css#header .menu {
  color: red;
}
#header .logo {
  width: 100px;
}
Задание 1

Aşağıdaki kodun derleme sonucu ne olacak, anlatın:

styles.lessdiv {
  p {
    color: red;
  }
  ul {
    color: blue;
  }
}
Задание 2

Aşağıdaki kodun derleme sonucu ne olacak, anlatın:

styles.lessdiv {
  color: red;
  p {
    color: blue;
  }
}
Задание 3

Aşağıdaki kodun derleme sonucu ne olacak, anlatın:

styles.lessdiv {
  color: red;
  
  ul {
    color: blue;
    
    li {
      font-size: 20px;
    }
  }
}