私はあなたのマークアップについていくつかの仮定を立てています (あなたが何も提供していないため) が、これはあなたの問題であると言っても過言ではないと思います.
マークアップが次のようなものであると仮定します...
<div class="peace-keepers-edition">
<div id="playview">
<button class="x-button-back">
<i class="x-button-icon">icon</i>
</button>
</div>
</div>
最初のセレクターはボタン要素をターゲットにしています...
.peace-keepers-edition #playview .x-button-back {
color: #FFF !important;
}
しかし、2番目のセレクターは、ボタンの子孫である要素をターゲットにしています...
.peace-keepers-edition #playview .x-button-back .x-button-icon {
color: #ccccff;
}
セレクター!important
が異なる要素をターゲットにしているため、ルールは無関係です。
簡単な修正; この行を次の行に追加し769
ます...
.peace-keepers-edition #playview .x-button-back .x-button-icon {
color: #fff;
}
壊れた例...
body {
background: #1a1a1a;
}
button {
padding: 15px;
font-size: 30px;
background: green;
}
.peace-keepers-edition #playview .x-button-back {
color: #FFF !important;
}
.peace-keepers-edition #playview .x-button-back .x-button-icon {
color: #ccccff;
}
<div class="peace-keepers-edition">
<div id="playview">
<button class="x-button-back">
<i class="x-button-icon">icon</i>
</button>
</div>
</div>
作業例...
body {
background: #1a1a1a;
}
button {
padding: 15px;
font-size: 30px;
background: green;
}
.peace-keepers-edition #playview .x-button-back {
color: #FFF !important;
}
.peace-keepers-edition #playview .x-button-back .x-button-icon {
color: #fff;
}
<div class="peace-keepers-edition">
<div id="playview">
<button class="x-button-back">
<i class="x-button-icon">icon</i>
</button>
</div>
</div>