diff options
author | silverwind <me@silverwind.io> | 2023-05-22 01:37:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-21 23:37:32 +0000 |
commit | 19993d8814e227ac0a52b73d36fdb03fbb143c3f (patch) | |
tree | c8cc745e5fd25da559c8310eb8df07d2b6ef959e /templates/repo/diff | |
parent | 4647660776436f0a83129b4ceb8426b1fb0599bb (diff) | |
download | gitea-19993d8814e227ac0a52b73d36fdb03fbb143c3f.tar.gz gitea-19993d8814e227ac0a52b73d36fdb03fbb143c3f.zip |
Change `--font-weight-bold` to `--font-weight-semibold` and 600 value, introduce new font weight variables (#24827)
There was some recent discussion about this in Discord `ui-design`
channel and the conclusion was that
https://github.com/go-gitea/gitea/issues/24305 should have fixed their
OS font installation to have semibold weights.
I have now tested this 601 weight on a Windows 10 machine on Firefox
myself, and I immediately noticed that bold was excessivly bold and
rendering as 700 because browsers are biased towards bolder fonts. So
revert this back to the previous value.
Diffstat (limited to 'templates/repo/diff')
-rw-r--r-- | templates/repo/diff/box.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/diff/comments.tmpl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/diff/box.tmpl b/templates/repo/diff/box.tmpl index 740b39dbd5..292a7dd2bd 100644 --- a/templates/repo/diff/box.tmpl +++ b/templates/repo/diff/box.tmpl @@ -97,7 +97,7 @@ {{svg "octicon-chevron-down" 18}} {{end}} </button> - <div class="gt-bold gt-df gt-ac gt-mono"> + <div class="gt-font-semibold gt-df gt-ac gt-mono"> {{if $file.IsBin}} <span class="gt-ml-1 gt-mr-3"> {{$.locale.Tr "repo.diff.bin"}} diff --git a/templates/repo/diff/comments.tmpl b/templates/repo/diff/comments.tmpl index f301261533..50f0c903ae 100644 --- a/templates/repo/diff/comments.tmpl +++ b/templates/repo/diff/comments.tmpl @@ -11,7 +11,7 @@ <div class="ui top attached header comment-header gt-df gt-ac gt-sb"> <div class="comment-header-left gt-df gt-ac"> {{if .OriginalAuthor}} - <span class="text black gt-bold gt-mr-2"> + <span class="text black gt-font-semibold gt-mr-2"> {{svg (MigrationIcon $.root.Repository.GetOriginalURLHostname)}} {{.OriginalAuthor}} </span> |