Google News
logo
Less - Interview Questions
What is the use of extend in Less?
The extend is a Less pseudo class which is used to select another selector style in one selector.
 
For example :
h2 {  
   &:extend(.style);  
   font-style: italic;  
}  
  
.style {  
   background: green;  
}

 

Advertisement