Skip to content

Commit 464c2d5

Browse files
committed
remove select from the new form grid sizes and let them inherit the default grid ones
1 parent 0692530 commit 464c2d5

File tree

4 files changed

+45
-37
lines changed

4 files changed

+45
-37
lines changed

bootstrap.css

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* http://www.apache.org/licenses/LICENSE-2.0
77
*
88
* Designed and built with all the love in the world @twitter by @mdo and @fat.
9-
* Date: Sat Oct 8 00:18:37 PDT 2011
9+
* Date: Sat Oct 8 00:26:36 PDT 2011
1010
*/
1111
/* Reset.less
1212
* Props to Eric Meyer (meyerweb.com) for his CSS reset file. We're using an adapted version here that cuts out some of the reset HTML elements we will never need here (i.e., dfn, samp, etc).
@@ -643,7 +643,9 @@ select,
643643
-moz-border-radius: 3px;
644644
border-radius: 3px;
645645
}
646-
/* mini reset for non-html5 file types */
646+
select {
647+
padding: initial;
648+
}
647649
input[type=checkbox], input[type=radio] {
648650
width: auto;
649651
height: auto;
@@ -787,67 +789,67 @@ select.xxlarge {
787789
textarea.xxlarge {
788790
overflow-y: auto;
789791
}
790-
input.span1, textarea.span1, select.span1 {
792+
input.span1, textarea.span1 {
791793
display: inline-block;
792794
width: 30px;
793795
}
794-
input.span2, textarea.span2, select.span2 {
796+
input.span2, textarea.span2 {
795797
display: inline-block;
796798
width: 90px;
797799
}
798-
input.span3, textarea.span3, select.span3 {
800+
input.span3, textarea.span3 {
799801
display: inline-block;
800802
width: 150px;
801803
}
802-
input.span4, textarea.span4, select.span4 {
804+
input.span4, textarea.span4 {
803805
display: inline-block;
804806
width: 210px;
805807
}
806-
input.span5, textarea.span5, select.span5 {
808+
input.span5, textarea.span5 {
807809
display: inline-block;
808810
width: 270px;
809811
}
810-
input.span6, textarea.span6, select.span6 {
812+
input.span6, textarea.span6 {
811813
display: inline-block;
812814
width: 330px;
813815
}
814-
input.span7, textarea.span7, select.span7 {
816+
input.span7, textarea.span7 {
815817
display: inline-block;
816818
width: 390px;
817819
}
818-
input.span8, textarea.span8, select.span8 {
820+
input.span8, textarea.span8 {
819821
display: inline-block;
820822
width: 450px;
821823
}
822-
input.span9, textarea.span9, select.span9 {
824+
input.span9, textarea.span9 {
823825
display: inline-block;
824826
width: 510px;
825827
}
826-
input.span10, textarea.span10, select.span10 {
828+
input.span10, textarea.span10 {
827829
display: inline-block;
828830
width: 570px;
829831
}
830-
input.span11, textarea.span11, select.span11 {
832+
input.span11, textarea.span11 {
831833
display: inline-block;
832834
width: 630px;
833835
}
834-
input.span12, textarea.span12, select.span12 {
836+
input.span12, textarea.span12 {
835837
display: inline-block;
836838
width: 690px;
837839
}
838-
input.span13, textarea.span13, select.span13 {
840+
input.span13, textarea.span13 {
839841
display: inline-block;
840842
width: 750px;
841843
}
842-
input.span14, textarea.span14, select.span14 {
844+
input.span14, textarea.span14 {
843845
display: inline-block;
844846
width: 810px;
845847
}
846-
input.span15, textarea.span15, select.span15 {
848+
input.span15, textarea.span15 {
847849
display: inline-block;
848850
width: 870px;
849851
}
850-
input.span16, textarea.span16, select.span16 {
852+
input.span16, textarea.span16 {
851853
display: inline-block;
852854
width: 930px;
853855
}

bootstrap.min.css

Lines changed: 17 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1318,6 +1318,7 @@ <h2>Form field sizes</h2>
13181318
<div class="clearfix"><input class="span2" id="" name="" type="text" placeholder=".span2" /></div>
13191319
<div class="clearfix"><input class="span3" id="" name="" type="text" placeholder=".span3" /></div>
13201320
<div class="clearfix"><input class="span4" id="" name="" type="text" placeholder=".span4" /></div>
1321+
<div class="clearfix"><select class="span4" id="" name=""></select></div>
13211322
<div class="clearfix"><input class="span5" id="" name="" type="text" placeholder=".span5" /></div>
13221323
<div class="clearfix"><input class="span6" id="" name="" type="text" placeholder=".span6" /></div>
13231324
<div class="clearfix"><input class="span7" id="" name="" type="text" placeholder=".span7" /></div>

lib/forms.less

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,12 @@ select,
7777
.border-radius(3px);
7878
}
7979

80-
/* mini reset for non-html5 file types */
80+
// remove padding from select
81+
select {
82+
padding: initial;
83+
}
84+
85+
// mini reset for non-html5 file types
8186
input[type=checkbox],
8287
input[type=radio] {
8388
width: auto;
@@ -239,8 +244,7 @@ textarea.xxlarge {
239244
width: ((@gridColumnWidth - 10) * @columnSpan) + ((@gridColumnWidth - 10) * (@columnSpan - 1));
240245
}
241246
input,
242-
textarea,
243-
select {
247+
textarea {
244248
// Default columns
245249
&.span1 { .formColumns(1); }
246250
&.span2 { .formColumns(2); }

0 commit comments

Comments
 (0)