MediaWiki:Common.css

From Tears of Themis Wiki

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 */
@import url('https://fonts.googleapis.com/css2?family=Lato&display=swap');

body {
	font-family: 'Lato', sans-serif;
	background: #fff;
}

.mw-body h1, .mw-body h2, .mw-body h3, .mw-body h4, .mw-body h5, .mw-body h6, .mw-body udt {
	font-family: 'Lato', sans-serif !important;
}

#p-logo-text a.long {
    font-size: 1.4em !important;
    padding: 0 0.5em !important;
}

#mw-content-container {
    background-image: url(https://tot.wiki/images/1/1f/Background.jpg) !important;
    background-position: center center !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    border-bottom: solid 4px #ffffff4a !important;
}

#mw-content {
	background: white;
	background: rgba(255,255,255,0.9) !important;
}

#mw-footer-container {
	background: #152942;
}

.color-middle,
.color-right,
.color-left {
	background: #3366cc;
}

.sidebar-chunk {
	background: white;
	background: rgba(248, 250, 255, 0.9) !important;
}

.grid-container {
	display: grid;
	grid-auto-columns: 1fr;
}

.filter-button-selected,
.filter-button-selected:hover {
	background:#ccc;
}

/** Spoiler CSS **/
.spoiler-text {
	filter: blur(5px);
	transition-property: -webkit-filter;
	transition-duration: .4s;
}
.spoiler-text:hover, .spoiler-text:focus {
	filter: blur(0px);
}

.spoiler-img {
	filter: blur(15px);
	transition-property: -webkit-filter;
	transition-duration: .4s;
}
.spoiler-img:hover, .spoiler-img:focus {
	filter: blur(0px);
}

/** Card CSS **/
.card {
	box-shadow: 0 0 8px 0 rgba(0,0,0,0.2);
	margin: 0.5em;
	padding: 1em;
	border-radius: 8px;
}

.card-header {
	font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 0.5em;
    background: linear-gradient(45deg, #b9ecff, transparent);
    padding: 0.25em .5em;
}

.card table {
	width: 100%;
	border: none;
}

.card table th {
	text-align: left;
	border: none;
	border-bottom: 1px solid #ccc;
}

.card table td {
	text-align: right;
	border: none;
	border-bottom: 1px solid #ccc;
}

table.half th,
table.half td {
	width: 50%;
}

.card table tr:last-of-type td,
.card table tr:last-of-type th {
	border: none;
}

/** Responsive Image **/
.res-img img {
	width: 100%;
	height: auto;
}

/* CSS For No History Tabber (Template:Tab) */
.no-history-tabber-panel .oo-ui-optionWidget {
  color: black;
  font-family: Verdana, sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 3px .5em;
}
.no-history-tabber-panel .oo-ui-optionWidget:hover {
  background-color: #e4e4e4 !important;
}
.no-history-tabber-panel .oo-ui-optionWidget.oo-ui-widget-enabled {
  border: 1px solid #e0e0e0;
}
.no-history-tabber-panel .oo-ui-tabOptionWidget.oo-ui-optionWidget-selected {
  border: 1px solid black;
  cursor: pointer;
}
.no-history-tabber-panel .oo-ui-tabOptionWidget .oo-ui-labelElement-label {
  border: 0 !important;
  margin: 0;
  padding: 0;
  line-height: normal;
}

.no-history-tabber-panel .oo-ui-tabSelectWidget-framed {
    background-color: inherit;
}

.no-history-tabber-panel .oo-ui-optionWidget {
  color: black;
  font-family: 'Lato',sans-serif !important;
  font-size: 14px;
  font-weight: 700;
  padding: 3px .5em;
  background: linear-gradient(to right, #d7e9fb 50%, white 50%);
  background-size: 200% 100%;
  background-position: right bottom;
  transition: all .25s ease-out;
}
.no-history-tabber-panel .oo-ui-optionWidget:hover {
  background-position: left bottom;
}
.no-history-tabber-panel .oo-ui-tabOptionWidget.oo-ui-optionWidget-selected {
  border: 1px solid #000;
}
/* End of No History Tabber CSS*/

/** Unit icon CSS **/
.icon-template {
	display: inline-block;
	text-align: center;
	padding: 3px;
}

/** Cargo Tables **/
.cargoTable thead tr {
    background: #e2f2ff !important;
    border: 1px solid #d4d4d4;
}

/** Notice Templates **/
.page-notice {
	padding: 0.25em 1em;
	background: #eee;
	margin:auto;
	max-width: 600px;
	border: 1px solid lightgray;
	border-left: 8px solid gray;
}

/** Template:Page header **/
#page-header {
	background-color: #b9ecff;
	border: 1px solid skyblue;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	padding: 1em;
}

#page-header-left {
	grid-row: 1;
	text-align: left;
	align-self: center;
}

#page-header-right {
	grid-row: 1;
	text-align: right;
	align-self: center;
}

#page-header-center {
	grid-row: 1;
	text-align: center;
	font-weight: bold;
	font-size: 1.4em;
}

#page-subheader-center {
	font-size: 0.7em;
}

/** Template:Info grid **/
.info-grid {
	display: grid;
	grid-auto-columns: 1fr;
	grid-gap: 0.5em;
}

.info-grid-image {
	grid-row: 1;
	grid-column-start: 1;
	grid-column-end: 8;
	text-align: center;
	padding: 1em;
	margin: auto;
}

.info-grid-image img {
	width: 100%;
	height: auto;
}

.info-grid-general {
	grid-row: 1;
	text-align: center;
	grid-column-start: 8;
	grid-column-end: 13;
	padding: 1em;
}

.info-grid-general .wikitable {
	width: 100%;
}

@media screen and (max-width: 768px) {
	.info-grid-image {
		grid-row: 1;
		grid-column-start: 1;
		grid-column-end: 13;
	}
	
	.info-grid-general {
		grid-row: 2;
		grid-column-start: 1;
		grid-column-end: 13;
	}
}

/* One-sided navigation menu */
/* One-sided navigation menu */
@media (min-width: 1340px) {
  #mw-content-block {
    display: grid;
    grid-template-rows: max-content;
  }
  #mw-content,
  #content-bottom-stuff {
    margin-left: 14em;
  }
  #mw-content-wrapper {
    grid-row-start: 1;
    grid-row-end: 99;
    grid-column: 1;
    order: unset;
  }
  #mw-site-navigation {
	grid-row: 1;
	grid-column: 1;
	order: unset;
  }
  #mw-related-navigation {
  	grid-row: 2;
  	grid-column: 1;
    width: 14em;
    padding: 0 1em 0 0;
    order: unset;
  }
  div.color-middle {
    margin-right: 0;
  }
}

/* Re-aligning bottom logos */
#footer { padding-right: 1em; }

/* Attempting to implement flex-based navboxes. Credit to user Lakelimbo at wikirby if it works, fault to Harmonea here if it doesn't */

/* Copied from front page card */
.navbox {
  padding:1em; 
  border-radius:8px;
  width:100%;
  box-sizing: border-box;
  box-shadow: 0 0 8px 0 rgba(0,0,0,0.2);
}
/* Copied from front page card title */
.navbox-title {
  background: linear-gradient(45deg,#b9ecff,transparent);
  font-weight: bold;
  padding: 0.25em;
}
.navbox-title, .navbox-abovebelow {
  padding-left: 1em;
  padding-right: 1em;
  text-align: center;
}

/* Copied from front page "new content" subheader */
.navbox-abovebelow {
  background: #d7c6ff;
}

.navbox-group {
  background: #f8f9fa;
  font-size: 1rem;
  padding-left: 0.5em;
}
.navbox-list {
  padding: 0em 0.25em;
  border-left: 2px solid;
  font-size: 0.95rem;
}
.navbox-even {
  background: rgba(255, 255, 255, 0.5) none repeat scroll 0% 0%;
}
.navbox-odd {
  background: rgba(223, 223, 223, 0.5) none repeat scroll 0% 0%;
}

/* negative margin to compensate for 2px margin on rowrowrow below */
.navbox-subgroup {
  margin-top: -5px;
}

.row {
 display:flex;
 flex-wrap:wrap;
 margin-top: 0.5em;
}
.row > * {
 box-sizing:border-box;
 flex-shrink:0;
 width:100%;
 max-width:100%;
}
.row .row .row {
 margin-top: 5px;
}

.col {
 flex:1 0 0%
}
.col-sm {
 flex:1 0 0%
}
.col-sm-1 {
 flex:0 0 auto;
 width:8.3333333333%
}
.col-sm-2 {
 flex:0 0 auto;
 width:16.6666666667%
}
.col-sm-3 {
 flex:0 0 auto;
 width:25%
}
.col-sm-4 {
 flex:0 0 auto;
 width:33.3333333333%
}
.col-sm-5 {
 flex:0 0 auto;
 width:41.6666666667%
}
.col-sm-6 {
 flex:0 0 auto;
 width:50%
}
.col-sm-7 {
 flex:0 0 auto;
 width:58.3333333333%
}
.col-sm-8 {
 flex:0 0 auto;
 width:66.6666666667%
}
.col-sm-9 {
 flex:0 0 auto;
 width:75%
}
.col-sm-10 {
 flex:0 0 auto;
 width:83.3333333333%
}
.col-sm-11 {
 flex:0 0 auto;
 width:91.6666666667%
}
.col-sm-12 {
 flex:0 0 auto;
 width:100%
}
.float-sm-left {
 float:left!important
}
.float-sm-right {
 float:right!important
}
.float-sm-none {
 float:none!important
}
@media (min-width:768px) {
 .col-md {
  flex:1 0 0%
 }
 .col-md-auto {
  flex:0 0 auto;
  width:auto
 }
 .col-md-1 {
  flex:0 0 auto;
  width:8.3333333333%
 }
 .col-md-2 {
  flex:0 0 auto;
  width:16.6666666667%
 }
 .col-md-3 {
  flex:0 0 auto;
  width:25%
 }
 .col-md-4 {
  flex:0 0 auto;
  width:33.3333333333%
 }
 .col-md-5 {
  flex:0 0 auto;
  width:41.6666666667%
 }
 .col-md-6 {
  flex:0 0 auto;
  width:50%
 }
 .col-md-7 {
  flex:0 0 auto;
  width:58.3333333333%
 }
 .col-md-8 {
  flex:0 0 auto;
  width:66.6666666667%
 }
 .col-md-9 {
  flex:0 0 auto;
  width:75%
 }
 .col-md-10 {
  flex:0 0 auto;
  width:83.3333333333%
 }
 .col-md-11 {
  flex:0 0 auto;
  width:91.6666666667%
 }
 .col-md-12 {
  flex:0 0 auto;
  width:100%
 }
 .float-md-left {
  float:left !important
 }
 .float-md-right {
  float:right !important
 }
 .float-md-none {
  float:none !important
 }
}
@media (min-width:992px) {
 .col-lg {
  flex:1 0 0%
 }
 .col-lg-auto {
  flex:0 0 auto;
  width:auto
 }
 .col-lg-1 {
  flex:0 0 auto;
  width:8.3333333333%
 }
 .col-lg-2 {
  flex:0 0 auto;
  width:16.6666666667%
 }
 .col-lg-3 {
  flex:0 0 auto;
  width:25%
 }
 .col-lg-4 {
  flex:0 0 auto;
  width:33.3333333333%
 }
 .col-lg-5 {
  flex:0 0 auto;
  width:41.6666666667%
 }
 .col-lg-6 {
  flex:0 0 auto;
  width:50%
 }
 .col-lg-7 {
  flex:0 0 auto;
  width:58.3333333333%
 }
 .col-lg-8 {
  flex:0 0 auto;
  width:66.6666666667%
 }
 .col-lg-9 {
  flex:0 0 auto;
  width:75%
 }
 .col-lg-10 {
  flex:0 0 auto;
  width:83.3333333333%
 }
 .col-lg-11 {
  flex:0 0 auto;
  width:91.6666666667%
 }
 .col-lg-12 {
  flex:0 0 auto;
  width:100%
 }
 .float-lg-left {
  float:left !important
 }
 .float-lg-right {
  float:right !important
 }
 .float-lg-none {
  float:none !important
 }
}

/* Attempting to implement hover tooltip styling. Credit to DragaliaLost wiki */

.tooltip {
	position: relative;
	display: inline-block;
	border-bottom: 1px dotted #aaa;
	line-height: 1.3;
}

.tooltiptext {
	visibility: hidden;
	min-width: 150px;
	padding: 12px 14px;
	text-align: center;
	position: absolute;
	left: 50%;
	bottom: calc(20px + 100%);
	z-index: 99999;
	background: #fff;
	box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.15);
	border: 1px solid #a2a9b1;
	border-radius: 2px;
	font-weight: normal;
    color: black;
    text-shadow: none;
}

.tooltiptext-long {
	min-width: 350px;
}

.tooltiptext:after,
.tooltiptext:before {
	content: '';
	position: absolute;
	left: 50%;
	border-style: solid;
}

.tooltiptext:after {
	top: 100%;
	bottom: auto;
	width: 20px;
	height: 20px;
	background: #fff;
	margin-top: -10px;
	margin-left: -10px;
	box-shadow: 1px 1px 0px #a2a9b1;
	transform: rotate(45deg);
	border-width: 0;
}

.tooltiptext:before {
	top: 100%;
	bottom: auto;
	border-width: 18px;
	margin-left: -18px;
	border-color: rgba(0, 0, 0, 0.15) transparent transparent transparent;
	pointer-events: none;
}

.tooltip .tooltip .tooltiptext {
	bottom: auto;
	top: 195%;
}

.tooltip .tooltip .tooltiptext:after {
	top: auto;
	bottom: 100%;
	border-width: 15px;
	margin-left: -15px;
	border-color: transparent transparent white transparent;
	width: 0;
	height: 0;
	box-shadow: none;
	background: none;
	transform: none;
}

.tooltip .tooltip .tooltiptext:before {
	top: auto;
	bottom: 100%;
	border-width: 16px;
	margin-left: -16px;
	border-color: transparent transparent #888 transparent;
	transform: translate(-50%,0);
}

.tooltiptext hr {
	margin: 10px 0 12px;
	position: relative;
	background: none;
}

.tooltiptext hr:after {
	content: '';
	display: block;
	width: 100%;
	height: 1px !important;
	position: absolute;
	left: -14px;
	background: #a2a9b1;
	padding: 0 14px;
}

.tooltip:hover>.tooltiptext {
	visibility: visible;
}

.tooltiptext {
	opacity: 0;
	transition: opacity 200ms ease, visibility 0s ease 200ms, transform 200ms ease;
	transform: translate(-50%,8px);
}

.tooltip .tooltip .tooltiptext {
	transform: translateY(-8px);
}

.tooltip:hover>.tooltiptext {
	opacity: 1;
	transition-delay: 0s;
	transform: translate(-50%,0);
}

/* List styling to match hoyo ordered lists */
ol { 
	list-style-type: decimal; 
}
ol li > ol { 
	list-style-type: lower-alpha; 
}
ol li > ol li > ol { 
	list-style-type: lower-roman; 
}