Northgard Wiki
Advertisement
Northgard Wiki

CSS and Javascript changes must comply with the wiki design rules.


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: Clear the cache in Tools → Preferences
.fpbox {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid var(--theme-border-color);
    box-shadow: 0 2px 5px #b4c1d9;
    color: var(--theme-body-text-color--hover);
}

/* INFOBOXES: game or book depended color style */
.infoboxtable {
    background-color: rgba(0, 0, 0, 0);
    border: 1px solid #b4c1d9;
    float: right;
    font-size: 89%; 
    margin-bottom: 0.5em; 
    margin-left: 1em; 
    padding: 0.2em; 
    width: 300px;
}

.infoboxtable td {
    vertical-align: top;
}

.infoboxtable td > div {
    background-color: var(--theme-accent-color); 
    border: 2px solid inherit; 
    border-radius: 5px; 
    font-weight: bold;
    padding: 0.5px 7px;
    text-align: right;
}

.infoboxname {
    background-color: var(--theme-accent-color); 
    font-size: 110%; 
    font-weight: bold;
    padding: 0.5em; 
}

.infoboxdetails {
    background-color: var(--theme-accent-color); 
    font-weight: bold;
    padding: 0em;
}

/* Collapsing sections in infoboxes */
.section-collapse {
    border-color: #ffffff;
    border-style: solid;
    border-width: 2px 2px 0 0;
    content: "";
    cursor: pointer;
    display: inline-block;
    height: 7px;
    margin-right: 5px;
    position: relative;
    right: 0;
    top: 5px;
    transform: rotate(-45deg);
    vertical-align: middle;
    width: 7px;
}

.section-collapsed {
    display: none;
}

.collapsed-icon {
   margin-top: -2px;
   transform: rotate(135deg);
}

/* Navbox template style */
table.navbox {
    border: 1px solid #b4c1d9;
    clear: both;
    font-size: 88%;
    margin: auto;
    padding: 1px;
    text-align: center;
    width: 100%; 
}

/* Border between adjacent navboxes */
table.navbox + table.navbox {
    margin-top: -1px;
}

.navbox-title,
.navbox-abovebelow,
table.navbox th {
    padding-left: 1em;
    padding-right: 1em;
    text-align: center;
}

.navbox-group {
    font-weight: bold;
    padding-left: 1em;
    padding-right: 1em;
    white-space: nowrap;
}

/* Base background */
.theme-fandomdesktop-dark .navbox, .navbox-subgroup {
    background: rgba(0, 0, 0, 0.1);
}

.theme-fandomdesktop-dark  .navbox-list {
    border-color: rgba(0, 0, 0, 0.1); /* Must match background color */
}

/* Level 1 color */
.theme-fandomdesktop-dark  .navbox-title,
.theme-fandomdesktop-dark table.navbox th {
    background: rgba(0, 0, 0, 0.2);
}

/* Level 2 styling */
.theme-fandomdesktop-dark  .navbox-abovebelow,
.theme-fandomdesktop-dark .navbox-group,
.theme-fandomdesktop-dark .navbox-subgroup .navbox-title {
    background: rgba(0, 0, 0, 0.2);
}

/* Level 3 styling */
.theme-fandomdesktop-dark .navbox-subgroup .navbox-group,
.theme-fandomdesktop-dark .navbox-subgroup .navbox-abovebelow {
    background: rgba(0, 0, 0, 0.1);
}

/* Even row striping */
.theme-fandomdesktop-dark .navbox-even {
    background: rgba(255, 255, 255, 0.1);
}

/* Odd row striping */
.navbox-odd {
    background: transparent;
}
 
.collapseButton {
    font-weight: normal;
    width: auto;
}

.navbox .collapseButton {
    width: 6em;
}
 
.navbar {
    font-size: 88%;
    font-weight: normal;
}

.navbox .navbar {
    font-size: 100%;
}
 
table.collapsed tr.collapsible {
    display: none;
}
/* End of new Navbox styling */


/* --- Tables --- */
table.eq_table {
  background: var(--theme-page-accent-mix-color);
  margin: 10px;
  border: 2px solid #b4c1d9;
  border-collapse: collapse;
}

table.eq_table th, table.eq_table td {
  padding: 2px 10px;
  border-bottom: 1px solid #ccd5e5;
}

table.eq_table th {
  background-color: var(--theme-accent-color); 
}

table.eq_table tr:nth-child(even) {
  background-color: var(--theme-page-background-color--secondary);
}

table.eq_table.hover tr:hover {
  background-color: var(--theme-sticky-nav-background-color); 
}
Advertisement