Fix dark mode using skin-theme-clientpref-night selector for Minerva (via update-page on MediaWiki MCP Server)
Fix dark mode selector to match Stub template pattern: html.skin-theme-clientpref-night (via update-page on MediaWiki MCP Server)
 
Line 45: Line 45:
}
}


/* Dark mode - Minerva night mode */
/* ===== DARK MODE - User preference ===== */
.skin-theme-clientpref-night .brand-entry {
 
html.skin-theme-clientpref-night .brand-entry {
     background: #1e293b;
     background: #1e293b;
     border-color: #3b82f6;
     border-color: #3b82f6;
Line 52: Line 53:
}
}


.skin-theme-clientpref-night .brand-entry:hover {
html.skin-theme-clientpref-night .brand-entry:hover {
     background: #1e3a5f;
     background: #1e3a5f;
     border-color: #60a5fa;
     border-color: #60a5fa;
Line 58: Line 59:
}
}


.skin-theme-clientpref-night .brand-entry-count {
html.skin-theme-clientpref-night .brand-entry-count {
     color: #94a3b8;
     color: #94a3b8;
}
/* ===== DARK MODE - OS preference ===== */
@media (prefers-color-scheme: dark) {
    html.skin-theme-clientpref-os .brand-entry {
        background: #1e293b;
        border-color: #3b82f6;
        color: #60a5fa;
    }
    html.skin-theme-clientpref-os .brand-entry:hover {
        background: #1e3a5f;
        border-color: #60a5fa;
        box-shadow: 0 10px 15px -3px rgba(96, 165, 250, 0.3), 0 4px 6px -4px rgba(96, 165, 250, 0.2);
    }
    html.skin-theme-clientpref-os .brand-entry-count {
        color: #94a3b8;
    }
}
}

Latest revision as of 22:04, 1 February 2026

.brand-entry {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 1rem 0.75rem;
    background: #ffffff;
    border: 2px solid #3b82f6;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #1e40af;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2), 0 2px 4px -2px rgba(59, 130, 246, 0.15);
    cursor: pointer;
    transition: all 0.2s ease;
}

.brand-entry:hover {
    background: #eff6ff;
    border-color: #2563eb;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.25), 0 4px 6px -4px rgba(59, 130, 246, 0.2);
    transform: translateY(-3px);
}

.brand-entry:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px -1px rgba(59, 130, 246, 0.15);
}

.brand-entry-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.brand-entry-count {
    display: block;
    font-weight: 500;
    font-size: 0.8125rem;
    color: #475569;
    margin-top: 0.125rem;
}

/* ===== DARK MODE - User preference ===== */

html.skin-theme-clientpref-night .brand-entry {
    background: #1e293b;
    border-color: #3b82f6;
    color: #60a5fa;
}

html.skin-theme-clientpref-night .brand-entry:hover {
    background: #1e3a5f;
    border-color: #60a5fa;
    box-shadow: 0 10px 15px -3px rgba(96, 165, 250, 0.3), 0 4px 6px -4px rgba(96, 165, 250, 0.2);
}

html.skin-theme-clientpref-night .brand-entry-count {
    color: #94a3b8;
}

/* ===== DARK MODE - OS preference ===== */

@media (prefers-color-scheme: dark) {
    html.skin-theme-clientpref-os .brand-entry {
        background: #1e293b;
        border-color: #3b82f6;
        color: #60a5fa;
    }

    html.skin-theme-clientpref-os .brand-entry:hover {
        background: #1e3a5f;
        border-color: #60a5fa;
        box-shadow: 0 10px 15px -3px rgba(96, 165, 250, 0.3), 0 4px 6px -4px rgba(96, 165, 250, 0.2);
    }

    html.skin-theme-clientpref-os .brand-entry-count {
        color: #94a3b8;
    }
}
MediaWiki Appliance - Powered by TurnKey Linux