|
|
(Há 67 revisões intermédias de 2 utilizadores que não estão a ser apresentadas) |
Linha 1: |
Linha 1: |
| /* | | /* |
− | ATTENTION ADMINISTRATORS:
| + | ATENÇÃO ADMINISTRADORES |
− | This is the CSS for all skins. Any major changes to this page or
| + | Este é o ficheiro CSS para todos os usuários e skins da WikiSporting.com |
− | [[MediaWiki:Monobook.css|Monobook.css]] should be first proposed on
| + | |
− | the [[Wikipedia:Village pump (technical)|Village pump]].
| + | SECÇÕES |
− | Testing can be done on your own user Monobook.css. In [[Mozilla]] and
| + | 1. Página Inicial |
− | [[Opera (web browser)|Opera]], you can also test style changes dynamically
| + | 2. Avisos |
− | with the [http://www.squarefree.com/bookmarklets/webdevel.html test styles]
| + | 3. Tabelas |
− | bookmarklet from squarefree.com. It pops up a window for adding style rules,
| + | 4. Predefinições |
− | and updates the page as you type.
| + | 5. Extensões |
− | Always check with the [http://tinyurl.com/28y334 W3C CSS Validation Service]
| + | 6. Outras alterações |
− | ([http://tinyurl.com/2g8bsk CVS version]) before and after any changes.
| + | |
− | See also: [[Wikipedia:Catalogue of CSS classes|catalogue of CSS classes]].
| + | |
− | Thank you.
| + | |
| */ | | */ |
| | | |
− | /* make the list of references look smaller */ | + | /** |
| + | 1. PÁGINA INICIAL |
| + | **/ |
| | | |
− | ol.references {
| + | /* Retirar o título da Página Inicial */ |
− | font-size: 90%; | + | body.page-Wiki_Sporting h1.firstHeading { |
| + | display: none !important; |
| } | | } |
| | | |
− | /* VALIDATOR NOTICE: the following is correct, but the W3C validator doesn't accept it */ | + | /** |
− | /* -moz-* is a vendor-specific extension (CSS 2.1 4.1.2.1) */
| + | 2. AVISOS |
− | /* column-count is from the CSS3 module "CSS Multi-column Layout" */
| + | **/ |
− | /* Please ignore any validator errors caused by these two lines */
| + | |
| | | |
− | .references-2column { | + | .aviso { |
− | font-size: 90%; | + | border-top-width: 1px; |
− | -moz-column-count: 2; | + | border-bottom-width: 1px; |
− | -webkit-column-count: 2; | + | border-top-style: solid; |
− | column-count: 2; | + | border-bottom-style: solid; |
| + | background-repeat: no-repeat; |
| + | background-position: left center; |
| + | text-align: left; |
| + | width: 100%; |
| + | vertical-align: middle; |
| + | padding-left: 8%; |
| + | padding-top: 1%; |
| + | padding-bottom: 1%; |
| + | margin-bottom: 1%; |
| + | background-position: 2%; |
| } | | } |
− | .same-bg { | + | .infosub { |
− | background: none; | + | font-size: smaller; |
| + | font-style: italic; |
| } | | } |
| | | |
− | /* Highlight clicked reference in blue to help navigation */ | + | /** |
| + | 3. TABELAS |
| + | **/ |
| + | .wikitable>tbody>tr:hover { |
| + | background-color: #f5f5f5 |
| + | } |
| | | |
− | ol.references > li:target {
| + | #TabelaColapsavel { |
− | background-color: #DEF;
| + | width:100%; |
| + | background-color:#e1efc2; |
| + | text-align:center; |
| + | border: 1px solid #aaa; |
| + | font-size:100%; |
| + | -moz-border-radius:10px; |
| + | -webkit-border-radius:10px; |
| + | border-radius:10px; |
| } | | } |
− | sup.reference:target {
| + | |
− | background-color: #DEF;
| + | .TabelaColapsavel-conteudo { |
| + | width:99%; |
| + | font-size:90%; |
| + | text-align:center; |
| + | background-color:#fff; |
| + | padding:0.5%; |
| + | -moz-border-radius:10px; |
| + | -webkit-border-radius:10px; |
| + | border-radius:10px; |
| } | | } |
| | | |
− | /* Styling for citations */
| + | .borderradius { |
− | | + | -moz-border-radius: 10px; |
− | cite {
| + | -webkit-border-radius: 10px; |
− | font-style: normal;
| + | border-radius: 10px; |
− | word-wrap: break-word;
| + | |
| } | | } |
| | | |
− | /* If there is an inline link to a full citation, the full citation will turn blue when the inline link is clicked */ | + | /* Pesquisa nas tabelas */ |
| | | |
− | cite:target {
| + | .search-table{ |
− | background-color: #DEF; | + | background-image: url('images/2/24/Estrutura.png'); /* Add a search icon to input */ |
| + | background-position: 10px 12px; /* Position the search icon */ |
| + | background-repeat: no-repeat; /* Do not repeat the icon image */ |
| + | background-size: 30px; |
| + | width: 200px; /* Collapsed when not focused */ |
| + | -webkit-transition: width 0.4s ease-in-out; |
| + | transition: width 0.4s ease-in-out; |
| + | font-size: 16px; /* Increase font-size */ |
| + | padding: 12px 20px 12px 50px; /* Add some padding */ |
| + | border: 1px solid #ddd; /* Add a grey border */ |
| + | margin-bottom: 10px; /* Add some space below the input */ |
| } | | } |
| | | |
− | /* Do not expand URLs within citations for printing. The URLs should be included explicitly, to avoid confusion */ | + | .search-table:focus{ |
| + | width: 100%; /* Full width when focused */ |
| + | } |
| | | |
− | @media print {
| + | .results tr[visible='false'], |
− | #content cite a.external.text:after {
| + | .no-result{ |
− | display: none;
| + | display:none; |
− | }
| + | |
| } | | } |
| | | |
− | /* For linked citation numbers and document IDs, where the number need not be shown on a screen or a handheld, but should be included in the printed version */
| + | .results tr[visible='true']{ |
− | | + | display:table-row; |
− | @media screen, handheld, projection {
| + | |
− | cite *.printonly {
| + | |
− | display: none;
| + | |
− | }
| + | |
| } | | } |
| | | |
− | /* wikitable/prettytable class for skinning normal tables */ | + | /** |
| + | 4. PREDEFINIÇÕES |
| + | **/ |
| | | |
− | table.wikitable,
| + | /* Predefinição:Documentação */ |
− | table.prettytable {
| + | #documentacao { |
− | margin: 1em 1em 1em 0; | + | width: 100%; |
− | background: #f9f9f9; | + | clear: both; |
− | border: 1px #aaa solid; | + | border: 1px solid #b1cdeb; |
− | border-collapse: collapse; | + | background-color: #ecfcf4; |
− | }
| + | margin-top: 2%; |
− | .wikitable th,
| + | margin-bottom: 2%; |
− | .wikitable td,
| + | padding-top: 2%; |
− | .prettytable th,
| + | padding-right: 2%; |
− | .prettytable td {
| + | padding-bottom: 2%; |
− | border: 1px #aaa solid; | + | padding-left: 2%; |
− | padding: 0.2em; | + | |
| } | | } |
− | .wikitable th, | + | .documentacao-cabecalho { |
− | .prettytable th {
| + | border-bottom: 1px solid #aaa; |
− | background: #f2f2f2; | + | background-image: url(images/2/20/Template_doc.png); |
− | text-align: center; | + | background-repeat: no-repeat; |
− | }
| + | background-position: 2%; |
− | .wikitable caption,
| + | font-size: 125%; |
− | .prettytable caption {
| + | text-align: left; |
− | margin-left: inherit; | + | padding-left: 12%; |
− | margin-right: inherit; | + | line-height: 50px; |
| font-weight: bold; | | font-weight: bold; |
| + | margin-bottom: 2%; |
| } | | } |
| | | |
− | /* default skin for navigation boxes */ | + | /* Predefinição:Desambiguação*/ |
| + | .desambiguacao { |
| + | border-top-color: #0054a6; |
| + | border-bottom-color: #0054a6; |
| + | background-image: url(images/2/26/Desambiguacao-icone.png); |
| + | } |
| | | |
− | table.navbox { /* navbox container style */
| + | /* Predefinição:Esboço */ |
− | border:1px solid #aaa;
| + | .esboco { |
− | width:100%;
| + | border-top-color: #f0be39; |
− | margin:auto;
| + | border-bottom-color: #f0be39; |
− | clear:both;
| + | background-image: url(images/e/e5/Esboco-icone.png); |
− | font-size:88%;
| + | background-color: #fdfae5; |
− | text-align:center;
| + | |
− | padding:1px;
| + | |
− | }
| + | |
− | table.navbox + table.navbox {
| + | |
− | margin-top:-1px; /* single pixel border between adjacent navboxes (doesn't work for IE6, but that's okay) */ | + | |
− | }
| + | |
− | .navbox-title,
| + | |
− | .navbox-abovebelow,
| + | |
− | table.navbox th {
| + | |
− | text-align:center; /* title and above/below styles */
| + | |
− | padding-left:1em;
| + | |
− | padding-right:1em;
| + | |
− | }
| + | |
− | .navbox-group { /* group style */
| + | |
− | white-space:nowrap;
| + | |
− | text-align:right;
| + | |
− | font-weight:bold;
| + | |
− | padding-left:1em;
| + | |
− | padding-right:1em;
| + | |
− | }
| + | |
− | .navbox,
| + | |
− | .navbox-subgroup {
| + | |
− | background:#fdfdfd; /* Background color */
| + | |
− | }
| + | |
− | .navbox-list {
| + | |
− | border-color:#fdfdfd; /* Must match background color */ | + | |
− | }
| + | |
− | .navbox-title,
| + | |
− | table.navbox th {
| + | |
− | background:#ccccff; /* Level 1 color */ | + | |
− | }
| + | |
− | .navbox-abovebelow,
| + | |
− | .navbox-group, | + | |
− | .navbox-subgroup .navbox-title {
| + | |
− | background:#ddddff; /* Level 2 color */ | + | |
− | }
| + | |
− | .navbox-subgroup .navbox-group,
| + | |
− | .navbox-subgroup .navbox-abovebelow {
| + | |
− | background:#e6e6ff; /* Level 3 color */
| + | |
− | }
| + | |
− | .navbox-even {
| + | |
− | background:#f7f7f7; /* Even row striping */
| + | |
− | }
| + | |
− | .navbox-odd {
| + | |
− | background:transparent; /* Odd row striping */
| + | |
− | }
| + | |
− | .collapseButton { /* 'show'/'hide' buttons created dynamically by the */
| + | |
− | float: right; /* CollapsibleTables javascript in [[MediaWiki:Common.js]] */
| + | |
− | font-weight: normal; /* are styled here so they can be customised. */
| + | |
− | text-align: right;
| + | |
− | width: auto;
| + | |
− | }
| + | |
− | .navbox .collapseButton { /* In navboxes, the show/hide button balances the vde links from */
| + | |
− | width: 6em; /* [[Template:Tnavbar]], so they need to be the same width. */
| + | |
− | }
| + | |
− | @media print {
| + | |
− | .navbox {
| + | |
− | display: none;
| + | |
− | }
| + | |
| } | | } |
| | | |
− | /* Style for "notices" */ | + | /* Predefinição:Índice */ |
− | | + | .indice { |
− | .notice { | + | border-top-color: #b1cdeb; |
− | margin: 1em; | + | border-bottom-color: #b1cdeb; |
− | padding: 0.2em; | + | background-image: url(images/0/04/Index-icone.png); |
− | }
| + | background-color: #ecfcf4; |
− | #disambig {
| + | |
− | border-top: 1px solid #ccc; | + | |
− | border-bottom: 1px solid #ccc; | + | |
| } | | } |
| | | |
− | /* Makes redirects appear in italics in categories and on [[Special:Allpages]] */ | + | /* Predefinição:Languages */ |
− | | + | .idioma { |
− | .redirect-in-category, | + | border-top-color: #66cd00; |
− | .allpagesredirect {
| + | border-bottom-color: #66cd00; |
− | font-style: italic; | + | background-image: url(images/f/f7/Idioma-icone.png); |
| } | | } |
| | | |
− | /* Put a checker background at the image description page only visible if the image has transparent background */ | + | /* Predefinição:Construção */ |
− | | + | .construcao { |
− | #file img { | + | border-top-color: #000000; |
− | background: url("images/Checker-16x16.png") repeat; | + | border-bottom-color: #000000; |
| + | background-image: url(images/7/70/Construcao-icone.png); |
| + | background-color: #e9e9e9; |
| } | | } |
| | | |
− | /* Standard Navigationsleisten, aka box hiding thingy from .de. Documentation at [[Wikipedia:NavFrame]]. */ | + | /** |
| + | 5. EXTENSÕES |
| + | **/ |
| | | |
− | div.Boxmerge,
| + | /* Extensão:Cite */ |
− | div.NavFrame {
| + | ol.references { |
− | margin: 0;
| + | font-size: 90%; /* Letra pequena na lista de referências */ |
− | padding: 4px;
| + | |
− | border: 1px solid #aaa;
| + | |
− | text-align: center;
| + | |
− | border-collapse: collapse;
| + | |
− | font-size: 95%; | + | |
| } | | } |
− | div.Boxmerge div.NavFrame {
| + | .references-2column { /* O código abaixo não passa na validação do W3C mas está correcto*/ |
− | border-style: none; | + | font-size: 90%; |
− | border-style: hidden; | + | -moz-column-count: 2; |
| + | -webkit-column-count: 2; |
| + | column-count: 2; |
| } | | } |
− | div.NavFrame + div.NavFrame {
| + | .same-bg { |
− | border-top-style: none; | + | background: none; |
− | border-top-style: hidden;
| + | |
| } | | } |
− | div.NavPic {
| + | ol.references > li:target { /* Quando se clica numa referência, esta é destacada a amarelo para facilitar visualização */ |
− | background-color: #fff; | + | background-color: #FFCC00; |
− | margin: 0;
| + | |
− | padding: 2px;
| + | |
− | float: left;
| + | |
| } | | } |
− | div.NavFrame div.NavHead {
| + | sup.reference:target { |
− | height: 1.6em;
| + | background-color: #FFCC00; |
− | font-weight: bold;
| + | |
− | background-color: #ccf; | + | |
− | position:relative;
| + | |
| } | | } |
− | div.NavFrame p {
| + | cite { /* Estilo das citações */ |
− | font-size: 100%; | + | font-style: normal; |
| + | word-wrap: break-word; |
| } | | } |
− | div.NavFrame div.NavContent {
| + | cite:target { /* Ao clicar numa ligação para uma referência, esta é destacada a amarelo */ |
− | font-size: 100%; | + | background-color: #FFCC00; |
| } | | } |
− | div.NavFrame div.NavContent p {
| + | @media print { /* Não expandir os URLs dentro das citações aquando a impressão do artigo */ |
− | font-size: 100%; | + | #content cite a.external.text:after { |
| + | display: none; |
| } | | } |
− | div.NavEnd {
| |
− | margin: 0;
| |
− | padding: 0;
| |
− | line-height: 1px;
| |
− | clear: both;
| |
| } | | } |
− | a.NavToggle { | + | @media screen, handheld, projection { /* Numeração das citações que não necessita ser apresentada em dispositivos de leitura mas que é necessária aquando a impressão */ |
− | position: absolute; | + | cite *.printonly { |
− | top: 0;
| + | display: none; |
− | right: 3px;
| + | } |
− | font-weight: normal;
| + | |
− | font-size: 90%;
| + | |
| } | | } |
| | | |
− | /* Coloured watchlist numbers */ | + | /** |
| + | 6. OUTRAS ALTERAÇÕES |
| + | **/ |
| | | |
− | .mw-plusminus-pos {
| + | /* Coloca um fundo em xadrez na página de descrição de imagens se esta tiver fundo transparente */ |
− | color: #006400; /* darkgreen */ | + | #file img { |
| + | background: url(images/Checker-16x16.png) repeat; |
| } | | } |
| | | |
− | /* .mw-plusminus-null currently at developer default */ | + | /* Reduzir a altura da linha para o <sup> e <sub> */ |
| + | sup, |
| + | sub { |
| + | line-height: 1em; |
| + | } |
| | | |
− | .mw-plusminus-neg {
| + | /* Retirar a visualizacao das paginas de Discussao e de usuário desconhecido */ |
− | color: #8B0000; /* darkred */
| + | #pt-mytalk, |
− | }
| + | #ca-talk, |
− | .dablink {
| + | #pt-anonuserpage, |
− | font-style: italic;
| + | #pt-anontalk { |
− | padding-left: 2em;
| + | display: none !important; |
− | }
| + | |
− | .dablink i {
| + | |
− | font-style: normal; | + | |
| } | | } |
| | | |
− | /* Style for horizontal UL lists */ | + | /** Language styles */ |
− | | + | span.lang-de { |
− | .horizontal ul { | + | padding-right: 25px; |
− | padding: 0;
| + | background: url(images/e/e7/Lang-De.gif) center right no-repeat; |
− | margin: 0;
| + | |
| } | | } |
− | .horizontal li { | + | span.lang-en { |
− | padding: 0 0.6em 0 0.4em;
| + | padding-right: 25px; |
− | display: inline;
| + | background: url(images/Lang-En.png) center right no-repeat; |
− | border-right: 1px solid;
| + | |
| } | | } |
− | .horizontal li:last-child { | + | span.lang-es { |
− | border-right: none;
| + | padding-right: 25px; |
− | padding-right: 0;
| + | background: url(images/6/61/Lang-Es.gif) center right no-repeat; |
| } | | } |
− | | + | span.lang-fr { |
− | /* Styling for Template:Quote */
| + | padding-right: 25px; |
− | | + | background: url(images/f/f0/Lang-Fr.gif) center right no-repeat; |
− | blockquote.templatequote {
| + | |
− | margin-top: 0;
| + | |
| } | | } |
− | blockquote.templatequote div.templatequotecite {
| + | span.lang-ja { |
− | line-height: 1em;
| + | padding-right: 25px; |
− | text-align: left;
| + | background: url(images/9/95/Lang-Ja.gif) center right no-repeat; |
− | padding-left: 2em;
| + | |
− | margin-top: 0;
| + | |
| } | | } |
− | blockquote.templatequote div.templatequotecite cite {
| + | span.lang-nl { |
− | font-size: 85%;
| + | padding-right: 25px; |
| + | background: url(images/c/cb/Lang-Nl.gif) center right no-repeat; |
| } | | } |
− | div.user-block {
| + | span.lang-ru { |
− | padding: 5px;
| + | padding-right: 25px; |
− | border: 1px solid #A9A9A9;
| + | background: url(images/3/38/Lang-Ru.gif) center right no-repeat; |
− | background-color: #FFEFD5;
| + | |
| } | | } |
− | | + | span.lang-pt { |
− | /* Prevents line breaks in links; see docs at Template:Nowraplinks */
| + | padding-right: 25px; |
− | | + | background: url(images/Lang-Pt.png) center right no-repeat; |
− | .nowraplinks a { | + | |
− | white-space: nowrap;
| + | |
| } | | } |
| | | |
− | /* CSS da Predefinição:Documentação */ | + | /* Cor dos links sem página atribuida (inicialmente vermelho) */ |
| + | .new {color: #FF6600 !important;} |
| | | |
− | .documentacao { | + | /* Change the link icon to an Adobe icon for all PDF files |
− | width: 96%;
| + | in browsers that support these CSS selectors, like Mozilla and Opera */ |
− | clear: both;
| + | div#content a[href$=".pdf"], div#content a[href$=".pdf"].external, |
− | border: 1px solid #aaa;
| + | div#content a[href*=".pdf?"], div#content a[href*=".pdf?"].external, |
− | background-color: #ecfcf4; | + | div#content a[href*=".pdf#"], div#content a[href*=".pdf#"].external, |
− | padding: 2%; | + | div#content a[href$=".PDF"], div#content a[href$=".PDF"].external, |
| + | div#content a[href*=".PDF?"], div#content a[href*=".PDF?"].external, |
| + | div#content a[href*=".PDF#"], div#content a[href*=".PDF#"].external, |
| + | div#mw_content a[href$=".pdf"], div#mw_content a[href$=".pdf"].external, |
| + | div#mw_content a[href*=".pdf?"], div#mw_content a[href*=".pdf?"].external, |
| + | div#mw_content a[href*=".pdf#"], div#mw_content a[href*=".pdf#"].external, |
| + | div#mw_content a[href$=".PDF"], div#mw_content a[href$=".PDF"].external, |
| + | div#mw_content a[href*=".PDF?"], div#mw_content a[href*=".PDF?"].external, |
| + | div#mw_content a[href*=".PDF#"], div#mw_content a[href*=".PDF#"].external { |
| + | background: url("//upload.wikimedia.org/wikipedia/commons/2/23/Icons-mini-file_acrobat.gif") no-repeat right; |
| + | /* @noflip */ |
| + | padding-right: 18px; |
| } | | } |
| | | |
− | .documentacao-cabecalho {
| + | /* Overcome mediawiki bug whereby the WikiEdit sprite is a no-show */ |
− | border-bottom: 1px solid #aaa;
| + | .wikiEditor-toolbar-spritedButton { |
− | background-color: #ecfcf4;
| + | background-image: linear-gradient(transparent, transparent), url("/extensions/WikiEditor/modules/images/toolbar/button-sprite.svg?v=001") !important; |
− | background-image: url("images/2/20/Template_doc.png");
| + | background-position: 0px 0px; /* This gets over-ridden with inline style to move sprite into view of relevant part */ |
− | background-repeat: no-repeat;
| + | background-repeat: no-repeat !important; |
− | background-position: left center;
| + | |
− | font-size: 125%;
| + | |
− | text-align: left;
| + | |
− | padding-left: 13%;
| + | |
− | line-height: 75px;
| + | |
| } | | } |
| | | |
− | /* Reduce line-height for <sup> and <sub> */ | + | /* Contact Form */ |
− | | + | .cd-form .icon input, .cd-form .icon select, .cd-form .icon textarea { |
− | sup,
| + | padding-left: 54px !important; |
− | sub {
| + | |
− | line-height: 1em;
| + | |
| } | | } |
− | | + | .cd-form .user { |
− | /* Add horizontal scroll bars to these boxes whenever text is wider than the browser */ | + | background: url("../img/cd-icon-user.svg") no-repeat 16px center; |
− | | + | |
− | pre {
| + | |
− | overflow: auto;
| + | |
| } | | } |
− | | + | .cd-form [required].user { |
− | .plainlinks a { | + | background: url("../img/cd-icon-user.svg") no-repeat 16px center, |
− | background: none repeat scroll 0 0 transparent !important;
| + | url("../img/cd-required.svg") no-repeat top right; |
− | padding: 0 !important;
| + | |
| } | | } |
− | | + | .cd-form [required] { |
− | /* Sort arrows added by SortableTables */
| + | background: url("../img/cd-required.svg") no-repeat top right; |
− | a.sortheader {
| + | |
− | margin: 0 0.3em;
| + | |
| } | | } |
− | /* don't display Main Page on the Main Page */
| + | .cd-form .error { |
− | | + | border-color: #e94b35 !important; |
− | body.page-Main_Page h1.firstHeading {
| + | |
− | display:none;
| + | |
− | }
| + | |
− | /* Retirar a visualizacao das paginas de Discussao e de usuário desconhecido */
| + | |
− | | + | |
− | #pt-mytalk, #pt-anonuserpage, #pt-anontalk { | + | |
− | display: none !important;
| + | |
| } | | } |