この html.anon クラスの反対となるクラスは何ですか?
つまり、ログイン済みのすべてのユーザーに対して CSS で display: none を適用したいのです。
ご助力ありがとうございます。
この html.anon クラスの反対となるクラスは何ですか?
つまり、ログイン済みのすべてのユーザーに対して CSS で display: none を適用したいのです。
ご助力ありがとうございます。
:not() - CSS | MDN を使用できます
ありがとうございます。おそらく探していたもののようですが、うまくいきませんでした。
試してみましたが
html :not.anon .d-header-icons {
display: none;
}
:not html.anon .d-header-icons {
display: none;
}
これで問題なさそうです:
html:not(.anon) .d-header-icons {
display: none;
}