MediaWiki:Common.css

From Wenlin Dictionaries
Revision as of 21:40, 6 October 2023 by Tangmu (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Note: After saving, 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)
  • Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
/* CSS placed here will be applied to all skins. */

/* Specify web fonts for the Wenlin Dictionaries Wiki. */

/* Gentium is Copyright © 2017 SIL International.
   See <http://software.sil.org/gentium/> and <http://scripts.sil.org/ofl> */
@font-face {
    font-family: PinyinFont;
    src: url(wenlinFonts/GentiumPlus-R.woff);
    unicode-range: U+0000-2E7F;
}
@font-face {
    font-family: PinyinFont;
    font-style: italic;
        src: url(wenlinFonts/GentiumPlus-I.woff);
    unicode-range: U+0000-2E7F;
}
/* All the WenlinCdl fonts are Copyright © 2017 Wenlin Institute, Inc. SPC.
   Copying or using apart from the Wenlin Dictionaries Wiki is not allowed
   without explicit written permission. See <http://wenlin.com/licenses>. */
@font-face {
    font-family: WenlinCdlSongti;
    src: url(wenlinFonts/WenlinCdlSongtiMain.woff);
    unicode-range: U+4E00-9FEA;
}
@font-face {
    font-family: WenlinCdlSongti;
    src: url(wenlinFonts/WenlinCdlSongtiExtA.woff);
    unicode-range: U+3400-4DB5;
}
@font-face {
    font-family: WenlinCdlSongti;
    src: url(wenlinFonts/WenlinCdlSongtiExtB.woff);
    unicode-range: U+20000-2A6D6;
}
@font-face {
    font-family: WenlinCdlSongti;
    src: url(wenlinFonts/WenlinCdlSongtiExtC.woff);
    unicode-range: U+2A700-2B734;
}
@font-face {
    font-family: WenlinCdlSongti;
    src: url(wenlinFonts/WenlinCdlSongtiExtD.woff);
    unicode-range: U+2B740-2B81D;
}
@font-face {
    font-family: WenlinCdlSongti;
    src: url(wenlinFonts/WenlinCdlSongtiExtE.woff);
    unicode-range: U+2B820-2CEA1;
}
@font-face {
    font-family: WenlinCdlSongti;
    src: url(wenlinFonts/WenlinCdlSongtiPua.woff);
    unicode-range: U+E000-F8FF;
}
/* ShuoWenJieZiZhu.woff is Copyright © 2017 Richard S. Cook.
   Copying or using apart from the Wenlin Dictionaries Wiki is not allowed
   without explicit written permission. See <http://wenlin.com/licenses>. */
@font-face {
    font-family: ShuoWenJieZiZhu;
    src: url(wenlinFonts/ShuoWenJieZiZhu.woff);
    unicode-range: U+100000-102BED;
}

body {
    font-family: PinyinFont, WenlinCdlSongti, ShuoWenJieZiZhu;
}

/* Disable display of page title like "Ci:1234567890" in
   NS_WL_CI = 3180, NS_WL_ZI = 3182, NS_WL_EN = 3184, and NS_WL_JYUT = 3188.
*/
body.ns-3180 h1.firstHeading,
body.ns-3182 h1.firstHeading,
body.ns-3184 h1.firstHeading,
body.ns-3188 h1.firstHeading {
    display: none;
}

/* Use smaller font to display of page titles in the Project namespace, some of which
   (like Project:Ci) have dictionary titles that should be more prominent relative to
   the page titles. NS_PROJECT = 4.
*/
body.ns-4 h1.firstHeading {
    font-size: 100%;
}

/* Enable tables of contents without autonumbering, in case the section
   headers already contain numbers (as in the Terms of Service page).
   Add this to the top of pages that need it:
          <div class="noautonum">__TOC__</div>
*/
.noautonum .tocnumber {
    display: none;
}

/* Define styles for classes "wenlin-band-hw", etc., for displaying dictionary
   entries whose underlying representation is "band notation". The "band names" are "hw",
   "char", etc. The suffix "single" is added when entries are displayed in "single line"
   format, typically for lists of entries.
*/
.wenlin-band-hw { /* for both "hw" and "py". */
    font-weight: bold;
    font-size: 150%;
}
.wenlin-band-hw-single {
    font-weight: bold;
}
.wenlin-band-char {
    font-size: 170%;
}
.wenlin-band-char-single {
    font-size: 130%;
}
.wenlin-band-cons, .wenlin-band-cons-single {
    font-weight: bold;
}
.wenlin-band-ps, .wenlin-band-ps-single {
    font-weight: bold;
}
.wenlin-band-en, .wenlin-band-en-single,
.wenlin-band-ety, .wenlin-band-ety-single,
.wenlin-band-note, .wenlin-band-note-single,
.wenlin-band-psx, .wenlin-band-psx-single,
.wenlin-band-var, .wenlin-band-var-single
{
    font-style: italic;
}

/* Define styles for classes "wenlin-small-header", etc., not for band names.
*/
.wenlin-small-header {
    font-size: 75%;
    margin: 0;
    padding: 0;
}