Add shadow utilities
This commit is contained in:
parent
e023065480
commit
7d8559b8fd
4 changed files with 27 additions and 0 deletions
16
src/generators/shadows.less
Normal file
16
src/generators/shadows.less
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
.define-shadow-utilities(@variants) {
|
||||
.generate-utility-variants('shadow'; @variants; {
|
||||
box-shadow: extract(@__variant-value, 2);
|
||||
});
|
||||
}
|
||||
|
||||
.define-shadow-utilities(@variants; none) {
|
||||
.define-shadow-utilities(@variants);
|
||||
}
|
||||
|
||||
.define-shadow-utilities(@variants; @screens) when not (@screens = none) {
|
||||
.define-shadow-utilities(@variants);
|
||||
.generate-responsive-utility-variants('shadow'; @variants; @screens; {
|
||||
box-shadow: extract(@__variant-value, 2);
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue