uBlock/css/common.css

61 lines
1.4 KiB
CSS
Raw Normal View History

2014-06-23 16:42:43 -06:00
@font-face {
font-family: 'FontAwesome';
src: url('fonts/fontawesome-webfont.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
.fa {
font-family: FontAwesome;
font-style: normal;
font-weight: normal;
line-height: 1;
vertical-align: baseline;
display: inline-block;
}
#dashboard-nav-widgets {
direction: __MSG_@@bidi_dir__;
2014-08-24 08:04:22 -06:00
}
/* https://developer.mozilla.org/en-US/docs/Web/CSS/::after#Tooltips */
*[data-tip] {
cursor: pointer;
position: relative;
}
*[data-tip]:hover:after {
background-color: #ffffee;
border: 1px solid gray;
border-radius: 3px;
box-shadow: 1px 1px 3px gray;
color: black;
content: attr(data-tip);
direction: __MSG_@@bidi_dir__;
font: 11px sans-serif;
left: 0;
line-height: 130%;
min-width: 55vw;
padding: 4px 6px;
position: absolute;
text-align: __MSG_@@bidi_start_edge__;
top: 110%;
white-space: pre-line;
z-index: 20;
animation: tooltip 0.8s;
-webkit-animation: tooltip 0.8s;
}
*[data-tip][data-tip-anchor="top"]:hover:after {
bottom: 105%;
__MSG_@@bidi_start_edge__: auto;
__MSG_@@bidi_end_edge__: -10vw;
top: auto;
}
@keyframes tooltip {
0% { opacity: 0; }
85% { opacity: 0; }
100% { opacity: 1; }
}
@-webkit-keyframes tooltip {
0% { opacity: 0; }
85% { opacity: 0; }
100% { opacity: 1; }
}