mdb-ui-kit/less/_mixins-shared.less

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;
});
}