サブカテゴリに画像を追加し、そのサイズを調整する方法

こんにちは。

::before CSS コードを変更しました。
background: none と background-image: url (…) を追加しました。
しかし、サイズを変更しても、期待どおりに動作しません。

width: 60px、height: 60px、または max-width: 60px のようなものです。

どこで間違っていますか?

「いいね!」 1

:slight_smile:

.badge-category__wrapper .badge-category:before {
    background: none;
    border-radius: 2px;
    margin-top: 4px;
    width: 15px;
    height: 15px;
    min-width: 15px;
    min-height: 15px;
    background-image: url(IMG URL);
    background-size: 15px 15px;
    margin-right: .5em;
}

.badge-category__wrapper .badge-category.--has-parent:before {
    background: none;
    border-radius: 2px;
    margin-top: 4px;
    width: 15px;
    height: 15px;
    min-width: 15px;
    min-height: 15px;
    background-image: url(IMG URL);
    background-size: 15px 15px;
    margin-right: .5em;
}
「いいね!」 1