Jump to content

MediaWiki:Common.css

From Survivalcraft Wiki
Revision as of 02:23, 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;
}


th:first-of-type {
  border-top-left-radius: 10px;
}
th:last-of-type {
  border-top-right-radius: 10px;
}
tr:last-of-type td:first-of-type {
  border-bottom-left-radius: 10px;
}
tr:last-of-type td:last-of-type {
  border-bottom-right-radius: 10px;
}

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