Skip to content

Commit 5ae93e7

Browse files
committed
rake update[v4-dev]
1 parent ff5dc4b commit 5ae93e7

20 files changed

Lines changed: 189 additions & 140 deletions
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
//= require ./bootstrap/util
2-
//= require ./bootstrap/alert
3-
//= require ./bootstrap/dropdown
4-
//= require ./bootstrap/tab
5-
//= require ./bootstrap/modal
62
//= require ./bootstrap/tooltip
73
//= require ./bootstrap/popover
4+
//= require ./bootstrap/alert
85
//= require ./bootstrap/carousel
9-
//= require ./bootstrap/button
6+
//= require ./bootstrap/dropdown
7+
//= require ./bootstrap/modal
8+
//= require ./bootstrap/tab
109
//= require ./bootstrap/scrollspy
1110
//= require ./bootstrap/collapse
11+
//= require ./bootstrap/button

assets/stylesheets/bootstrap/_alert.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
// Expand the right padding and account for the close button's positioning.
2828

2929
.alert-dismissible {
30+
padding-right: ($close-font-size + $alert-padding-x * 2);
31+
3032
// Adjust close link position
3133
.close {
3234
position: absolute;

assets/stylesheets/bootstrap/_button-group.scss

Lines changed: 40 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
// Bring the hover, focused, and "active" buttons to the front to overlay
1515
// the borders properly
1616
@include hover {
17-
z-index: 2;
17+
z-index: 1;
1818
}
1919
&:focus,
2020
&:active,
2121
&.active {
22-
z-index: 2;
22+
z-index: 1;
2323
}
2424
}
2525

@@ -43,47 +43,50 @@
4343
}
4444
}
4545

46-
.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {
47-
border-radius: 0;
48-
}
46+
.btn-group {
47+
> .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {
48+
border-radius: 0;
49+
}
4950

50-
// Set corners individual because sometimes a single button can be in a .btn-group
51-
// and we need :first-child and :last-child to both match
52-
.btn-group > .btn:first-child {
53-
margin-left: 0;
51+
// Set corners individual because sometimes a single button can be in a .btn-group
52+
// and we need :first-child and :last-child to both match
53+
> .btn:first-child {
54+
margin-left: 0;
5455

55-
&:not(:last-child):not(.dropdown-toggle) {
56-
@include border-right-radius(0);
56+
&:not(:last-child):not(.dropdown-toggle) {
57+
@include border-right-radius(0);
58+
}
5759
}
58-
}
59-
// Need .dropdown-toggle since :last-child doesn't apply given a .dropdown-menu
60-
// immediately after it
61-
.btn-group > .btn:last-child:not(:first-child),
62-
.btn-group > .dropdown-toggle:not(:first-child) {
63-
@include border-left-radius(0);
64-
}
6560

66-
// Custom edits for including btn-groups within btn-groups (useful for including
67-
// dropdown buttons within a btn-group)
68-
.btn-group > .btn-group {
69-
float: left;
70-
}
7161

72-
.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {
73-
border-radius: 0;
74-
}
62+
// Need .dropdown-toggle since :last-child doesn't apply given a .dropdown-menu
63+
// immediately after it
64+
> .btn:last-child:not(:first-child),
65+
> .dropdown-toggle:not(:first-child) {
66+
@include border-left-radius(0);
67+
}
7568

76-
.btn-group > .btn-group:first-child:not(:last-child) {
77-
> .btn:last-child,
78-
> .dropdown-toggle {
79-
@include border-right-radius(0);
69+
// Custom edits for including btn-groups within btn-groups (useful for including
70+
// dropdown buttons within a btn-group)
71+
> .btn-group {
72+
float: left;
8073
}
81-
}
8274

83-
.btn-group > .btn-group:last-child:not(:first-child) > .btn:first-child {
84-
@include border-left-radius(0);
85-
}
75+
> .btn-group:not(:first-child):not(:last-child) > .btn {
76+
border-radius: 0;
77+
}
78+
79+
> .btn-group:first-child:not(:last-child) {
80+
> .btn:last-child,
81+
> .dropdown-toggle {
82+
@include border-right-radius(0);
83+
}
84+
}
8685

86+
> .btn-group:last-child:not(:first-child) > .btn:first-child {
87+
@include border-left-radius(0);
88+
}
89+
}
8790

8891
// Sizing
8992
//
@@ -197,10 +200,12 @@
197200
[data-toggle="buttons"] {
198201
> .btn,
199202
> .btn-group > .btn {
203+
margin-bottom: 0; // Override default `<label>` value
204+
200205
input[type="radio"],
201206
input[type="checkbox"] {
202207
position: absolute;
203-
clip: rect(0,0,0,0);
208+
clip: rect(0, 0, 0, 0);
204209
pointer-events: none;
205210
}
206211
}

assets/stylesheets/bootstrap/_buttons.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,11 @@ fieldset[disabled] a.btn {
119119
.btn-block {
120120
display: block;
121121
width: 100%;
122-
}
123122

124-
// Vertically space out multiple block buttons
125-
.btn-block + .btn-block {
126-
margin-top: $btn-block-spacing-y;
123+
// Vertically space out multiple block buttons
124+
+ .btn-block {
125+
margin-top: $btn-block-spacing-y;
126+
}
127127
}
128128

129129
// Specificity overrides

assets/stylesheets/bootstrap/_card.scss

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -194,42 +194,50 @@
194194
&:first-child {
195195
@include border-right-radius(0);
196196

197-
.card-img-top {
197+
.card-img-top,
198+
.card-header {
198199
border-top-right-radius: 0;
199200
}
200-
.card-img-bottom {
201+
.card-img-bottom,
202+
.card-footer {
201203
border-bottom-right-radius: 0;
202204
}
203205
}
204206

205207
&:last-child {
206208
@include border-left-radius(0);
207209

208-
.card-img-top {
210+
.card-img-top,
211+
.card-header {
209212
border-top-left-radius: 0;
210213
}
211-
.card-img-bottom {
214+
.card-img-bottom,
215+
.card-footer {
212216
border-bottom-left-radius: 0;
213217
}
214218
}
215219

216220
&:only-child {
217221
@include border-radius($card-border-radius);
218222

219-
.card-img-top {
223+
.card-img-top,
224+
.card-header {
220225
@include border-top-radius($card-border-radius);
221226
}
222-
.card-img-bottom {
227+
.card-img-bottom,
228+
.card-footer {
223229
@include border-bottom-radius($card-border-radius);
224230
}
225231
}
226232

227233
&:not(:first-child):not(:last-child):not(:only-child) {
228-
border-radius: 0;
234+
@include border-radius(0);
229235

230236
.card-img-top,
231-
.card-img-bottom {
232-
border-radius: 0;
237+
.card-img-bottom,
238+
.card-header,
239+
.card-footer {
240+
@include border-radius(0);
233241
}
234242
}
235243
}

assets/stylesheets/bootstrap/_carousel.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,13 @@
9191
.carousel-control-prev {
9292
left: 0;
9393
@if $enable-gradients {
94-
background: linear-gradient(90deg, rgba(0,0,0,.25), rgba(0,0,0,.001));
94+
background: linear-gradient(90deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .001));
9595
}
9696
}
9797
.carousel-control-next {
9898
right: 0;
9999
@if $enable-gradients {
100-
background: linear-gradient(270deg, rgba(0,0,0,.25), rgba(0,0,0,.001));
100+
background: linear-gradient(270deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .001));
101101
}
102102
}
103103

assets/stylesheets/bootstrap/_code.scss

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ kbd {
4242
// Blocks of code
4343
pre {
4444
display: block;
45-
margin-top: 0;
46-
margin-bottom: 1rem;
4745
font-size: $code-font-size;
4846
color: $pre-color;
4947

@@ -53,7 +51,7 @@ pre {
5351
font-size: inherit;
5452
color: inherit;
5553
background-color: transparent;
56-
border-radius: 0;
54+
@include border-radius(0);
5755
}
5856
}
5957

assets/stylesheets/bootstrap/_dropdown.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
background-color: $dropdown-bg;
2828
background-clip: padding-box;
2929
border: $dropdown-border-width solid $dropdown-border-color;
30-
@include border-radius($border-radius);
30+
@include border-radius($dropdown-border-radius);
3131
@include box-shadow($dropdown-box-shadow);
3232
}
3333

assets/stylesheets/bootstrap/_forms.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
line-height: $input-btn-line-height;
1313
color: $input-color;
1414
background-color: $input-bg;
15-
// Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214.
16-
background-image: none;
1715
background-clip: padding-box;
1816
border: $input-btn-border-width solid $input-border-color;
1917

@@ -129,6 +127,8 @@ select.form-control {
129127
// text (without any border, background color, focus indicator)
130128

131129
.form-control-plaintext {
130+
display: block;
131+
width: 100%;
132132
padding-top: $input-btn-padding-y;
133133
padding-bottom: $input-btn-padding-y;
134134
margin-bottom: 0; // match inputs if this class comes on inputs with default margins

assets/stylesheets/bootstrap/_functions.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@
5757
$yiq: (($r * 299) + ($g * 587) + ($b * 114)) / 1000;
5858

5959
@if ($yiq >= 150) {
60-
@return #111;
60+
@return $yiq-text-dark;
6161
} @else {
62-
@return #fff;
62+
@return $yiq-text-light;
6363
}
6464
}
6565

0 commit comments

Comments
 (0)