mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-10 15:44:51 +02:00
fix search form, mostly in navbar
This commit is contained in:
15
docs/assets/css/bootstrap.css
vendored
15
docs/assets/css/bootstrap.css
vendored
@@ -1533,9 +1533,9 @@ select:focus:required:invalid:focus {
|
|||||||
/* IE7-8 doesn't have border-radius, so don't indent the padding */
|
/* IE7-8 doesn't have border-radius, so don't indent the padding */
|
||||||
|
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
-webkit-border-radius: 14px;
|
-webkit-border-radius: 15px;
|
||||||
-moz-border-radius: 14px;
|
-moz-border-radius: 15px;
|
||||||
border-radius: 14px;
|
border-radius: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Allow for input prepend/append in search forms */
|
/* Allow for input prepend/append in search forms */
|
||||||
@@ -4034,12 +4034,12 @@ input[type="submit"].btn.btn-mini {
|
|||||||
.navbar-search {
|
.navbar-search {
|
||||||
position: relative;
|
position: relative;
|
||||||
float: left;
|
float: left;
|
||||||
margin-top: 6px;
|
margin-top: 5px;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar-search .search-query {
|
.navbar-search .search-query {
|
||||||
padding: 4px 9px;
|
padding: 4px 14px;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
@@ -4048,6 +4048,9 @@ input[type="submit"].btn.btn-mini {
|
|||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
background-color: #515151;
|
background-color: #515151;
|
||||||
border: 1px solid #040404;
|
border: 1px solid #040404;
|
||||||
|
-webkit-border-radius: 15px;
|
||||||
|
-moz-border-radius: 15px;
|
||||||
|
border-radius: 15px;
|
||||||
-webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.15);
|
-webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.15);
|
||||||
-moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.15);
|
-moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.15);
|
||||||
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.15);
|
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.15);
|
||||||
@@ -4071,7 +4074,7 @@ input[type="submit"].btn.btn-mini {
|
|||||||
|
|
||||||
.navbar-search .search-query:focus,
|
.navbar-search .search-query:focus,
|
||||||
.navbar-search .search-query.focused {
|
.navbar-search .search-query.focused {
|
||||||
padding: 5px 10px;
|
padding: 5px 15px;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
text-shadow: 0 1px 0 #ffffff;
|
text-shadow: 0 1px 0 #ffffff;
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
|
@@ -892,7 +892,7 @@ form.bs-docs-example {
|
|||||||
}
|
}
|
||||||
.bs-docs-sidenav {
|
.bs-docs-sidenav {
|
||||||
width: 218px;
|
width: 218px;
|
||||||
margin-top: 40px;
|
margin-top: 30px;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
|
@@ -495,7 +495,7 @@ select:focus:required:invalid {
|
|||||||
padding-left: 14px;
|
padding-left: 14px;
|
||||||
padding-left: 4px \9; /* IE7-8 doesn't have border-radius, so don't indent the padding */
|
padding-left: 4px \9; /* IE7-8 doesn't have border-radius, so don't indent the padding */
|
||||||
margin-bottom: 0; // Remove the default margin on all inputs
|
margin-bottom: 0; // Remove the default margin on all inputs
|
||||||
.border-radius(14px);
|
.border-radius(15px);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Allow for input prepend/append in search forms */
|
/* Allow for input prepend/append in search forms */
|
||||||
|
@@ -114,15 +114,16 @@
|
|||||||
.navbar-search {
|
.navbar-search {
|
||||||
position: relative;
|
position: relative;
|
||||||
float: left;
|
float: left;
|
||||||
.navbarVerticalAlign(28px); // Vertically center in navbar
|
.navbarVerticalAlign(30px); // Vertically center in navbar
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
.search-query {
|
.search-query {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
padding: 4px 9px;
|
padding: 4px 14px;
|
||||||
#font > .sans-serif(13px, normal, 1);
|
#font > .sans-serif(13px, normal, 1);
|
||||||
color: @white;
|
color: @white;
|
||||||
background-color: @navbarSearchBackground;
|
background-color: @navbarSearchBackground;
|
||||||
border: 1px solid @navbarSearchBorder;
|
border: 1px solid @navbarSearchBorder;
|
||||||
|
.border-radius(15px); // redeclare because of specificity of the type attribute
|
||||||
.box-shadow(~"inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.15)");
|
.box-shadow(~"inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.15)");
|
||||||
.transition(none);
|
.transition(none);
|
||||||
|
|
||||||
@@ -131,7 +132,7 @@
|
|||||||
// Focus states (we use .focused since IE7-8 and down doesn't support :focus)
|
// Focus states (we use .focused since IE7-8 and down doesn't support :focus)
|
||||||
&:focus,
|
&:focus,
|
||||||
&.focused {
|
&.focused {
|
||||||
padding: 5px 10px;
|
padding: 5px 15px;
|
||||||
color: @grayDark;
|
color: @grayDark;
|
||||||
text-shadow: 0 1px 0 @white;
|
text-shadow: 0 1px 0 @white;
|
||||||
background-color: @navbarSearchBackgroundFocus;
|
background-color: @navbarSearchBackgroundFocus;
|
||||||
|
Reference in New Issue
Block a user