diff options
author | silverwind <me@silverwind.io> | 2024-03-28 09:31:07 +0100 |
---|---|---|
committer | Earl Warren <contact@earl-warren.org> | 2024-03-30 07:17:32 +0100 |
commit | bcfb7e03569cf41ad8c2b3968f88d7e43c84dbcb (patch) | |
tree | e2fad05cc3b06acf2e850ece899a749ea974d37c /templates/shared/combomarkdowneditor.tmpl | |
parent | Move from `max( id )` to `max( index )` for latest commit statuses (#30076) (diff) | |
download | forgejo-bcfb7e03569cf41ad8c2b3968f88d7e43c84dbcb.tar.xz forgejo-bcfb7e03569cf41ad8c2b3968f88d7e43c84dbcb.zip |
Migrate font-family to tailwind (#30118)
Enable us to use tailwind's
[`font-family`](https://tailwindcss.com/docs/font-family) classes as
well as remove `gt-mono` in favor of `tw-font-mono`. I also merged the
"compensation" to one selector, previously this was two different values
0.9em and 0.95em. I did not declare a `serif` font because I don't think
there will ever be a use case for those. Command ran:
```sh
perl -p -i -e 's#gt-mono#tw-font-mono#g' web_src/js/**/* templates/**/*
(cherry picked from commit 226a82a9396dc94f362ba27bd1c9318630df74b4)
Diffstat (limited to 'templates/shared/combomarkdowneditor.tmpl')
-rw-r--r-- | templates/shared/combomarkdowneditor.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/shared/combomarkdowneditor.tmpl b/templates/shared/combomarkdowneditor.tmpl index 64a1aea392..f4d51f510b 100644 --- a/templates/shared/combomarkdowneditor.tmpl +++ b/templates/shared/combomarkdowneditor.tmpl @@ -49,7 +49,7 @@ Template Attributes: </text-expander> <script> if (localStorage?.getItem('markdown-editor-monospace') === 'true') { - document.querySelector('.markdown-text-editor').classList.add('gt-mono'); + document.querySelector('.markdown-text-editor').classList.add('tw-font-mono'); } </script> </div> |