diff options
author | silverwind <me@silverwind.io> | 2021-04-22 23:43:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-22 23:43:44 +0200 |
commit | 834fc74873e8047552e9181e130bd53d8e890eb0 (patch) | |
tree | 2bd50b3d68b81c90ac795f0df9a94afb717c77f8 /web_src/less/misc.css | |
parent | 8ea1d32bea88b6968774b14e5bbe90f2280fe997 (diff) | |
download | gitea-834fc74873e8047552e9181e130bd53d8e890eb0.tar.gz gitea-834fc74873e8047552e9181e130bd53d8e890eb0.zip |
Raw file view tweaks (#15520)
- Limit SVG images to 600px width
- Adjust size of view toggle buttons to match other buttons
- Make Edit/Delete buttons easier to click
Had to create a separate CSS file because the less parser can not parse
CSS4 case-insensitive attribute selectors which are widely supported by
browsers.
Fixes: https://github.com/go-gitea/gitea/issues/15515
Diffstat (limited to 'web_src/less/misc.css')
-rw-r--r-- | web_src/less/misc.css | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/web_src/less/misc.css b/web_src/less/misc.css new file mode 100644 index 0000000000..02b849fd09 --- /dev/null +++ b/web_src/less/misc.css @@ -0,0 +1,5 @@ +/* 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; +} |