2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-14 18:42:30 +03:00

fixes .placeholder to work as a "grouped selector"

adding the `&` combinator to `.placeholder` makes it work for the global case (in forms.less) as well as within `.navbar-search .search-query`

the result can be seen in the generated bootstrap.css, which include the -ms vendor extension.
This commit is contained in:
Corey Innis
2012-05-27 18:12:08 -07:00
parent 287086758b
commit 8a06339501
3 changed files with 8 additions and 10 deletions
+3 -3
View File
@@ -81,13 +81,13 @@
// Placeholder text
// -------------------------
.placeholder(@color: @placeholderText) {
:-moz-placeholder {
&:-moz-placeholder {
color: @color;
}
:-ms-input-placeholder {
&:-ms-input-placeholder {
color: @color;
}
::-webkit-input-placeholder {
&::-webkit-input-placeholder {
color: @color;
}
}