From d2c930a94d6e445053bcb5e5bb629851165425fc Mon Sep 17 00:00:00 2001 From: StefanVukovic99 Date: Thu, 20 Jun 2024 19:27:02 +0200 Subject: support css file in dictionaries (#1080) * get styles in db * get styles in settings * use styles * fix test * scope * fix comma separated * escape dict name in css selector * g regex * get styles in anki * fix tests * more specificity * whitespace * test importing * test handlebars * add styles to glossary-first --- test/data/dictionaries/valid-dictionary1/styles.css | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 test/data/dictionaries/valid-dictionary1/styles.css (limited to 'test/data/dictionaries/valid-dictionary1') diff --git a/test/data/dictionaries/valid-dictionary1/styles.css b/test/data/dictionaries/valid-dictionary1/styles.css new file mode 100644 index 00000000..d375cede --- /dev/null +++ b/test/data/dictionaries/valid-dictionary1/styles.css @@ -0,0 +1,3 @@ +[data-sc-content='glossary'] { + color: #ffff00; +} \ No newline at end of file -- cgit v1.2.3