mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-29 13:04:14 +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);
|
||
|
}
|