Skip to content

Commit 63e62f2

Browse files
committed
Merge branch 'release/3.0.0.0'
* release/3.0.0.0: Bump version to 3.0.0.0 Update to Bootstrap 3.0.0 Glyphicons is now officially part of BS3 Integrate changes up to twbs/bootstrap@c0f477a Integrate changes up to twbs/bootstrap@fee3f1e Integrate changes up to twbs/bootstrap@b9620a1 Integrate changes up to twbs/bootstrap@13d2616
2 parents 8a86b57 + 9dadb9d commit 63e62f2

Some content is hidden

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

44 files changed

+1525
-977
lines changed

README.md

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -67,26 +67,6 @@ within `.css.scss` files.
6767
}
6868
```
6969

70-
### Icon Fonts
71-
72-
To ease the common use case of extending Twitter Bootstrap with a icon
73-
font the official [Glyphicons for Bootstrap]() icon font has been
74-
included in this gem.
75-
76-
You can use it like this
77-
78-
```css
79-
/*
80-
*= require twitter/bootstrap/_glyphicons.scss
81-
*/
82-
```
83-
84-
or
85-
86-
```css
87-
@import "twitter/bootstrap/glyphicons";
88-
```
89-
9070
### Javascripts
9171

9272
Using the JavaScript works the same way. You can include them all with a
Binary file not shown.

app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.svg

Lines changed: 228 additions & 0 deletions
Loading
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

app/assets/fonts/twitter/bootstrap/glyphiconshalflings-regular.svg

Lines changed: 0 additions & 175 deletions
This file was deleted.
Binary file not shown.
Binary file not shown.

app/assets/javascripts/twitter/bootstrap/dropdown.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
clearMenus()
4141

4242
if (!isActive) {
43-
if ('ontouchstart' in document.documentElement) {
43+
if ('ontouchstart' in document.documentElement && !$parent.closest('.navbar-nav').length) {
4444
// if mobile we we use a backdrop because click events don't delegate
4545
$('<div class="dropdown-backdrop"/>').insertAfter($(this)).on('click', clearMenus)
4646
}
@@ -52,9 +52,9 @@
5252
$parent
5353
.toggleClass('open')
5454
.trigger('shown.bs.dropdown')
55-
}
5655

57-
$this.focus()
56+
$this.focus()
57+
}
5858

5959
return false
6060
}

app/assets/javascripts/twitter/bootstrap/modal.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
var Modal = function (element, options) {
2727
this.options = options
28-
this.$element = $(element).on('click.dismiss.modal', '[data-dismiss="modal"]', $.proxy(this.hide, this))
28+
this.$element = $(element)
2929
this.$backdrop =
3030
this.isShown = null
3131

@@ -54,6 +54,8 @@
5454

5555
this.escape()
5656

57+
this.$element.on('click.dismiss.modal', '[data-dismiss="modal"]', $.proxy(this.hide, this))
58+
5759
this.backdrop(function () {
5860
var transition = $.support.transition && that.$element.hasClass('fade')
5961

@@ -76,7 +78,7 @@
7678
var e = $.Event('shown.bs.modal', { relatedTarget: _relatedTarget })
7779

7880
transition ?
79-
that.$element
81+
that.$element.find('.modal-dialog') // wait for modal to slide in
8082
.one($.support.transition.end, function () {
8183
that.$element.focus().trigger(e)
8284
})
@@ -238,7 +240,7 @@
238240
})
239241

240242
$(document)
241-
.on('shown.bs.modal', '.modal', function () { $(document.body).addClass('modal-open') })
243+
.on('show.bs.modal', '.modal', function () { $(document.body).addClass('modal-open') })
242244
.on('hidden.bs.modal', '.modal', function () { $(document.body).removeClass('modal-open') })
243245

244246
}(window.jQuery);

app/assets/javascripts/twitter/bootstrap/tooltip.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,11 @@
108108

109109
clearTimeout(self.timeout)
110110

111+
self.hoverState = 'in'
112+
111113
if (!self.options.delay || !self.options.delay.show) return self.show()
112114

113-
self.hoverState = 'in'
114-
self.timeout = setTimeout(function () {
115+
self.timeout = setTimeout(function () {
115116
if (self.hoverState == 'in') self.show()
116117
}, self.options.delay.show)
117118
}
@@ -122,10 +123,11 @@
122123

123124
clearTimeout(self.timeout)
124125

126+
self.hoverState = 'out'
127+
125128
if (!self.options.delay || !self.options.delay.hide) return self.hide()
126129

127-
self.hoverState = 'out'
128-
self.timeout = setTimeout(function () {
130+
self.timeout = setTimeout(function () {
129131
if (self.hoverState == 'out') self.hide()
130132
}, self.options.delay.hide)
131133
}
@@ -258,7 +260,9 @@
258260
var $tip = this.tip()
259261
var e = $.Event('hide.bs.' + this.type)
260262

261-
function complete() { $tip.detach() }
263+
function complete() {
264+
if (that.hoverState != 'in') $tip.detach()
265+
}
262266

263267
this.$element.trigger(e)
264268

app/assets/javascripts/twitter/bootstrap/transition.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
// http://blog.alexmaccaw.com/css-transitions
4444
$.fn.emulateTransitionEnd = function (duration) {
45-
var called = false, $el = this
45+
var called = false, $el = this
4646
$(this).one($.support.transition.end, function () { called = true })
4747
var callback = function () { if (!called) $($el).trigger($.support.transition.end) }
4848
setTimeout(callback, duration)

app/assets/stylesheets/twitter/bootstrap.css.scss

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -21,43 +21,39 @@
2121
@import "twitter/bootstrap/type";
2222
@import "twitter/bootstrap/code";
2323
@import "twitter/bootstrap/grid";
24-
2524
@import "twitter/bootstrap/tables";
2625
@import "twitter/bootstrap/forms";
2726
@import "twitter/bootstrap/buttons";
2827

29-
// Components: common
28+
// Components
3029
@import "twitter/bootstrap/component-animations";
31-
@import "twitter/bootstrap/input-groups";
30+
@import "twitter/bootstrap/glyphicons";
3231
@import "twitter/bootstrap/dropdowns";
33-
@import "twitter/bootstrap/list-group";
34-
@import "twitter/bootstrap/panels";
35-
@import "twitter/bootstrap/wells";
36-
@import "twitter/bootstrap/close";
37-
38-
// Components: Nav
32+
@import "twitter/bootstrap/button-groups";
33+
@import "twitter/bootstrap/input-groups";
3934
@import "twitter/bootstrap/navs";
4035
@import "twitter/bootstrap/navbar";
41-
@import "twitter/bootstrap/button-groups";
4236
@import "twitter/bootstrap/breadcrumbs";
4337
@import "twitter/bootstrap/pagination";
4438
@import "twitter/bootstrap/pager";
39+
@import "twitter/bootstrap/labels";
40+
@import "twitter/bootstrap/badges";
41+
@import "twitter/bootstrap/jumbotron";
42+
@import "twitter/bootstrap/thumbnails";
43+
@import "twitter/bootstrap/alerts";
44+
@import "twitter/bootstrap/progress-bars";
45+
@import "twitter/bootstrap/media";
46+
@import "twitter/bootstrap/list-group";
47+
@import "twitter/bootstrap/panels";
48+
@import "twitter/bootstrap/wells";
49+
@import "twitter/bootstrap/close";
4550

46-
// Components: Popovers
51+
// Components w/ JavaScript
4752
@import "twitter/bootstrap/modals";
4853
@import "twitter/bootstrap/tooltip";
4954
@import "twitter/bootstrap/popovers";
50-
51-
// Components: Misc
52-
@import "twitter/bootstrap/alerts";
53-
@import "twitter/bootstrap/thumbnails";
54-
@import "twitter/bootstrap/media";
55-
@import "twitter/bootstrap/labels";
56-
@import "twitter/bootstrap/badges";
57-
@import "twitter/bootstrap/progress-bars";
5855
@import "twitter/bootstrap/carousel";
59-
@import "twitter/bootstrap/jumbotron";
6056

6157
// Utility classes
62-
@import "twitter/bootstrap/utilities"; // Has to be last to override when necessary
58+
@import "twitter/bootstrap/utilities";
6359
@import "twitter/bootstrap/responsive-utilities";

app/assets/stylesheets/twitter/bootstrap/_alerts.scss

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
.alert {
1010
padding: $alert-padding;
1111
margin-bottom: $line-height-computed;
12-
color: $alert-text;
13-
background-color: $alert-bg;
14-
border: 1px solid $alert-border;
12+
border: 1px solid transparent;
1513
border-radius: $alert-border-radius;
1614

1715
// Headings for larger alerts
@@ -20,14 +18,9 @@
2018
// Specified for the h4 to prevent conflicts of changing $headingsColor
2119
color: inherit;
2220
}
23-
// Match the hr to the border of the alert
24-
hr {
25-
border-top-color: darken($alert-border, 5%);
26-
}
2721
// Provide class for links that match alerts
2822
.alert-link {
2923
font-weight: $alert-link-font-weight;
30-
color: darken($alert-text, 10%);
3124
}
3225

3326
// Improve alignment and spacing of inner content
@@ -63,9 +56,12 @@
6356
.alert-success {
6457
@include alert-variant($alert-success-bg, $alert-success-border, $alert-success-text);
6558
}
66-
.alert-danger {
67-
@include alert-variant($alert-danger-bg, $alert-danger-border, $alert-danger-text);
68-
}
6959
.alert-info {
7060
@include alert-variant($alert-info-bg, $alert-info-border, $alert-info-text);
7161
}
62+
.alert-warning {
63+
@include alert-variant($alert-warning-bg, $alert-warning-border, $alert-warning-text);
64+
}
65+
.alert-danger {
66+
@include alert-variant($alert-danger-bg, $alert-danger-border, $alert-danger-text);
67+
}

app/assets/stylesheets/twitter/bootstrap/_button-groups.scss

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,18 @@
1818
border-top-color: #fff;
1919
}
2020
}
21-
.dropup .caret {
22-
.btn-default & {
21+
.dropup {
22+
& .btn-default .caret {
2323
border-bottom-color: $btn-default-color;
2424
}
25-
.btn-primary &,
26-
.btn-success &,
27-
.btn-warning &,
28-
.btn-danger &,
29-
.btn-info & {
30-
border-bottom-color: #fff;
25+
.btn-primary,
26+
.btn-success,
27+
.btn-warning,
28+
.btn-danger,
29+
.btn-info {
30+
.caret {
31+
border-bottom-color: #fff;
32+
}
3133
}
3234
}
3335

@@ -157,11 +159,12 @@
157159
}
158160
// Carets in other button sizes
159161
.btn-lg .caret {
160-
border-width: $caret-width-large;
162+
border-width: $caret-width-large $caret-width-large 0;
163+
border-bottom-width: 0;
161164
}
162165
// Upside down carets for .dropup
163166
.dropup .btn-lg .caret {
164-
border-bottom-width: $caret-width-large;
167+
border-width: 0 $caret-width-large $caret-width-large;
165168
}
166169

167170

@@ -229,6 +232,7 @@
229232
display: table;
230233
width: 100%;
231234
table-layout: fixed;
235+
border-collapse: separate;
232236
.btn {
233237
float: none;
234238
display: table-cell;

app/assets/stylesheets/twitter/bootstrap/_buttons.scss

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,14 @@
3535
&:active,
3636
&.active {
3737
outline: 0;
38+
background-image: none;
3839
@include box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
3940
}
4041

4142
&.disabled,
4243
&[disabled],
4344
fieldset[disabled] & {
44-
cursor: default;
45+
cursor: not-allowed;
4546
pointer-events: none; // Future-proof disabling of clicks
4647
@include opacity(.65);
4748
@include box-shadow(none);
@@ -53,28 +54,16 @@
5354
// Alternate buttons
5455
// --------------------------------------------------
5556

56-
.btn-default {
57-
@include button-variant($btn-default-color, $btn-default-bg, $btn-default-border);
58-
}
59-
.btn-primary {
60-
@include button-variant($btn-primary-color, $btn-primary-bg, $btn-primary-border);
61-
}
57+
@include button-variant('.btn-default', $btn-default-color, $btn-default-bg, $btn-default-border);
58+
@include button-variant('.btn-primary', $btn-primary-color, $btn-primary-bg, $btn-primary-border);
6259
// Warning appears as orange
63-
.btn-warning {
64-
@include button-variant($btn-warning-color, $btn-warning-bg, $btn-warning-border);
65-
}
60+
@include button-variant('.btn-warning', $btn-warning-color, $btn-warning-bg, $btn-warning-border);
6661
// Danger and error appear as red
67-
.btn-danger {
68-
@include button-variant($btn-danger-color, $btn-danger-bg, $btn-danger-border);
69-
}
62+
@include button-variant('.btn-danger', $btn-danger-color, $btn-danger-bg, $btn-danger-border);
7063
// Success appears as green
71-
.btn-success {
72-
@include button-variant($btn-success-color, $btn-success-bg, $btn-success-border);
73-
}
64+
@include button-variant('.btn-success', $btn-success-color, $btn-success-bg, $btn-success-border);
7465
// Info appears as blue-green
75-
.btn-info {
76-
@include button-variant($btn-info-color, $btn-info-bg, $btn-info-border);
77-
}
66+
@include button-variant('.btn-info', $btn-info-color, $btn-info-bg, $btn-info-border);
7867

7968

8069
// Link buttons
@@ -130,7 +119,7 @@
130119
@include button-size($padding-small-vertical, $padding-small-horizontal, $font-size-small, $line-height-small, $border-radius-small);
131120
}
132121
.btn-xs {
133-
padding: 3px 5px;
122+
padding: 1px 5px;
134123
}
135124

136125

app/assets/stylesheets/twitter/bootstrap/_carousel.scss

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// Account for jankitude on images
2222
> img,
2323
> a > img {
24-
@extend .img-responsive;
24+
@include img-responsive();
2525
line-height: 1;
2626
}
2727
}
@@ -98,12 +98,17 @@
9898

9999
// Toggles
100100
.icon-prev,
101-
.icon-next {
101+
.icon-next,
102+
.glyphicon-chevron-left,
103+
.glyphicon-chevron-right {
102104
position: absolute;
103105
top: 50%;
104106
left: 50%;
105107
z-index: 5;
106108
display: inline-block;
109+
}
110+
.icon-prev,
111+
.icon-next {
107112
width: 20px;
108113
height: 20px;
109114
margin-top: -10px;

0 commit comments

Comments
 (0)