LESS'te İç İçe Yapılar
LESS'ta kod bloklarını birbirinin içine şu şekilde yerleştirebilirsiniz:
#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:
#header .menu {
color: red;
}
#header .logo {
width: 100px;
}
Aşağıdaki kodun derleme sonucu ne olacak, anlatın:
div {
p {
color: red;
}
ul {
color: blue;
}
}
Aşağıdaki kodun derleme sonucu ne olacak, anlatın:
div {
color: red;
p {
color: blue;
}
}
Aşağıdaki kodun derleme sonucu ne olacak, anlatın:
div {
color: red;
ul {
color: blue;
li {
font-size: 20px;
}
}
}