1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 07:36:44 +02:00

CSS: Add dark theme

This commit is contained in:
Jakub Vrana
2025-03-12 17:37:34 +01:00
parent a0fe44ec18
commit 7e708dae57
2 changed files with 43 additions and 0 deletions

View File

@@ -94,6 +94,48 @@ input.wayoff { left: -1000px; position: absolute; }
.rtl #lang, .rtl #menu { left: auto; right: 0; } .rtl #lang, .rtl #menu { left: auto; right: 0; }
.rtl pre, .rtl code { direction: ltr; } .rtl pre, .rtl code { direction: ltr; }
@media (prefers-color-scheme: dark) {
/** @author Robert Mesaros, https://www.rmsoft.sk */
body { color: #829bb0; background: #002240; }
a { color: #517fa8; }
a:visited { color: #517fa8; }
a:link:hover, a:visited:hover { color: #9bc0e1; }
h1 { border-color: #1d4e78; color: #ffddbf; background: #1d4e78; }
h2 { border-color: #b9cbda; color: #000; background: #3c678d; }
td, th { border-color: #0e416d; }
th { background: #11385a; }
thead td, thead th { color: #a8b05f; background: #011d35; }
fieldset { border-color: #16548a; }
code { color: #002240; background: #81a0bc; padding: .2em .5em; }
tbody tr:hover td, tbody tr:hover th { background: #133553; }
pre.jush { background: #a7c3dc; }
input.default { box-shadow: 1px 1px 1px #888; }
input.required, input.maxlength { box-shadow: 1px 1px 1px red; }
.version { color: #888; }
.js .column { background: #011d35; }
.error { color: red; background: #efdada; border:1px solid #e76f6f; }
.error b { background: #002240; }
.message { color: #0b860b; background: #efe; border:1px solid #7fbd7f; }
.message table { color: #829bb0; background: #002240; }
.char { color: #ff80ff; }
.date { color: #80ff80; }
.enum { color: #ff8080; }
.binary { color: #9bc0e1; }
.odds tbody tr:nth-child(2n):not(.checked, :hover) td { background: #042541; }
.js .checkable .checked td, .js .checkable .checked th { background: #10395c; }
.icon { background-color: #062642; }
.icon:hover { background-color: #d1394e; }
.footer { border-top-color: rgba(0, 34, 64, .7); border-image-source: linear-gradient(rgba(0, 34, 64, 0.2), #002240); }
.footer > div { background: #002240; }
#menu p, #logins, #tables { border-color: #326b9c; }
#logins a, #tables a, #tables span { background: #002240; }
#breadcrumb { background: #1d4e78; }
#h1 { color: #ffddbf; }
#version { color: #d2b397; }
#schema .table { border-color: #093459; }
#help { border-color: #666; background: #c7e4fe; }
}
@media all and (max-width: 880px) { @media all and (max-width: 880px) {
.pages { left: auto; } .pages { left: auto; }
.logout { position: static; padding: 0 1em 1em; } .logout { position: static; padding: 0 1em 1em; }

View File

@@ -4,6 +4,7 @@ MySQL: Allow setting default values of json column
MariaDB: Don't display NULL as default value (regression from 5.0.0) MariaDB: Don't display NULL as default value (regression from 5.0.0)
PostgreSQL PDO: Escape bytea values (bug #218) PostgreSQL PDO: Escape bytea values (bug #218)
MS SQL: Fix editing rows with datetime column in primary key MS SQL: Fix editing rows with datetime column in primary key
CSS: Add dark theme
Adminer 5.0.4 (released 2025-03-11): Adminer 5.0.4 (released 2025-03-11):
Compile: Fix shortening in private methods (regression from 5.0.3) Compile: Fix shortening in private methods (regression from 5.0.3)