mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
adding warning (orange) button, fix responsive navbar problem
This commit is contained in:
parent
a29dee44ac
commit
2d40b07afc
Binary file not shown.
9
docs/assets/css/bootstrap-responsive.css
vendored
9
docs/assets/css/bootstrap-responsive.css
vendored
@ -195,11 +195,11 @@
|
|||||||
.row-fluid:after {
|
.row-fluid:after {
|
||||||
clear: both;
|
clear: both;
|
||||||
}
|
}
|
||||||
.row-fluid [class*="span"] {
|
.row-fluid > [class*="span"] {
|
||||||
float: left;
|
float: left;
|
||||||
margin-left: 2.762430939%;
|
margin-left: 2.762430939%;
|
||||||
}
|
}
|
||||||
.row-fluid [class*="span"]:first-child {
|
.row-fluid > [class*="span"]:first-child {
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
.row-fluid .span1 {
|
.row-fluid .span1 {
|
||||||
@ -288,6 +288,7 @@
|
|||||||
background-image: none;
|
background-image: none;
|
||||||
}
|
}
|
||||||
.navbar .container {
|
.navbar .container {
|
||||||
|
width: auto;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
.navbar .brand {
|
.navbar .brand {
|
||||||
@ -476,11 +477,11 @@
|
|||||||
.row-fluid:after {
|
.row-fluid:after {
|
||||||
clear: both;
|
clear: both;
|
||||||
}
|
}
|
||||||
.row-fluid [class*="span"] {
|
.row-fluid > [class*="span"] {
|
||||||
float: left;
|
float: left;
|
||||||
margin-left: 2.564102564%;
|
margin-left: 2.564102564%;
|
||||||
}
|
}
|
||||||
.row-fluid [class*="span"]:first-child {
|
.row-fluid > [class*="span"]:first-child {
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
.row-fluid .span1 {
|
.row-fluid .span1 {
|
||||||
|
31
docs/assets/css/bootstrap.css
vendored
31
docs/assets/css/bootstrap.css
vendored
@ -205,11 +205,11 @@ a:hover {
|
|||||||
.row-fluid:after {
|
.row-fluid:after {
|
||||||
clear: both;
|
clear: both;
|
||||||
}
|
}
|
||||||
.row-fluid [class*="span"] {
|
.row-fluid > [class*="span"] {
|
||||||
float: left;
|
float: left;
|
||||||
margin-left: 2.127659574%;
|
margin-left: 2.127659574%;
|
||||||
}
|
}
|
||||||
.row-fluid [class*="span"]:first-child {
|
.row-fluid > [class*="span"]:first-child {
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
.row-fluid .span1 {
|
.row-fluid .span1 {
|
||||||
@ -1655,6 +1655,8 @@ table .span12 {
|
|||||||
}
|
}
|
||||||
.btn.primary,
|
.btn.primary,
|
||||||
.btn.primary:hover,
|
.btn.primary:hover,
|
||||||
|
.btn.warning,
|
||||||
|
.btn.warning:hover,
|
||||||
.btn.danger,
|
.btn.danger,
|
||||||
.btn.danger:hover,
|
.btn.danger:hover,
|
||||||
.btn.success,
|
.btn.success,
|
||||||
@ -1665,6 +1667,7 @@ table .span12 {
|
|||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
}
|
}
|
||||||
.btn.primary.active,
|
.btn.primary.active,
|
||||||
|
.btn.warning.active,
|
||||||
.btn.danger.active,
|
.btn.danger.active,
|
||||||
.btn.success.active,
|
.btn.success.active,
|
||||||
.btn.info.active {
|
.btn.info.active {
|
||||||
@ -1694,6 +1697,30 @@ table .span12 {
|
|||||||
.btn.primary:active, .btn.primary.active {
|
.btn.primary:active, .btn.primary.active {
|
||||||
background-color: #003399 \9;
|
background-color: #003399 \9;
|
||||||
}
|
}
|
||||||
|
.btn.warning {
|
||||||
|
background-color: #faa732;
|
||||||
|
background-image: -moz-linear-gradient(top, #fbb450, #f89406);
|
||||||
|
background-image: -ms-linear-gradient(top, #fbb450, #f89406);
|
||||||
|
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fbb450), to(#f89406));
|
||||||
|
background-image: -webkit-linear-gradient(top, #fbb450, #f89406);
|
||||||
|
background-image: -o-linear-gradient(top, #fbb450, #f89406);
|
||||||
|
background-image: linear-gradient(top, #fbb450, #f89406);
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fbb450', endColorstr='#f89406', GradientType=0);
|
||||||
|
border-color: #f89406 #f89406 #ad6704;
|
||||||
|
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||||
|
}
|
||||||
|
.btn.warning:hover,
|
||||||
|
.btn.warning:active,
|
||||||
|
.btn.warning.active,
|
||||||
|
.btn.warning.disabled,
|
||||||
|
.btn.warning[disabled] {
|
||||||
|
background-color: #f89406;
|
||||||
|
}
|
||||||
|
.btn.warning:active, .btn.warning.active {
|
||||||
|
background-color: #c67605 \9;
|
||||||
|
}
|
||||||
.btn.danger {
|
.btn.danger {
|
||||||
background-color: #da4f49;
|
background-color: #da4f49;
|
||||||
background-image: -moz-linear-gradient(top, #ee5f5b, #bd362f);
|
background-image: -moz-linear-gradient(top, #ee5f5b, #bd362f);
|
||||||
|
@ -1229,6 +1229,11 @@ For example, <code>section</code> should be wrapped as inline.
|
|||||||
<td><code>.success</code></td>
|
<td><code>.success</code></td>
|
||||||
<td>Indicates a successful or positive action</td>
|
<td>Indicates a successful or positive action</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><a class="btn warning" href="#">Warning</a></td>
|
||||||
|
<td><code>.warning</code></td>
|
||||||
|
<td>Indicates caution should be taken with this action</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><a class="btn danger" href="#">Danger</a></td>
|
<td><a class="btn danger" href="#">Danger</a></td>
|
||||||
<td><code>.danger</code></td>
|
<td><code>.danger</code></td>
|
||||||
|
5
docs/templates/pages/base-css.mustache
vendored
5
docs/templates/pages/base-css.mustache
vendored
@ -1153,6 +1153,11 @@
|
|||||||
<td><code>.success</code></td>
|
<td><code>.success</code></td>
|
||||||
<td>{{_i}}Indicates a successful or positive action{{/i}}</td>
|
<td>{{_i}}Indicates a successful or positive action{{/i}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><a class="btn warning" href="#">{{_i}}Warning{{/i}}</a></td>
|
||||||
|
<td><code>.warning</code></td>
|
||||||
|
<td>{{_i}}Indicates caution should be taken with this action{{/i}}</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><a class="btn danger" href="#">{{_i}}Danger{{/i}}</a></td>
|
<td><a class="btn danger" href="#">{{_i}}Danger{{/i}}</a></td>
|
||||||
<td><code>.danger</code></td>
|
<td><code>.danger</code></td>
|
||||||
|
@ -9,6 +9,8 @@
|
|||||||
// Set text color
|
// Set text color
|
||||||
&.primary,
|
&.primary,
|
||||||
&.primary:hover,
|
&.primary:hover,
|
||||||
|
&.warning,
|
||||||
|
&.warning:hover,
|
||||||
&.danger,
|
&.danger,
|
||||||
&.danger:hover,
|
&.danger:hover,
|
||||||
&.success,
|
&.success,
|
||||||
@ -19,6 +21,7 @@
|
|||||||
color: @white
|
color: @white
|
||||||
}
|
}
|
||||||
&.primary.active,
|
&.primary.active,
|
||||||
|
&.warning.active,
|
||||||
&.danger.active,
|
&.danger.active,
|
||||||
&.success.active,
|
&.success.active,
|
||||||
&.info.active {
|
&.info.active {
|
||||||
@ -27,6 +30,10 @@
|
|||||||
&.primary {
|
&.primary {
|
||||||
.buttonBackground(@primaryButtonBackground, spin(@primaryButtonBackground, 20));
|
.buttonBackground(@primaryButtonBackground, spin(@primaryButtonBackground, 20));
|
||||||
}
|
}
|
||||||
|
// Warning appears are orange
|
||||||
|
&.warning {
|
||||||
|
.buttonBackground(lighten(@orange, 15%), @orange);
|
||||||
|
}
|
||||||
// Danger and error appear as red
|
// Danger and error appear as red
|
||||||
&.danger {
|
&.danger {
|
||||||
.buttonBackground(#ee5f5b, #bd362f);
|
.buttonBackground(#ee5f5b, #bd362f);
|
||||||
|
@ -212,10 +212,10 @@
|
|||||||
.clearfix();
|
.clearfix();
|
||||||
|
|
||||||
// Find all .span# classes within .row and give them the necessary properties for grid columns (supported by all browsers back to IE7, thanks @dhg)
|
// Find all .span# classes within .row and give them the necessary properties for grid columns (supported by all browsers back to IE7, thanks @dhg)
|
||||||
[class*="span"] {
|
> [class*="span"] {
|
||||||
#fluidGridSystem > .gridColumn(@fluidGridGutterWidth);
|
#fluidGridSystem > .gridColumn(@fluidGridGutterWidth);
|
||||||
}
|
}
|
||||||
[class*="span"]:first-child {
|
> [class*="span"]:first-child {
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
// Default columns
|
// Default columns
|
||||||
|
@ -184,6 +184,7 @@
|
|||||||
background-image: none;
|
background-image: none;
|
||||||
}
|
}
|
||||||
.navbar .container {
|
.navbar .container {
|
||||||
|
width: auto;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
// Account for brand name
|
// Account for brand name
|
||||||
|
Loading…
Reference in New Issue
Block a user