Skip to content

Commit e21044d

Browse files
authored
Merge pull request #6 from eljamm/fixes
Small fixes
2 parents aebd69f + 1c9772f commit e21044d

File tree

7 files changed

+15
-15
lines changed

7 files changed

+15
-15
lines changed

.github/workflows/github-actions.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
name: GitHub Actions Demo
1+
name: GitHub Actions
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
branches:
66
- main
77
types:

MDKaTeX/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ def update():
112112

113113
addon_path = os.path.join(os.path.dirname(os.path.realpath(__file__)))
114114

115-
_write_data("style.css", bytes(read_file("css/style.css"), 'utf-8'))
116-
_add_file(os.path.join(addon_path, "css", "user_style.css"), "user_style.css")
115+
_write_data("_style.css", bytes(read_file("css/_style.css"), 'utf-8'))
116+
_add_file(os.path.join(addon_path, "css", "_user_style.css"), "_user_style.css")
117117
_add_file(os.path.join(addon_path, "_katex.min.js"), "_katex.min.js")
118118
_add_file(os.path.join(addon_path, "_katex.css"), "_katex.css")
119119
_add_file(os.path.join(addon_path, "_auto-render.js"), "_auto-render.js")
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
filter: unset !important;
1212
}
1313
14-
// Fields not set in "style.css" do not need to be overwritten
14+
// Fields not set in "_style.css" do not need to be overwritten
1515
// (i.e. !important is not necessary here)
1616
.field {
1717
display: inline-block;

MDKaTeX/css/style_import.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
/* To customize styles for this note type, please edit the 'user_style.css'
1+
/* To customize styles for this note type, please edit the '_user_style.css'
22
* file in your collection media folder.
33
*
44
* To find it, please refer to: https://docs.ankiweb.net/files.html#file-locations */
55

6-
@import url(style.css);
7-
@import url(user_style.css);
6+
@import url(_style.css);
7+
@import url(_user_style.css);

MDKaTeX/js/HTMLforEditor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ else {
3434

3535

3636
var getResources = [
37-
getCSS("style.css", "https://cdn.jsdelivr.net/gh/alexthillen/Anki-KaTeX-Markdown-Reworked@main/MDKaTeX/css/style.css"),
38-
getCSS("user_style.css", ""),
37+
getCSS("_style.css", "https://cdn.jsdelivr.net/gh/alexthillen/Anki-KaTeX-Markdown-Reworked@main/MDKaTeX/css/_style.css"),
38+
getCSS("_user_style.css", ""),
3939
getCSS("_katex.css", "https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css"),
4040
getCSS("_highlight.css", "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.0.1/styles/default.min.css"),
4141
getScript("_highlight.js", "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.0.1/highlight.min.js"),

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ def print_hello():
5252

5353

5454
## Customizing Styles
55-
It's possible to customize the note style by editing **"user_style.css"** inside the media folder. To find out where your media folder is, please refer to the [Anki documentation](https://docs.ankiweb.net/files.html#file-locations).
55+
It's possible to customize the note style by editing **"_user_style.css"** inside the media folder. To find out where your media folder is, please refer to the [Anki documentation](https://docs.ankiweb.net/files.html#file-locations).
5656

57-
If a value has already been set inside the default **"style.css"**, you can overwrite it by using the `!important` flag.
57+
If a value has already been set inside the default **"_style.css"**, you can overwrite it by using the `!important` flag.
5858
If you want to remove a value, you can also use the `unset` keyword.
5959

6060
```css
61-
/* user_style.css example */
61+
/* _user_style.css example */
6262

6363
.nightMode, .night-mode, .night_mode {
6464
background-color: #1e1e2e !important; /* overwrite value */
@@ -67,7 +67,7 @@ If you want to remove a value, you can also use the `unset` keyword.
6767
filter: unset !important; /* remove value */
6868
}
6969

70-
/* !important is not necessary here since ".field" is not set in "style.css" */
70+
/* !important is not necessary here since ".field" is not set in "_style.css" */
7171
.field {
7272
display: inline-block;
7373
text-align: left;
@@ -91,4 +91,4 @@ Fork of : https://github.com/Jwrede/Anki-KaTeX-Markdown.
9191

9292
## Credits to
9393
- [Jwrede](https://github.com/Jwrede) for starting this cool project.
94-
- [Eljamm](https://github.com/eljamm) for his substantial contributions wrt dynamic styling and significantly enhancing the code's maintainability.
94+
- [Eljamm](https://github.com/eljamm) for his substantial contributions with dynamic styling and significantly enhancing the code's maintainability.

0 commit comments

Comments
 (0)