update sponsor

This commit is contained in:
Vick Scarlet
2021-09-08 21:17:55 +08:00
parent f63bcad8eb
commit 538bd7caee
4 changed files with 12 additions and 11 deletions

File diff suppressed because one or more lines are too long

View File

@ -84,7 +84,7 @@ class App{
} else{
indexPage.find('#themeToggleBtn').text('白')
}
indexPage
.find("#themeToggleBtn")
.click(() => {
@ -110,7 +110,8 @@ class App{
<ul class="g1"></ul>
<ul class="g2"></ul>
</div>
<button id="sponsor" onclick="window.open('https://afdian.net/@LifeRestart')">打赏作者</button>
<button class="sponsor" onclick="window.open('https://afdian.net/@LifeRestart')" style="background: linear-gradient(90deg,#946ce6,#7e5fd9); left:auto; right:50%; transform: translate(-2rem,-50%);">打赏策划(爱发电)</button>
<button class="sponsor" onclick="window.open('https://dun.mianbaoduo.com/@vickscarlet')" style="background-color:#c69; left:50%; right:auto; transform: translate(2rem,-50%);">打赏程序(顿顿饭)</button>
</div>
`);

View File

@ -100,7 +100,7 @@ body {
-moz-osx-font-smoothing: grayscale;
}
#sponsor,
.sponsor,
#specialthanks,
#rank {
position: fixed;
@ -123,11 +123,11 @@ body {
top: 1rem;
}
#sponsor {
.sponsor {
top: auto;
bottom: 0;
right: 50%;
transform: translate(50%, -50%);
width: auto;
padding: 0.5rem;
}
#spthx {

View File

@ -97,7 +97,7 @@ body {
-moz-osx-font-smoothing: grayscale;
}
#sponsor,
.sponsor,
#specialthanks,
#rank {
position: fixed;
@ -120,11 +120,11 @@ body {
top: 1rem;
}
#sponsor {
.sponsor {
top: auto;
bottom: 0;
right: 50%;
transform: translate(50%, -50%);
width: auto;
padding: 0.5rem;
}
#spthx {