mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-30 15:03:57 +00:00
SYNC: themable starting screen
This commit is contained in:
committed by
Diflow
parent
c5fe71d390
commit
6c21da6959
@@ -26,12 +26,23 @@
|
|||||||
|
|
||||||
<script lang="javascript">
|
<script lang="javascript">
|
||||||
window.dbgate_page = '{{page}}';
|
window.dbgate_page = '{{page}}';
|
||||||
</script>
|
|
||||||
|
|
||||||
|
if (localStorage.getItem('currentThemeType') == 'dark') {
|
||||||
|
document.documentElement.style.setProperty('--theme-background', '#111');
|
||||||
|
document.documentElement.style.setProperty('--theme-foreground', '#e3e3e3');
|
||||||
|
} else {
|
||||||
|
document.documentElement.style.setProperty('--theme-background', '#fff');
|
||||||
|
document.documentElement.style.setProperty('--theme-foreground', '#262626');
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
<script defer src="build/bundle.js"></script>
|
<script defer src="build/bundle.js"></script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
body {
|
||||||
|
background-color: var(--theme-background);
|
||||||
|
}
|
||||||
|
|
||||||
.lds-ellipsis {
|
.lds-ellipsis {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
position: relative;
|
position: relative;
|
||||||
@@ -44,7 +55,7 @@
|
|||||||
width: 13px;
|
width: 13px;
|
||||||
height: 13px;
|
height: 13px;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
background: #000;
|
background: var(--theme-foreground);
|
||||||
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
||||||
}
|
}
|
||||||
.lds-ellipsis div:nth-child(1) {
|
.lds-ellipsis div:nth-child(1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user