Hover in Selector: before

I came across a situation, I even know how to bypass, doing otherwise, but I would like to know, if it is possible to use: hover on an element: before, I have the following structure:

<a href="" class="call-box call-info-city block">
  Informações da cidade
</a>
<a href="" class="call-box call-benefits block">
  Benefícios Fiscais
</a>

Where, the element call-box , has a selector: before, as follows:

.call-box {
    float: left;
    font-family: 'LatoBold', arial, sans-serif;
    color: #909090;
    height: 52px;
    width: 150px;
    padding: 10px 0 0 62px;
    line-height: 16px;
    position: relative;
}
.call-box:before {
    position: absolute;
    content: '';
    left: 0;
    top: 0;
    border: 2px solid #00BF8B;
    height: 50px;
    width: 50px;
    -webkit-border-radius: 50%;
       -moz-border-radius: 50%;
            border-radius: 50%;
}

In the Hover of the call-box element, I would like to modify the selector: before, is it possible?

Author: Zuul, 2014-09-11

2 answers

Pfss, resolved.

.call-box:hover:before {
  background-color: #00BF8B;
}
 7
Author: helderburato, 2014-09-11 18:59:29

Yes, it is possible as follows: http://jsfiddle.net/jhwmxfrz /

.call-box:hover:before {
    background-color: #00BF8B;
}
 3
Author: , 2014-10-28 06:46:41