Mixins
Collection of PAM LESS mixins.
.grid-units(@columns, @startIndex, @prefix)
Generate number of requested columns starting from given number and optional adds a passed prefixed value.
Parameters:
-
@columnsNumber of columns. -
@startIndexWhat number to start on.Defaults to:1 -
@prefixAttribute value prefix.Defaults to:''
.placeholder-color(@color)
Applies text color for placeholder.
Parameters:
-
@colorSet placeholder color.Defaults to:@skin-text-secondary
.zindex(@elementName, @elementList)
Handles z-index contextual by retrieving the elements position from a element list and returns the positon as a z-index value.
@z-index-global list is shipped with PAM and is empty by default. Add
element names to appropriate z-index in the list and use the
.zindex mixin to retrive the z-index value for that element
in the given context. If more z-index contexts are needed
add another @z-index-* list for that context.
// Example
@z-index-global: 'overlay', 'dialog', 'notification';
zindex('notification', @z-index-global);
output: z-index: 3;
Parameters:
-
@elementNameFind position for given name. -
@elementListContextual z-index element list.