Jump to content

MediaWiki:Common.css

From Survivalcraft Wiki
Revision as of 02:29, 28 July 2025 by JSym (talk | contribs)

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)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* CSS placed here will be applied to all skins */
@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

/* Infobox Classes */
.game-infobox {
	font-family: Rubik;
	border: 1px solid rgba(40,115,8,0.5);
	border-spacing: 0;
	border-collapse: collapse;
	float: right; 
	margin-left: 2rem; 
	margin-right: 10px
}
.game-infobox-title {
	background-color: #287308;
	color: white;
	padding: 0.75rem 3rem 0.75rem 3rem;
	font-size: 1.1rem;
}
.game-infobox-header {
	width: 240px;
	background-color: #287308;
	color: white;
	padding: 0.5rem;
	font-size: 1rem;
}
.game-infobox-attribute {
	width: 50px;
	font-size: 0.8rem;
	padding: 0.5rem;
	border: solid rgba(40,115,8,0.5);
	border-width: 1px 0px 1px 0px;
}
.game-infobox-argument {
	font-size: 0.8rem;
	padding: 0.5rem;
	border: solid rgba(40,115,8,0.5);
	border-width: 1px 0px 1px 0px;
}

/* Viewport Containers */
@media(max-height: 993px) {
	.game-infobox {
		float: none;
	}
}


body {
  margin: 30px;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
  min-width: 350px;
}
table tr th,
table tr td {
  border-right: 1px solid #bbb;
  border-bottom: 1px solid #bbb;
  padding: 5px;
}
table tr th:first-child,
table tr td:first-child {
  border-left: 1px solid #bbb;
}
table tr th {
  background: #eee;
  border-top: 1px solid #bbb;
  text-align: left;
}

/* top-left border-radius */
table tr:first-child th:first-child {
  border-top-left-radius: 6px;
}

/* top-right border-radius */
table tr:first-child th:last-child {
  border-top-right-radius: 6px;
}

/* bottom-left border-radius */
table tr:last-child td:first-child {
  border-bottom-left-radius: 6px;
}

/* bottom-right border-radius */
table tr:last-child td:last-child {
  border-bottom-right-radius: 6px;
}