mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-30 13:33:43 +03:00
32 lines
806 B
Plaintext
Executable File
32 lines
806 B
Plaintext
Executable File
// 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}: @mdb-color;
|
|
});
|
|
}
|
|
|
|
.background-variations(@extra, @default) {
|
|
.generic-variations(@extra, @default, {
|
|
background-color: @mdb-color;
|
|
& when (@mdb-color = @btn-default) {
|
|
color: @lightbg-text;
|
|
}
|
|
& when not (@mdb-color = @btn-default) {
|
|
color: @mdb-text-color;
|
|
}
|
|
});
|
|
}
|
|
|
|
.text-variations(@extra, @default) {
|
|
.generic-variations(@extra, @default, {
|
|
color: @mdb-color;
|
|
});
|
|
}
|