Skip to content

Commit b97acb3

Browse files
committed
Dark theme for loading screen
1 parent 451976c commit b97acb3

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

src/Ui/media/Wrapper.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,14 @@ a { color: black }
107107
/* Loading screen */
108108

109109
.loadingscreen { width: 100%; height: 100%; position: absolute; background-color: #EEE; z-index: 1; overflow: hidden; display: none }
110+
.theme-dark .loadingscreen { background-color: #180922; }
110111
.loading-text { text-align: center; vertical-align: middle; top: 50%; position: absolute; margin-top: 39px; width: 100% }
111112
.loading-config {
112113
margin: 20px; display: inline-block; text-transform: uppercase; font-family: Consolas, monospace; position: relative;;
113114
text-decoration: none; letter-spacing: 1px; font-size: 12px; border-bottom: 1px solid #999; top: -60px; transition: all 1s cubic-bezier(1, 0, 0, 1); transition-delay: 0.3s;
114115
}
115116
.loading-config:hover { border-bottom-color: #000; transition: none; }
117+
.theme-dark .loading-config { color: white }
116118
.loadingscreen.ready .loading-config { top: 0px; }
117119

118120

src/Ui/media/all.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,14 @@ a { color: black }
121121
/* Loading screen */
122122

123123
.loadingscreen { width: 100%; height: 100%; position: absolute; background-color: #EEE; z-index: 1; overflow: hidden; display: none }
124+
.theme-dark .loadingscreen { background-color: #180922; }
124125
.loading-text { text-align: center; vertical-align: middle; top: 50%; position: absolute; margin-top: 39px; width: 100% }
125126
.loading-config {
126127
margin: 20px; display: inline-block; text-transform: uppercase; font-family: Consolas, monospace; position: relative;;
127128
text-decoration: none; letter-spacing: 1px; font-size: 12px; border-bottom: 1px solid #999; top: -60px; -webkit-transition: all 1s cubic-bezier(1, 0, 0, 1); -moz-transition: all 1s cubic-bezier(1, 0, 0, 1); -o-transition: all 1s cubic-bezier(1, 0, 0, 1); -ms-transition: all 1s cubic-bezier(1, 0, 0, 1); transition: all 1s cubic-bezier(1, 0, 0, 1) ; transition-delay: 0.3s;
128129
}
129130
.loading-config:hover { border-bottom-color: #000; -webkit-transition: none; -moz-transition: none; -o-transition: none; -ms-transition: none; transition: none ; }
131+
.theme-dark .loading-config { color: white }
130132
.loadingscreen.ready .loading-config { top: 0px; }
131133

132134

src/Ui/template/wrapper.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<link rel="stylesheet" href="/uimedia/all.css?rev={rev}" />
1010
{meta_tags}
1111
</head>
12-
<body style="{body_style}">
12+
<body style="{body_style}" class="{themeclass}">
1313

1414
<noscript>
1515
<div class="unsupported"><h3>ZeroNet requires JavaScript support.</h3>If you use NoScript: Click on toolbar icon and choose the "Temporary allow all this page" option.</div>

0 commit comments

Comments
 (0)