MediaWiki:Common.css: Difference between revisions

From Stiles Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(44 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* CSS Document */
/* Infobox template style */
@font-face {
.infobox {
font-family: "Pathfinder2EActions";
src: url("images/9/9f/Pathfinder2eActions.woff2") format("woff2");
}
span.action {
font-family: "Pathfinder2EActions";
font-size: calc(1em * 1.4);
line-height: normal;
}
.action.action-1:before {
content: ' 1';
}
.action.action-2:before {
content: ' 2';
}
.action.action-3:before {
content: ' 3';
}
.action.action-4:before {
content: ' 4';
}
.action.action-5:before {
content: ' 5';
}
 
.cards {
margin: 0 auto;
display: grid;
gap: 1rem;
overflow: auto;
}
@media (min-width: 888px) {
.cards {
grid-template-columns: repeat(2, 1fr);
}
}
 
.card {
padding: 1rem;
}
.card.pfFeat {
background-color: antiquewhite;
}
.pfHeader {
border-bottom: 1px solid black;
text-transform: uppercase;
}
.clearfix:after {
content: "\00A0";
display: block;
clear: both;
visibility: hidden;
line-height: 0;
height: 0;
}
.pfName {
float: left;
}
.pfLevel {
float: right;
}
.pfTags {
color: white;
display: inline-block;
background-color: maroon;
border: 1px solid yellow;
text-transform: uppercase;
padding: 0.15em 0.3em;
}
.pfPrereq {
border-bottom: 1px solid black;
}
 
.lang {
  position: relative;
  display: inline-block;
}
 
.lang .tooltiplang {
  visibility: hidden;
  width: 120px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  top: 150%;
  left: 50%;
  margin-left: -60px;
}
 
.lang .tooltiplang::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent black transparent;
}
 
.lang:hover .tooltiplang {
  visibility: visible;
}
 
 
 
.ombox {
margin: 4px 10%;
border-collapse: collapse;
border: 1px solid #a2a9b1;
border: 1px solid #a2a9b1;
border-spacing: 3px;
background-color: #f8f9fa;
background-color: #f8f9fa;
color: black;
box-sizing: border-box;
/* @noflip */
}
margin: 0.5em 0 0.5em 1em;
 
padding: 0.2em;
.mbox-image {
/* @noflip */
border: none;
padding: 2px 0 2px 0.9em;
text-align: center;
}
 
.mbox-text {
border: none;
padding: 0.25em 0.9em;
width: 100%;
}
 
.ombox-notice {
border: 1px solid #a2a9b1;
}
 
.mbox-small {
clear: right;
float: right;
float: right;
/* @noflip */
margin: 4px 0 4px 1em;
clear: right;
box-sizing: border-box;
width: 238px;
font-size: 88%;
font-size: 88%;
line-height: 1.5em;
line-height: 1.25em;
width: 22em;
}
 
.ambox {
margin: 0 10%;
    border: 1px solid #a2a9b1;
    background-color: #fbfbfb;
    box-sizing: border-box;
}
 
.ambox-style {
border-left: 10px solid #fc3;
}
 
.hlist li {
    margin: 0;
    display: inline;
}
 
.hlist li:after {
    content: " · ";
    font-weight: bold;
}
}


/* not strictly certain these styles are necessary
.navbar li {
* just replicating the module faithfully
    word-spacing: -0.125em;
*/
.infobox-subbox {
padding: 0;
border: none;
margin: -3px;
width: auto;
min-width: 100%;
font-size: 100%;
clear: none;
float: none;
background-color: transparent;
}
}


/* TODO split definitions to appropriate class names when live */
.hlist dd:last-child:after, .hlist dt:last-child:after, .hlist li:last-child:after {
.infobox td,  
    content: none;
.infobox th {
vertical-align: top;
/* @noflip */
text-align: left;
}
}


/* remove .infobox from below new class names when live */
.plainlist ol li, .plainlist ul li {
.infobox .infobox-above,
    margin-bottom: 0;
.infobox caption, /* TODO remove caption line when class is live */
.infobox-title {
font-size: 125%;
font-weight: bold;
text-align: center;
}
}


.infobox caption, /* TODO remove caption line when class is live */
.plainlist ol, .plainlist ul {
.infobox-title {
    line-height: inherit;
padding: 0.2em;
    list-style: none none;
    margin: 0;
}
.hlist ul {
margin: 0;
    padding: 0;
}
}


.infobox .infobox-header,
.adventure {
.infobox .infobox-subheader,
  background-color: #ff8c00;
.infobox .infobox-image,
  font-weight: bold;
.infobox .infobox-full-data,
.infobox .infobox-below {
text-align: center;
}
}


.infobox .infobox-navbar {
.body_of_water {
text-align: right;
  background-color: #000080;
  font-weight: bold;
  color: white;
}
}


.infobox.bordered {
.campaign {
border-collapse: collapse;
  background-color: #ffff54;
  font-weight: bold;
}
}


/* TODO split definitions to appropriate class names when live from HTML element */
.character {
.infobox.bordered td,
  background-color: #2f4f4f;
.infobox.bordered th {
  font-weight: bold;
border: 1px solid #a2a9b1;
  color: white;
}
}


/* TODO split definitions to appropriate class names when live from HTML element */
.continent {
.infobox.bordered .borderless td,
  background-color: #00ff00;
.infobox.bordered .borderless th {
  font-weight: bold;
border: 0;
}
}


.infobox.sisterproject {
.country {
width: 20em;
  background-color: #0000ff;
font-size: 90%;
  font-weight: bold;
  color: white;
}
}


/* styles for bordered infobox with merged rows */
.deity {
/* TODO split definitions to appropriate class names when live from HTML element */
  background-color: #ff00ff;
.infobox.bordered .mergedtoprow td,
  font-weight: bold;
.infobox.bordered .mergedtoprow th {
  color: white;
border: 0;
border-top: 1px solid #a2a9b1;
/* @noflip */
border-right: 1px solid #a2a9b1;
}
}


/* TODO split definitions to appropriate class names when live from HTML element */
.forest {
.infobox.bordered .mergedrow td,
  background-color: #008000;
.infobox.bordered .mergedrow th {
  font-weight: bold;
border: 0;
  color: white;
/* @noflip */
border-right: 1px solid #a2a9b1;
}
}


/* Styles for geography infoboxes, eg countries,
.item {
  country subdivisions, cities, etc.            */
  background-color: #8b0000;
.infobox.geography {
  font-weight: bold;
border-collapse: collapse;
  color: white;
line-height: 1.2em;
font-size: 90%;
}
}


/* TODO split definitions to appropriate class names when live from HTML element */
.location {
.infobox.geography  td,
  background-color: #ff1493;
.infobox.geography  th {
  font-weight: bold;
border-top: 1px solid #a2a9b1;
  color: white;
padding: 0.4em 0.6em 0.4em 0.6em;
}
}


/* TODO split definitions to appropriate class names when live from HTML element */
.organization {
.infobox.geography .mergedtoprow td,
  background-color: #7fffd4;
.infobox.geography .mergedtoprow th {
  font-weight: bold;
border-top: 1px solid #a2a9b1;
padding: 0.4em 0.6em 0.2em 0.6em;
}
}


/* TODO split definitions to appropriate class names when live from HTML element */
.race {
.infobox.geography .mergedrow td,
  background-color: #deb887;
.infobox.geography .mergedrow th {
  font-weight: bold;
border: 0;
padding: 0 0.6em 0.2em 0.6em;
}
}


/* TODO split definitions to appropriate class names when live from HTML element */
.session {
.infobox.geography .mergedbottomrow td,
  background-color: #dda0dd;
.infobox.geography .mergedbottomrow th {
  font-weight: bold;
border-top: 0;
border-bottom: 1px solid #a2a9b1;
padding: 0 0.6em 0.4em 0.6em;
}
}


/* TODO split definitions to appropriate class names when live from HTML element */
.settlement {
.infobox.geography .maptable td,
  background-color: #00bfff;
.infobox.geography .maptable th {
  font-weight: bold;
border: 0;
padding: 0;
}
}

Latest revision as of 20:14, 13 February 2023

/* CSS Document */
@font-face {
	font-family: "Pathfinder2EActions";
	src: url("images/9/9f/Pathfinder2eActions.woff2") format("woff2");
}
span.action {
	font-family: "Pathfinder2EActions";
	font-size: calc(1em * 1.4);
	line-height: normal;
}
.action.action-1:before {
	content: ' 1';
}
.action.action-2:before {
	content: ' 2';
}
.action.action-3:before {
	content: ' 3';
}
.action.action-4:before {
	content: ' 4';
}
.action.action-5:before {
	content: ' 5';
}

.cards {
	margin: 0 auto;
	display: grid;
	gap: 1rem;
	overflow: auto;
}
@media (min-width: 888px) {
	.cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

.card {
	padding: 1rem;
}
.card.pfFeat {
	background-color: antiquewhite;
}
.pfHeader {
	border-bottom: 1px solid black;
	text-transform: uppercase;
}
.clearfix:after {
	content: "\00A0";
	display: block;
	clear: both;
	visibility: hidden;
	line-height: 0;
	height: 0;
}
.pfName {
	float: left;
}
.pfLevel {
	float: right;
}
.pfTags {
	color: white;
	display: inline-block;
	background-color: maroon;
	border: 1px solid yellow;
	text-transform: uppercase;
	padding: 0.15em 0.3em;
}
.pfPrereq {
	border-bottom: 1px solid black;
}

.lang {
  position: relative;
  display: inline-block;
}

.lang .tooltiplang {
  visibility: hidden;
  width: 120px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  top: 150%;
  left: 50%;
  margin-left: -60px;
}

.lang .tooltiplang::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent black transparent;
}

.lang:hover .tooltiplang {
  visibility: visible;
}



.ombox {
	margin: 4px 10%;
	border-collapse: collapse;
	border: 1px solid #a2a9b1;
	background-color: #f8f9fa;
	box-sizing: border-box;
}

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

.mbox-text {
	border: none;
	padding: 0.25em 0.9em;
	width: 100%;
}

.ombox-notice {
	border: 1px solid #a2a9b1;
}

.mbox-small {
	clear: right;
	float: right;
	margin: 4px 0 4px 1em;
	box-sizing: border-box;
	width: 238px;
	font-size: 88%;
	line-height: 1.25em;
}

.ambox {
	margin: 0 10%;
    border: 1px solid #a2a9b1;
    background-color: #fbfbfb;
    box-sizing: border-box;
}

.ambox-style {
	border-left: 10px solid #fc3;
}

.hlist li {
    margin: 0;
    display: inline;
}

.hlist li:after {
    content: " · ";
    font-weight: bold;
}

.navbar li {
    word-spacing: -0.125em;
}

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

.plainlist ol li, .plainlist ul li {
    margin-bottom: 0;
}

.plainlist ol, .plainlist ul {
    line-height: inherit;
    list-style: none none;
    margin: 0;
}
	
.hlist ul {
	margin: 0;
    padding: 0;
}

.adventure {
  background-color: #ff8c00;
  font-weight: bold;
}

.body_of_water {
  background-color: #000080;
  font-weight: bold;
  color: white;
}

.campaign {
  background-color: #ffff54;
  font-weight: bold;
}

.character {
  background-color: #2f4f4f;
  font-weight: bold;
  color: white;
}

.continent {
  background-color: #00ff00;
  font-weight: bold;
}

.country {
  background-color: #0000ff;
  font-weight: bold;
  color: white;
}

.deity {
  background-color: #ff00ff;
  font-weight: bold;
  color: white;
}

.forest {
  background-color: #008000;
  font-weight: bold;
  color: white;
}

.item {
  background-color: #8b0000;
  font-weight: bold;
  color: white;
}

.location {
  background-color: #ff1493;
  font-weight: bold;
  color: white;
}

.organization {
  background-color: #7fffd4;
  font-weight: bold;
}

.race {
  background-color: #deb887;
  font-weight: bold;
}

.session {
  background-color: #dda0dd;
  font-weight: bold;
}

.settlement {
  background-color: #00bfff;
  font-weight: bold;
}