mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-27 04:07:08 +00:00
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
This commit is contained in:
parent
8ea1d32bea
commit
834fc74873
5 changed files with 27 additions and 13 deletions
|
@ -396,15 +396,10 @@
|
|||
|
||||
.file-actions {
|
||||
.btn-octicon {
|
||||
display: inline-block;
|
||||
padding: 5px;
|
||||
margin-left: 5px;
|
||||
line-height: 1;
|
||||
color: var(--color-text);
|
||||
padding: 10px 8px;
|
||||
vertical-align: middle;
|
||||
background: transparent;
|
||||
border: 0;
|
||||
outline: none;
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
.btn-octicon:hover {
|
||||
|
@ -412,7 +407,7 @@
|
|||
}
|
||||
|
||||
.btn-octicon-danger:hover {
|
||||
color: #bd2c00;
|
||||
color: var(--color-red);
|
||||
}
|
||||
|
||||
.btn-octicon.disabled {
|
||||
|
@ -430,13 +425,18 @@
|
|||
.view-raw {
|
||||
padding: 5px;
|
||||
|
||||
* {
|
||||
> * {
|
||||
max-width: 100%;
|
||||
border: 1px solid var(--color-secondary);
|
||||
}
|
||||
|
||||
img {
|
||||
margin: 1rem 0;
|
||||
border-radius: 0;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
/* also see misc.css for one more related rule */
|
||||
}
|
||||
|
||||
.plain-text {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue