mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-14 05:37:01 +03:00
40 lines
596 B
Plaintext
40 lines
596 B
Plaintext
|
@import "variables.less";
|
||
|
|
||
|
.color(@default) {
|
||
|
&-default {
|
||
|
color: @default;
|
||
|
}
|
||
|
&-primary {
|
||
|
color: @primary;
|
||
|
}
|
||
|
&-success {
|
||
|
color: @success;
|
||
|
}
|
||
|
// etc
|
||
|
}
|
||
|
.btn {
|
||
|
.color(black);
|
||
|
}
|
||
|
|
||
|
.background(@default) {
|
||
|
&-default {
|
||
|
color: @default;
|
||
|
}
|
||
|
&-primary {
|
||
|
color: @primary;
|
||
|
}
|
||
|
&-success {
|
||
|
color: @success;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.variations(@extra, @property) {
|
||
|
&-default@{extra} { &:extend(.@{property}-default); }
|
||
|
&-primary@{extra} { &:extend(.@{property}-primary); }
|
||
|
// etc
|
||
|
}
|
||
|
|
||
|
.label {
|
||
|
.variations(~"", btn);
|
||
|
}
|