Skip to content

Instantly share code, notes, and snippets.

@bjorn-ali-goransson
Created October 24, 2015 19:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjorn-ali-goransson/05773ea90b34c1b1dafc to your computer and use it in GitHub Desktop.
Save bjorn-ali-goransson/05773ea90b34c1b1dafc to your computer and use it in GitHub Desktop.
CSS-only caret inheriting from text-color
.caret(@width: @caret-width-base) {
display: inline-block;
content: '';
width: 0;
height: 0;
margin-left: 10px;
vertical-align: middle;
border-top: @width dashed;
border-top: @width solid ~"\9"; // IE8
border-right: @width solid transparent;
border-left: @width solid transparent;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment