Skip to content

Instantly share code, notes, and snippets.

@harmstyler
Created June 26, 2013 19:02
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 harmstyler/5870413 to your computer and use it in GitHub Desktop.
Save harmstyler/5870413 to your computer and use it in GitHub Desktop.
Simple hack to give more caret options to bootstrap's caret class
/* ***** Carets and other CSS icons ***** */
.caret {
&.up {
border-bottom: 4px solid #000000;
border-top: none;
}
&.left {
border-top: 4px solid transparent;
border-right: 5px solid #000000;
border-bottom: 4px solid transparent;
border-left: none;
}
&.right {
border-top: 4px solid transparent;
border-right: none;
border-bottom: 4px solid transparent;
border-left: 5px solid #000000;
}
}
.btn-inverse {
.caret {
&.up {
border-bottom-color: #ffffff;
}
&.left {
border-right-color: #ffffff;
}
&.right {
border-left-color: #ffffff;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment