vendor/frameworks/twitter/bootstrap/buttons.scss in anjlab-bootstrap-rails-2.1.0.5 vs vendor/frameworks/twitter/bootstrap/buttons.scss in anjlab-bootstrap-rails-2.1.1.0
- old
+ new
@@ -94,26 +94,41 @@
// Mini
.btn-mini {
padding: 2px 6px;
font-size: $baseFontSize - 3px;
- line-height: $baseLineHeight - 4px;
+ line-height: $baseLineHeight - 3px;
}
+
// Block button
+// -------------------------
+
.btn-block {
display: block;
width: 100%;
padding-left: 0;
padding-right: 0;
@include box-sizing(border-box);
}
+
+// Vertically space out multiple block buttons
.btn-block + .btn-block {
margin-top: 5px;
}
+// Specificity overrides
+input[type="submit"],
+input[type="reset"],
+input[type="button"] {
+ &.btn-block {
+ width: 100%;
+ }
+}
+
+
// Alternate buttons
// --------------------------------------------------
// Provide *some* extra contrast for those who can get it
.btn-primary.active,
@@ -191,11 +206,12 @@
// Link buttons
// --------------------------------------------------
// Make a button look and behave like a link
.btn-link,
-.btn-link:active {
+.btn-link:active,
+.btn-link[disabled] {
background-color: transparent;
background-image: none;
@include box-shadow(none);
}
.btn-link {
@@ -206,6 +222,10 @@
}
.btn-link:hover {
color: $linkColorHover;
text-decoration: underline;
background-color: transparent;
+}
+.btn-link[disabled]:hover {
+ color: $grayDark;
+ text-decoration: none;
}