krassowski / Anki-Night-Mode

Enabling studying at night with Anki - without eye strain
https://ankiweb.net/shared/info/1496166067
GNU General Public License v3.0
72 stars 13 forks source link

The .card class doesn't change in Anki Desktop (other classes - do!) #91

Open ogassav opened 4 years ago

ogassav commented 4 years ago

Problem description

The .night_mode .myclassname format works in both - Anki Desktop and AnkiDroid, EXCEPT for the .card class. So i was unable to change for example the card's background color in the Night Mode.

Standalone .card class (responsible for card's global properties in a Day Mode) works perfectly fine in both - Anki Desktop and AnkiDroid. Looks like the issue is in pairing .night_mode and .card classes.

The .card class Night Mode problem was solved for AnkiDroid using .card.night_mode format proposed here.

However the Anki Desktop problem is still not solved. Am i doing smth wrong?

Thank you!

Checklist

Please put x inside brackets if following sentences apply to you:

Information about your Anki Setup

*Please open Anki, go to Help → About, look-up two lines, starting with `Version:` and `Qt` and copy-paste them below:* ``` Version: 2.1.15 (442df9d6) Qt: 5.9.7 PyQt 5.9 ``` *Please got to Night Mode → About now and copy-paste the first line from the pop-up window below:* ``` Night Mode 2.2.4 ``` *Please fill in your OS details (Linux/Mac/Windows):* ``` OS: Windows 10 LTSC x86 build 1809 ``` *If you have a compatibility problem with a specific add-on or add-ons, please paste the add-on page links below:* - [Other add-on name](https://)

Backtrace (if any)

*If you had an error which resulted in producing exception with a backtrace, please paste the backtrace below:* ```python" [paste your backtrace in here if you got any; otherwise feel free to remove this part] ```
twwn commented 4 years ago

Noticed that as well. I forgot about reporting it since it can be worked around by declaring the colors in .card.night_mode as !important.

ogassav commented 4 years ago

Noticed that as well. I forgot about reporting it since it can be worked around by declaring the colors in .card.night_mode as !important.

.card.night_mode or .night_mode .card ? Cause the latter is the format documented by the author.