forked from forgejo/forgejo
[FEAT] Visual separation between types of attachments
- Add a visual (but still semantic way) separation between Forgejo's generated attachments and the user's uploaded ones. - The styling was first done by `ul` element, but is moved to the individual list items to have better control over them. - Add tooltip explaining the attachment was generated by Forgejo. - Remove the tooltip of the other attachments and 'simplify' them into a text. - Resolves #2893 Co-authored-by: 0ko <0ko@noreply.codeberg.org>
This commit is contained in:
parent
68e900822b
commit
20a3597220
4 changed files with 31 additions and 16 deletions
|
@ -33,20 +33,32 @@
|
|||
|
||||
.repository.releases #release-list > li .detail .download .list {
|
||||
padding-left: 0;
|
||||
border: 1px solid var(--color-secondary);
|
||||
border-radius: var(--border-radius);
|
||||
background: var(--color-light);
|
||||
}
|
||||
|
||||
.repository.releases #release-list > li .detail .download .list li {
|
||||
background: var(--color-light);
|
||||
border: 1px solid var(--color-secondary);
|
||||
border-top: none;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 8px;
|
||||
border-bottom: 1px solid var(--color-secondary);
|
||||
}
|
||||
|
||||
.repository.releases #release-list > li .detail .download .list li:last-child {
|
||||
border-bottom: none;
|
||||
.repository.releases #release-list > li .detail .download .list :is(li:first-child, .start-gap + hr + li) {
|
||||
border-top: 1px solid var(--color-secondary);
|
||||
border-top-left-radius: var(--border-radius);
|
||||
border-top-right-radius: var(--border-radius);
|
||||
}
|
||||
|
||||
.repository.releases #release-list > li .detail .download .list :is(li:last-child, .start-gap) {
|
||||
border-bottom: 1px solid var(--color-secondary);
|
||||
border-bottom-left-radius: var(--border-radius);
|
||||
border-bottom-right-radius: var(--border-radius);
|
||||
}
|
||||
|
||||
.repository.releases #release-list > li .detail .download .list hr {
|
||||
height: 8px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.repository.releases #release-list > li .detail .dot {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue