Skip to content

Instantly share code, notes, and snippets.

@Kobold
Created October 16, 2015 12:35
Show Gist options
  • Save Kobold/d406e0aa065d57121235 to your computer and use it in GitHub Desktop.
Save Kobold/d406e0aa065d57121235 to your computer and use it in GitHub Desktop.
Help popovers.
$('.help-hover').popover({
trigger: 'hover'
});
.help-hover {
// This should probably be factored out into individual spacing classes
// once the help hover is more widely used.
display: inline-block;
position: relative;
height: 1px;
left: 0.5em;
top: 5px;
&:before {
font-family: FontAwesome;
font-weight: normal;
font-style: normal;
text-decoration: inherit;
-webkit-font-smoothing: antialiased;
content: "\f059";
font-size: 1.75em;
color: @tbGreen;
}
&:hover:before {
color: @tbDarkGreen;
}
}
// Reset the popovers to the default font.
.popover-content {
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
font-size: 14px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment