File tree Expand file tree Collapse file tree 5 files changed +8
-52
lines changed Expand file tree Collapse file tree 5 files changed +8
-52
lines changed Original file line number Diff line number Diff line change @@ -983,18 +983,6 @@ select:focus:required:invalid:focus {
983
983
.input-prepend ,
984
984
.input-append {
985
985
margin-bottom : 5px ;
986
- * zoom : 1 ;
987
- }
988
- .input-prepend : before ,
989
- .input-append : before ,
990
- .input-prepend : after ,
991
- .input-append : after {
992
- display : table;
993
- content : "" ;
994
- }
995
- .input-prepend : after ,
996
- .input-append : after {
997
- clear : both;
998
986
}
999
987
.input-prepend input ,
1000
988
.input-append input ,
@@ -1021,8 +1009,7 @@ select:focus:required:invalid:focus {
1021
1009
}
1022
1010
.input-prepend .add-on ,
1023
1011
.input-append .add-on {
1024
- float : left;
1025
- display : block;
1012
+ display : inline-block;
1026
1013
width : auto;
1027
1014
min-width : 16px ;
1028
1015
height : 18px ;
@@ -1032,6 +1019,7 @@ select:focus:required:invalid:focus {
1032
1019
line-height : 18px ;
1033
1020
text-align : center;
1034
1021
text-shadow : 0 1px 0 # ffffff ;
1022
+ vertical-align : middle;
1035
1023
background-color : # eeeeee ;
1036
1024
border : 1px solid # ccc ;
1037
1025
-webkit-border-radius : 3px 0 0 3px ;
@@ -1043,14 +1031,8 @@ select:focus:required:invalid:focus {
1043
1031
background-color : # a9dba9 ;
1044
1032
border-color : # 46a546 ;
1045
1033
}
1046
- .input-prepend .add-on {
1047
- * margin-top : 1px ;
1048
- /* IE6-7 */
1049
-
1050
- }
1051
1034
.input-append input ,
1052
1035
.input-append select .uneditable-input {
1053
- float : left;
1054
1036
-webkit-border-radius : 3px 0 0 3px ;
1055
1037
-moz-border-radius : 3px 0 0 3px ;
1056
1038
border-radius : 3px 0 0 3px ;
@@ -1066,12 +1048,6 @@ select:focus:required:invalid:focus {
1066
1048
-moz-border-radius : 0 3px 3px 0 ;
1067
1049
border-radius : 0 3px 3px 0 ;
1068
1050
}
1069
- .input-append input : first-child {
1070
- * margin-left : -160px ;
1071
- }
1072
- .input-append input : first-child + .add-on {
1073
- * margin-left : -21px ;
1074
- }
1075
1051
.search-query {
1076
1052
padding-left : 14px ;
1077
1053
padding-right : 14px ;
Original file line number Diff line number Diff line change @@ -1187,8 +1187,7 @@ <h3>Form validation</h3>
1187
1187
< label class ="control-label " for ="prependedInput "> Prepended text</ label >
1188
1188
< div class ="controls ">
1189
1189
< div class ="input-prepend ">
1190
- < span class ="add-on "> @</ span >
1191
- < input class ="span2 " id ="prependedInput " size ="16 " type ="text ">
1190
+ < span class ="add-on "> @</ span > < input class ="span2 " id ="prependedInput " size ="16 " type ="text ">
1192
1191
</ div >
1193
1192
< p class ="help-block "> Here's some help text</ p >
1194
1193
</ div >
@@ -1197,8 +1196,7 @@ <h3>Form validation</h3>
1197
1196
< label class ="control-label " for ="appendedInput "> Appended text</ label >
1198
1197
< div class ="controls ">
1199
1198
< div class ="input-append ">
1200
- < input class ="span2 " id ="appendedInput " size ="16 " type ="text ">
1201
- < span class ="add-on "> .00</ span >
1199
+ < input class ="span2 " id ="appendedInput " size ="16 " type ="text "> < span class ="add-on "> .00</ span >
1202
1200
</ div >
1203
1201
< p class ="help-block "> Here's more help text</ p >
1204
1202
</ div >
Original file line number Diff line number Diff line change 1111
1111
<label class =" control-label" for =" prependedInput" >{ {_i} }Prepended text{ {/i} }</label >
1112
1112
<div class =" controls" >
1113
1113
<div class =" input-prepend" >
1114
- <span class =" add-on" >@</span >
1115
- <input class =" span2" id =" prependedInput" size =" 16" type =" text" >
1114
+ <span class =" add-on" >@</span ><input class =" span2" id =" prependedInput" size =" 16" type =" text" >
1116
1115
</div >
1117
1116
<p class =" help-block" >{ {_i} }Here's some help text{ {/i} }</p >
1118
1117
</div >
1121
1120
<label class =" control-label" for =" appendedInput" >{ {_i} }Appended text{ {/i} }</label >
1122
1121
<div class =" controls" >
1123
1122
<div class =" input-append" >
1124
- <input class =" span2" id =" appendedInput" size =" 16" type =" text" >
1125
- <span class =" add-on" >.00</span >
1123
+ <input class =" span2" id =" appendedInput" size =" 16" type =" text" ><span class =" add-on" >.00</span >
1126
1124
</div >
1127
1125
<p class =" help-block" >{ {_i} }Here's more help text{ {/i} }</p >
1128
1126
</div >
Original file line number Diff line number Diff line change @@ -362,7 +362,6 @@ select:focus:required:invalid {
362
362
.input-prepend ,
363
363
.input-append {
364
364
margin-bottom : 5px ;
365
- .clearfix (); // Clear the float to prevent wrapping
366
365
input ,
367
366
select ,
368
367
.uneditable-input {
@@ -376,8 +375,7 @@ select:focus:required:invalid {
376
375
border-left-color : #ccc ;
377
376
}
378
377
.add-on {
379
- float : left ;
380
- display : block ;
378
+ display : inline-block ;
381
379
width : auto ;
382
380
min-width : 16px ;
383
381
height : @baseLineHeight ;
@@ -387,6 +385,7 @@ select:focus:required:invalid {
387
385
line-height : @baseLineHeight ;
388
386
text-align : center ;
389
387
text-shadow : 0 1px 0 @white ;
388
+ vertical-align : middle ;
390
389
background-color : @grayLighter ;
391
390
border : 1px solid #ccc ;
392
391
.border-radius (3px 0 0 3px );
@@ -396,16 +395,10 @@ select:focus:required:invalid {
396
395
border-color : @green ;
397
396
}
398
397
}
399
- .input-prepend {
400
- .add-on {
401
- * margin-top : 1px ; /* IE6-7 */
402
- }
403
- }
404
398
.input-append {
405
399
input ,
406
400
select
407
401
.uneditable-input {
408
- float : left ;
409
402
.border-radius (3px 0 0 3px );
410
403
}
411
404
.uneditable-input {
@@ -417,15 +410,6 @@ select:focus:required:invalid {
417
410
margin-left : -1px ;
418
411
.border-radius (0 3px 3px 0 );
419
412
}
420
- input :first-child {
421
- // In IE7, having a hasLayout container (from clearfix's zoom:1) can make the first input
422
- // inherit the sum of its ancestors' margins.
423
- * margin-left : -160px ;
424
-
425
- & + .add-on {
426
- * margin-left : -21px ;
427
- }
428
- }
429
413
}
430
414
431
415
You can’t perform that action at this time.
0 commit comments