Browse Source

Declare login page is compatible with dark theme

adaptive-webui
Chocobo1 1 year ago
parent
commit
0b542d2003
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 28
      src/webui/www/public/css/login.css
  2. 4
      src/webui/www/public/css/noscript.css
  3. 25
      src/webui/www/public/css/palette.css
  4. 1
      src/webui/www/public/index.html
  5. 1
      src/webui/www/webui.qrc

28
src/webui/www/public/css/login.css

@ -1,9 +1,3 @@ @@ -1,9 +1,3 @@
@import url("palette.css");
*:focus {
outline: none;
}
body {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
@ -12,26 +6,6 @@ body { @@ -12,26 +6,6 @@ body {
text-align: left;
}
input[type="text"],
input[type="number"],
input[type="password"],
input[type="button"],
input[type="submit"],
button,
select {
border: 1px solid var(--color-border-default);
border-radius: 3px;
padding: 4px;
}
input[type="button"],
input[type="submit"],
button {
cursor: pointer;
margin: 4px 0;
padding: 4px 16px;
}
.col {
display: inline-block;
vertical-align: middle;
@ -54,7 +28,7 @@ button { @@ -54,7 +28,7 @@ button {
}
#error_msg {
color: var(--color-text-red);
color: #f00;
}
#login {

4
src/webui/www/public/css/noscript.css

@ -1,10 +1,8 @@ @@ -1,10 +1,8 @@
@import url("palette.css");
#formplace {
display: none;
}
#noscript {
color: var(--color-text-red);
color: #f00;
text-align: center;
}

25
src/webui/www/public/css/palette.css

@ -1,25 +0,0 @@ @@ -1,25 +0,0 @@
/* Adaptive color palette */
/* Default rules */
* {
--color-text-red: hsl(0deg 100% 65%);
--color-border-default: hsl(0deg 0% 85%);
}
:root {
color-scheme: light dark;
}
/* Light corrections */
@media (prefers-color-scheme: light) {
:root {
color-scheme: light;
}
}
/* Dark corrections */
@media (prefers-color-scheme: dark) {
:root {
color-scheme: dark;
}
}

1
src/webui/www/public/index.html

@ -3,6 +3,7 @@ @@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8" />
<meta name="color-scheme" content="light dark" />
<title>qBittorrent QBT_TR(Web UI)QBT_TR[CONTEXT=OptionsDialog]</title>
<link rel="icon" type="image/png" href="images/qbittorrent32.png" />
<link rel="icon" type="image/svg+xml" href="images/qbittorrent-tray.svg" />

1
src/webui/www/webui.qrc

@ -418,7 +418,6 @@ @@ -418,7 +418,6 @@
<file>private/views/transferlist.html</file>
<file>public/css/login.css</file>
<file>public/css/noscript.css</file>
<file>public/css/palette.css</file>
<file>public/images/qbittorrent-tray.svg</file>
<file>public/images/qbittorrent32.png</file>
<file>public/index.html</file>

Loading…
Cancel
Save