Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow custom themes + dark theme #925

Closed
GammaGames opened this issue Mar 18, 2025 · 1 comment
Closed

Allow custom themes + dark theme #925

GammaGames opened this issue Mar 18, 2025 · 1 comment

Comments

@GammaGames
Copy link

GammaGames commented Mar 18, 2025

I use the AdminerCustomizeThemeBasedOnServer plugin to add custom css to the header depending on the server the user is connected to:

@keyframes blinker {
    50% {
        opacity: 10%;
    }
}

a#h1:after, #content h2:nth-of-type(1)::after {
    content: ' DEV SERVER';
    color: red;
    animation: blinker 2s linear infinite;
    font-weight: bold;
}

If this plugin finds a matching css file adminer's dark theme no longer works, I think because of

$dark = (count($css) == 1 ? !!preg_match('~-dark~', $css[0]) : null);

Could adminer be updated to allow extra custom css on top of the dark theme?

@vrana
Copy link
Owner

vrana commented Mar 18, 2025

I'll make it explicitly check for adminer.css and adminer-dark.css.

@vrana vrana closed this as completed in bda53f0 Mar 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants