Open JakedGr8 opened 5 years ago
How do you add the highlight? I do not see an option for that among the available buttons:
May I ask you to post the html code of your card (click on the hamburger icon in the edit window, usually the last icon - on my screenshont the penultimate one; select edit html, copy-paste here)?
Wow I actually forgot that was an addon, not a default feature of anki - I'm using the Mini Format Pack (https://ankiweb.net/shared/info/295889520). Html code below:
<div><b>{{c2::Anorexia Nervosa}}</b> is defined as <u>excessive dieting</u>, <u>exercise</u>, or <u>binge eating / purging</u> with <span style="background-color: rgb(240, 244, 198);"><b style="">BMI {{c1::< 18.5}} kg/m</b><sup style="font-weight: bold;">2</sup></span></div><div><br></div>
Use this snippet to overwrite highlight styling in night mode (look at the span style that you provided - I use it to target the highlight using exact match of attributes):
.night_mode span[style="background-color: rgb(240, 244, 198);"] {
background-color:red!important
}
Have a look a the gif if you do not know where to paste it:
And don't worry if you Anki looks slightly different, I was recording with a work-in-progress version of the add-on and Anki (and on Linux). Edit: And as I've just noticed I did not set the card-type to cloze, but it should not matter in this case at all.
That worked! Thank you so much for your help, I really appreciate it!
Problem description
When something is highlighted in Anki, and I turn on night mode, the highlighted content does not invert. I use a "yellow" higlight, which in night mode makes the white text difficult to read.
(Edit: just want to add thank you ahead of time for your help. I looked around, and couldn't find this mentioned anywhere! Sorry if it's found somewhere else)
Checklist
Please put x inside brackets if following sentences apply to you:
Information about your Anki Setup
Backtrace (if any)