Difference between revisions of "MediaWiki:Common.css"

From Savage Game Design Wiki
Jump to navigation Jump to search
(Style creation)
 
m (add bigger tt)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
/* CSS placed here will be applied to all skins */
 
/* CSS placed here will be applied to all skins */
 +
/*
 +
General Style
 +
*/
 +
tt {
 +
background-color: #EFE;
 +
color: #555;
 +
font-size: 1.1em;
 +
font-weight: bold; /* unsure about that */
 +
}
 +
code {
 +
display: inline-block;
 +
font-size: 1.1em;
 +
}
 +
 +
.function code {
 +
line-height: 1.5em;
 +
white-space: pre;
 +
}
 +
 
/*
 
/*
 
Template:Function
 
Template:Function
 
*/
 
*/
  /*
+
/*
  .function .topinformation {
+
.function .topinformation {
  }
+
}
  */
+
*/
 
.function .topinformation > tbody > tr > td:nth-child(1) {
 
.function .topinformation > tbody > tr > td:nth-child(1) {
    vertical-align: top;
+
vertical-align: top;
    white-space: nowrap;
+
white-space: nowrap;
    width: 0;
+
width: 0;
 
}
 
}
 
.function .topinformation > tbody > tr > td:nth-child(2) {
 
.function .topinformation > tbody > tr > td:nth-child(2) {
    font-family: Bahnschrift, Times New Roman, serif;
+
font-size: 0.9em;
    text-align: center;
+
text-align: center;
 
width: 75%;
 
width: 75%;
 
}
 
}
 +
.function .topinformation > tbody > tr > td:nth-child(2):first-line {
 +
font-family: Bahnschrift, Times New Roman, serif;
 +
font-size: 1.25em;
 +
letter-spacing: 1px;
 +
}
 
.function .topinformation > tbody > tr > td:nth-child(3) {
 
.function .topinformation > tbody > tr > td:nth-child(3) {
 
width: 25%;
 
width: 25%;
Line 28: Line 52:
 
}
 
}
 
.function h2 {
 
.function h2 {
  border-left: .5em solid #380;
+
border-left: .5em solid #380;
  border-bottom: none;
+
border-bottom: none;
  font-family: Bahnschrift, Times New Roman, serif;
+
font-family: Bahnschrift, Times New Roman, serif;
  font-size: 1.2em;
+
font-size: 1.2em;
  font-weight: bold;
+
font-weight: bold;
  margin: 1.5em 0 0.75em;
+
letter-spacing: .125em;
  padding-top: 0.1em;
+
margin: 1.5em 0 0.75em;
 +
padding-top: 0.1em;
 
padding-left: .5em;
 
padding-left: .5em;
 
}
 
}
 
.function dl {
 
.function dl {
  line-height: 2em;
+
line-height: 2em;
  font-size: .95em;
+
font-size: .95em;
 
}
 
}
 
.function dt {
 
.function dt {
 
float: left;
 
float: left;
 
}
 
}
  .function dt:before {
+
.function dt:before {
    color: #380;
+
color: #380;
  content: ">";
+
content: ">";
    margin-right: 0.5em;
+
margin-right: 0.5em;
  }
+
}
 
.function dd {
 
.function dd {
 
padding-left: 10em;
 
padding-left: 10em;
 
}
 
}
 
.function > p:nth-child(3) {
 
.function > p:nth-child(3) {
  margin-left: 1.5em;
+
margin-left: 1.5em;
 +
}
 +
 
 +
/*
 +
BIKI links
 +
*/
 +
.bikilinks a.external,
 +
.bikilinks a.external.visited:link {
 +
background-image: url('https://www.bohemia.net/favicon.ico');
 +
background-size: 1em;
 +
color: blueviolet !important;
 +
padding-right: 1em;
 +
}
 +
 
 +
/*
 +
Edit Textbox
 +
*/
 +
#wpTextbox1 {
 +
tab-size: 4;
 +
-moz-tab-size: 4;
 
}
 
}

Latest revision as of 22:32, 5 January 2021

/* CSS placed here will be applied to all skins */
/*
	General Style
*/
	tt {
		background-color: #EFE;
		color: #555;
		font-size: 1.1em;
		font-weight: bold; /* unsure about that */
	}
	code {
		display: inline-block;
		font-size: 1.1em;
	}

	.function code {
		line-height: 1.5em;
		white-space: pre;
	}

/*
	Template:Function
*/
/*
	.function .topinformation {
	}
*/
	.function .topinformation > tbody > tr > td:nth-child(1) {
		vertical-align: top;
		white-space: nowrap;
		width: 0;
	}
	.function .topinformation > tbody > tr > td:nth-child(2) {
		font-size: 0.9em;
		text-align: center;
		width: 75%;
	}
		.function .topinformation > tbody > tr > td:nth-child(2):first-line {
			font-family: Bahnschrift, Times New Roman, serif;
			font-size: 1.25em;
			letter-spacing: 1px;
		}
	.function .topinformation > tbody > tr > td:nth-child(3) {
		width: 25%;
	}
	.function .argeff {
		margin: auto;
	}
	.function .argeff td:nth-child(1),
	.function .argeff td:nth-child(3) {
		text-align: right;
	}
.function h2 {
	border-left: .5em solid #380;
	border-bottom: none;
	font-family: Bahnschrift, Times New Roman, serif;
	font-size: 1.2em;
	font-weight: bold;
	letter-spacing: .125em;
	margin: 1.5em 0 0.75em;
	padding-top: 0.1em;
	padding-left: .5em;
}
.function dl {
	line-height: 2em;
	font-size: .95em;
}
.function dt {
	float: left;
}
	.function dt:before {
		color: #380;
		content: ">";
		margin-right: 0.5em;
	}
.function dd {
	padding-left: 10em;
}
.function > p:nth-child(3) {
	margin-left: 1.5em;
}

/*
	BIKI links
*/
.bikilinks a.external,
.bikilinks a.external.visited:link {
	background-image: url('https://www.bohemia.net/favicon.ico');
	background-size: 1em;
	color: blueviolet !important;
	padding-right: 1em;
}

/*
	Edit Textbox
*/
#wpTextbox1 {
	tab-size: 4;
	-moz-tab-size: 4;
}