MediaWiki:Common.css: Difference between revisions
Appearance
Created page with "→CSS placed here will be applied to all skins: .tooltiptext { position: absolute; display: block; z-index: 2; width: 250px; padding: 10px; visibility: hidden; opacity: 0; white-space: normal; text-align: left; transition: all 0.2s; border: 1px solid #aaa; background-color: #ffdd66; } .tooltip { position: relative; }" |
No edit summary |
||
| Line 17: | Line 17: | ||
.tooltip { | .tooltip { | ||
position: relative; | position: relative; | ||
} | |||
.tooltip:hover>.tooltiptext { | |||
visibility: visible; | |||
opacity: 1; | |||
} | } | ||
Revision as of 15:22, 8 November 2025
/* CSS placed here will be applied to all skins */
.tooltiptext {
position: absolute;
display: block;
z-index: 2;
width: 250px;
padding: 10px;
visibility: hidden;
opacity: 0;
white-space: normal;
text-align: left;
transition: all 0.2s;
border: 1px solid #aaa;
background-color: #ffdd66;
}
.tooltip {
position: relative;
}
.tooltip:hover>.tooltiptext {
visibility: visible;
opacity: 1;
}