Common.css

Revision as of 22:03, 24 January 2020 by BrianFreud (talk | contribs)

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 gets applied to specific namespaces (titles) via namespace ID.  Current Namespace ID's are :

ns-3000  Ultima Online
ns-3002  Shards Online
ns-3004  Shroud of the Avatar 
*/

/* Define variables */
:root {
    --fontSans: Georgia, Times, serif;
    --stdLineHeight: 1.2rem;
    --stdListLineHeight: 1.3rem;
}

/* General reset and overrides */
#page-content {
    background-color: #222!important;
	background-image: none!important;
    font-family: Arial, sans-serif;
}
.mw-headline {
	color: goldenrod;
}
.title-name {
	white-space: nowrap;
}
html {
	font-size: 14px;
}
a {
	color: dodgerblue;
}
a.new {
	color: #dd4444;
}
blockquote {
	margin: 2rem;
}
caption {
	 color: #fff!important;
	 text-align: left;
}
dd, dt {
    font-weight: 500!important;
}
dd {
	color: lightgray;
	margin: 0.2rem;
}
dl, ol {
	line-height: var(--stdListLineHeight);
}
fieldset {
	border: 0;
	font-size: .9rem;
    line-height: .9rem;	
}
h1 {
    font-family: var(--fontSans)!important;
    font-size: 1.7rem;
    font-weight: 900!important;
    max-width: 65%;
}
h2 {
    border-bottom-color: rgb(170, 170, 170);
    border-bottom-style: solid;
    border-bottom-width: 1px;
    font-family: var(--fontSans)!important;
    font-size: 1.6rem;
    font-weight: 900!important;
    margin-top: 1rem!important;
}
h3 {
	font-family: var(--fontSans)!important;
    font-size: 1.3rem;
    font-weight: 600!important;
    margin-top: 1rem!important;
}
h4 {
	font-family: var(--fontSans)!important;
    font-size: 1.2rem;
}
h5 {
	font-family: var(--fontSans)!important;
    font-size: 1.1rem;
}
h6 {
	font-family: var(--fontSans)!important;
    font-size: 1rem;
}
img {
     image-rendering: crisp-edges;
}
input, select {
    background-color: #101010!important;
    border-color: #444!important;
    border-radius: 2px!important;
    box-sizing: border-box!important;
    color: #cfcfcf!important;
	display: inline-block!important;
	height: 1.8rem!important;
    margin-bottom: 2px!important;
    outline: 0;
    padding: 5px 10px!important;
}
input[type='checkbox'] {
	height: 12px!important;
	vertical-align: inherit;
}
input:focus {
	border: 1px solid goldenrod;
    box-shadow: 0 0 10px #719ECE;
	outline: none !important;
}
label {
    color: #eee;
    font-size: 1rem;
    line-height: unset;
    vertical-align: middle;
}
select::after {
    color: #cfcfcf;
	content: "▼";
}
table {
	width: unset;
}
#bodyContent ul {
	line-height: var(--stdListLineHeight);
    list-style: none;
    padding: 0;
    /*margin: 0;*/
}
#bodyContent li {
    margin: 0.2rem;
}
#toc span {
	font-size: .9rem;
}
#bodyContent table.wikitable {
     background-color: transparent!important;
     border: 0;
     max-width: 90%;
     color: white;
}
table tr th, table tr td {
    color: white;
}
table.infobox tr th {
    color: black;
}
table.wikitable>tr>th,
table.wikitable>tr>td,
table.wikitable>*>tr>th,
table.wikitable>*>tr>td {
	border: 1px solid #fff;
	padding: .4rem;
}
.tippy-header {
	 display: none;
}

/* Specific display tweaks ----------------------- */
/* Help link */
a.mw-helplink {
	color: rgb(225, 111, 0);	
	filter: invert(.9);
}
.mw-indicators {
	margin-top: -2rem;
}
/* Preferences page */
.oo-ui-panelLayout-framed {
	background: transparent;
}
#preferences,
.mw-prefs-buttons,
.oo-ui-fieldsetLayout-header {
	background-color: #000!important;		
}
.oo-ui-tabSelectWidget {
	background-color: #222;
}
.oo-ui-tabOptionWidget[aria-selected=false] {
	background-color: #888;
}
/* Search page */
#searchText input[type=search] {
	margin-left: 2rem;
}
#searchText .oo-ui-icon-search {
	filter: invert(.9);
    margin-left: -.5rem;
}
.oo-ui-actionFieldLayout-button button {
	margin-left: 3rem;	
}
#mw-searchoptions {
	background-color: #111!important;
}
/* End specific display tweaks ------------------- */

/* Grid */
.grid {
    /* Grid Fallback */
    display: flex;
    flex-wrap: wrap;
  
    /* Supports Grid */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
    grid-auto-rows: minmax(8emx, auto);
    grid-gap: 1em;
}
.module {
    /* Demo-Specific Styles */
    display: grid;
    align-items: start;
    justify-content: center;
	min-height: 6rem;
	text-align: center;
    width: 8rem;

    /* Flex Fallback */
    margin-left: 5px;
    margin-right: 5px;
    flex: 1 1 8rem;
}
.module img {
	max-height: 3em;
}
/* If Grid is supported, remove the margin we set for the fallback */
@supports (display: grid) {
    .module {
        margin: 0;
    }
}

/* General global-use styles */
 .rounded {
     border-radius:25px;
}
 .indent {
     margin-left:2em!important;
}

/* Infoboxes */
.infobox {
 	 background: #fff;
     border: 1px solid #aaa;
     border-spacing: 3px;
     color: #000;
     contain: strict;
     float:right;
     font-size: .85rem;
     max-width: 28%;
     min-width: 28%;
     margin: 1rem 0;
}
 .infobox td,.infobox th {
     line-height: var(--stdLineHeight)!important;
     padding-top:5px;
     text-align:left;
     vertical-align:top;
}
.infobox tr td:first-of-type {
     font-weight:600;
     padding-left:5px;
     padding-right:8px;
     white-space: nowrap;
}
 .titlecell {
     background-color: #333;
     color: #fff!important;
     padding: 2px 8px;
}
 .titlecell a {
 	color: white;
}

/* Disambiguation boxes */
.disambigBox {
    border: 1px outset grey;
    clear: left;
    float: left;
    font-size: .9rem;
    left: 2%;
    min-width: 35%;
    max-width: 35%;
    min-height: 2.1rem;
	padding: .5rem;
    text-align: center;
}

/* Fiction pages */
 .uofiction {
     font-family: 'Goudy Bookletter 1911', serif;
     max-width: 70%;
     padding-left: 2rem;
}
 .uofiction p {
     padding-top: .75rem;
     font-size: 1.2rem;
     color: lightgray;
}
 .uofiction::first-letter {
     font-size: 250%;
     padding-left: .1em;
     padding-right: .1em;
}

/* Table tweaks */
.dpltable {
	border: 1px solid #aaa;
	margin-top: 2rem!important;
}
 .invisibletable td,
 .invisibletable th {
     border-style:none!important;
}
table.dpltable th {
     color:#000;
}

/* Page-specific tweaks */
 .dyelinks a {
     vertical-align:top;
}
.powerwords {
	max-width: unset;
}

/* Item image display */
 .imagecell {
     padding:1rem 0!important;
     text-align:center;
}
.imagebox {
	position: relative;
    right: 1em;
}

/* Hunter's Guide */
.cold {
     background-color:#2dbffd;
}
.energy {
     background-color:#d7d;
}
.fire {
     background-color:#db7;
}
.physical {
     background-color:#ddd;
}
.poison {
     background-color:#7d7;
}
.datatable {
     display: inline-block;
}
 .datatable tr td:not(:first-of-type) {
     text-align:center;
}
 .datatable tr:first-of-type td:first-of-type {
     border-left:0;
     border-top:0;
}

/* Rare Item Editor */
.buttonTrigger {
     color: #000;
     background: #fff;
     margin: 0.5rem;
     padding: 3px;
     border-radius: 7px!important;
     box-shadow: 3px 3px #333;	
}
.buttonTrigger:hover {
     background: #222;
}
#addTypeDisplay {
	margin-left: 0!important;
}
#addTypeButton {
	font-size: .6rem;
    height: 1.5rem!important;
}
#cancelButton {
	color: salmon!important;
}
#saveButton, #addTypeButton {
	color: goldenrod!important;
}
#toolmenu {
	height: 800px!important;
}

/* Nav Boxes */
.navbox {
	box-sizing: border-box;
	border: 1px solid #a2a9b1;
	width: 100%;
	clear: both;
	font-size: 88%;
	text-align: center;
/*  padding: 1px;
	margin: 1em auto 0;*/
}
.plainlinks {
	display: none!important;
}
.navbox li {
    display: inline;
}
.navbox-list li {
    font-size: .8rem;
    margin: 0;
}
.navbox-list li:not(:first-of-type)::before {
    content: "•  ";
    color: goldenrod;
    margin-right: .2rem;
    margin-left: -.3rem;    
}
.navbox .navbox {
	margin-top: 0;
}
.navbox + .navbox {
	margin-top: -1px;
}
.navbox-inner,
.navbox-subgroup {
	width: 100%;
    margin:0;
}
.navbox-group,
.navbox-title,
.navbox-abovebelow {
	padding: 0;/*0.25em 1em;*/
	line-height: 1.5em;
	text-align: center;
}
th.navbox-group {
	white-space: nowrap;
	/* @noflip */
	text-align: right;
}
.navbox,
.navbox-subgroup {
	background-color: #000;
}
.navbox-list {
	line-height: 1.5em;
	border-color: #000;    /* Must match background color */
}
/* cell spacing for navbox cells */
tr + tr > .navbox-abovebelow,
tr + tr > .navbox-group,
tr + tr > .navbox-image,
tr + tr > .navbox-list {    /* Borders above 2nd, 3rd, etc. rows */
	border-top: 2px solid #000; /* Must match background color */
	padding: 0 1rem;
}
.navbox th,
.navbox-title {
	background-color: #333;      /* Level 1 color */
}
.navbox-abovebelow,
th.navbox-group,
.navbox-subgroup .navbox-title {
	background-color: #444;      /* Level 2 color */
}
.navbox-subgroup .navbox-group,
.navbox-subgroup .navbox-abovebelow {
	background-color: #555;      /* Level 3 color */
}
.navbox-even {
	background-color: #111;      /* Even row striping */
}
.navbox-odd {
	background-color: transparent;  /* Odd row striping */
}
.navbox .hlist td dl,
.navbox .hlist td ol,
.navbox .hlist td ul,
.navbox td.hlist dl,
.navbox td.hlist ol,
.navbox td.hlist ul {
	padding: 0;/*0.125em 0;*/
}

/* Default styling for Navbar template */
.navbar {
	display: inline;
	font-size: 88%;
	font-weight: normal;
}
.navbar ul {
	display: inline-block;
	white-space: nowrap;
}
.mw-body-content .navbar ul {
	line-height: inherit;
}
.navbar li {
	word-spacing: -0.125em;
}
.navbar.mini li abbr[title] {
	font-variant: small-caps;
	border-bottom: none;
	text-decoration: none;
	cursor: inherit;
}
/* Navbar styling when nested in infobox and navbox */
.infobox .navbar {
	font-size: 100%;
}
.navbox .navbar {
	display: block;
	font-size: 100%;
}
.navbox-title .navbar {
	/* @noflip */
	float: left;
	/* @noflip */
	text-align: left;
	/* @noflip */
	margin-right: 0.5em;
}
/* Mob Editors */
.ui-dialog {
     font-size: 1rem!important;
}
 ul.selectable {
     display:inline;
     margin-left:0;
     padding-left:0;
}
 ul.selectable li {
     background:#222;
     border:1px solid darkgrey;
     border-radius:7px;
     display:inline-block;
     font-weight:700;
     list-style:none;
     margin:3px 3px 0 0;
     padding:3px 15px 5px;
}
li.ui-selected {
     background: rgb(245, 132, 0)!important;
}
/* Advanced Search labels conflicted with Selection box background */
#mw-searchoptions {
    clear: both;
    padding: 0.5em 0.75em 0.75em 0.75em;
    background-color: #72777d;
    margin: -1px 0 0;
    border: 1px solid #c8ccd1;
    border-radius: 0 0 2px 2px;
}