Старт переноса showinf_pers(); в класс (наконец!_)

This commit is contained in:
lopar 2020-07-04 21:49:57 +03:00
parent c6729f4a7b
commit 73042e214e
2 changed files with 18 additions and 1 deletions

View File

@ -44,7 +44,7 @@ class User
}
protected function showItem(array $item) {
echo sprintf('<img src="/i/sh/%s" class="item-wrap-normal tooltip" title="<strong>%s</strong>">', $item['image'], $item['name']);
echo sprintf('<img src="/i/sh/%s" class="item-wrap-normal tip"><span class="tiptext"><strong>%s</strong></span>', $item['image'], $item['name']);
}
public function showUserInfo() {

View File

@ -299,3 +299,20 @@ span.error {
font-weight: bold;
color: #8F0000;
}
img.tip+span.tiptext {
display: none
}
img.tip:hover+span.tiptext {
border: #c0c0c0 1px dotted;
padding: 5px 20px 5px 5px;
display: block;
z-index: 100;
background-color: #f0f0f0;
left: 0px;
margin: 10px;
width: 250px;
position: absolute;
top: 10px;
text-decoration: none
}