mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-27 12:04:09 +03:00
32 lines
836 B
Plaintext
32 lines
836 B
Plaintext
|
// Placeholder text
|
||
|
.material-placeholder(@rules) {
|
||
|
&::-moz-placeholder { @rules(); } // Firefox
|
||
|
&:-ms-input-placeholder { @rules(); } // Internet Explorer 10+
|
||
|
&::-webkit-input-placeholder { @rules(); } // Safari and Chrome
|
||
|
}
|
||
|
|
||
|
// usage: .variations(~" .check", color, transparent);
|
||
|
.variations(@extra, @property, @default) {
|
||
|
.generic-variations(@extra, @default, {
|
||
|
@{property}: @material-color;
|
||
|
});
|
||
|
}
|
||
|
|
||
|
.background-variations(@extra, @default) {
|
||
|
.generic-variations(@extra, @default, {
|
||
|
background-color: @material-color;
|
||
|
& when (@material-color = @btn-default) {
|
||
|
color: @lightbg-text;
|
||
|
}
|
||
|
& when not (@material-color = @btn-default) {
|
||
|
color: @material-text-color;
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
|
||
|
.text-variations(@extra, @default) {
|
||
|
.generic-variations(@extra, @default, {
|
||
|
color: @material-color;
|
||
|
});
|
||
|
}
|