rename downloadButton to button.

Signed-off-by: Odyssey <odyssey346@disroot.org>
This commit is contained in:
Odyssey
2022-12-10 21:05:30 +01:00
parent a44f9ebdb4
commit 25376fa03a
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -151,7 +151,7 @@ a:hover {
}
/* URI: /:user/:repo */
.downloadButton {
.button {
background-color: var(--background);
padding: 8px;
border-radius: 8px;
@@ -162,7 +162,7 @@ a:hover {
display: inline-block;
}
.downloadButton:hover {
.button:hover {
background-color: var(--accent);
color: var(--text);
}
+2 -2
View File
@@ -4,8 +4,8 @@
{{ if .repo }}
{{ range $key, $value := .repo}}
<div class="buttonParent">
<a href="/download/{{.Fullname}}/{{.DefaultBranch}}" class="downloadButton">Download (zip)</a>
<a href="https://github.com/{{.Fullname}}" class="downloadButton">View on GitHub</a>
<a href="/download/{{.Fullname}}/{{.DefaultBranch}}" class="button">Download (zip)</a>
<a href="https://github.com/{{.Fullname}}" class="button">View on GitHub</a>
</div>
<div class="userProfile">
+1 -1
View File
@@ -4,7 +4,7 @@
{{ if .user }}
{{ range $key, $value := .user}}
<div class="buttonParent">
<a href="https://github.com/{{.Login}}" class="downloadButton">View on GitHub</a>
<a href="https://github.com/{{.Login}}" class="button">View on GitHub</a>
</div>
<div class="userProfile">
<img src="{{ .AvatarUrl }}" alt="{{.Login}}'s avatar" class="avatar" width="150" height="150">