diff options
author | silverwind <me@silverwind.io> | 2023-06-27 21:44:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-27 21:44:17 +0200 |
commit | b943318617633e7dc43f3ac1c146be1e37563093 (patch) | |
tree | de250bf2a87c53d6796caae0112b7a65aae51ad1 /web_src/css | |
parent | 426a49d48165db362dc590df541830bacf53d15c (diff) | |
download | gitea-b943318617633e7dc43f3ac1c146be1e37563093.tar.gz gitea-b943318617633e7dc43f3ac1c146be1e37563093.zip |
Update JS dependencies and misc tweaks (#25540)
- Update all JS dependencies
- Enable `declaration-property-unit-disallowed-list` to forbid `em` on
`line-height`
- Rename dependency update targets to `update-js` and `update-py` and
document them
- Remove margin on Asciicast viewer
- Tested Swagger, Katex, Asciicast
<img width="1243" alt="Screenshot 2023-06-27 at 19 51 05"
src="https://github.com/go-gitea/gitea/assets/115237/2d2722a0-2aa7-4f4c-b8bd-17e1f3637b78">
Diffstat (limited to 'web_src/css')
-rw-r--r-- | web_src/css/base.css | 4 | ||||
-rw-r--r-- | web_src/css/modules/card.css | 2 | ||||
-rw-r--r-- | web_src/css/repo.css | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/web_src/css/base.css b/web_src/css/base.css index 4e2cd373d7..ec37c123d7 100644 --- a/web_src/css/base.css +++ b/web_src/css/base.css @@ -2166,7 +2166,7 @@ table th[data-sortt-desc] .svg { } .truncated-item-name { - line-height: 2em; + line-height: 2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; @@ -2188,7 +2188,7 @@ table th[data-sortt-desc] .svg { } .ui.dropdown { - line-height: 1em; /* the dropdown doesn't have default line-height, use this to make the dropdown icon align with plain dropdown */ + line-height: 1; /* the dropdown doesn't have default line-height, use this to make the dropdown icon align with plain dropdown */ } /* dropdown has some kinds of icons: diff --git a/web_src/css/modules/card.css b/web_src/css/modules/card.css index eba14ab334..2406def681 100644 --- a/web_src/css/modules/card.css +++ b/web_src/css/modules/card.css @@ -59,7 +59,7 @@ font-weight: var(--font-weight-medium); font-size: 1.28571429em; margin-top: -.21425em; - line-height: 1.28571429em; + line-height: 1.28571429; } .ui.cards > .card > .content:first-child, diff --git a/web_src/css/repo.css b/web_src/css/repo.css index 825711465e..0122e79aae 100644 --- a/web_src/css/repo.css +++ b/web_src/css/repo.css @@ -478,7 +478,7 @@ } .repository.file.list .non-diff-file-content .asciicast { - padding: 5px !important; + padding: 0 !important; } .non-diff-file-content .attached.segment, @@ -1903,7 +1903,7 @@ .repository.settings.collaboration .collaborator.list > .item { margin: 0; - line-height: 2em; + line-height: 2; } .repository.settings.collaboration #repo-collab-form #search-user-box .results { @@ -2601,7 +2601,7 @@ .labels-list .label { margin: 2px 0; display: inline-flex !important; - line-height: 1.3em; /* there is a `font-size: 1.25em` for inside emoji, so here the line-height needs to be larger slightly */ + line-height: 1.3; /* there is a `font-size: 1.25em` for inside emoji, so here the line-height needs to be larger slightly */ } /* Scoped labels with different colors on left and right */ |