LESS Tutorial on LESS Misc Functions

misc functions consist of a group of functions of a different kind.

the following table lists all the types of misc functions −

sr.no. functions & description
1 color

it is a string which represents colors.

2 image - size

it is used to examine the dimension of the image from the file.

3 image - width

it examines the width of the image from the file.

4 image - height

it examines the height of the image from the file.

5 convert

a number is converted from one unit to another.

6 data - uri

data uri is uniform resource identifier (uri) schema which gets a resource inline on webpages.

7 default

default function returns true only when it is available inside the guard condition and does not match with any other mixin.

8 unit

default function returns true only when it is available inside the guard condition and does not match with any other mixin

9 get - unit

get - unit function returns its unit where the argument is present with number and units.

10 svg - gradient

svg-gradient is a transition of one color to another. it can add many colors to the same element.