CSS: Calculate hover effect offset correctly

This commit is contained in:
Florian Strohmaier 2019-07-01 11:12:18 +02:00 committed by Johannes Meyer
parent 12aa079e5c
commit b45b38d73d
1 changed files with 4 additions and 4 deletions

View File

@ -256,10 +256,10 @@ a:hover > .icon-cancel {
content: "";
display: block;
position: absolute;
top: -2px;
right: -2px;
bottom: -2px;
left: -2px;
top: -1/6em;
right: -1/6em;
bottom: -1/6em;
left: -1/6em;
background: fade(@text-color, 10);
.rounded-corners(50%);
}