diff options
author | silverwind <me@silverwind.io> | 2020-10-19 22:01:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-19 16:01:06 -0400 |
commit | 3ddf3f93d6346ac9440a7a571faea4b5c1c329be (patch) | |
tree | 2bf7348498659d923ce28a25eb1ce80f2944a0ad /web_src/less/_repository.less | |
parent | d67172b1360017d9ddbbef0c44e46633e41a856b (diff) | |
download | gitea-3ddf3f93d6346ac9440a7a571faea4b5c1c329be.tar.gz gitea-3ddf3f93d6346ac9440a7a571faea4b5c1c329be.zip |
Use CSS Variables for fonts, remove postcss-loader (#13204)
* Use CSS Variables for fonts, remove postcss-loader
- Use CSS variables for fonts, making the fonts easier to customize
- Remove postcss-loader, it's not doing anything useful and is actually
applying strange transforms on our CSS.
Fixes: https://github.com/go-gitea/gitea/issues/11045
* introduce helper variable, mark documented vars
* work around case issue by always quoting specific fonts
Diffstat (limited to 'web_src/less/_repository.less')
-rw-r--r-- | web_src/less/_repository.less | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less index fee85a700f..fba83adf7e 100644 --- a/web_src/less/_repository.less +++ b/web_src/less/_repository.less @@ -545,7 +545,7 @@ .branch-name { display: inline-block; padding: 3px 6px; - font: 12px @monospaced-fonts, monospace; + font: 12px var(--fonts-monospace); color: rgba(0, 0, 0, .65); background-color: rgba(209, 227, 237, .45); border-radius: 3px; @@ -1162,7 +1162,7 @@ textarea { height: 200px; - font-family: @monospaced-fonts, monospace; + font-family: var(--fonts-monospace); } } @@ -1277,7 +1277,7 @@ textarea { height: 200px; - font-family: @monospaced-fonts, monospace; + font-family: var(--fonts-monospace); } } } @@ -2096,7 +2096,7 @@ &.new { .CodeMirror { .CodeMirror-code { - font-family: @monospaced-fonts, monospace; + font-family: var(--fonts-monospace); .cm-comment { background: inherit; |