MediaWiki: Common.css

From happytrees.org
Jump to: navigation, 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)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* CSS placed here will be applied to all skins */
/* ------------------------ Notes -------------------------------------- */
/* Resources:                                                            */
/* https://www.hostknox.com/knowledgebase/681/How-to-change-background-colors-in-MediaWiki.html*/
/* https://www.mediawiki.org/w/load.php?debug=true&lang=en&modules=skins.vector.styles&only=styles&skin=vector*/
/* ---------------- Text/Fonts ------------------ */


a {
	color: #aaa;
	text-decoration: underline solid transparent;
	-webkit-transition:color 0.3s ease; 
    -moz-transition:color 0.3s ease; 
    -o-transition:color 0.3s ease; 
    transition:color 0.3s ease; 
    -webkit-transition:text-decoration 0.3s ease; 
    -moz-transition:text-decoration 0.3s ease; 
    -o-transition:text-decoration 0.3s ease; 
    transition:text-decoration 0.3s ease; 
}

a:hover {
	color: #fff;
	text-decoration: underline;

}

a:link {
	color: #aaa;
}

a:visited {
	color: #aaa;
}

a:active {
	color: #ccc;
}


/* redlink(newpage) */
a.new {
    color: #a55858;
}

span.darker-blue-link a { 
   color: #0000CC; 
}

/* normal links (blue link) */
#content a:not(.new), #siteNotice a:not(.new),  .toctogglelabel{
	color: #7094db;
}
#content a:not(.new):visited, #siteNotice a:not(.new):visited {
	color: #5c85d6;
}

/* warning text */
.mw-destfile-warning {
    color: #ffb909
}


h1, h2, h3, h4, h5, h6  {
   color: #dddddd;
}

p, text, 
.tocnumber, 
.messagebox, 
.errorbox, 
.warningbox, 
.successbox, 
.mw-mmv-post-image {
   color: #cccccc;
}

/* override any black text */
#editpage-copywarn p {
   color: #cccccc !important;
}

/* footer */
.mw-footer a:hover {
    color: #cccccc;
}


/* dropdown menus */
a.dropdown-item:visited {
    color: #ccc;
}
a.dropdown-item:link {
   color: #c2c2c2;
}
a.dropdown-item:hover {
   color: #222;
}

.mw-category-generated h2  {
   padding-top: 2em;
   font-size: 1.25em;
}

/* code text color */
code {
    color: #a4a;
}

/* fix a light color text */
#editpage-copywarn p{
   color: #222;
}

/* lists */
.active .toctext {
	color: #ddd;
}

textarea {
	color: #111;
}

/* ------------------------- Nav Bar ------------------------ */


 
.navbar-static-top,
.navbar-fixed-top,
.navbar-fixed-bottom {
  border-radius:0
}


/* navbar background color */
.navbar-default {
 	background: #222;
}

/* navbar dropdown (all) */
.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus {
	background: #ddd;
	color: #333;
	text-decoration: none;
}


/* navbar > dropdown menu */
.dropdown-menu{
	background: #444;
	border: 2px solid #555;
}

/* navbar: dropdown menu > divider lines */
.dropdown-divider{
	border-top: 1px solid #555;
}

/* navbar > dropdown background color link */
.dropdown-menu > li > a{
	text-decoration: none;	
	background: #eee;
	-webkit-transition:background 0.3s ease; 
    -moz-transition:background 0.3s ease; 
    -o-transition:background 0.3s ease; 
    transition:background 0.3s ease; 
}

/* nav-bar > dropdown menus text (link hover) */
.dropdown-menu > li > a:hover, 
.dropdown-menu > li > a:focus {
	text-decoration: none;
	background: #ccc;
}

/*.navbar-nav {*/
/*	color: rgba(0,200,200,.9);*/
/*}*/

/* navbar link */
.navbar-default .navbar-nav > li > a,
.navbar-default .navbar-nav > li > a,
#n-navigation,
.navbar-light .navbar-nav .nav-link
{
	text-decoration: none;
	color: rgba(180,180,180,1);
    text-shadow:0 1px 0 rgba(100,100,100,0.25);
}

/* navbar link (hover) */
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus,
#n-navigation:hover,
#n-navigation:focus,
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus
{
	text-decoration: none;
	color: rgba(200,200,200,1);
    text-shadow:0 1px 0 rgba(100,100,100,0.25);
}

/* navbar-brand */
.navbar-default .navbar-brand, 
.navbar-default .navbar-brand {
		text-decoration: none;
	color: rgba(200,200,200,1);
    text-shadow:0 1px 0 rgba(100,100,100,0.25);
}

/* navbar-brand (hover) */
.navbar-default .navbar-brand:hover, 
.navbar-default .navbar-brand:focus {
	text-decoration: none;
	color: rgba(220,220,220,1);
    text-shadow:0 1px 0 rgba(200,200,200,0.5);
}


/*.navbar-light,*/
/*.navbar-toggler {*/
/*	color: #dad;*/
/*}*/

/*.navbar-light .navbar-nav .nav-link:focus, .navbar-light .navbar-nav .nav-link:hover {*/
/*    color: #daa;*/
/*}*/
/*.navbar-light .navbar-nav .nav-link{*/
/*    color: #c0c;	*/
/*}*/
/* ============================ SIDEBAR ================================ */

/* boxes on the sidebar */
.mw-normal-catlinks, 
#tweekiTOC,
#tags-sidebar
{
	/*width: 90%;*/
	padding: 0.71em 0.71em 0 0.71em;
	border: 2px solid #999;
    background-color: #444;
    color: #ddd;
    margin-bottom: 0.71em;
}

#tags-sidebar ul
{
	padding: 0 0 0.71em 1.4em;
	font-size: .875rem;
}

#tags-sidebar a:hover{
	color: #000;	
}


/* remove top margin from TOC heading */
#tweekiTOC {
	margin-top: 0 !important;
}

/*#tweekiTOC:empty {*/
	
/*}*/

div#toc {
    margin:  0 10%;
    border-collapse: collapse;
    box-sizing: border-box;
}

div#catlinks.catlinks {
    /* add some margin the top of category */
    margin: 1.5em 5% 0 5%;
    border-collapse: collapse;
    box-sizing: border-box;
}



/* =============================== BOXES ================================= */


#filetoc, .wikitable, .filehistory, li.gallerybox div.thumb, 
.mw_metadata td, .mw_metadata th {
    margin: 0.5em 10%;
    border-collapse: collapse;
    box-sizing: border-box;
}





/* ============================= Images ==================================== */
.gallerytext {
	text-align: center;
}


/* =============================== TABLES ================================ */

table {
  border: 2px solid #a2a9b1;
}

th {
	background-color: #555;
    text-align: center;
    border: 1px solid #a2a9b1;
    padding: 0.2em 0.4em;
}

td {
  border: 1px solid #a2a9b1;
  padding: 0.2em 0.4em;
  text-align: center;
}


/* darker (headers) */
.mw-datatable th{
    background-color: #333;
}

/* standard table-box color */
.mw-datatable td, .warningbox, .mw-search-profile-tabs, div.thumbinner, .mw-mmv-post-image, .mw-warning, .plainlinks{
    border: 2px solid #999;
    background-color: #3a3a3a;
}

/* (lighter) */
.mw-datatable tr:hover td, .warningbox{
    background-color: #444;
}

/* very light color */
code, pre, .mw-code, .plainlinks.imbox.mw-content-ltr.messagebox.plainlinks.layouttemplate{
    background-color: #ddd;
    border: #555;
}

/* different color background box */
div.licensetpl_wrapper, .mw-destfile-warning, .fileinfo-paramfield {
    background-color: #5a5a5a;
}

.wikitable > tr > th, .filehistory > tr > th, .wikitable > * > tr > th, .filehistory th{
  background: #444444;
}

#filetoc, .wikitable, .filehistory, li.gallerybox div.thumb, 
.mw_metadata td, .mw_metadata th, table.imbox, .toccolours {
    border: 1px solid #999;
    background-color: #3a3a3a;
    color: #ddd;
}



/*  Couldn't get this to work: change log boxes: div.mw-mmv-image-metadata.mw-rcfilters-ui-changesListWrapperWidget.mw-changeslist-legend div.mw-changeslist-legend.mw-collapsible.mw-made-collapsible  "mw-collapsible-toggle mw-collapsible-toggle-default  div.mw-changeslist-legend.mw-collapsible.mw-made-collapsible, .mw-rcfilters-ui-changesListWrapperWidget, .mw-changeslist-legend*/



/*   TOC   */
.toc ul {
   padding: 0.5em;
}


/* mbox used in licenses */
th.mbox-text, td.mbox-text {
    border: none;
    padding: 0.25em 0.9em;
}

td.mbox-image {
    border: none;
    padding: 2px 0 2px 0.9em;
    text-align: center;
}

table.imbox  {
    margin: 4px;
    border-collapse: collapse;
    box-sizing: border-box;
}

.toccolours  {
    margin: 4px;
   border-collapse: separate;
   border-spacing: 0.4em;
}

.mbox-parameter {
   width: 16%;
   background: #444466;
   text-align: right; 
   vertical-align: top; 
   padding-right: 0.4em;
   border-spacing: 0.4em;
}

.license-box td {
   padding: 5px;
   margin: 5px;
}


body {
	background-color: #444444;
	color: #cccccc;
	background-image: url(/files/theme/background-lm301.jpg);
}

/* the footer, obviously */
#footer {
    background: none;
    border: none;
}
.bg-light {
    background-color: #222 !important;
}
/* everything below the navbar */
#mw-main-container {
    background: none;
    margin-top: 0.8em;
}

/* the top navbar */
#mw-navbar {
	background: #666666;
}

/* this is the block for content without any bars */
#content.mw-body {
	background-color: #444444;
}


/* This is the main content area */
div.col-12.col-md-9.col-xl-9.py-md-3.px-md-5 {
	background-color: #444444;
}

/* Sidebar */
#mw-navigation {
   border: none;
}



/* ///////////////////////////////////////////////////////////// */



#catlinks {
	display: flex;
/*position: fixed;*/
/*width: 100%;*/
/*height: 0;*/
/*top: 83px;*/
}

/*#tweekiTOC #toc {*/
/*	width: 90%;*/
/*}*/

/*body.tweeki-user-logged-in ul.nav.navbar-nav.navbar-right {*/

/*}*/



table td, table th {
   margin: 0.25em;	
}



/* ====================================================================== */

/* Style for horizontal lists (separator following item).
   @source mediawiki.org/wiki/Snippets/Horizontal_lists
   @revision 8 (2016-05-21)
   @author [[User:Edokter]]
 */
.hlist dl,
.hlist ol,
.hlist ul {
	margin: 0;
	padding: 0;
}

/* Display list items inline */
.hlist dd,
.hlist dt,
.hlist li {
	margin: 0; /* don't trust the note that says margin doesn't work with inline
				* removing margin: 0 makes dds have margins again */
	display: inline;
}

/* Display nested lists inline */
.hlist.inline,
.hlist.inline dl,
.hlist.inline ol,
.hlist.inline ul,
.hlist dl dl,
.hlist dl ol,
.hlist dl ul,
.hlist ol dl,
.hlist ol ol,
.hlist ol ul,
.hlist ul dl,
.hlist ul ol,
.hlist ul ul {
	display: inline;
}

/* Hide empty list items */
.hlist .mw-empty-li {
	display: none;
}

/* Generate interpuncts */
.hlist dt:after {
	content: ": ";
}

/**
 * Note hlist style usage differs in Minerva and is defined in core as well!
 * Please check Minerva desktop (and Minerva.css) when changing
 * See https://phabricator.wikimedia.org/T213239
 */
.hlist dd:after,
.hlist li:after {
	content: " · ";
	font-weight: bold;
}

.hlist dd:last-child:after,
.hlist dt:last-child:after,
.hlist li:last-child:after {
	content: none;
}

/* Add parentheses around nested lists */
.hlist dd dd:first-child:before,
.hlist dd dt:first-child:before,
.hlist dd li:first-child:before,
.hlist dt dd:first-child:before,
.hlist dt dt:first-child:before,
.hlist dt li:first-child:before,
.hlist li dd:first-child:before,
.hlist li dt:first-child:before,
.hlist li li:first-child:before {
	content: " (";
	font-weight: normal;
}

.hlist dd dd:last-child:after,
.hlist dd dt:last-child:after,
.hlist dd li:last-child:after,
.hlist dt dd:last-child:after,
.hlist dt dt:last-child:after,
.hlist dt li:last-child:after,
.hlist li dd:last-child:after,
.hlist li dt:last-child:after,
.hlist li li:last-child:after {
	content: ")";
	font-weight: normal;
}

/* Put ordinals in front of ordered list items */
.hlist ol {
	counter-reset: listitem;
}

.hlist ol > li {
	counter-increment: listitem;
}

.hlist ol > li:before {
	content: " " counter(listitem) "\a0";
}

.hlist dd ol > li:first-child:before,
.hlist dt ol > li:first-child:before,
.hlist li ol > li:first-child:before {
	content: " (" counter(listitem) "\a0";
}


/* Infobox template style */
.infobox {
	border: 1px solid #a2a9b1;
	border-spacing: 3px;
	background-color: #3a3a3a;
	color: black;
	/* @noflip */
	margin: 0.5em 0 0.5em 1em;
	padding: 0.2em;
	/* @noflip */
	float: right;
	/* @noflip */
	clear: right;
	font-size: 88%;
	line-height: 1.5em;
	width: 22em;
}

.infobox-header,
.infobox-label,
.infobox-above,
.infobox-full-data,
.infobox-data,
.infobox-below,
.infobox-subheader,
.infobox-image,
.infobox-navbar,
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox th,
.infobox td {
	vertical-align: top;

}

.infobox-label,
.infobox-data,
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox th,
.infobox td {
	/* @noflip */
	text-align: left;
}

/* Remove .infobox when element selectors above are removed */
.infobox .infobox-above,
.infobox .infobox-title,
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox caption {
	font-size: 125%;
	font-weight: bold;
	text-align: center;
	color: #dddddd;
}


th.infobox-above{
	padding-top: 0.5em;
}


.infobox-title,
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox caption {
	padding: 0.2em;
}

/* Remove .infobox when element selectors above are removed */
.infobox .infobox-header,
.infobox .infobox-subheader,
.infobox .infobox-image,
.infobox .infobox-full-data,
.infobox .infobox-below {
	text-align: center;
	color: #ddd;

}

.infobox .infobox-image{
	padding: 0.7em;
}


.infobox .infobox-header{
	background: #444;
}



/* Remove .infobox when element selectors above are removed */
.infobox .infobox-navbar {
	/* @noflip */
	text-align: right;
}

/* Default style for navigation boxes */
.navbox {                     /* Navbox container style */
	box-sizing: border-box;
	border: 1px solid #a2a9b1;
	width: 100%;
	clear: both;
	font-size: 88%;
	text-align: center;
	padding: 1px;
	margin: 1em auto 0;       /* Prevent preceding content from clinging to navboxes */
}

.navbox .navbox {
	margin-top: 0;            /* No top margin for nested navboxes */
}

.navbox + .navbox {
	margin-top: -1px;         /* Single pixel border between adjacent navboxes */
}

.navbox-inner,
.navbox-subgroup {
	width: 100%;
}

.navbox-group,
.navbox-title,
.navbox-abovebelow {
	padding: 0.25em 1em;      /* Title, group and above/below styles */
	line-height: 1.5em;
	text-align: center;
}

th.navbox-group {             /* Group style */
	white-space: nowrap;
	/* @noflip */
	text-align: right;
}

.navbox,
.navbox-subgroup {
	background-color: #fdfdfd; /* Background color */
}

.navbox-list {
	line-height: 1.5em;
	border-color: #fdfdfd;    /* 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 #fdfdfd; /* Must match background color */
}

.navbox th,
.navbox-title {
	background-color: #ccccff;      /* Level 1 color */
}

.navbox-abovebelow,
th.navbox-group,
.navbox-subgroup .navbox-title {
	background-color: #ddddff;      /* Level 2 color */
}

.navbox-subgroup .navbox-group,
.navbox-subgroup .navbox-abovebelow {
	background-color: #e6e6ff;      /* Level 3 color */
}

.navbox-even {
	background-color: #f7f7f7;      /* 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.125em 0;       /* Adjust hlist padding in navboxes */
}

/* Styling for JQuery makeCollapsible, matching that of collapseButton */
.mw-parser-output .mw-collapsible-toggle {
	font-weight: normal;
	/* @noflip */
	text-align: right;
	padding-right: 0.2em;
	padding-left: 0.2em;
}






/* ============================== HIDEN ========================== */

/* empty footer cat box */
div#catlinks.catlinks {
    display: none;
}


.tweeki-user-anon ul.nav.navbar-nav.navbar-right,
.tweeki-user-anon #ca-edit {
	display: none;
}

#tweekiTOC:empty {
	display: none;
}

.toctogglecheckbox {
	height: 0;
	display: none;
}

/* remove external links icon */
#content a.external {
    background: none !important;
    padding: 0 !important;
}


/* mediaviewer footer */
.mw-mmv-image-metadata {
   display: none;
}

/* category heading */
/* .mw-normal-catlinks :not(li) */
/*.mw-normal-catlinks > :not(ul)*/
/*.mw-normal-catlinks :not(a)*/
.mw-normal-catlinks > * {
	/*display: none;*/
	visibility: hidden;
}

.mw-normal-catlinks > ul {
	/*display: block !important;*/
	visibility: visible;
}