rucksack-css
Version:
A little bag of CSS superpowers
32 lines (29 loc) • 690 B
CSS
span.placeholder{
position:absolute;
font-size:75%;
color:#999;
font-family:sans-serif;
padding:4px 3px;
z-index:1;
cursor:text;
}
span.placeholder-hide-except-screenreader {
clip: rect(1px 1px 1px 1px);
clip: rect(1px, 1px, 1px, 1px);
padding:0 ;
border:0 ;
height: 1px ;
width: 1px ;
overflow: hidden;
}
span.placeholder-hide{
display:none;
}
/* overwrite for the HTML5 Boilerplate way to hide labels */
label.visuallyhidden-with-placeholder{
/*clip: auto !important;*/
height:auto ;
overflow: visible ;
position:absolute ;
left:-999em;
}