Jump to content

MediaWiki:Mobile.css

From ATRONIA Wiki
Revision as of 15:02, 26 March 2026 by WikiManagement (talk | contribs)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* All CSS here will be loaded for users of the mobile site */



/* ESTES ESTILOS SÓ AFETAM O TELEMÓVEL */

/* 1. Limpar fundos que pesam no mobile */
body, .mw-page-container {
    background-image: none !important;
    background-color: #ffffff !important;
}

/* 2. Corrigir o tamanho do conteúdo e tabelas */
#content, .mw-body {
    margin: 0 !important;
    padding: 10px !important;
    width: 100% !important;
}

/* Forçar scroll nas tabelas de hardware do ATLAS */
.mw-parser-output {
    overflow-x: auto !important;
}

table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
}

/* 3. Ajustar o Logo da ATRONIA no topo */
.mw-wiki-logo {
    max-width: 140px !important;
    background-size: contain !important;
    margin-left: 10px;
}

/* 4. Cores de texto para melhor contraste */
#mw-content-text {
    color: #000000 !important;
    font-size: 0.95em !important;
}






/* Ajuste do Header e Logo para Mobile */
@media screen and (max-width: 720px) {
    /* Garante que o container do logo tenha espaço */
    .mw-header {
        display: flex !important;
        align-items: center !important;
        padding: 5px 10px !important;
    }

    /* Redimensiona o logo ATRONIA para caber no topo */
    .mw-wiki-logo {
        max-width: 120px !important;
        height: 40px !important;
        background-size: contain !important;
        margin: 0 !important;
    }
    
    /* Se estiveres a usar a wordmark (texto ATRONIA) */
    .mw-logo-wordmark {
        max-width: 100px !important;
        height: auto !important;
    }
}




/* Remove o fundo e a borda do botão de busca no mobile */
.vector-header-end #p-search .cdx-button.cdx-button--fake-button {
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Garante que o ícone da lupa fique visível (branco ou verde) */
.vector-header-end #p-search .vector-icon {
    color: #ccff00 !important; /* Verde ATRONIA */
}

/* Remove o efeito de fundo quando clicas no botão (active/hover) */
.vector-header-end #p-search .cdx-button:hover,
.vector-header-end #p-search .cdx-button:active,
.vector-header-end #p-search .cdx-button:focus {
    background-color: transparent !important;
    color: #ffffff !important;
}