mirror of
https://github.com/twbs/bootstrap.git
synced 2025-03-21 13:29:00 +01:00
Merge branch '3.0.0-wip' into bs3_alerts_default_class
Conflicts: dist/css/bootstrap.min.css
This commit is contained in:
commit
219f0fe7c5
4
css.html
4
css.html
@ -1966,8 +1966,8 @@ For example, <code><section></code> should be wrapped as inline.
|
||||
<tr>
|
||||
<th>Class</th>
|
||||
<th>Small devices <small>Up to 768px</small></th>
|
||||
<th>Medium devices <small>768px to 979px</small></th>
|
||||
<th>Large devices <small>980px and up</small></th>
|
||||
<th>Medium devices <small>768px to 991px</small></th>
|
||||
<th>Large devices <small>992px and up</small></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
@ -660,12 +660,21 @@ base_url: "../"
|
||||
</div>
|
||||
|
||||
<h2 id="variables-alerts">Alerts</h2>
|
||||
<p>Define alert colors and border radius.</p>
|
||||
<p>Define alert colors, border radius, and padding.</p>
|
||||
<h4>Border radius</h4>
|
||||
<label>@alert-padding</label>
|
||||
<input type="text" class="form-control" placeholder="15px">
|
||||
<label>@alert-border-radius</label>
|
||||
<input type="text" class="form-control" placeholder="@border-radius-base">
|
||||
<div class="row">
|
||||
<div class="col-lg-6">
|
||||
<h4>Default (Warning)</h4>
|
||||
<label>@alert-text</label>
|
||||
<input type="text" class="form-control" placeholder="@state-warning-text">
|
||||
<label>@alert-bg</label>
|
||||
<input type="text" class="form-control" placeholder="@state-warning-bg">
|
||||
<label>@alert-border</label>
|
||||
<input type="text" class="form-control" placeholder="@state-warning-border">
|
||||
<h4>Success</h4>
|
||||
<label>@alert-success-text</label>
|
||||
<input type="text" class="form-control" placeholder="@state-success-text">
|
||||
@ -673,13 +682,6 @@ base_url: "../"
|
||||
<input type="text" class="form-control" placeholder="@state-success-bg">
|
||||
<label>@alert-success-border</label>
|
||||
<input type="text" class="form-control" placeholder="@state-success-border">
|
||||
<h4>Warning</h4>
|
||||
<label>@alert-warning-text</label>
|
||||
<input type="text" class="form-control" placeholder="@state-warning-text">
|
||||
<label>@alert-warning-bg</label>
|
||||
<input type="text" class="form-control" placeholder="@state-warning-bg">
|
||||
<label>@alert-warning-border</label>
|
||||
<input type="text" class="form-control" placeholder="@state-warning-border">
|
||||
</div>
|
||||
<div class="col-lg-6">
|
||||
<h4>Danger</h4>
|
||||
|
16
dist/css/bootstrap.css
vendored
16
dist/css/bootstrap.css
vendored
@ -1713,7 +1713,7 @@ textarea.input-sm {
|
||||
padding: 6px 12px;
|
||||
margin-bottom: 0;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
font-weight: bold;
|
||||
line-height: 1.428571429;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
@ -1996,7 +1996,7 @@ fieldset[disabled] .btn-link {
|
||||
fieldset[disabled] .btn-link:hover,
|
||||
.btn-link[disabled]:focus,
|
||||
fieldset[disabled] .btn-link:focus {
|
||||
color: #333333;
|
||||
color: #999999;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
@ -2102,27 +2102,22 @@ input[type="button"].btn-block {
|
||||
padding: 6px 12px;
|
||||
font-size: 14px;
|
||||
font-weight: normal;
|
||||
line-height: 1.428571429;
|
||||
line-height: 1;
|
||||
text-align: center;
|
||||
background-color: #eeeeee;
|
||||
border: 1px solid #cccccc;
|
||||
border-radius: 4px;
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.input-group-addon.input-sm {
|
||||
padding: 5px 10px;
|
||||
font-size: 12px;
|
||||
line-height: 1.5;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.input-group-addon.input-lg {
|
||||
padding: 10px 16px;
|
||||
font-size: 18px;
|
||||
line-height: 1.33;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
@ -3183,6 +3178,11 @@ button.close {
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.btn-group > .btn:focus,
|
||||
.btn-group-vertical > .btn:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.btn-group .btn + .btn {
|
||||
margin-left: -1px;
|
||||
}
|
||||
|
2
dist/css/bootstrap.min.css
vendored
2
dist/css/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
@ -7,7 +7,7 @@
|
||||
// -------------------------
|
||||
|
||||
.alert {
|
||||
padding: 15px 35px 15px 15px;
|
||||
padding: @alert-padding (@alert-padding + 20) @alert-padding @alert-padding;
|
||||
margin-bottom: @line-height-computed;
|
||||
color: @alert-text;
|
||||
background-color: @alert-bg;
|
||||
@ -26,7 +26,7 @@
|
||||
}
|
||||
// Provide class for links that match alerts
|
||||
.alert-link {
|
||||
font-weight: bold;
|
||||
font-weight: @alert-link-font-weight;
|
||||
color: darken(@alert-text, 10%);
|
||||
}
|
||||
|
||||
|
@ -9,14 +9,14 @@
|
||||
min-width: 10px;
|
||||
padding: 3px 7px;
|
||||
font-size: @font-size-small;
|
||||
font-weight: bold;
|
||||
font-weight: @badge-font-weight;
|
||||
color: @badge-color;
|
||||
line-height: 1;
|
||||
line-height: @badge-line-height;
|
||||
vertical-align: baseline;
|
||||
white-space: nowrap;
|
||||
text-align: center;
|
||||
background-color: @badge-bg;
|
||||
border-radius: 10px;
|
||||
border-radius: @badge-border-radius;
|
||||
|
||||
// Empty labels/badges collapse
|
||||
&:empty {
|
||||
|
@ -47,6 +47,10 @@
|
||||
&.active {
|
||||
z-index: 2;
|
||||
}
|
||||
&:focus {
|
||||
// Remove focus outline when dropdown JS adds it after closing the menu
|
||||
outline: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -140,11 +144,11 @@
|
||||
}
|
||||
// Carets in other button sizes
|
||||
.btn-lg .caret {
|
||||
border-width: 5px;
|
||||
border-width: @caret-width-large;
|
||||
}
|
||||
// Upside down carets for .dropup
|
||||
.dropup .btn-lg .caret {
|
||||
border-bottom-width: 5px;
|
||||
border-bottom-width: @caret-width-large;
|
||||
}
|
||||
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
padding: @padding-base-vertical @padding-base-horizontal;
|
||||
margin-bottom: 0; // For input.btn
|
||||
font-size: @font-size-base;
|
||||
font-weight: 500;
|
||||
font-weight: @btn-font-weight;
|
||||
line-height: @line-height-base;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
@ -110,7 +110,7 @@
|
||||
fieldset[disabled] & {
|
||||
&:hover,
|
||||
&:focus {
|
||||
color: @gray-dark;
|
||||
color: @btn-link-disabled-color;
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
@ -69,9 +69,9 @@
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
width: 15%;
|
||||
.opacity(.5);
|
||||
font-size: 20px;
|
||||
width: @carousel-control-width;
|
||||
.opacity(@carousel-control-opacity);
|
||||
font-size: @carousel-control-font-size;
|
||||
color: @carousel-control-color;
|
||||
text-align: center;
|
||||
text-shadow: @carousel-text-shadow;
|
||||
|
@ -6,7 +6,7 @@
|
||||
.close {
|
||||
float: right;
|
||||
font-size: (@font-size-base * 1.5);
|
||||
font-weight: bold;
|
||||
font-weight: @close-font-weight;
|
||||
line-height: 1;
|
||||
color: @close-color;
|
||||
text-shadow: @close-text-shadow;
|
||||
|
@ -11,9 +11,9 @@
|
||||
height: 0;
|
||||
margin-left: 2px;
|
||||
vertical-align: middle;
|
||||
border-top: 4px solid @dropdown-caret-color;
|
||||
border-right: 4px solid transparent;
|
||||
border-left: 4px solid transparent;
|
||||
border-top: @caret-width-base solid @dropdown-caret-color;
|
||||
border-right: @caret-width-base solid transparent;
|
||||
border-left: @caret-width-base solid transparent;
|
||||
content: "";
|
||||
}
|
||||
|
||||
|
@ -44,11 +44,10 @@
|
||||
// Text input groups
|
||||
// -------------------------
|
||||
.input-group-addon {
|
||||
.box-sizing(border-box);
|
||||
padding: @padding-base-vertical @padding-base-horizontal;
|
||||
font-size: @font-size-base;
|
||||
font-weight: normal;
|
||||
line-height: @line-height-base;
|
||||
line-height: 1;
|
||||
text-align: center;
|
||||
background-color: @gray-lighter;
|
||||
border: 1px solid @input-group-addon-border-color;
|
||||
@ -59,13 +58,11 @@
|
||||
padding: @padding-small-vertical @padding-small-horizontal;
|
||||
font-size: @font-size-small;
|
||||
border-radius: @border-radius-small;
|
||||
line-height: @line-height-small;
|
||||
}
|
||||
&.input-lg {
|
||||
padding: @padding-large-vertical @padding-large-horizontal;
|
||||
font-size: @font-size-large;
|
||||
border-radius: @border-radius-large;
|
||||
line-height: @line-height-large;
|
||||
}
|
||||
|
||||
// Nuke default margins from checkboxes and radios to vertically center within.
|
||||
|
@ -78,6 +78,8 @@
|
||||
|
||||
@component-active-bg: @brand-primary;
|
||||
|
||||
@caret-width-base: 4px;
|
||||
@caret-width-large: 5px;
|
||||
|
||||
// Tables
|
||||
// -------------------------
|
||||
@ -96,6 +98,8 @@
|
||||
// Buttons
|
||||
// -------------------------
|
||||
|
||||
@btn-font-weight: bold;
|
||||
|
||||
@btn-default-color: #333;
|
||||
@btn-default-bg: #fff;
|
||||
@btn-default-border: #ccc;
|
||||
@ -120,6 +124,8 @@
|
||||
@btn-info-bg: @brand-info;
|
||||
@btn-info-border: darken(@btn-info-bg, 5%);
|
||||
|
||||
@btn-link-disabled-color: @gray-light;
|
||||
|
||||
|
||||
// Forms
|
||||
// -------------------------
|
||||
@ -404,10 +410,13 @@
|
||||
|
||||
// Alerts
|
||||
// -------------------------
|
||||
@alert-padding: 15px;
|
||||
@alert-border-radius: @border-radius-base;
|
||||
@alert-link-font-weight: bold;
|
||||
|
||||
@alert-bg: @state-warning-bg;
|
||||
@alert-text: @state-warning-text;
|
||||
@alert-border: @state-warning-border;
|
||||
@alert-border-radius: @border-radius-base;
|
||||
|
||||
@alert-success-bg: @state-success-bg;
|
||||
@alert-success-text: @state-success-text;
|
||||
@ -500,11 +509,15 @@
|
||||
// -------------------------
|
||||
@badge-color: #fff;
|
||||
@badge-link-hover-color: #fff;
|
||||
|
||||
@badge-bg: @gray-light;
|
||||
|
||||
@badge-active-color: @link-color;
|
||||
@badge-active-bg: #fff;
|
||||
|
||||
@badge-font-weight: bold;
|
||||
@badge-line-height: 1;
|
||||
@badge-border-radius: 10px;
|
||||
|
||||
|
||||
// Breadcrumbs
|
||||
// -------------------------
|
||||
@ -515,12 +528,16 @@
|
||||
|
||||
// Carousel
|
||||
// ------------------------
|
||||
|
||||
@carousel-text-shadow: 0 1px 2px rgba(0,0,0,.6);
|
||||
|
||||
@carousel-control-color: #fff;
|
||||
@carousel-control-width: 15%;
|
||||
@carousel-control-opacity: .5;
|
||||
@carousel-control-font-size: 20px;
|
||||
|
||||
@carousel-indicator-border-color: #fff;
|
||||
@carousel-indicator-active-bg: #fff;
|
||||
@carousel-indicator-border-color: #fff;
|
||||
|
||||
@carousel-caption-color: #fff;
|
||||
|
||||
@ -528,6 +545,7 @@
|
||||
// Close
|
||||
// ------------------------
|
||||
@close-color: #000;
|
||||
@close-font-weight: bold;
|
||||
@close-text-shadow: 0 1px 0 #fff;
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user