MediaWiki:Common.css

From Azeroth Gazetteer
Revision as of 12:45 PM, October 1, 2026 by Beornulf (talk | contribs) (Additional sites added)
Jump to navigation Jump to search

Note: After publishing, 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)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* =========================================================
   Domain-specific external link icons
   Azeroth Gazetteer
   ========================================================= */

/*
 * Shared formatting for recognized image-based external links.
 * Icons are displayed at a consistent 16 × 16 px.
 */
a.external:is(
    [href*="wowhead.com"],
    [href*="mmo-champion.com"],
    [href*="warcraft.wiki.gg"],
    [href*="wow-petopia.com"],
    [href*="archive.org"],
    [href*="archive.ph"],
    [href*="archive.today"],
    [href*="archive.is"],
    [href*="worldofwarcraft.blizzard.com"],
    [href*="turtle-wow.fandom.com"],
    [href*="github.com"]
)::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 3px;
    vertical-align: -2px;

    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}


/* =========================================================
   Wowhead
   ========================================================= */

/* Retail / general Wowhead */
a.external[href*="wowhead.com"]:not(
    [href*="wowhead.com/classic"],
    [href*="wowhead.com/tbc"],
    [href*="wowhead.com/wotlk"]
)::before {
    background-image: url("/mediawiki/images/6/61/External-wowhead.png");
}

/* Classic */
a.external[href*="wowhead.com/classic"]::before {
    background-image: url("/mediawiki/images/4/48/External-wowheadc.png");
}

/* The Burning Crusade */
a.external[href*="wowhead.com/tbc"]::before {
    background-image: url("/mediawiki/images/a/aa/External-wowhead-bc.png");
}

/* Wrath of the Lich King */
a.external[href*="wowhead.com/wotlk"]::before {
    background-image: url("/mediawiki/images/5/55/External-wowhead-wrath.png");
}


/* =========================================================
   Warcraft sites
   ========================================================= */

/* MMO-Champion */
a.external[href*="mmo-champion.com"]::before {
    background-image: url("/mediawiki/images/8/8c/External-mmochampion.png");
}

/* Warcraft Wiki */
a.external[href*="warcraft.wiki.gg"]::before {
    background-image: url("/mediawiki/images/e/ea/External-wwiki.png");
}

/* Petopia */
a.external[href*="wow-petopia.com"]::before {
    background-image: url("/mediawiki/images/7/71/External-petopia.png");
}

/* Official World of Warcraft website */
a.external[href*="worldofwarcraft.blizzard.com"]::before {
    background-image: url("/mediawiki/images/c/cb/External-wow.png");
}

/* Turtle WoW Wiki */
a.external[href*="turtle-wow.fandom.com"]::before {
    background-image: url("/mediawiki/images/6/60/External-twwiki.png");
}

/* Tortoise DB Viewer */
a.external[href*="xian55.github.io/tortoise-db-viewer/"]::before {
    content: "🐢";
    display: inline-block;
    width: 16px;
    margin-right: 3px;
    text-align: center;
    font-size: 16px;
    line-height: 16px;
    vertical-align: -2px;
}

/* OctoWoW */
a.external[href*="octowow.st"]::before {
    content: "🐙";
    display: inline-block;
    width: 16px;
    margin-right: 3px;
    text-align: center;
    font-size: 16px;
    line-height: 16px;
    vertical-align: -2px;
}


/* =========================================================
   Reference sites
   ========================================================= */

/* Wikipedia */
a.external[href*="wikipedia.org"]::before {
    content: "ⓦ";
    display: inline-block;
    width: 16px;
    margin-right: 3px;
    text-align: center;
    font-size: 16px;
    line-height: 16px;
    vertical-align: -2px;
}

/* Wiktionary */
a.external[href*="wiktionary.org"]::before {
    content: "📖";
    display: inline-block;
    width: 16px;
    margin-right: 3px;
    text-align: center;
    font-size: 16px;
    line-height: 16px;
    vertical-align: -2px;
}


/* =========================================================
   Development sites
   ========================================================= */

/* GitHub */
a.external[href*="github.com"]::before {
    background-image: url("/mediawiki/images/f/f4/External-github.svg");
}


/* =========================================================
   Web archives
   ========================================================= */

/* Internet Archive */
a.external[href*="archive.org"]::before {
    background-image: url("/mediawiki/images/0/0e/External-internetarchive.svg");
}

/* Archive.today and alternate domains */
a.external:is(
    [href*="archive.ph"],
    [href*="archive.today"],
    [href*="archive.is"]
)::before {
    background-image: url("/mediawiki/images/e/e6/External-archivetoday.png");
}