mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-18 10:52:19 +01:00
buttons should be more mixin friendly
This commit is contained in:
parent
ab740f0f0f
commit
324f6ca562
2
dist/css/bootstrap.css.map
vendored
2
dist/css/bootstrap.css.map
vendored
File diff suppressed because one or more lines are too long
@ -18,32 +18,32 @@
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
.button-size(@padding-base-vertical; @padding-base-horizontal; @font-size-base; @line-height-base; @border-radius-base);
|
.button-size(@padding-base-vertical; @padding-base-horizontal; @font-size-base; @line-height-base; @border-radius-base);
|
||||||
.user-select(none);
|
.user-select(none);
|
||||||
}
|
|
||||||
|
|
||||||
.btn:focus {
|
&:focus {
|
||||||
.tab-focus();
|
.tab-focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn:hover,
|
&:hover,
|
||||||
.btn:focus {
|
&:focus {
|
||||||
color: @btn-default-color;
|
color: @btn-default-color;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn:active,
|
&:active,
|
||||||
.btn.active {
|
&.active {
|
||||||
outline: 0;
|
outline: 0;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
.box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
|
.box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn.disabled,
|
&.disabled,
|
||||||
.btn[disabled],
|
&[disabled],
|
||||||
fieldset[disabled] .btn {
|
fieldset[disabled] & {
|
||||||
cursor: not-allowed;
|
cursor: not-allowed;
|
||||||
pointer-events: none; // Future-proof disabling of clicks
|
pointer-events: none; // Future-proof disabling of clicks
|
||||||
.opacity(.65);
|
.opacity(.65);
|
||||||
.box-shadow(none);
|
.box-shadow(none);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user