MediaWiki:Common.less/floornumber.less

From RuneRealm Wiki
Jump to navigation Jump to search

// default .floornumber > .floornumber-us,

  1. toc li a span.toctext span span:nth-child(2),

// additional clarification .floornumber-setting-gb .floornumber > .floornumber-us, // toggled .floornumber-setting-gb #toc li a span.toctext span span:nth-child(2), .floornumber-setting-us .floornumber > .floornumber-gb, .floornumber-setting-us #toc li a span.toctext span span:nth-child(1) {

   display: none;

}

// display when setting is applied, always .floornumber-setting-gb .floornumber > .floornumber-gb, .floornumber-setting-gb #toc li a span.toctext span span:nth-child(1), .floornumber-setting-us .floornumber > .floornumber-us, .floornumber-setting-us #toc li a span.toctext span span:nth-child(2) {

   display: inline;

}

// for one-off overrides; using !important as this shouldn't be common .floornumber-override-gb .floornumber > .floornumber-us, .floornumber-override-gb #toc li a span.toctext span span:nth-child(2), .floornumber-override-us .floornumber > .floornumber-gb, .floornumber-override-us #toc li a span.toctext span span:nth-child(1) {

   display: none !important;

}

.floornumber-override-gb .floornumber > .floornumber-gb, .floornumber-override-gb #toc li a span.toctext span span:nth-child(1), .floornumber-override-us .floornumber > .floornumber-us, .floornumber-override-us #toc li a span.toctext span span:nth-child(2) {

   display: inline !important;

}