diff --git a/src/articles/admin.py b/src/articles/admin.py index e41b990..8dd6e9d 100644 --- a/src/articles/admin.py +++ b/src/articles/admin.py @@ -113,10 +113,7 @@ class ArticleAdmin(admin.ModelAdmin): class Media: css = { - "all": ( - "vendor/fonts/fira-code.css", - "admin_articles.css", - ), + "all": ("admin_articles.css",), } def response_post_save_add( diff --git a/src/articles/static/vendor/fonts/fira-code-vf.woff2 b/src/articles/static/vendor/fonts/fira-code-vf.woff2 deleted file mode 100644 index e755a9d..0000000 Binary files a/src/articles/static/vendor/fonts/fira-code-vf.woff2 and /dev/null differ diff --git a/src/articles/static/vendor/fonts/fira-code.css b/src/articles/static/vendor/fonts/fira-code.css deleted file mode 100644 index f2c579a..0000000 --- a/src/articles/static/vendor/fonts/fira-code.css +++ /dev/null @@ -1,6 +0,0 @@ -@font-face { - font-family: 'Fira Code'; - src: url('fira-code-vf.woff2') format("woff2-variations"); - font-weight: 300 700; - font-display: swap; -} \ No newline at end of file diff --git a/src/articles/static/vendor/fonts/golos-text-vf.woff2 b/src/articles/static/vendor/fonts/golos-text-vf.woff2 deleted file mode 100644 index 660cf4d..0000000 Binary files a/src/articles/static/vendor/fonts/golos-text-vf.woff2 and /dev/null differ diff --git a/src/articles/static/vendor/fonts/golos.css b/src/articles/static/vendor/fonts/golos.css deleted file mode 100644 index 136e025..0000000 --- a/src/articles/static/vendor/fonts/golos.css +++ /dev/null @@ -1,6 +0,0 @@ -@font-face { - font-family: 'Golos'; - src: url('golos-text-vf.woff2') format("woff2-variations"); - font-weight: 400 900; - font-display: swap; -} \ No newline at end of file diff --git a/src/articles/static/vendor/fonts/jetbrains-mono.css b/src/articles/static/vendor/fonts/jetbrains-mono.css deleted file mode 100644 index 685bd67..0000000 --- a/src/articles/static/vendor/fonts/jetbrains-mono.css +++ /dev/null @@ -1,14 +0,0 @@ -@font-face { - font-family: 'JetBrains Mono'; - src: url('jetbrainsmono-variablefont-wght.woff2') format("woff2-variations"); - font-weight: 100 800; - font-display: swap; -} - -@font-face { - font-family: 'JetBrains Mono'; - src: url('jetbrainsmono-italic-variablefont-wght.woff2') format("woff2-variations"); - font-weight: 100 800; - font-style: italic; - font-display: swap; -} \ No newline at end of file diff --git a/src/articles/static/vendor/fonts/jetbrainsmono-italic-variablefont-wght.woff2 b/src/articles/static/vendor/fonts/jetbrainsmono-italic-variablefont-wght.woff2 deleted file mode 100644 index c51290b..0000000 Binary files a/src/articles/static/vendor/fonts/jetbrainsmono-italic-variablefont-wght.woff2 and /dev/null differ diff --git a/src/articles/static/vendor/fonts/jetbrainsmono-variablefont-wght.woff2 b/src/articles/static/vendor/fonts/jetbrainsmono-variablefont-wght.woff2 deleted file mode 100644 index 583d709..0000000 Binary files a/src/articles/static/vendor/fonts/jetbrainsmono-variablefont-wght.woff2 and /dev/null differ diff --git a/src/articles/static/vendor/newcss.css b/src/articles/static/vendor/newcss.css index 47f7b63..5e4200c 100644 --- a/src/articles/static/vendor/newcss.css +++ b/src/articles/static/vendor/newcss.css @@ -4,8 +4,11 @@ MIT License */ :root { - --nc-font-sans: 'Golos', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - --nc-font-mono: 'Fira Code', Consolas, monaco, 'Ubuntu Mono', 'Liberation Mono', 'Courier New', Courier, monospace; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + + --nc-font-sans: system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; + --nc-font-mono: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace; /* Light theme */ --nc-tx-1: #000000; diff --git a/src/articles/templates/articles/base.html b/src/articles/templates/articles/base.html index 1d3e481..e8a6794 100644 --- a/src/articles/templates/articles/base.html +++ b/src/articles/templates/articles/base.html @@ -19,12 +19,8 @@ - - {% if article and article.has_code %} - - {% endif %} {% if user.is_authenticated %}