Difference between revisions of "MediaWiki:Mobile.css"

From TaticView
Jump to: navigation, search
 
(144 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
/* CSS placed here will affect users of the mobile site */
 
/* CSS placed here will affect users of the mobile site */
  
.ns-0 #content { background-color: #FFFBF0; padding-top:0px;}
+
/* Adiciona logotipo no topo da página */
h1#firstHeading { font-family:"Tahoma"; color:#FFFFFF; font-size:1.5em; font-weight: bold; background-color:#55667F; margin-left:-23px; margin-right:-23px; padding-top:3px; padding-bottom:3px; padding-left:23px;}
+
.header-container .branding-box > h1 { display: none; }
.ns-0 #breadcrumbs { font-size:90%; padding-top:2px;}
+
.header-container .branding-box {
 +
  background-image: url(https://wiki.taticview.com/skins/common/images/logo.png);
 +
  background-repeat: no-repeat;
 +
  background-size: 200px 50px;
 +
  background-position: 0px;
 +
}
  
* Troca estilos do logo */
+
/* Faz com que as imagens se adaptem ao tamanho da tela no mobile */
div#p-logo { position:absolute; top:-90px; width: 250px; height: 72px;}
+
img { max-width: 100% !important; height: auto !important; }
div#p-logo a { width: 99%; height: 100%;}
 
  
/* Troca tamanho da fonte do conteúdo e espaçamento */
+
/* Seta a font default da Wiki Tatic */
.ns-0 #content p { font-size:120%; margin: 4px; }
+
.section-heading,
 +
.mw-headline { font-family: inherit !important; }
  
/* Troca tamanho da fonte das listas */
+
/* Adiciona espaçamento antes da barra de traduções */
.ns-0 #content li { font-size:15px; }
+
#bodyContent { padding-top: 10px; }
  
/* Remove links do Content */
+
/* Adiciona margem após a barra de traduções */
li#ca-view { display: none; } /* Desabilita aba "Ler" */
+
#mf-section-0 { margin-bottom: 10px; }
li#ca-viewsource { display: none; } /* Desabilita aba "Ver código fonte" */
 
li#ca-history { display: none; } /* Desabilita aba "Histórico" */
 
div#left-navigation { display: none; } /* Desabilita todas as abas da esquerda /*
 
//li#ca-nstab-main { display: none; }
 
//li#ca-talk { display:none!important; } /* Desabilita aba de "Discussão" */
 
  
 +
/* Remove todo o footer da página */
 +
#mw-mf-page-center > footer > .last-modified-bar,
 +
#mw-mf-page-center > footer #footer-places-privacy,
 +
#mw-mf-page-center > footer > .footer-content > h2  { display:none !important; }
  
/* Remove links do Header */
+
/* Remove seta indicadora de expansão do bloco "Bem vindo..." */
li#pt-anonuserpage { display: none; }
+
/* div.mw-parser-output h2.section-heading:first-of-type > div { display: none; } */
li#pt-anontalk { display: none; }
 
  
/* Remove links da Sidebar */
+
/* Remove informações sobre tradução da página e separador do conteúdo */
li#n-portal { display: none; }
+
div#content div.pre-content, div#bodyContent div.mw-pt-translate-header, #mw-content-text > hr { display: none; }
li#n-currentevents { display: none; }
 
li#n-recentchanges { display: none; }
 
li#n-randompage { display: none; }
 
li#n-help { display: none; }
 
#p-tb { display:none !important; } /*Remove todo o menu Ferramentas (TOOLBOX) da Sidebar*/
 
  
/* Remove links do Footer */
+
/* Remove botão para discussão*/
li#footer-info-viewcount { display: none; }
+
div#content div.post-content { display: none; }
li#footer-places-privacy { display: none; }
 
li#footer-places-about { display: none; }
 
li#footer-places-disclaimer { display: none; }
 
  
/* Esconde numeração das TOCs */
+
/* Remove parágrafos não utilizados */
.tocnumber { display: none; }
+
#content p:empty, #content p > br:only-child  { display: none; }
  
/* Formatação do nivel 3 das TOCs */
+
/* Ajusta espaço entre conteúdo e footer */
.toclevel-3 { padding:0px; margin:-5px; }
+
#mw-mf-page-center > footer > .footer-content { margin-top: 10px; }
.toclevel-3 .toctext { padding:0px; margin:0px; font-size:80%; }
 
  
/* Ajusta posição da Sidebar */
+
/* Ajusta dimensões e posicionamento das tabelas de conteúdo */  
div#mw-panel { top: 90px; }
+
.content-table tr { display: flex; }
 +
.content-table td { display: flex; flex-direction: column; font-size: .9em; width: 33%; padding-left: 5px; }
  
/* Adiciona separadores entre os itens do "navigation" da Sidebar */
+
/* Remove opções não utilizadas no menu */
//div#p-navigation ul li { background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIwAAAABCAAAAAAphRnkAAAAJ0lEQVQIW7XFsQEAIAyAMPD/b7uLWz8wS5youFW1UREfiIpH1Q2VBz7fGPS1dOGeAAAAAElFTkSuQmCC); background-repeat: no-repeat; }
+
nav#mw-mf-page-left ul:first-child li:last-child,
 +
nav#mw-mf-page-left ul:nth-child(2),
 +
nav#mw-mf-page-left ul:nth-child(3),
 +
nav#mw-mf-page-left ul:last-child li:last-child { display: none; }
  
/* Oculta o texto com percentual de tradução da página (tarefa #28781 do Redmine) */
+
/* Ajusta formatação dos links para o termo de uso e politica de privacidade */
.mw-translate-page-info { display: none; }
+
div#terms { display: flex; justify-content: center; }
 +
div#terms > p { display: flex; justify-content: space-around; width: 100%; }
  
/* Remove "HR" que aparece acima da barra de idiomas quando selecionamos o idioma Português */
+
/* Remove opção de visualizar informações das imagens, quando clicadas */
div#mw-content-text hr { display: none; }
+
.media-viewer .details { display: none !important; }
  
/*
+
@media(max-width: 376px) {
div#terms { margin-top: 50px; width: 150px; background-position: top left; background-repeat: no-repeat; background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIwAAAABCAAAAAAphRnkAAAAJ0lEQVQIW7XFsQEAIAyAMPD/b7uLWz8wS5youFW1UREfiIpH1Q2VBz7fGPS1dOGeAAAAAElFTkSuQmCC); position: absolute; top: 188px; left: -185px;}
+
  .content-table tr { flex-direction: column; }
 
+
  .content-table td { flex-direction: row; align-items: center; flex-wrap: wrap; border-bottom: 1px solid lightgray; margin-bottom: 10px; width: 100%; }
div#terms span { margin-left: 22px;}
+
  .content-table td > p:last-child { width: 100%; }
*/
+
}
 
 
/*Formata tabelas de images ilustrativas (desktop/mobile)*/
 
.images-table { font-weight: bold; width: 100%; }
 
 
 
.images-table td { vertical-align: top; }
 
 
 
.images-table tr:nth-child(3) td { padding-top: 25px; }
 
 
 
.images-table tr:nth-child(odd) td { border-bottom: 1px solid rgba(0,0,0,0.2); }
 
 
 
.images-table tr:nth-child(even) td { padding-top: 10px; }
 
 
 
/* Posiciona o índice na direita das páginas que o possuem */
 
.index-right { float: right; margin-left: 5px; }
 

Latest revision as of 12:36, 24 January 2019

/* CSS placed here will affect users of the mobile site */

/* Adiciona logotipo no topo da página */
.header-container .branding-box > h1 { display: none; }
.header-container .branding-box { 
   background-image: url(https://wiki.taticview.com/skins/common/images/logo.png);
   background-repeat: no-repeat;
   background-size: 200px 50px;
   background-position: 0px;
}

/* Faz com que as imagens se adaptem ao tamanho da tela no mobile */
img { max-width: 100% !important; height: auto !important; }

/* Seta a font default da Wiki Tatic */
.section-heading,
.mw-headline { font-family: inherit !important; }

/* Adiciona espaçamento antes da barra de traduções */
#bodyContent { padding-top: 10px; }

/* Adiciona margem após a barra de traduções */
#mf-section-0 { margin-bottom: 10px; }

/* Remove todo o footer da página */
#mw-mf-page-center > footer > .last-modified-bar, 
#mw-mf-page-center > footer #footer-places-privacy,
#mw-mf-page-center > footer > .footer-content > h2  { display:none !important; }

/* Remove seta indicadora de expansão do bloco "Bem vindo..." */
/* div.mw-parser-output h2.section-heading:first-of-type > div { display: none; } */

/* Remove informações sobre tradução da página e separador do conteúdo */
div#content div.pre-content, div#bodyContent div.mw-pt-translate-header, #mw-content-text > hr { display: none; }

/* Remove botão para discussão*/
div#content div.post-content { display: none; }

/* Remove parágrafos não utilizados */
#content p:empty, #content p > br:only-child  { display: none; }

/* Ajusta espaço entre conteúdo e footer */
#mw-mf-page-center > footer > .footer-content { margin-top: 10px; }

/* Ajusta dimensões e posicionamento das tabelas de conteúdo */ 
.content-table tr { display: flex; }
.content-table td { display: flex; flex-direction: column; font-size: .9em; width: 33%; padding-left: 5px; }

/* Remove opções não utilizadas no menu */
nav#mw-mf-page-left ul:first-child li:last-child,
nav#mw-mf-page-left ul:nth-child(2), 
nav#mw-mf-page-left ul:nth-child(3),
nav#mw-mf-page-left ul:last-child li:last-child { display: none; }

/* Ajusta formatação dos links para o termo de uso e politica de privacidade */
div#terms { display: flex; justify-content: center; }
div#terms > p { display: flex; justify-content: space-around; width: 100%; }

/* Remove opção de visualizar informações das imagens, quando clicadas */
.media-viewer .details { display: none !important; }

@media(max-width: 376px) {
  .content-table tr { flex-direction: column; }
  .content-table td { flex-direction: row; align-items: center; flex-wrap: wrap; border-bottom: 1px solid lightgray; margin-bottom: 10px; width: 100%; }
  .content-table td > p:last-child { width: 100%; }
}