MediaWiki:Common.css

From 13 Sentinels Wiki
Jump to navigation Jump to 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 */


/*******************
 * Main page
 *******************/
#mp-container {
    display: flex;
    gap: 2em;
}
#mp-left {
  flex-grow: 1;
  flex-shrink: 1;
}
#mp-right {
  flex: 1 0 23em;
}
.mp-box {
  padding: 0 .8em;
  margin-bottom: .7rem;
}
.mw-parser-output .mp-heading {
  background: #826f6b;
  font-size: 130%;
  color: white;
  font-weight: bold;
  text-align: center;
  padding: 0.5em 1em;
  border-radius: 5px;
  border: none;
}

@media screen and (max-width: 1200px) {
  #mp-container {
    flex-direction: column;
  }
  
  #mp-right {
    width: auto;
  }
}

html,
.theme-dark {
    --13s-mp-heading-background-color: #003366;
    --13s-mp-heading-text-color: #ffffff;
    --13s-mp-box-background-color: #66CCFF;
}

.theme-light {
    --13s-mp-heading-background-color: #0000CC;
    --13s-mp-heading-text-color: #000000;
    --13s-mp-box-background-color: #66CCFF;
}

.mainpage .page-header__title,
.mainpage .page-header__separator {
	display: none;
}

.mainpageheading {
	font-family: 'albertus-mt-std', sans-serif;
	font-size: 28px;
	font-weight: bold;
	text-transform: uppercase;
	margin: 0;
	padding: 0.5em 1em;
    background-color: var(--13s-mp-heading-background-color);
    color: var(--13s-mp-heading-text-color);
}

.contentbox,
.mainpagebox {
	margin: 0 0 1em 0;
	padding: 0.5em 1em;
    background-color: var(--13s-mp-box-background-color);
}

#text-mass-delete {
    height: 20em;
    resize: none;
    width: 100%;
}

#text-error-output {
    background-color: #ffbfbf;
    color: black;
    font-weight: bold;
    width: 100%;
}

#t-bd {
    cursor: pointer;
}

#mp-container .gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8em;
  margin-inline: 0;
}

.theme-light #mp-container .gallery {
  --wiki-content-link-color: #dfebff;
  --wiki-content-link-color--visited: var(--wiki-content-link-color);
}

#mp-container .gallery li {
  background: #715f5be5;
  text-align: center;
  box-shadow: 0 0 2px #0002;
  border-radius: 2px;
}
#mp-container .gallery li:hover {
  background: #75635f;
}
#mp-container .gallery .gallerytext {
  padding-inline: 0.6em;
}
#mp-container .gallerybox > div {
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: 100%;
}
#mp-container .gallerybox .thumb {
  flex-grow: 1;
  display: flex;
  align-items: center;
}

/*** Miscellaneous ***/
.responsive-image {
	max-width:100%;
	height:auto;
}

@media screen and (max-width: 720px) {
    .responsive-image {
      display: block;
      margin: 0 auto;
    }
}

.theme-dark .invert-on-dark,
.theme-light .invert-on-light {
    filter:invert(100%);
}

@media screen and (min-width:720px){
	.mobileonly {
		display:none;
	}
}
@media screen and (max-width:720px) {
	.nomobile {
		display:none;
	}
}


/***********************
* [[Template:License]] *
************************/
.license {
  display:flex;
  flex-flow:row nowrap;
  background-color:var(--wiki-content-background-color--secondary);
  border:1px solid var(--wiki-content-border-color);
  padding:0.1em;
  margin:0.5em 0 0.5em 0;
  align-items:center;
  gap:5px;
}

.copyright-logo {
  filter:var(--wiki-icon-general-filter);
}
/***********************
* End Template:License *
************************/

/************
* Infoboxes *
*************/

/* portable infoboxes */
:root {
	--pi-background: var(--wiki-content-background-color);
	--pi-secondary-background: var(--wiki-accent-color);
	--pi-secondary-background--rgb: var(--wiki-accent-color--rgb);
	--pi-secondary-background-label: var(--wiki-accent-label-color);
	--pi-border-color: rgba(var(--pi-secondary-background--rgb),0.5);
}

.portable-infobox {
	border:4px solid var(--pi-border-color);
}

.portable-infobox .pi-title,
.portable-infobox .pi-header {
	text-align:center;
	font-size:1.5em;
	background:rgba(var(--pi-secondary-background--rgb), 0.75);
	color:var(--pi-secondary-background-label);
}

.portable-infobox .pi-data {
	background:rgba(var(--pi-secondary-background--rgb), 0.18);
}

.portable-infobox .pi-image {
	padding: 8px;
}

.pi-image-thumbnail {
	max-width:100%;
}

.pi-section-navigation .pi-section-tab.pi-section-active,
.pi-section-navigation .pi-section-tab.current,
.pi-media-collection .pi-tab-link.current {
	background: var(--pi-secondary-background);
	color: var(--pi-secondary-background-label);
}

.pi-theme-baby .pi-image-thumbnail {
	width:100px;
}

/* overqualify these to overwrite normal content heading styles */
.mw-body .portable-infobox h2,
.mw-body .portable-infobox h3 {
	border-bottom: 0;
	font-family: inherit;
	font-weight: 700;
	margin: 0;
}
/**/

/****************
* End infoboxes *
*****************/

/*******************
 * Navboxes
 *******************/
/*
* CSS Vars
*/
.navbox {
    --navbox-bg-color: var(--wiki-content-background-color);
    --navbox-text-color: var(--wiki-content-text-color);
    --navbox-title-color: rgba(var(--wiki-accent-color--rgb, rgb(102, 102, 102)), 0.5);
    --navbox-header-color: rgba(var(--wiki-accent-color--rgb, rgb(102, 102, 102)), 0.3);
    --navbox-alt-color: rgba(var(--wiki-accent-color--rgb, rgb(85, 85, 85)), 0.1);
    --navbox-border-color: var(--wiki-content-border-color);
}
.navbox {
    width: 100%;
    background: var(--navbox-bg-color, white);
    color: var(--navbox-text-color, black);
    margin: 1em auto;
    font-size: 84%;
    clear: both;
    padding: 2px;
    border-spacing: 0;
    border: 1px solid var(--navbox-border-color, #AAA);
}

/* Merges navboxes that are directly under eachother */
.navbox + .navbox {
    margin-top: -11px;
}

.navbox .navbox-title {
    background: var(--navbox-title-color, #CCF);
    color: var(--navbox-text-color, black);
    font-weight: bold;
}

.navbox .navbox-vde {
    float:left;
    width:65px;
}

.navbox .navbox-title-padright {
    padding-right: 65px;
}

.navbox .navbox-title-padleft {
    padding-left: 65px;
}

.navbox .navbox-subgroup {
    border-spacing: 0;
    width: 100%;
}

.navbox .navbox-gutter {
    height: 2px;
}

.navbox .navbox-subgroup .navbox-gutter {
    background: var(--navbox-bg-color, white);
}

.navbox .navbox-section-row > td {
    padding: 0;
    height: 100%;
}

.navbox .navbox-section {
    width: 100%;
    border-spacing: 0;
}

.navbox .navbox-above,
.navbox .navbox-below {
    background: var(--navbox-header-color, #DDF);
    text-align: center;
}

.navbox .navbox-image {
    background: var(--navbox-bg-color, white);
    text-align: center;
}

.navbox .navbox-group,
.navbox .navbox-header {
    background: var(--navbox-header-color, #DDF);
    color: var(--navbox-text-color, black);
    font-weight: bold;
    height: 100%;
    padding: 2px 4px;
}

.navbox .navbox-header-collapsible {
    padding-left: 65px;
}

.navbox .navbox-group {
    text-align: right;
    padding-right: 1em;
    min-width: 150px;
}

.navbox .navbox-group,
.navbox .navbox-image-left {
    border-right: 2px solid var(--navbox-bg-color, white);
}

.navbox-image-right {
    border-left: 2px solid var(--navbox-bg-color, white);
}

.navbox .navbox-list {
    background: var(--navbox-bg-color, white);
    color: var(--navbox-text-color, black);
    width: 100%;
    height: 100%;
    padding: 0;
}

.navbox .alt > .navbox-list {
    background: var(--navbox-alt-color, #F7F7F7);
}

.navbox .navbox-list div {
    padding: 0px 4px;
}

.navbox .navbox-list.no-group {
    text-align: center;
    padding-top: 2px;
    padding-bottom: 2px;
}

.navbox .mw-collapsible-toggle {
    width: 65px;
}

@media screen and (max-width: 720px) {
    .navbox {
        display: none;
    }
}

/* hlist */
.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: ": ";
}

.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";
}