Licence
MIT
Version
1.1.0
Deps
0
Size
4 kB
Vulns
0
Weekly
0
SCSS Mixin Placeholder
A package for integrating a mixin for styling input field placeholders.
Installation
You can install the package automatically using NPM:
npm i @m2collective/scss-mixin-placeholder
Usage
To use the package, import it into your project:
@use "@m2collective/scss-mixin-placeholder" as *;
.demo {
@include placeholder {
color: #000;
font-size: 14px;
font-weight: 400;
}
}
// Return
.demo::-webkit-input-placeholder {
color: #000;
font-size: 14px;
font-weight: 400;
}
.demo::-moz-placeholder {
color: #000;
font-size: 14px;
font-weight: 400;
}
.demo:-ms-input-placeholder {
color: #000;
font-size: 14px;
font-weight: 400;
}
.demo:-moz-placeholder {
color: #000;
font-size: 14px;
font-weight: 400;
}
.demo::placeholder {
color: #000;
font-size: 14px;
font-weight: 400;
}
Changing the namespace
You can change the namespace during mixin import and use the mixin with a different namespace:
@use "@m2collective/scss-mixin-placeholder" as mixin;
License
The MIT License (MIT). Please see the License file for more information.