MediaWiki:Common.css — различия между версиями

Материал из doc.abonent.plus
Перейти к: навигация, поиск
Строка 9: Строка 9:
 
[[#top| Back to the Top ]]</span></div>
 
[[#top| Back to the Top ]]</span></div>
  
#WikiaArticle {
+
/*
font-family: 'Comic Sans MS', serif;
+
** Place all print-specific rules in an @media print block.
 +
*/
 +
 
 +
/* save ink and paper with very small fonts */
 +
@media print {
 +
    #footer,
 +
    #content,
 +
    body { font-size: 8pt !important; }
 +
    h1 { font-size: 17pt }
 +
    h2 { font-size: 14pt }
 +
    h3 { font-size: 11pt }
 +
    h4 { font-size: 9pt }
 +
    h5 { font-size: 8pt }
 +
    h6 {
 +
        font-size: 8pt;
 +
        font-weight: normal;
 +
    }
 
}
 
}
#WikiaMainContent h1, #WikiaMainContent h2, #WikiaMainContent h3,
+
 
#WikiaMainContent h4, #WikiaMainContent h5, #WikiaMainContent h6 {
+
/* Advanced things: using :before and :after it's possible to add formatting
  font-family: 'Comic Sans MS', serif;
+
this here adds the full href of a link after it (not needed in the current version): */
 +
@media print {
 +
  #content a:link:after,  
 +
  #content a:visited:after {
 +
    content: " ( " attr(href) " ) ";
 +
  }
 
}
 
}

Версия 13:37, 18 июля 2016

<sup>Надстрочный текст</sup>/* Размещённый здесь CSS будет применяться ко всем темам оформления */
#ca-talk  { display: none !important; }
#ca-viewsource { display:none; !important; }

<div id="BackToTop"  class="noprint" style="background-color:#DDEFDD; position:fixed;
 bottom:32px; left:2%; z-index:9999; padding:0; margin:0;"><span style="color:blue;
 font-size:8pt; font-face:verdana,sans-serif;  border:0.2em outset #ceebf7;
 padding:0.1em; font-weight:bolder; -moz-border-radius:8px; ">
[[#top| Back to the Top ]]</span></div>

/*
** Place all print-specific rules in an @media print block.
*/

/* save ink and paper with very small fonts */
@media print {
    #footer,
    #content,
    body { font-size: 8pt !important; }
    h1 { font-size: 17pt }
    h2 { font-size: 14pt }
    h3 { font-size: 11pt }
    h4 { font-size: 9pt }
    h5 { font-size: 8pt }
    h6 { 
        font-size: 8pt;
        font-weight: normal;
    }
}

/* Advanced things: using :before and :after it's possible to add formatting 
this here adds the full href of a link after it (not needed in the current version): */
@media print {
  #content a:link:after, 
  #content a:visited:after {
     content: " ( " attr(href) " ) ";
  }
}