Last active
January 3, 2016 20:09
-
-
Save FrancoB411/8513122 to your computer and use it in GitHub Desktop.
mobile friendly responsive abbreviation elements
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| abbr[title]:after // after an abbr element with title attribute | |
| { | |
| content: " (" attr(title) ")"; // display the title attribute value in parentheses | |
| } | |
| @media screen and (min-width: 1025px) // above 1025px screen width | |
| { | |
| abbr[title] | |
| { | |
| border-bottom: 1px dashed #ADADAD; // draw a dashed border under the abbr element | |
| cursor:help; // add a help question mark to the mouse cursor | |
| } | |
| abbr[title]:after | |
| { | |
| content: ""; // clears the parentheses and attribute values after the abbr element. | |
| } | |
| } | |
| // you can also use this to make links viewable on print stylesheets like HTML5 boilerplate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment