1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-18 05:58:25 +01:00

more consistent btn vars

This commit is contained in:
Mark Otto 2013-03-31 17:32:45 -07:00
parent b7fa0d3434
commit 8b9d488377
2 changed files with 19 additions and 19 deletions

View File

@ -110,26 +110,26 @@ input[type="button"] {
.btn { .btn {
color: @btn-color; color: @btn-color;
.btn-pseudo-states(@btn-background, @btn-border); .btn-pseudo-states(@btn-bg, @btn-border);
} }
.btn-primary { .btn-primary {
.btn-pseudo-states(@btn-background-primary, @btn-border-primary); .btn-pseudo-states(@btn-primary-bg, @btn-primary-border);
} }
// Warning appears as orange // Warning appears as orange
.btn-warning { .btn-warning {
.btn-pseudo-states(@btn-background-warning, @btn-border-warning); .btn-pseudo-states(@btn-bg-warning, @btn-warning-border);
} }
// Danger and error appear as red // Danger and error appear as red
.btn-danger { .btn-danger {
.btn-pseudo-states(@btn-background-danger, @btn-border-danger); .btn-pseudo-states(@btn-bg-danger, @btn-danger-border);
} }
// Success appears as green // Success appears as green
.btn-success { .btn-success {
.btn-pseudo-states(@btn-background-success, @btn-border-success); .btn-pseudo-states(@btn-bg-success, @btn-success-border);
} }
// Info appears as blue-green // Info appears as blue-green
.btn-info { .btn-info {
.btn-pseudo-states(@btn-background-info, @btn-border-info); .btn-pseudo-states(@btn-bg-info, @btn-info-border);
} }

View File

@ -84,24 +84,24 @@
// Buttons // Buttons
// ------------------------- // -------------------------
@btn-color: #fff; @btn-color: #fff;
@btn-background: #a7a9aa; @btn-bg: #a7a9aa;
@btn-border: @btn-background; @btn-border: @btn-bg;
@btn-background-primary: @brand-primary; @btn-primary-bg: @brand-primary;
@btn-border-primary: @btn-background-primary; @btn-primary-border: @btn-primary-bg;
@btn-background-success: @brand-success; @btn-bg-success: @brand-success;
@btn-border-success: @btn-background-success; @btn-success-border: @btn-bg-success;
@btn-background-warning: @brand-warning; @btn-bg-warning: @brand-warning;
@btn-border-warning: @btn-background-warning; @btn-warning-border: @btn-bg-warning;
@btn-background-danger: @brand-danger; @btn-bg-danger: @brand-danger;
@btn-border-danger: @btn-background-danger; @btn-danger-border: @btn-bg-danger;
@btn-background-info: @brand-info; @btn-bg-info: @brand-info;
@btn-border-info: @btn-background-info; @btn-info-border: @btn-bg-info;