Result
Color Classes
blue | green | orange | red | gray / grey
Bootstrap Classes
primary | info | success | warning | danger / error
Custom Styling
My custom styled tooltip
Syntax
Tooltips comes with a number of global styling options, like border color, background colors, text colors, etc. These will affect all tips on your site.
Tooltips comes with a number of ready styled classes based on the Bootstrap colors.
Color Classes
Tabs' stylesheet comes with styling for the classes blue, green, orange, red and gray / grey.
{tip title="Tooltip Title" content="Tooltip text..." class="blue"}blue{/tip} | {tip title="Tooltip Title" content="Tooltip text..." class="green"}green{/tip} | {tip title="Tooltip Title" content="Tooltip text..." class="orange"}orange{/tip} | {tip title="Tooltip Title" content="Tooltip text..." class="red"}red{/tip} | {tip title="Tooltip Title" content="Tooltip text..." class="gray"}gray{/tip} / {tip title="Tooltip Title" content="Tooltip text..." class="grey"}grey{/tip}
Bootstrap Classes
You can also use the Bootstrap classes primary, info, success, warning and danger / error.
{tip title="Tooltip Title" content="Tooltip text..." class="primary"}primary{/tip} | {tip title="Tooltip Title" content="Tooltip text..." class="info"}info{/tip} | {tip title="Tooltip Title" content="Tooltip text..." class="success"}success{/tip} | {tip title="Tooltip Title" content="Tooltip text..." class="warning"}warning{/tip} | {tip title="Tooltip Title" content="Tooltip text..." class="danger"}danger{/tip} / {tip title="Tooltip Title" content="Tooltip text..." class="error"}error{/tip}
Custom Styling
The classname you add, will be added to both the link text element and the tooltip element. So you can use CSS to style it like you want.
{tip title="Tooltip Title" content="Tooltip text..." class="mystyle"}My custom styled tooltip{/tip}
CSS styling for 'mystyle':
span.tooltips-link.mystyle {
border: 1px solid #999999;
background-color: #EEEEEE;
padding: 3px 10px;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
}
div.popover.mystyle {
background-color: #339933;
color: #FFFFFF;
-webkit-border-radius: 12px;
-moz-border-radius: 12px;
border-radius: 12px;
}
div.popover.mystyle .arrow {
border-top-color: #339933;
}
div.popover.mystyle .popover-title {
background-color: #FFFFFF;
color: #339933;
font-size: 1.5em;
font-weight: bold;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
}