Browse Source

fade-in tooltips, like uBO

pull/2/head
xofe 7 years ago
parent
commit
d4c0c1747b
  1. 8
      src/css/common.css

8
src/css/common.css

@ -55,6 +55,10 @@ body[dir="rtl"] {
position: relative; position: relative;
cursor: pointer; cursor: pointer;
} }
*[data-i18n-tip]:after {
content: "";
opacity: 0;
}
*[data-i18n-tip]:hover:after { *[data-i18n-tip]:hover:after {
background-color: #fffffa; background-color: #fffffa;
border: 1px solid gray; border: 1px solid gray;
@ -65,10 +69,14 @@ body[dir="rtl"] {
font: 12px sans-serif; font: 12px sans-serif;
line-height: 140%; line-height: 140%;
min-width: 25vw; min-width: 25vw;
opacity: 1;
padding: 4px 6px; padding: 4px 6px;
pointer-events: none;
position: absolute; position: absolute;
text-align: start; text-align: start;
top: 110%; top: 110%;
-webkit-transition: opacity 0.15s 0.5s;
transition: opacity 0.15s 0.5s;
white-space: pre-line; white-space: pre-line;
z-index: 20; z-index: 20;
} }

Loading…
Cancel
Save