Created
October 12, 2012 14:28
-
-
Save floq-design/3879458 to your computer and use it in GitHub Desktop.
TipTip LESS CSS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*=======================================================*/ | |
/* TIPTIP START */ | |
/*=======================================================*/ | |
/* TipTip CSS - Version 1.2 */ | |
#tiptip_holder { | |
display: none; | |
position: absolute; | |
top: 0; | |
left: 0; | |
z-index: 99999; | |
&.tip_top { | |
padding-bottom: 5px; | |
#tiptip_arrow { | |
border-top-color: #fff; | |
border-top-color: rgba(255,255,255,0.35); | |
} | |
#tiptip_arrow_inner { | |
margin-top: -7px; | |
margin-left: -6px; | |
border-top-color: rgb(25,25,25); | |
border-top-color: rgba(25,25,25,0.92); | |
} | |
} | |
&.tip_bottom { | |
padding-top: 5px; | |
#tiptip_arrow { | |
border-bottom-color: #fff; | |
border-bottom-color: rgba(255,255,255,0.35); | |
} | |
#tiptip_arrow_inner { | |
margin-top: -5px; | |
margin-left: -6px; | |
border-bottom-color: rgb(25,25,25); | |
border-bottom-color: rgba(25,25,25,0.92); | |
} | |
} | |
&.tip_right { | |
padding-left: 5px; | |
#tiptip_arrow { | |
border-right-color: #fff; | |
border-right-color: rgba(255,255,255,0.35); | |
} | |
#tiptip_arrow_inner { | |
margin-top: -6px; | |
margin-left: -5px; | |
border-right-color: rgb(25,25,25); | |
border-right-color: rgba(25,25,25,0.92); | |
} | |
} | |
&.tip_left { | |
padding-right: 5px; | |
#tiptip_arrow { | |
border-left-color: #fff; | |
border-left-color: rgba(255,255,255,0.35); | |
} | |
#tiptip_arrow_inner { | |
margin-top: -6px; | |
margin-left: -7px; | |
border-left-color: rgb(25,25,25); | |
border-left-color: rgba(25,25,25,0.92); | |
} | |
} | |
} | |
#tiptip_content { | |
font-size: 11px; | |
color: #fff; | |
text-shadow: 0 0 2px #000; | |
padding: 4px 8px; | |
border: 1px solid rgba(255,255,255,0.25); | |
background-color: rgb(25,25,25); | |
background-color: rgba(25,25,25,0.92); | |
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(transparent), to(#000)); | |
border-radius: 3px; | |
-webkit-border-radius: 3px; | |
-moz-border-radius: 3px; | |
box-shadow: 0 0 3px #555; | |
-webkit-box-shadow: 0 0 3px #555; | |
-moz-box-shadow: 0 0 3px #555; | |
} | |
#tiptip_arrow, | |
#tiptip_arrow_inner { | |
position: absolute; | |
border-color: transparent; | |
border-style: solid; | |
border-width: 6px; | |
height: 0; | |
width: 0; | |
} | |
/* Webkit Hacks */ | |
@media screen and (-webkit-min-device-pixel-ratio:0) { | |
#tiptip_content { | |
padding: 4px 8px 5px 8px; | |
background-color: rgba(45,45,45,0.88); | |
} | |
#tiptip_holder.tip_bottom #tiptip_arrow_inner { | |
border-bottom-color: rgba(45,45,45,0.88); | |
} | |
#tiptip_holder.tip_top #tiptip_arrow_inner { | |
border-top-color: rgba(20,20,20,0.92); | |
} | |
} | |
/*=======================================================*/ | |
/* TIPTIP END */ | |
/*=======================================================*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment