[PATCH yojo] index: unify button styles
Export this patch
Bit of a clash here.
---
static/style.css | 29 +----------------------------
templates/index.html | 4 ++--
2 files changed, 3 insertions(+), 30 deletions(-)
diff --git a/static/style.css b/static/style.css
index de8556b..00d243c 100644
--- a/static/style.css
+++ b/static/style.css
@@ -85,33 +85,6 @@ nav > div {
.install-btn {
display: block;
margin-bottom: 0.5rem;
-}
-
-.install-btn.sourcehut {
- text-decoration: none;
- padding: .785714em 1.5em;
- font-size: 0.9rem;
- min-height: 1em;
- font-weight: 400;
- line-height: 1.5;
- cursor: pointer;
- color: #000;
- border-radius: 0;
- transition: color .15s ease-in-out,
- background-color .15s ease-in-out,
- border-color .15s ease-in-out,
- box-shadow .15s ease-in-out;
- border: #001933 1px solid;
- background: #007bff;
- color: #fff;
-}
-
-.install-btn.sourcehut:hover {
- background: #0069d9;
- color: #fff;
-}
-
-.install-btn.codeberg {
background: #2185d0;
color: #fff;
border: 1px solid #0000001d;
@@ -126,7 +99,7 @@ nav > div {
transition: opacity .1s,background-color .1s,color .1s,box-shadow .1s,background .1s;
}
-.install-btn.codeberg:hover {
+.install-btn:hover {
background: #3876b3;
}
diff --git a/templates/index.html b/templates/index.html
index 73ff6a2..07ec830 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -12,11 +12,11 @@ service is available <a href="https://docs.codeberg.org/integrations/sourcehut/"
<p class="install">
{{if .SrhtLoginURL}}
- <a href="{{.SrhtLoginURL}}" class="install-btn sourcehut">Login with {{.SrhtName}}</a>
+ <a href="{{.SrhtLoginURL}}" class="install-btn">Login with {{.SrhtName}}</a>
{{end}}
{{if .GiteaLoginURL}}
- <a href="{{.GiteaLoginURL}}" class="install-btn codeberg">Login with {{.GiteaName}}</a>
+ <a href="{{.GiteaLoginURL}}" class="install-btn">Login with {{.GiteaName}}</a>
{{end}}
{{if or .SrhtUsername .GiteaUsername}}
--
2.43.0
Pushed, thanks!