Navigation Menu

Skip to content

Commit

Permalink
Merge pull request twbs#3619 from coreyti/2.0.4-wip-fix-placeholder
Browse files Browse the repository at this point in the history
2.0.4 wip fix placeholder
  • Loading branch information
mdo committed May 28, 2012
2 parents 2870867 + 8a06339 commit 241cbd4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
4 changes: 4 additions & 0 deletions docs/assets/css/bootstrap.css
Expand Up @@ -3713,6 +3713,10 @@ input[type="submit"].btn.btn-mini {
color: #cccccc;
}

.navbar-search .search-query:-ms-input-placeholder {
color: #cccccc;
}

.navbar-search .search-query::-webkit-input-placeholder {
color: #cccccc;
}
Expand Down
6 changes: 3 additions & 3 deletions less/mixins.less
Expand Up @@ -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;
}
}
Expand Down
8 changes: 1 addition & 7 deletions less/navbar.less
Expand Up @@ -123,13 +123,7 @@
.box-shadow(~"inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.15)");
.transition(none);

// Placeholder text gets special styles; can't be a grouped selector
&:-moz-placeholder {
color: @navbarSearchPlaceholderColor;
}
&::-webkit-input-placeholder {
color: @navbarSearchPlaceholderColor;
}
.placeholder(@navbarSearchPlaceholderColor);

// Focus states (we use .focused since IE7-8 and down doesn't support :focus)
&:focus,
Expand Down

0 comments on commit 241cbd4

Please sign in to comment.