mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-18 10:52:19 +01:00
Merge branch '3.0.0-wip' of https://github.com/vickash/bootstrap into vickash-3.0.0-wip
This commit is contained in:
commit
2f7087eae9
78
docs/assets/css/bootstrap.css
vendored
78
docs/assets/css/bootstrap.css
vendored
@ -1745,6 +1745,19 @@ input[type="button"].btn-block {
|
||||
border-color: #8d9091;
|
||||
}
|
||||
|
||||
.btn.disabled:hover,
|
||||
.btn[disabled]:hover,
|
||||
fieldset[disabled] .btn:hover,
|
||||
.btn.disabled:focus,
|
||||
.btn[disabled]:focus,
|
||||
fieldset[disabled] .btn:focus,
|
||||
.btn.disabled:active,
|
||||
.btn[disabled]:active,
|
||||
fieldset[disabled] .btn:active {
|
||||
background-color: #a7a9aa;
|
||||
border-color: #a7a9aa;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background-color: #428bca;
|
||||
border-color: #428bca;
|
||||
@ -1757,6 +1770,19 @@ input[type="button"].btn-block {
|
||||
border-color: #3071a9;
|
||||
}
|
||||
|
||||
.btn-primary.disabled:hover,
|
||||
.btn-primary[disabled]:hover,
|
||||
fieldset[disabled] .btn-primary:hover,
|
||||
.btn-primary.disabled:focus,
|
||||
.btn-primary[disabled]:focus,
|
||||
fieldset[disabled] .btn-primary:focus,
|
||||
.btn-primary.disabled:active,
|
||||
.btn-primary[disabled]:active,
|
||||
fieldset[disabled] .btn-primary:active {
|
||||
background-color: #428bca;
|
||||
border-color: #428bca;
|
||||
}
|
||||
|
||||
.btn-warning {
|
||||
background-color: #f0ad4e;
|
||||
border-color: #f0ad4e;
|
||||
@ -1769,6 +1795,19 @@ input[type="button"].btn-block {
|
||||
border-color: #ec971f;
|
||||
}
|
||||
|
||||
.btn-warning.disabled:hover,
|
||||
.btn-warning[disabled]:hover,
|
||||
fieldset[disabled] .btn-warning:hover,
|
||||
.btn-warning.disabled:focus,
|
||||
.btn-warning[disabled]:focus,
|
||||
fieldset[disabled] .btn-warning:focus,
|
||||
.btn-warning.disabled:active,
|
||||
.btn-warning[disabled]:active,
|
||||
fieldset[disabled] .btn-warning:active {
|
||||
background-color: #f0ad4e;
|
||||
border-color: #f0ad4e;
|
||||
}
|
||||
|
||||
.btn-danger {
|
||||
background-color: #d9534f;
|
||||
border-color: #d9534f;
|
||||
@ -1781,6 +1820,19 @@ input[type="button"].btn-block {
|
||||
border-color: #c9302c;
|
||||
}
|
||||
|
||||
.btn-danger.disabled:hover,
|
||||
.btn-danger[disabled]:hover,
|
||||
fieldset[disabled] .btn-danger:hover,
|
||||
.btn-danger.disabled:focus,
|
||||
.btn-danger[disabled]:focus,
|
||||
fieldset[disabled] .btn-danger:focus,
|
||||
.btn-danger.disabled:active,
|
||||
.btn-danger[disabled]:active,
|
||||
fieldset[disabled] .btn-danger:active {
|
||||
background-color: #d9534f;
|
||||
border-color: #d9534f;
|
||||
}
|
||||
|
||||
.btn-success {
|
||||
background-color: #5cb85c;
|
||||
border-color: #5cb85c;
|
||||
@ -1793,6 +1845,19 @@ input[type="button"].btn-block {
|
||||
border-color: #449d44;
|
||||
}
|
||||
|
||||
.btn-success.disabled:hover,
|
||||
.btn-success[disabled]:hover,
|
||||
fieldset[disabled] .btn-success:hover,
|
||||
.btn-success.disabled:focus,
|
||||
.btn-success[disabled]:focus,
|
||||
fieldset[disabled] .btn-success:focus,
|
||||
.btn-success.disabled:active,
|
||||
.btn-success[disabled]:active,
|
||||
fieldset[disabled] .btn-success:active {
|
||||
background-color: #5cb85c;
|
||||
border-color: #5cb85c;
|
||||
}
|
||||
|
||||
.btn-info {
|
||||
background-color: #5bc0de;
|
||||
border-color: #5bc0de;
|
||||
@ -1805,6 +1870,19 @@ input[type="button"].btn-block {
|
||||
border-color: #31b0d5;
|
||||
}
|
||||
|
||||
.btn-info.disabled:hover,
|
||||
.btn-info[disabled]:hover,
|
||||
fieldset[disabled] .btn-info:hover,
|
||||
.btn-info.disabled:focus,
|
||||
.btn-info[disabled]:focus,
|
||||
fieldset[disabled] .btn-info:focus,
|
||||
.btn-info.disabled:active,
|
||||
.btn-info[disabled]:active,
|
||||
fieldset[disabled] .btn-info:active {
|
||||
background-color: #5bc0de;
|
||||
border-color: #5bc0de;
|
||||
}
|
||||
|
||||
.btn-link,
|
||||
.btn-link:active,
|
||||
.btn-link[disabled],
|
||||
|
@ -109,7 +109,26 @@ input[type="button"] {
|
||||
}
|
||||
}
|
||||
|
||||
// Mixin for darkening only enabled buttons for link states
|
||||
.darken-button-states (@background, @border) {
|
||||
&:hover,
|
||||
&:focus,
|
||||
&:active {
|
||||
background-color: darken(@background, 5%);
|
||||
border-color: darken(@border, 10%);
|
||||
}
|
||||
|
||||
&.disabled,
|
||||
&[disabled],
|
||||
fieldset[disabled] & {
|
||||
&:hover,
|
||||
&:focus,
|
||||
&:active {
|
||||
background-color: @background;
|
||||
border-color: @border
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Alternate buttons
|
||||
// --------------------------------------------------
|
||||
@ -117,67 +136,37 @@ input[type="button"] {
|
||||
.btn {
|
||||
color: @btn-color;
|
||||
background-color: @btn-background;
|
||||
border-color: @btn-border;
|
||||
&:hover,
|
||||
&:focus,
|
||||
&:active {
|
||||
background-color: darken(@btn-background, 5%);
|
||||
border-color: darken(@btn-border, 10%);
|
||||
}
|
||||
border-color: @btn-border;
|
||||
.darken-button-states(@btn-background, @btn-border)
|
||||
}
|
||||
.btn-primary {
|
||||
background-color: @btn-background-primary;
|
||||
border-color: @btn-border-primary;
|
||||
&:hover,
|
||||
&:focus,
|
||||
&:active {
|
||||
background-color: darken(@btn-background-primary, 5%);
|
||||
border-color: darken(@btn-border-primary, 10%);
|
||||
}
|
||||
.darken-button-states(@btn-background-primary, @btn-border-primary)
|
||||
}
|
||||
// Warning appears are orange
|
||||
// Warning appears as orange
|
||||
.btn-warning {
|
||||
background-color: @btn-background-warning;
|
||||
border-color: @btn-border-warning;
|
||||
&:hover,
|
||||
&:focus,
|
||||
&:active {
|
||||
background-color: darken(@btn-background-warning, 5%);
|
||||
border-color: darken(@btn-border-warning, 10%);
|
||||
}
|
||||
.darken-button-states(@btn-background-warning, @btn-border-warning)
|
||||
}
|
||||
// Danger and error appear as red
|
||||
.btn-danger {
|
||||
background-color: @btn-background-danger;
|
||||
border-color: @btn-border-danger;
|
||||
&:hover,
|
||||
&:focus,
|
||||
&:active {
|
||||
background-color: darken(@btn-background-danger, 5%);
|
||||
border-color: darken(@btn-border-danger, 10%);
|
||||
}
|
||||
.darken-button-states(@btn-background-danger, @btn-border-danger)
|
||||
}
|
||||
// Success appears as green
|
||||
.btn-success {
|
||||
background-color: @btn-background-success;
|
||||
border-color: @btn-border-success;
|
||||
&:hover,
|
||||
&:focus,
|
||||
&:active {
|
||||
background-color: darken(@btn-background-success, 5%);
|
||||
border-color: darken(@btn-border-success, 10%);
|
||||
}
|
||||
.darken-button-states(@btn-background-success, @btn-border-success)
|
||||
}
|
||||
// Info appears as blue-green
|
||||
.btn-info {
|
||||
background-color: @btn-background-info;
|
||||
border-color: @btn-border-info;
|
||||
&:hover,
|
||||
&:focus,
|
||||
&:active {
|
||||
background-color: darken(@btn-background-info, 5%);
|
||||
border-color: darken(@btn-border-info, 10%);
|
||||
}
|
||||
.darken-button-states(@btn-background-info, @btn-border-info)
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user