1
0
Fork 0
forked from forgejo/forgejo

Remove fomantic accordion module (#15951)

Replace it with native <detail> element. Did some slight restyling on
the release downloads, new behaviour should be exactly the same
otherwise.

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
silverwind 2021-05-23 02:45:39 +02:00 committed by GitHub
parent 308b562b3c
commit b4d10598c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 197 additions and 1061 deletions

View file

@ -164,6 +164,14 @@ table {
border-collapse: collapse;
}
details summary {
cursor: pointer;
}
details summary > * {
display: inline;
}
* {
scrollbar-width: thin;
scrollbar-color: var(--color-primary) transparent;

View file

@ -1849,8 +1849,6 @@
}
.download {
margin-top: 20px;
> a {
.svg {
margin-left: 5px;
@ -1860,19 +1858,30 @@
.list {
padding-left: 0;
border-top: 1px solid var(--color-secondary);
li {
list-style: none;
display: block;
padding-top: 8px;
padding-bottom: 8px;
border-bottom: 1px solid var(--color-secondary);
padding: 8px;
border: 1px solid var(--color-secondary);
background: var(--color-light);
a > .text.right {
margin-right: 5px;
}
}
li + li {
border-top: 0;
}
li:first-of-type {
border-radius: var(--border-radius) 0 0 var(--border-radius);
}
li:last-of-type {
border-radius: 0 var(--border-radius) var(--border-radius) 0;
}
}
}