Skip to content

Instantly share code, notes, and snippets.

@timelf123
Created November 23, 2013 05:39
Show Gist options
  • Save timelf123/7611256 to your computer and use it in GitHub Desktop.
Save timelf123/7611256 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.10)
// ----
@import "compass";
@import "rwdcalc";
/*fixes for tool tips*/
.tooltip-trigger{
cursor: help;
img {
height: 24px;
width: 24px;
margin-top: 8px;
vertical-align: top;
}
}
#tooltip{
text-align: center;
text-shadow: 0 1px rgba(0, 0, 0, .5);
@include text-shadow(rgba(0, 0, 0, 0.2) 0 1px);
line-height: 1.5;
color: #fff;
background: #333;
//compass
@include filter-gradient(#990000, #cc0000, vertical); // IE6-9
@include background-image(linear-gradient(top, rgba(0,0,0,0.6) 0%,rgba(0,0,0,0.8) 100%));
@include border-radius(4px);
border-top: 1px solid #333;
@include box-shadow(rgba(0, 0, 0, 0.3) 0 3px 5px);
position: absolute;
z-index: 100;
padding: 15px;
&:after{
width: 0;
height: 0;
border-left: 10px solid transparent;
border-right: 10px solid transparent;
border-top: 10px solid #333;
border-top-color: rgba( 0, 0, 0, .7 );
content: '';
position: absolute;
left: 50%;
bottom: -10px;
margin-left: -10px;
}
.top{
&:after{
border-top-color: transparent;
border-bottom: 10px solid #333;
border-bottom-color: rgba( 0, 0, 0, .6 );
top: -20px;
bottom: auto;
}
}
.left{
&:after{
left: 10px;
margin: 0;
}
}
.right{
&:after{
right: 10px;
left: auto;
margin: 0;
}
}
}
/*fixes for tool tips*/
.tooltip-trigger {
cursor: help;
}
.tooltip-trigger img {
height: 24px;
width: 24px;
margin-top: 8px;
vertical-align: top;
}
#tooltip {
text-align: center;
text-shadow: 0 1px rgba(0, 0, 0, 0.5);
text-shadow: rgba(0, 0, 0, 0.2) 0 1px;
line-height: 1.5;
color: #fff;
background: #333;
*zoom: 1;
filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#FF990000', endColorstr='#FFCC0000');
background-image: -moz-linear-gradient(top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.8) 100%);
background-image: -o-linear-gradient(top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.8) 100%);
background-image: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.8) 100%);
background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.8) 100%);
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
border-top: 1px solid #333;
-moz-box-shadow: rgba(0, 0, 0, 0.3) 0 3px 5px;
-webkit-box-shadow: rgba(0, 0, 0, 0.3) 0 3px 5px;
box-shadow: rgba(0, 0, 0, 0.3) 0 3px 5px;
position: absolute;
z-index: 100;
padding: 15px;
}
#tooltip:after {
width: 0;
height: 0;
border-left: 10px solid transparent;
border-right: 10px solid transparent;
border-top: 10px solid #333;
border-top-color: rgba(0, 0, 0, 0.7);
content: '';
position: absolute;
left: 50%;
bottom: -10px;
margin-left: -10px;
}
#tooltip .top:after {
border-top-color: transparent;
border-bottom: 10px solid #333;
border-bottom-color: rgba(0, 0, 0, 0.6);
top: -20px;
bottom: auto;
}
#tooltip .left:after {
left: 10px;
margin: 0;
}
#tooltip .right:after {
right: 10px;
left: auto;
margin: 0;
}
#tooltip.top:after {
border-top-color: transparent;
border-bottom: 10px solid #333;
border-bottom-color: rgba(0, 0, 0, 0.6);
top: -20px;
bottom: auto;
}
#tooltip.left:after {
left: 10px;
margin: 0;
}
#tooltip.right:after {
right: 10px;
left: auto;
margin: 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment