less Extend

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Introduction

This is related to the extend functionality of less, which was introduced in v1.4.0.

"Extend is a Less pseudo-class which merges the selector it is put on with ones that match what it references." [ref]

Syntax

  1. selector1:extend(css selector){ //other styles go here}
  2. selector1{ &:extend(css selector)); //other styles go here }

Parameters

ParameterDetails
css selectorThis is any generic CSS selector, and may include .class, #id, ::pseudoElements, etc


Got any less Question?