We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
a { color: #00e; text-decoration: none; } a:visited { color: #551a8b; } a:visited:hover, a:hover, a:focus, a:focus:hover, a:active, a:active:hover { color: #e00; text-decoration: underline; }
Recommended order is:
Star wars fans can remember it as: Lord Vader’s Handle Formerly Annakin
With the above example in mind, I generally write my link styles like so:
a, a:visited { color: red; text-decoration: none; } a:visited:hover, a:hover, a:focus, a:focus:hover, a:active, a:active:hover { color: blue; text-decoration: underline; }
Note: a and a:link are synonymous and :link can be omitted (though, their specificity is different: 1 and 2 respectively).
a
a:link
:link
1
2
The text was updated successfully, but these errors were encountered:
SCSS template for default, hover, focus, pressed and disabled states:
default
hover
focus
pressed
disabled
.button { // Default: &, &:visited { } // Hover: &:visited:hover, &:hover { } // Focus: &:focus, &:focus:hover { } // Pressed: &:active, &:active:hover { } // Disabled: &:disabled, &.button-is-disabled { } }
Sorry, something went wrong.
No branches or pull requests
Recommended order is:
Star wars fans can remember it as: Lord Vader’s Handle Formerly Annakin
With the above example in mind, I generally write my link styles like so:
Note:
a
anda:link
are synonymous and:link
can be omitted (though, their specificity is different:1
and2
respectively).The text was updated successfully, but these errors were encountered: