Skip to content

Commit 7590e65

Browse files
committed
fix search form, mostly in navbar
1 parent 394922a commit 7590e65

4 files changed

Lines changed: 15 additions & 11 deletions

File tree

docs/assets/css/bootstrap.css

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1533,9 +1533,9 @@ select:focus:required:invalid:focus {
15331533
/* IE7-8 doesn't have border-radius, so don't indent the padding */
15341534

15351535
margin-bottom: 0;
1536-
-webkit-border-radius: 14px;
1537-
-moz-border-radius: 14px;
1538-
border-radius: 14px;
1536+
-webkit-border-radius: 15px;
1537+
-moz-border-radius: 15px;
1538+
border-radius: 15px;
15391539
}
15401540

15411541
/* Allow for input prepend/append in search forms */
@@ -4034,12 +4034,12 @@ input[type="submit"].btn.btn-mini {
40344034
.navbar-search {
40354035
position: relative;
40364036
float: left;
4037-
margin-top: 6px;
4037+
margin-top: 5px;
40384038
margin-bottom: 0;
40394039
}
40404040

40414041
.navbar-search .search-query {
4042-
padding: 4px 9px;
4042+
padding: 4px 14px;
40434043
margin-bottom: 0;
40444044
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
40454045
font-size: 13px;
@@ -4048,6 +4048,9 @@ input[type="submit"].btn.btn-mini {
40484048
color: #ffffff;
40494049
background-color: #515151;
40504050
border: 1px solid #040404;
4051+
-webkit-border-radius: 15px;
4052+
-moz-border-radius: 15px;
4053+
border-radius: 15px;
40514054
-webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.15);
40524055
-moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.15);
40534056
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 {
40714074

40724075
.navbar-search .search-query:focus,
40734076
.navbar-search .search-query.focused {
4074-
padding: 5px 10px;
4077+
padding: 5px 15px;
40754078
color: #333333;
40764079
text-shadow: 0 1px 0 #ffffff;
40774080
background-color: #ffffff;

docs/assets/css/docs.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,7 @@ form.bs-docs-example {
892892
}
893893
.bs-docs-sidenav {
894894
width: 218px;
895-
margin-top: 40px;
895+
margin-top: 30px;
896896
padding: 0;
897897
margin-right: 10px;
898898
background-color: #fff;

less/forms.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ select:focus:required:invalid {
495495
padding-left: 14px;
496496
padding-left: 4px \9; /* IE7-8 doesn't have border-radius, so don't indent the padding */
497497
margin-bottom: 0; // Remove the default margin on all inputs
498-
.border-radius(14px);
498+
.border-radius(15px);
499499
}
500500

501501
/* Allow for input prepend/append in search forms */

less/navbar.less

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,15 +114,16 @@
114114
.navbar-search {
115115
position: relative;
116116
float: left;
117-
.navbarVerticalAlign(28px); // Vertically center in navbar
117+
.navbarVerticalAlign(30px); // Vertically center in navbar
118118
margin-bottom: 0;
119119
.search-query {
120120
margin-bottom: 0;
121-
padding: 4px 9px;
121+
padding: 4px 14px;
122122
#font > .sans-serif(13px, normal, 1);
123123
color: @white;
124124
background-color: @navbarSearchBackground;
125125
border: 1px solid @navbarSearchBorder;
126+
.border-radius(15px); // redeclare because of specificity of the type attribute
126127
.box-shadow(~"inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.15)");
127128
.transition(none);
128129

@@ -131,7 +132,7 @@
131132
// Focus states (we use .focused since IE7-8 and down doesn't support :focus)
132133
&:focus,
133134
&.focused {
134-
padding: 5px 10px;
135+
padding: 5px 15px;
135136
color: @grayDark;
136137
text-shadow: 0 1px 0 @white;
137138
background-color: @navbarSearchBackgroundFocus;

0 commit comments

Comments
 (0)