Firefox: fix tooltip animation

This commit is contained in:
Deathamns 2015-01-13 21:33:26 +01:00
parent bcc1c0da11
commit 7bf0113db9
3 changed files with 8 additions and 19 deletions

View File

@ -917,7 +917,7 @@ var httpObserver = {
} }
try { try {
// [tabId, type, sourceTabId - given if it was a popup] // [type, tabId, sourceTabId - given if it was a popup]
channelData = channel.getProperty(location.host + 'reqdata'); channelData = channel.getProperty(location.host + 'reqdata');
} catch (ex) { } catch (ex) {
return; return;

View File

@ -18,7 +18,7 @@
cursor: pointer; cursor: pointer;
position: relative; position: relative;
} }
body:not(.advancedUser) [data-tip]:hover:after { body:not(.advancedUser) [data-tip]:after {
background-color: #ffffee; background-color: #ffffee;
border: 1px solid gray; border: 1px solid gray;
border-radius: 3px; border-radius: 3px;
@ -36,13 +36,12 @@ body:not(.advancedUser) [data-tip]:hover:after {
white-space: pre-line; white-space: pre-line;
z-index: 20; z-index: 20;
pointer-events: none; pointer-events: none;
animation: tooltip 0.8s; opacity: 0;
-webkit-animation: tooltip 0.8s;
} }
[data-tip]:hover::after { [data-tip]:hover:after {
opacity: 1; opacity: 1 !important;
-webkit-transition: opacity 0.2s 0.2s; -webkit-transition: opacity 0.2s 0.4s;
transition: opacity 0.2s 0.2s; transition: opacity 0.2s 0.4s;
} }
body[dir=rtl] [data-tip]:hover:after { body[dir=rtl] [data-tip]:hover:after {
text-align: right; text-align: right;
@ -61,17 +60,6 @@ body[dir=rtl] [data-tip][data-tip-anchor="top"]:hover:after {
right: -500%; right: -500%;
} }
@keyframes tooltip {
0% { opacity: 0; }
85% { opacity: 0; }
100% { opacity: 1; }
}
@-webkit-keyframes tooltip {
0% { opacity: 0; }
85% { opacity: 0; }
100% { opacity: 1; }
}
.hiddenFileInput { .hiddenFileInput {
visibility: hidden; visibility: hidden;
width: 0; width: 0;

View File

@ -6,6 +6,7 @@ body {
margin: 0; margin: 0;
padding: 0; padding: 0;
white-space: nowrap; white-space: nowrap;
overflow: hidden;
} }
h1,h2,h3,h4 { h1,h2,h3,h4 {
background-color: #444; background-color: #444;