summaryrefslogtreecommitdiffstats
path: root/web_src/less
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2021-05-23 02:45:39 +0200
committerGitHub <noreply@github.com>2021-05-23 08:45:39 +0800
commitb4d10598c9be1ba8008c5a47ef1cd3612e99331a (patch)
tree6740ce6a49eed31d91d66dd8a18b481c3abe12a2 /web_src/less
parent308b562b3c0440e800dc63b0ef2eb6777a1e0026 (diff)
downloadgitea-b4d10598c9be1ba8008c5a47ef1cd3612e99331a.tar.gz
gitea-b4d10598c9be1ba8008c5a47ef1cd3612e99331a.zip
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>
Diffstat (limited to 'web_src/less')
-rw-r--r--web_src/less/_base.less8
-rw-r--r--web_src/less/_repository.less21
2 files changed, 23 insertions, 6 deletions
diff --git a/web_src/less/_base.less b/web_src/less/_base.less
index bf7e442a22..fb4e15e146 100644
--- a/web_src/less/_base.less
+++ b/web_src/less/_base.less
@@ -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;
diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less
index b90e287b44..e578dc2a6d 100644
--- a/web_src/less/_repository.less
+++ b/web_src/less/_repository.less
@@ -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;
+ }
}
}