Skip to content

michaelsacca/Compass-Placeholder-Text-Mixin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Compass-Placeholder-Text-Mixin

Simple Mixin For Compass Placeholder Text

Steps:

  1. Add the .input-placeholder mixin from _placeholderText.scss to your stylesheet (or reference it in an @import statement)
  2. In your stylesheet, call the .input-placeholder {} mixin anywhere you want to style your placeholder text

This Scss code:

    input {
        @include input-placeholder {
            color: #ccc;
            background: #F00;
        }
    }

Will compile to:

    input.placeholder {
        color: #ccc;
        background: #F00;
    }
    input:-moz-placeholder {
        color: #ccc;
        background: #F00;
    }
    input::-moz-placeholder {
        color: #ccc;
        background: #F00;
    }
    input:-ms-input-placeholder {
        color: #ccc;
        background: #F00;
    }
    input::-webkit-input-placeholder {
        color: #ccc;
        background: #F00;
    }

About

Simple Mixin For Compass Placeholder Text

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •