div
where I change the background to purple and the texts and image to white until there works normal the problem is that I wanted to apply a divs
in the background that became purple with css
more doing this it applies the effect of scale
on the other elements and in this case wanted the effect of :hover
to be only in the background. follow my code:
I'm using SASS attached an image to show the final result.
SASS
.box-courses{
border: 2px solid $gray-light;
padding: 15px 30px;
@include transition(.5s);
&:hover{
@include gradient-bg(gradient);
@include box-shadow(shadow);
@include scale(1.1);
border: none;
.title-course{
@include scale(1);
color: $white;
}
.icon-course{
@include scale(1);
background-image: url(../images/courses/html-hover.png);
}
.description{
@include scale(1);
color: $white;
}
}
.title-course{
font-family: 'Open Sans', sans-serif;
font-size: 15px;
font-weight: bold;
color: $gray;
}
.icon-course{
background-image: url(../images/courses/html.png);
width: 52px;
height: 57px;
}
.description{
font-size: 13px;
}
.buttons{
margin-top: 15px;
li{
.btn-custom{
padding: 10px 15px;
}
}
}
}
HTML
<div class="container">
<div class="row">
<div class="col-md-4">
<div class="box-courses">
<div class="row">
<div class="col-md-3 pull-right">
<div class="icon-course"></div>
</div>
<div class="col-md-9">
<h4 class="title-course">Curso de HTML5: Aprenda de maneira descomplicada.</h4>
</div>
</div>
<div class="row">
<div class="col-md-12">
<p class="description">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
</p>
</div>
</div>
<div class="row">
<div class="col-md-12">
<ul class="list-inline list-unstyled buttons">
<li><a href="#" class="btn-gradient btn-custom">Saiba mais</a></li>
<li><a href="#" class="btn-white btn-custom"><span>Comprar curso agora</span></a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
MycodenoteherethatthefontandtheotherelementshaveincreasedandthisisnotwhatIwantIjustwanttoincreasethepurplebackground: