diff options
author | silverwind <me@silverwind.io> | 2022-07-20 17:48:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-20 23:48:06 +0800 |
commit | c7fa5cc0175935579091daaa70a24a6442c4ee01 (patch) | |
tree | 9984071f76e2aeb6fa256a2b3855f9a3630a324c /web_src | |
parent | b8733e8f8913aec912e145213aea3bf551361af6 (diff) | |
download | gitea-c7fa5cc0175935579091daaa70a24a6442c4ee01.tar.gz gitea-c7fa5cc0175935579091daaa70a24a6442c4ee01.zip |
Update JS dependencies (#20423)
- Update all JS dependencies minus vue ones
- Remove workaround for case-insensitive attribute selector
- Add new linter rules and fix issues
- Tested SVG display and swagger
Diffstat (limited to 'web_src')
-rw-r--r-- | web_src/less/_base.less | 4 | ||||
-rw-r--r-- | web_src/less/_repository.less | 5 | ||||
-rw-r--r-- | web_src/less/misc.css | 5 | ||||
-rw-r--r-- | web_src/less/themes/theme-arc-green.less | 2 |
4 files changed, 7 insertions, 9 deletions
diff --git a/web_src/less/_base.less b/web_src/less/_base.less index 638801e392..f6035b1a8e 100644 --- a/web_src/less/_base.less +++ b/web_src/less/_base.less @@ -326,7 +326,7 @@ a.commit-statuses-trigger { .ui.action.input:not([class*="left action"]) > .ui.dropdown.selection { min-width: 10em; - &:not(:focus):not(:hover) { + &:not(:focus,:hover) { border-right-color: transparent; } } @@ -1205,7 +1205,7 @@ a.ui.card:hover, &.pagination.menu { @media @mediaSm { - .item:not(.active):not(.navigation), + .item:not(.active,.navigation), .item.navigation span.navigation_label { display: none; } diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less index 0ad937f028..d5942bdfcb 100644 --- a/web_src/less/_repository.less +++ b/web_src/less/_repository.less @@ -494,7 +494,10 @@ object-fit: contain; } - /* also see misc.css for one more related rule */ + img[src$='.svg' i] { + max-height: 600px !important; + max-width: 600px !important; + } } .plain-text { diff --git a/web_src/less/misc.css b/web_src/less/misc.css deleted file mode 100644 index 02b849fd09..0000000000 --- a/web_src/less/misc.css +++ /dev/null @@ -1,5 +0,0 @@ -/* can not have this selector in less because of https://github.com/less/less.js/issues/3027 */ -.view-raw img[src$='.svg' i] { - max-height: 600px !important; - max-width: 600px !important; -} diff --git a/web_src/less/themes/theme-arc-green.less b/web_src/less/themes/theme-arc-green.less index 01150d353e..e510866a90 100644 --- a/web_src/less/themes/theme-arc-green.less +++ b/web_src/less/themes/theme-arc-green.less @@ -185,7 +185,7 @@ a.ui.basic.green.label:hover { color: #fff !important; } -.ui.divider:not(.vertical):not(.horizontal) { +.ui.divider:not(.vertical,.horizontal) { border-bottom-color: var(--color-secondary); border-top-color: transparent; } |