Skip to content

Commit e467107

Browse files
committed
Merge pull request #97 from kane-c/master
Upgrade to Bootstrap v3.3.5
2 parents 8b880e2 + f98a734 commit e467107

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+341
-197
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
Bootstrap Stylus 3.3.4
1+
Bootstrap Stylus 3.3.5
22
======================
33

4-
Port of the amazing [Bootstrap 3.3.4](https://github.com/twbs/bootstrap) to [Stylus 0.47.0](http://learnboost.github.com/stylus/).
4+
Port of the amazing [Bootstrap 3.3.5](https://github.com/twbs/bootstrap) to [Stylus 0.47.0](http://learnboost.github.com/stylus/).
55

66
There might be some slight color differences due to the differences between the color functions in LESS and those in Stylus.
77

bootstrap/badges.styl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
font-weight $badge-font-weight
1313
color $badge-color
1414
line-height $badge-line-height
15-
vertical-align baseline
15+
vertical-align middle
1616
white-space nowrap
1717
text-align center
1818
background-color $badge-bg

bootstrap/button-groups.styl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
margin-left -5px // Offset the first child's margin
3434
@extend .clearfix
3535

36+
.btn,
3637
.btn-group,
3738
.input-group
3839
float left
@@ -158,11 +159,11 @@
158159
border-radius 0
159160

160161
&:first-child:not(:last-child)
161-
border-top-right-radius $border-radius-base
162+
border-top-right-radius $btn-border-radius-base
162163
border-bottom-radius(0)
163164

164165
&:last-child:not(:first-child)
165-
border-bottom-left-radius $border-radius-base
166+
border-bottom-left-radius $btn-border-radius-base
166167
border-top-radius(0)
167168

168169
.btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn

bootstrap/buttons.styl

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
background-image none // Reset unusual Firefox-on-Android default style see https://github.com/necolas/normalize.css/issues/214
1818
border 1px solid transparent
1919
white-space nowrap
20-
button-size($padding-base-vertical, $padding-base-horizontal, $font-size-base, $line-height-base, $border-radius-base)
20+
button-size($padding-base-vertical, $padding-base-horizontal, $font-size-base, $line-height-base, $btn-border-radius-base)
2121
user-select none
2222

2323
&,
@@ -43,10 +43,14 @@
4343
&[disabled],
4444
fieldset[disabled] &
4545
cursor $cursor-disabled
46-
pointer-events none // Future-proof disabling of clicks
4746
opacity-ie(.65)
4847
box-shadow none
4948

49+
a&
50+
&.disabled,
51+
fieldset[disabled] &
52+
pointer-events none // Future-proof disabling of clicks on `<a>` elements
53+
5054

5155
// Alternate buttons
5256
// --------------------------------------------------
@@ -116,14 +120,14 @@
116120

117121
.btn-lg
118122
// line-height ensure even-numbered height of button next to large input
119-
button-size($padding-large-vertical, $padding-large-horizontal, $font-size-large, $line-height-large, $border-radius-large)
123+
button-size($padding-large-vertical, $padding-large-horizontal, $font-size-large, $line-height-large, $btn-border-radius-large)
120124

121125
.btn-sm
122126
// line-height ensure proper height of button next to small input
123-
button-size($padding-small-vertical, $padding-small-horizontal, $font-size-small, $line-height-small, $border-radius-small)
127+
button-size($padding-small-vertical, $padding-small-horizontal, $font-size-small, $line-height-small, $btn-border-radius-small)
124128

125129
.btn-xs
126-
button-size($padding-xs-vertical, $padding-xs-horizontal, $font-size-small, $line-height-small, $border-radius-small)
130+
button-size($padding-xs-vertical, $padding-xs-horizontal, $font-size-small, $line-height-small, $btn-border-radius-small)
127131

128132

129133
// Block button

bootstrap/carousel.styl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
@media all and (transform-3d), (-webkit-transform-3d)
2929
transition-transform(.6s ease-in-out)
3030
backface-visibility(hidden)
31-
perspective(1000)
31+
perspective(1000px)
3232

3333
&.next,
3434
&.active.right
@@ -119,6 +119,7 @@
119119
.glyphicon-chevron-right
120120
position absolute
121121
top 50%
122+
margin-top -10px
122123
z-index 5
123124
display inline-block
124125

@@ -136,7 +137,6 @@
136137
.icon-next
137138
width 20px
138139
height 20px
139-
margin-top -10px
140140
line-height 1
141141
font-family serif
142142

bootstrap/dropdowns.styl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
margin-left 2px
1212
vertical-align middle
1313
border-top $caret-width-base dashed
14+
border-top s("%s solid \9", $caret-width-base) // IE8
1415
border-right $caret-width-base solid transparent
1516
border-left $caret-width-base solid transparent
1617

@@ -163,8 +164,10 @@
163164
// Reverse the caret
164165
.caret
165166
border-top 0
166-
border-bottom $caret-width-base solid
167+
border-bottom $caret-width-base dashed
168+
border-bottom s("%s solid \9", $caret-width-base) // IE8
167169
content ""
170+
168171
// Different positioning for bottom up menu
169172
.dropdown-menu
170173
top auto

bootstrap/forms.styl

Lines changed: 43 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ input[type="checkbox"]
5151
margin-top unquote('1px \9') // IE8-9
5252
line-height normal
5353

54-
// Set the height of file controls to match text inputs
5554
input[type="file"]
5655
display block
5756

@@ -160,13 +159,16 @@ input[type="search"]
160159
// text within the input to become vertically misaligned. As a workaround, we
161160
// set a pixel line-height that matches the given height of the input, but only
162161
// for Safari. See https://bugs.webkit.org/show_bug.cgi?id=139848
162+
//
163+
// Note that as of 8.3, iOS doesn't support `datetime` or `week`.
163164

164165
@media screen and (-webkit-min-device-pixel-ratio 0)
165166
input[type="date"],
166167
input[type="time"],
167168
input[type="datetime-local"],
168169
input[type="month"]
169-
line-height $input-height-base
170+
&.form-control
171+
line-height $input-height-base
170172

171173
&.input-sm,
172174
.input-group-sm &
@@ -291,28 +293,52 @@ input[type="checkbox"]
291293

292294
.form-group-sm
293295
.form-control
294-
input-size($input-height-small, $padding-small-vertical, $padding-small-horizontal, $font-size-small, $line-height-small, $input-border-radius-small)
295-
296-
.form-control-static
297296
height $input-height-small
298297
padding $padding-small-vertical $padding-small-horizontal
299298
font-size $font-size-small
300299
line-height $line-height-small
300+
border-radius $input-border-radius-small
301+
302+
select.form-control
303+
height $input-height-small
304+
line-height $input-height-small
305+
306+
textarea.form-control,
307+
select[multiple].form-control
308+
height auto
309+
310+
.form-control-static
311+
height $input-height-small
301312
min-height ($line-height-computed + $font-size-small)
313+
padding ($padding-small-vertical + 1) $padding-small-horizontal
314+
font-size $font-size-small
315+
line-height $line-height-small
302316

303317
.input-lg
304318
input-size($input-height-large, $padding-large-vertical, $padding-large-horizontal, $font-size-large, $line-height-large, $input-border-radius-large)
305319

306320
.form-group-lg
307321
.form-control
308-
input-size($input-height-large, $padding-large-vertical, $padding-large-horizontal, $font-size-large, $line-height-large, $input-border-radius-large)
309-
310-
.form-control-static
311322
height $input-height-large
312323
padding $padding-large-vertical $padding-large-horizontal
313324
font-size $font-size-large
314325
line-height $line-height-large
326+
border-radius $input-border-radius-large
327+
328+
select.form-control
329+
height $input-height-large
330+
line-height $input-height-large
331+
332+
textarea.form-control,
333+
select[multiple].form-control
334+
height auto
335+
336+
.form-control-static
337+
height $input-height-large
315338
min-height ($line-height-computed + $font-size-large)
339+
padding ($padding-large-vertical + 1) $padding-large-horizontal
340+
font-size $font-size-large
341+
line-height $line-height-large
316342

317343

318344
// Form control feedback states
@@ -340,12 +366,16 @@ input[type="checkbox"]
340366
text-align center
341367
pointer-events none
342368

343-
.input-lg + .form-control-feedback
369+
.input-lg + .form-control-feedback,
370+
.input-group-lg + .form-control-feedback,
371+
.form-group-lg .form-control + .form-control-feedback
344372
width $input-height-large
345373
height $input-height-large
346374
line-height $input-height-large
347375

348-
.input-sm + .form-control-feedback
376+
.input-sm + .form-control-feedback,
377+
.input-group-sm + .form-control-feedback,
378+
.form-group-sm .form-control + .form-control-feedback
349379
width $input-height-small
350380
height $input-height-small
351381
line-height $input-height-small
@@ -490,7 +520,7 @@ input[type="checkbox"]
490520
// Reposition the icon because it's now within a grid column and columns have
491521
// `position relative` on them. Also accounts for the grid gutter padding.
492522
.has-feedback .form-control-feedback
493-
right ($grid-gutter-width / 2)
523+
right floor($grid-gutter-width / 2)
494524

495525
// Form group sizes
496526
//
@@ -500,11 +530,13 @@ input[type="checkbox"]
500530
@media (min-width $screen-sm-min)
501531
.control-label
502532
padding-top (($padding-large-vertical * $line-height-large) + 1)
533+
font-size $font-size-large
503534

504535
.form-group-sm
505536
@media (min-width $screen-sm-min)
506537
.control-label
507538
padding-top ($padding-small-vertical + 1)
539+
font-size $font-size-small
508540

509541
.form-control
510542
@extend .input-sm

bootstrap/index.styl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!!
2-
* Bootstrap v3.3.4 (http://getbootstrap.com)
2+
* Bootstrap v3.3.5 (http://getbootstrap.com)
33
* Copyright 2011-2015 Twitter, Inc.
44
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
55
*/

bootstrap/input-groups.styl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@
139139
&:first-child
140140
> .btn,
141141
> .btn-group
142+
z-index 2
142143
margin-right -1px
143144
&:last-child
144145
> .btn,

bootstrap/jumbotron.styl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55

66
.jumbotron
7-
padding $jumbotron-padding ($jumbotron-padding / 2)
7+
padding-top $jumbotron-padding
8+
padding-bottom $jumbotron-padding
89
margin-bottom $jumbotron-padding
910
color $jumbotron-color
1011
background-color $jumbotron-bg
@@ -29,7 +30,8 @@
2930
max-width 100%
3031

3132
@media screen and (min-width $screen-sm-min)
32-
padding ($jumbotron-padding * 1.6) 0
33+
padding-top ($jumbotron-padding * 1.6)
34+
padding-bottom ($jumbotron-padding * 1.6)
3335

3436
.container &,
3537
.container-fluid &
@@ -38,4 +40,4 @@
3840

3941
h1,
4042
.h1
41-
font-size ($font-size-base * 4.5)
43+
font-size $jumbotron-heading-font-size

0 commit comments

Comments
 (0)