私は "special-offer-left-block"と "special-offer-right-block"のプロパティをpseudo: "special-offer-breaker"のホバーで変更しようとしていますが、私はそれらを間違って選択します。私が間違っていることに関するアイデアは?間違った疑似セレクタ
私はマウスを動かすと何も起こりませんが、背景の色を変えたいです! :)
ここの誰かが私を助けることができます!
http://codepen.io/oskarscholander/pen/zBpRwV
<div class="special-offer-container">
<div class="special-offer-breaker"></div>
<div class="special-offer-left-block"></div>
<div class="special-offer-right-block"></div>
</div>
$orange: #FFFF00
.special-offer-container
position: relative
width: 100%
background: $orange
height: 400px
display: block
.special-offer-left-block
width: 50%
height: 100%
background: darken($orange, 20%)
float: left
display:inline
transition: (background 2s ease-in)
.special-offer-right-block
width: 50%
height: 100%
background: lighten($orange, 30%)
display: inline
float: right
transition: (background 2s ease-in)
.special-offer-breaker
z-index: 4
position: absolute
margin: auto
left: 0
right: 0
top: 0
bottom: 0
display: inline
background: lighten($orange, 40%)
border-radius: 75px
width: 150px
height: 150px
&:hover
.special-offer-left-block
background: #333333
.special-offer-right-block
background: #333333