Skip to content

Mixin for changing the text-color on placeholder-text

Notifications You must be signed in to change notification settings

aleutcss/tools.placeholder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Placeholder

The aleutcss placeholder module contains a useful mixin for changing the text-color on placeholder-text on input-fields.

Install using npm:

$ npm install --save-dev aleut.tools-placeholder

Usage

Basic usage of the mixins in a SCSS-file:

.foo {
	@include placeholder(#f2f2f2);
}

This yields:

.foo::-webkit-input-placeholder {
  /* WebKit browsers */
  color: #f2f2f2;
}

.foo:-moz-placeholder {
  /* Mozilla Firefox 4 to 18 */
  color: #f2f2f2;
}

.foo::-moz-placeholder {
  /* Mozilla Firefox 19+ */
  color: #f2f2f2;
}

.foo:-ms-input-placeholder {
  /* Internet Explorer 10+ */
  color: #f2f2f2;
}

About

Mixin for changing the text-color on placeholder-text

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages