LMS: adds in pseudo-state styling for disabled buttons/links (by attribute or standard class names)

This commit is contained in:
Brian Talbot
2013-09-06 17:53:53 -04:00
parent b53d55543d
commit 422c6282e4
2 changed files with 13 additions and 2 deletions

View File

@@ -82,6 +82,12 @@ a:link, a:visited {
&:hover {
text-decoration: underline;
}
&:disabled, &.is-disabled, &.disabled {
pointer-events: none;
opacity: 0.5;
cursor: not-allowed;
}
}
a:focus {

View File

@@ -43,8 +43,7 @@ textarea {
input[type="submit"],
input[type="button"],
button,
.button {
button,.button {
border-radius: 3px;
@include button(shiny, $button-color);
font: normal 1.2rem/1.6rem $sans-serif;
@@ -53,4 +52,10 @@ button,
text-transform: uppercase;
vertical-align: top;
-webkit-font-smoothing: antialiased;
&:disabled, &.is-disabled, &.disabled {
pointer-events: none;
opacity: 0.5;
cursor: not-allowed;
}
}