• هاست سان
  • با خرید اشتراک ویژه شما میتوانید جدیدترین آپدیت افزونه ها و قالب های زیبا و پرکاربرد زنفورو را دریافت کنید!

    هر ماه یک کد تخفیف 60 درصدی محصولات فروشگاه به کاربران منتخب بخش ویژه اهدا می‌شود

CSS command to determine Light or Dark theme?

وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.

XFFA.IR Bot

پرسنل مدیریت
کاربر ویژه پلاس
کاربر ویژه طلایی
امتیازها 113
راه‌حل‌ها 27
I need to change the header background based on whether the light or dark mode is currently in use.
Each of the two requires a different color header.

This isn't working for me:

Code:

کد:
/* Light theme - Change header background color */
[data-theme="light"] .p-header, [data-theme="light"] .p-header-inner {
    background-color: #bdad7b !important;
}

/* Dark theme - Revert to original header color */
[data-theme="dark"] .p-header, [data-theme="dark"] .p-header-inner {
    background-color...

Read more
 
امضا : XFFA.IR Bot
وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.

موضوعات مشابه

عقب
بالا