MediaWiki:Common.css

De Wiki Gla
Revisão de 21h22min de 18 de janeiro de 2025 por Gurren1 (discussão | contribs)
Ir para navegação Ir para pesquisar

Nota: Após salvar, você pode ter que limpar o "cache" do seu navegador para ver as alterações.

  • Firefox / Safari: Pressione Shift enquanto clica Recarregar, ou pressione Ctrl-F5 ou Ctrl-R (⌘-R no Mac)
  • Google Chrome: Pressione Ctrl-Shift-R (⌘-Shift-R no Mac)
  • Internet Explorer/Edge: PressioneCtrl enquanto clica Recarregar, ou Pressione Ctrl-F5
  • Opera: Pressione Ctrl-F5.
/* preset img */
/* Estilo geral para imagens responsivas */
.responsive-image {
  max-width: 100%;
  display: block;
  margin: 0 auto;
  overflow: hidden;
}

.custom-image {
  width: 100%; /* Ajusta a largura da imagem para ocupar o máximo do container */
  max-width: 800px; /* Define um limite máximo de largura para a imagem */
  height: auto; /* Mantém a proporção da imagem */
}

/* Ajustes específicos para alinhamentos opcionais */
.responsive-image[style*="text-align:left"] {
  margin: 0;
  text-align: left;
}

.responsive-image[style*="text-align:right"] {
  margin: 0;
  text-align: right;
}

.responsive-image[style*="text-align:center"] {
  text-align: center;
}
/* Estilos para o widget de vídeo */
.pagevideo-wrapper {
    display: flex;
    justify-content: center; /* Alinhamento padrão */
    align-items: flex-start;
    margin: 20px auto;
    width: 100%; /* Garante que o container ocupe toda a largura */
}

.pagevideo {
    width: 100%; /* O vídeo ocupa toda a largura do container */
    max-width: 800px; /* Tamanho máximo do vídeo em telas grandes */
    height: auto; /* Mantém a proporção do vídeo */
    border: 1px solid #ccc; /* Adiciona uma borda leve */
    border-radius: 5px; /* Bordas arredondadas */
    background-color: #000; /* Fundo preto para melhorar contraste */
}

/* Ajustes para telas pequenas */
@media screen and (max-width: 768px) {
    .pagevideo {
        max-width: 100%; /* No celular, o vídeo ocupa 100% da largura disponível */
    }
}


/**********************************
  MEDIAWIKI: THUMBS
  **********************************/
.thumb {
    border: 1px solid #ccc;
    background-color: #fafafa;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.15);
    text-align: center;
    margin: 8px auto;
}

.thumbimage {
    max-width: 100%;
    height: auto;
    border: none;
}

.thumbcaption {
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: #666;
    background-color: #ffffff;
    padding: 4px;
    border-top: 1px solid #eee;
}

.magnify {
    display: none;
}

/**********************************
  MEDIAWIKI: SIMBOLO DE LINKS EXTERNOS
  **********************************/
.mw-parser-output .external {
    background-image: none !important;
    padding-right: 0 !important;
}

/**********************************
  PREDEFINIÇÃO: Titulo
  **********************************/
#firstHeading {
    display: none;
}

#custom-title {
    display: inline-block;
    display: block;
    text-align: left;
}

#custom-title img {
    display: inline-block;
}

/**********************************
  PÁGINA INICIAL: STREAMERS
  **********************************/
.homepage-streamer {
    flex: 1;
    border: 1px solid #d1e4f2;
    background: #ffffff;
    box-shadow: 0 0.2rem 0.4rem -0.1rem rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin: 0 auto;
    overflow: hidden;
}

.homepage-streamer h2 {
    background: linear-gradient(to bottom, #9146ff, #772ce8);

    color: #ffffff;
    text-align: center;
    padding: 6px;
    margin: 0;
    border-radius: 10px 10px 0 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.4em;
    font-weight: bold;
    border-bottom: 1px solid #772ce8;
}

/**********************************
  PÁGINA INICIAL: CONTAINER (GUIA/EVENTOS)
  **********************************/
.homepage-container {
    display: flex;
    gap: 15px;
    align-items: stretch;
    flex-wrap: wrap;
}

@media (max-width: 1220px) {
    .homepage-container {
        flex-direction: column;
    }

    .homepage-guia,
    .homepage-eventos {
        flex: none;
        /* Remove o comportamento flex no mobile */
        width: 100%;
        /* Ocupa 100% da largura */
    }
}

/**********************************
  PÁGINA INICIAL: GUIA
  **********************************/
.homepage-guia {
    flex: 2.5;
    border: 1px solid #d1e4f2;
    background: #ffffff;
    box-shadow: 0 0.2rem 0.4rem -0.1rem rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin: 0 auto;
    overflow: hidden;
}

.homepage-guia table {
    width: 100%;
}

.homepage-guia h2 {
    background: linear-gradient(to bottom, #4d9ed8, #3a88c5);
    color: #ffffff;
    text-align: center;
    padding: 6px;
    margin: 0;
    border-radius: 10px 10px 0 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.4em;
    font-weight: bold;
    border-bottom: 1px solid #3a88c5;
}

.homepage-guia table td {
    color: #2a3e50;
    padding: 7px 0px;
}

/**********************************
  PÁGINA INICIAL: EVENTOS
  **********************************/
  .homepage-eventos {
    /*display: inline-block;*/
    border: 1px solid #d1e4f2;
    background: #ffffff;
    box-shadow: 0 0.2rem 0.4rem -0.1rem rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    text-align: center;
    margin: 0 auto;
    overflow: hidden;
}

.homepage-eventos h2 {
    background: linear-gradient(to bottom, #4d9ed8, #3a88c5);
    color: #ffffff;
    text-align: center;
    padding: 6px;
    margin: 0;
    border-radius: 10px 10px 0 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.4em;
    font-weight: bold;
    border-bottom: 1px solid #3a88c5;
}

.homepage-eventos-conteudo {
    margin-bottom: auto;
    padding: 6px;
}

.homepage-eventos-conteudo img {
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
}

/**********************************
  PÁGINA INICIAL: DESTAQUES
  **********************************/
.homepage-destaques {
    max-width: 100%;
    margin: 20px auto;
    border: 1px solid #d1e4f2;
    background: #ffffff;
    box-shadow: 0 0.2rem 0.4rem -0.1rem rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.homepage-destaques>h2 {
    background: linear-gradient(to bottom, #4d9ed8, #3a88c5);
    color: #ffffff;
    text-align: center;
    padding: 6px;
    margin: 0;
    border-radius: 10px 10px 0 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.4em;
    font-weight: bold;
    border-bottom: 1px solid #3a88c5;
}

.homepage-destaques-conteudo {
    padding: 15px 15px 5px;
}

/**********************************
  Widget:RankedTimer
  **********************************/
.ranked-widget {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 320px;
    height: 90px;
    margin: 0 auto;
    text-align: center;
    overflow: hidden;
}

.ranked-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#ranked-time {
    position: absolute;
    bottom: 0%;
    left: 3px;
    padding: 2px 5px;
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    background: linear-gradient(to right, rgba(25, 25, 25, 0.85), rgba(0, 0, 0, 0));
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    max-width: fit-content;
}

/**********************************
  Widget:WorldBossTimer
  **********************************/
.worldboss-widget {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 320px;
    height: 90px;
    margin: 0 auto;
    text-align: center;
    overflow: hidden;
}

.worldboss-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#worldboss-time {
    position: absolute;
    bottom: 3%;
    left: 3px;
    padding: 2px 5px;
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    background: linear-gradient(to right, rgba(25, 25, 25, 0.85), rgba(0, 0, 0, 0));
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    max-width: fit-content;
}

/**********************************
  Widget:GlobalEventTimer
  **********************************/
.global-event-widget {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 320px;
    height: 90px;
    margin: 0 auto;
    text-align: center;
    overflow: hidden;
}

.global-event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#global-event-time {
    position: absolute;
    bottom: 3%;
    left: 3px;
    padding: 2px 5px;
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    background: linear-gradient(to right, rgba(25, 25, 25, 0.85), rgba(0, 0, 0, 0));
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    max-width: fit-content;
}

/**********************************
  PÁGINA INICIAL: WIKI ROW
  **********************************/
.wiki-row-container {
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    text-decoration: none;
    /*padding: 10px;*/
}

.wiki-row-item {
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.wiki-row-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-color: #007bff;
}

.wiki-row-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #f8f8f8;
    overflow: hidden;
    position: relative;
}

.wiki-row-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wiki-row-item:hover .wiki-row-image img {
    transform: scale(1.1);
}

.wiki-row-title {
    font-weight: bold;
    font-size: 1.1em;
    background: white;
    /* Fundo branco */
    color: #000;
    /* Texto preto */
    padding: 10px 0;
    margin: 0;
    position: relative;
    bottom: 0;
    text-transform: uppercase;
    border-top: 1px solid #ddd;
    /* Para separar visualmente */
    text-decoration: none !important;
    /* Remove o underline */
}

.wiki-row-title:hover {
    background: white;
    /* Hover mantém o fundo branco */
    cursor: pointer;
    text-decoration: none;
    /* Remove o underline ao passar o mouse */
}

.wiki-row-title a {
    text-decoration: none;
    /* Remove underline do link */
    color: inherit;
    /* Mantém a cor do texto do elemento pai */
}

.wiki-row-title a:hover {
    text-decoration: none;
    /* Garante que o hover do link também não tenha underline */
}

@media (max-width: 1220px) {
    .wiki-row-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .wiki-row-item {
        font-size: 0.9em;
    }

    .wiki-row-title {
        font-size: 0.9em;
        padding: 8px 0;
    }
}

@media (max-width: 768px) {
    .wiki-row-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .wiki-row-item {
        font-size: 0.8em;
    }

    .wiki-row-title {
        font-size: 0.8em;
        padding: 6px 0;
    }
}