Skip to content

[SNK] UESP by snake

Screenshot of [SNK] UESP

Details

Authorsnake

LicenseGPL-3.0-or-later

CategoryUESP

Created

Updated

Size6.7 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

dark mode for the unofficial elder scrolls pages wiki

Notes

changelog

v2.1

  • fixed some inconsistent table formatting
  • added gruvbox and windows 95 (lol) as color scheme options

v2.0

  • there's easy options now, as well as two premade themes: nord (heh) & dracula

Source code

/* ==UserStyle==
@name           [snk] uesp
@namespace      snake <playmoar.neocities.org>
@version        2.1
@license        GPL-3.0-or-later
@preprocessor   stylus

@var select theme "theme" ["custom*","nord","dracula","gruvbox","ninety-five"]
@var color colorBG1 "bg 1" #1b1820
@var color colorBG2 "bg 2" #282A3A
@var color colorBG3 "bg 3" #303347
@var color colorBG4 "bg 4 (mostly borders)" #3b3e53
@var color colorTXT1 "text" #cdcdb8
@var color colorTXT2 "text 2" #f2f0eb
@var color colorTXT3 "text 3" #f2f0eb
@var color colorACC "accent" #C69749
@var color colorRed "red" #e16161
==/UserStyle== */
@-moz-document domain("uesp.net") {
  
  if theme == custom {
    :root {
      --bg1:colorBG1;
      --bg2:colorBG2;
      --bg3:colorBG3;
      --bg4:colorBG4;
      --txt1:colorTXT1;
      --txt2:colorTXT2;
      --txt3:colorTXT3;
      --red:colorRed;
      --accent:colorACC;
    }
  }

  if theme == nord {
    :root {
      --bg1:#2e3440;
      --bg2:#3b4252;
      --bg3:#434c5e;
      --bg4:#4c566a;
      --txt1:#d8dee9;
      --txt2:#e5e9f0;
      --txt3:#eceff4;
      --red:#bf616a;
      --orange:#d08770;
      --yellow:#ebcb8b;
      --green:#a3be8c;
      --blue:#81a1c1;
      --purple:#b48ead;
      --accent:var(--blue);
    }
  }
  
  if theme == dracula {
    :root {
      --bg1:#282a36;
      --bg2:#44475a;
      --bg3:#535568;
      --bg4:#67697d;
      --txt1:#f8f8f2;
      --txt2:#dbe1d4;
      --txt3:#999f93;
      --red:#ff5555;
      --orange:#ffb86c;
      --yellow:#f1fa8c;
      --green:#50fa7b;
      --blue:#8be9fd;
      --purple:#bd93f9;
      --accent:var(--purple);
    }
  }
  
  if theme == gruvbox {
    :root {
      --bg1:#1D2021;
      --bg2:#282828;
      --bg3:#32302F;
      --bg4:#3C3836;
      --txt1:#A89984;
      --txt2:#D5C4A1;
      --txt3:#FBF1C7;
      --red:#FB4934;
      --orange:#FE8019;
      --yellow:#FABD2F;
      --green:#8EC07C;
      --blue:#458588;
      --purple:#D3869B;
      --accent:var(--orange);
    }
  }
  
  if theme == ninety-five {
    :root {
      --bg1:#008080;
      --bg2:#c0c0c0;
      --bg3:#c0c0c0;
      --bg4:#808080;
      --txt1:#000000;
      --txt2:#111111;
      --txt3:#222222;
      --accent:#0000ff;
    }
  }
  
  /* basic */
 
  body {
    color:var(--txt1);
    background:var(--bg1);
  }
  
  h1, h2, h3, h4, h5, h6 {
    color:var(--txt2);
    font-weight:bold;
    border-color:var(--bg4);
  }
  
  code {
    color:var(--accent);
    background:var(--bg4);
    border-color:var(--bg4);
  }
  
  table {
    background:var(--bg3);
  }
  
  hr {
    margin:1rem 0;
    color:var(--bg4);
    border-color:var(--bg4);
    background:var(--bg4); }
  
  /* links */
  
  a, a:visited, #bodyContent a.external, a.external[href^="https://"], .link-https, #bodyContent a.extiw, #bodyContent a.extiw:active {
    color:var(--accent);
  }
  
  a.new, #p-personal a.new, #p-cactions .new a {
    color:var(--red);
  }
  
  #bodyContent a.external, a.external[href^="https://"], .link-https, #bodyContent a.extiw, #bodyContent a.extiw:active {
    font-weight:bold;
  }
  #bodyContent a.external:after {
    content:'➶';
  }
  
  /* containers */
  
  div.pBody, div#content, div#footer {
    color:var(--txt1);
    line-height:1.5;
    background:var(--bg2);
    border-color:var(--bg4);
  }
  
  table.notice-default, table.hiddentable {
    background:var(--bg3)!important;
    border-color:var(--bg4)!important;
  }
  
  .mw-body-content {
    font-size:1rem;
    line-height:1.7;
  }
  
  .toc, #toc, #catlinks, #filetoc {
    background:var(--bg3);
    border-color:var(--bg3);
  }
  
  .tocnumber {
    color:var(--txt1);
  }
  
  .quotebox {
    background:var(--bg3);
    border-color:var(--bg4);
  }
  
  table.wikitable,
  table.wikitable > * > tr > td {
    color:var(--txt1);
    background:var(--bg3);
    border-color:var(--bg4);
  }

  table.wikitable > tr > th,
  table.wikitable > * > tr > th,
  .navbox th, .navbox-title,
  .navbox-subgroup .navbox-group, .navbox-subgroup .navbox-abovebelow,
  .navbox-abovebelow, th.navbox-group, .navbox-subgroup .navbox-title {
    background:var(--bg4);
    border-color:var(--bg3);
  }
  
  table.attColor th,
  tr.attColor th,
  tr.attColor td,
  th.attColor,
  td.attColor,
  .navbox-even {
    background:var(--bg2);
  }
  
  div.quotebox {
    background:var(--bg3);
    border-color:var(--accent);
  }
  
  .citation:target, .citation:target td { background:var(--bg3); }
    
  .navbox { border-color:var(--bg4); }
  .navbox, .navbox-subgroup { background:var(--bg3); }
  .navbox-title, .navbox-group { background:var(--bg2)!important; }
  .navbox-list { border-color:var(--bg4); }
  
  /* images */
  
  div.thumb div { background:var(--bg3); border-color:var(--bg4); }
  .thumbimage { border:0!important; }
  .thumbcaption { color:var(--txt1); }
  
  /* search bars, input */

  input, #p-search .pBody {
    color:var(--txt1)!important;
    background:var(--bg3)!important;
  }

  .mw-ui-input, .mw-ui-button {
    color:var(--txt1)!important;
    background:var(--bg3);
    border-color:var(--bg4);
    box-shadow:none!important;
  }
  
  .mw-ui-input {
    margin:1rem 0;
  }
  
  .mw-ui-button:hover, .mw-ui-button:active, .mw-ui-button:focus {
    color:var(--txt1);
    background:var(--bg4);
    border-color:var(--bg4);
  }
  
  .suggestions, .suggestions-results, .suggestions-special {
    background:var(--bg3);
    border-color:var(--bg4);
  }
  
  .suggestions-result,
  .suggestions-special .special-label,
  .suggestions a.mw-searchSuggest-link, .suggestions a.mw-searchSuggest-link:hover, .suggestions a.mw-searchSuggest-link:active, .suggestions a.mw-searchSuggest-link:focus,
  .suggestions a.mw-searchSuggest-link .special-query {
    color:var(--txt1);
  }
  
  /* site notices */

  .mw-parser-output div {
    margin-bottom:1rem;
    background:var(--bg3)!important;
    border:0!important;
  }
  
  /* page actions */

  #p-cactions > .pBody, #p-personal > .pBody { background:transparent; border:0; }
  #p-cactions li { border:0!important; }
  #p-cactions ul li a { padding:.25rem .8rem; color:var(--txt2); background:var(--bg1); }
  #p-cactions ul li a:hover { background:var(--bg2); }
  #p-cactions li.selected { border:0; }
  #p-cactions ul li.selected a { background:var(--bg2); }
  
  /* homepage stuff */
  
  #uespMainLogo, #uespNewsDiv, #uespFADiv {
    background:var(--bg3);
    border-color:var(--bg4);
  }
    
}

Reviews

No reviews yet.