mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-13 23:01:02 +00:00
Change the appearance of the tooltips
This commit is contained in:
+34
-23
@@ -573,34 +573,45 @@ input#btn_search {width:97px; background-image: url(b/search.gif);}
|
|||||||
|
|
||||||
/* Start tooltips for the admin panel settings */
|
/* Start tooltips for the admin panel settings */
|
||||||
.tooltip {
|
.tooltip {
|
||||||
border-bottom: 1px dotted #000000;
|
|
||||||
color: #000000;
|
|
||||||
outline: none;
|
|
||||||
cursor: help;
|
|
||||||
text-decoration: none;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
|
display: inline-block;
|
||||||
|
border-bottom: 1px dotted black;
|
||||||
|
cursor: help;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tooltip span {
|
.tooltip .classic {
|
||||||
margin-left: -999em;
|
visibility: hidden;
|
||||||
position: absolute;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tooltip:hover span {
|
|
||||||
font-family: Calibri, Tahoma, Geneva, sans-serif;
|
|
||||||
font-size: 1.2em;
|
|
||||||
position: absolute;
|
|
||||||
left: -2em;
|
|
||||||
bottom: 1em;
|
|
||||||
z-index: 99;
|
|
||||||
margin-left: 0;
|
|
||||||
width: 250px;
|
width: 250px;
|
||||||
|
background-color: black;
|
||||||
|
color: #fff;
|
||||||
|
text-align: center;
|
||||||
|
font-style: normal;
|
||||||
|
border-radius: 5px;
|
||||||
|
padding: 10px;
|
||||||
|
position: absolute;
|
||||||
|
z-index: 99;
|
||||||
|
bottom: 120%;
|
||||||
|
left: 50%;
|
||||||
|
margin-left: -40px;
|
||||||
|
|
||||||
|
/* Fade in tooltip - takes 1 second to go from 0% to 100% opac: */
|
||||||
|
opacity: 0;
|
||||||
|
transition: opacity 1s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.classic {
|
.tooltip .classic::after {
|
||||||
padding: 0.8em 1em;
|
content: "";
|
||||||
background: #FFFFAA;
|
position: absolute;
|
||||||
border: 1px solid #FFAD33;
|
top: 100%;
|
||||||
border-radius: 5px;
|
left: 40px;
|
||||||
|
margin-left: -5px;
|
||||||
|
border-width: 5px;
|
||||||
|
border-style: solid;
|
||||||
|
border-color: black transparent transparent transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tooltip:hover .classic {
|
||||||
|
visibility: visible;
|
||||||
|
opacity: 1;
|
||||||
}
|
}
|
||||||
/* End of tooltips */
|
/* End of tooltips */
|
||||||
Reference in New Issue
Block a user