Commit 324f6ca5 authored by Mark Otto's avatar Mark Otto

buttons should be more mixin friendly

parent ab740f0f
This diff was suppressed by a .gitattributes entry.
......@@ -18,32 +18,32 @@
white-space: nowrap;
.button-size(@padding-base-vertical; @padding-base-horizontal; @font-size-base; @line-height-base; @border-radius-base);
.user-select(none);
}
.btn:focus {
&:focus {
.tab-focus();
}
}
.btn:hover,
.btn:focus {
&:hover,
&:focus {
color: @btn-default-color;
text-decoration: none;
}
}
.btn:active,
.btn.active {
&:active,
&.active {
outline: 0;
background-image: none;
.box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
}
}
.btn.disabled,
.btn[disabled],
fieldset[disabled] .btn {
&.disabled,
&[disabled],
fieldset[disabled] & {
cursor: not-allowed;
pointer-events: none; // Future-proof disabling of clicks
.opacity(.65);
.box-shadow(none);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment