選択フィールドのデフォルトの画像をカスタム画像で変更しようとしています。以下は、この変更のためにオーバーライドする必要がある sencha-touch-debug.css で宣言されたクラスです。
.x-selectmark-base, .x-field-select .x-component-outer:after {
content: "";
position: absolute;
width: 1em;
height: 1em;
top: 50%;
left: auto;
right: 0.7em;
-webkit-mask-size: 1em;
**-webkit-mask-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA....');**
margin-top: -0.5em;
}
/* line 634, ../themes/stylesheets/sencha-touch/default/widgets/_form.scss */
.x-field-select .x-component-outer:after {
**background-color: #dddddd;**
}
強調表示された赤い線は、それぞれ画像と背景を適用する役割を果たします。
cssクラスでこれらのスタイルをもう一度宣言して、cssクラスファイルでこれらのスタイルをオーバーライドしようとしましたが、これらの2つの強調表示されたプロパティがとにかく優先され、カスタムcssファイルでpriority = importantを指定しているにもかかわらず、オーバーライドできませんそれらを私のカスタムcssファイルに入れます。sencha-touch-debug.css の強調表示された行にコメントを付けると、カスタム css クラスのみが適用されます。
私のCSSクラス
.x-selectmark-base,.x-field-select .x-component-outer:after {
webkit-mask-image: url("../../resources/images/main_menu_arrow.png") !important;
margin-top: -0.5em;
}
.x-field-select .x-component-outer:after {
content: url("../../resources/images/main_menu_arrow.png") !important;
margin-top: -35px !important;
margin-right:8px !important;
}
何か案は?
ありがとうゲンダフル