Jump to content

MediaWiki:Common.css: Difference between revisions

From Survivalcraft Wiki
No edit summary
Tag: Reverted
No edit summary
 
(244 intermediate revisions by 2 users not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* Custom Fonts */
@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');
@font-face {
 
    font-family: "Rubik";
.test-font {
     src: url(https://survivalcraft.wiki/content/Fonts/Rubik.ttf) format("truetype");
  font-family: "Rubik";
}
 
 
/* Holy shit maybe this will work */
 
/* Message boxes (mbox family) */
table.mbox {
    border: 1px solid #a2a9b1;
     border-collapse: collapse;
    background-color: #f8f9fa;
    box-sizing: border-box;
    margin: 0.5em 0;
}
 
.mbox-text {
    padding: 0.25em 0.9em;
    width: 100%;
}
 
.mbox-image {
    padding: 2px 0 2px 0.9em;
    text-align: center;
}
 
.mbox-imageright {
    padding: 2px 0.9em 2px 0;
    text-align: center;
}
 
.mbox-empty-cell {
    border: none;
    padding: 0;
    width: 1px;
}
 
/* Article message boxes (ambox) */
table.ambox {
    margin: 0px 10%;
    border: 1px solid #a2a9b1;
    border-left: 10px solid #36c;
    background-color: #fbfbfb;
    box-sizing: border-box;
}
 
table.ambox + table.ambox {
    margin-top: -1px;
}
 
.ambox th.mbox-text,
.ambox td.mbox-text {
    padding: 0.25em 0.5em;
}
 
.ambox td.mbox-image {
    padding: 2px 0 2px 0.5em;
}
 
.ambox td.mbox-imageright {
    padding: 2px 0.5em 2px 0;
}
 
/* Ambox colors */
table.ambox-speedy {
    border-left: 10px solid #b32424;
    background-color: #fee7e6;
}
 
table.ambox-delete {
    border-left: 10px solid #b32424;
    background-color: #fee7e6;
}
}
 
@font-face {
table.ambox-content {
     font-family: "Rubik Italic";
     border-left: 10px solid #f28500;
     src: url(https://survivalcraft.wiki/content/Fonts/Rubik_Italic.ttf) format("truetype");
     background-color: #fff8f2;
}
}
 
@font-face {
table.ambox-style {
     font-family: "Pericles";
     border-left: 10px solid #fc3;
     src: url(https://survivalcraft.wiki/content/Fonts/Pericles.ttf) format("truetype");
     background-color: #fffbf0;
}
}


table.ambox-move {
/* Changes the font-family style of all content */
    border-left: 10px solid #9932cc;
#content, body, h1, h2, h3,h4, h5 {
    background-color: #f7f0ff;
font-family: 'Rubik' !important;
}
}


table.ambox-protection {
/* Removes all default CSS icons */
     border-left: 10px solid #a2a9b1;
#content a.external {
     background-color: #f8f9fa;
     background: none !important;
     padding: 0 !important;
}
}
 
.mw-heading, h2 {
table.ambox-notice {
padding-top: 0 !important;
    border-left: 10px solid #36c;
    background-color: #eaf3ff;
}
}
 
.mw-heading3 h3 {
/* Talk page message boxes (tmbox) */
font-weight: 400;
table.tmbox {
    margin: 4px 10%;
    border-collapse: collapse;
    border: 1px solid #c0c090;
    background-color: #f8eaba;
    min-width: 80%;
    box-sizing: border-box;
}
}
 
.mw-head-base {
.tmbox.mbox-small {
background-color: #dfdbc3;
    min-width: 0;
}
}
 
.mw-logo-wordmark {
/* Image page message boxes (imbox) */
color: black;
table.imbox {
font-weight: 500;
    margin: 4px 10%;
    border-collapse: collapse;
    border: 3px solid #1e90ff;
    background-color: #fbfbfb;
    min-width: 80%;
    box-sizing: border-box;
}
}
 
.mw-logo-wordmark:hover {
table.imbox-notice {
color: #28b017;
    border: 3px solid #1e90ff;
}
}
 
.mw-page-title-main {
table.imbox-speedy {
font-family: 'Rubik' !important;
    border: 3px solid #b32424;
    background-color: #fee7e6;
}
}


table.imbox-delete {
/*
    border: 3px solid #b32424;
.vector-header-container, .vector-sticky-header, .vector-sticky-header-container, .vector-header-container, .mw-header {
    background-color: #fee7e6;
background-color: #287308 !important;
}
} */


table.imbox-content {
    border: 3px solid #f28500;
    background-color: #fff8f2;
}


table.imbox-style {
.catlinks {
    border: 3px solid #fc3;
margin-top: 0.25em !important;
    background-color: #fffbf0;
padding-top: 0.25em !important;
}
}
 
.mw-footer-container {
table.imbox-move {
padding-top: 25px !important;
    border: 3px solid #9932cc;
    background-color: #f7f0ff;
}
}
 
.mw-body p + table {
table.imbox-protection {
margin-top: 0 !important;
    border: 3px solid #a2a9b1;
    background-color: #f8f9fa;
}
}


/* Category message boxes (cmbox) */
/* CreatureInfoBox & BlockInfoBox Classes */
table.cmbox {
.game-infobox {
    margin: 3px 10%;
font-family: 'Rubik';
    border-collapse: collapse;
border-spacing: 0;
    border: 1px solid #a2a9b1;
border-collapse: separate;
    background-color: #dfe8ff;
float: right;  
    min-width: 80%;
margin: 0.5rem 5px 0.5rem 2rem;
    box-sizing: border-box;
max-width: 240px;
min-width: 200px;
}
}
 
.game-infobox-title {
/* Other pages message boxes (ombox) */
background-color: #287308;
table.ombox {
color: white;
    margin: 4px 10%;
padding: 0.5rem 2.5rem 0.5rem 2.5rem;
    border-collapse: collapse;
font-size: 16px;
    border: 1px solid #a2a9b1;
    background-color: #f8f9fa;
    min-width: 80%;
    box-sizing: border-box;
}
}
 
.game-infobox-header {
table.ombox-notice {
width: 240px;
    border: 1px solid #a2a9b1;
background-color: #287308;
color: white;
font-size: 14px;
padding: 0.5rem;
}
}
 
.game-infobox-attribute {
table.ombox-speedy {
width: 70px;
    border: 2px solid #b32424;
font-size: 12px;
    background-color: #fee7e6;
padding: 0.5rem 0.5rem 0.5rem 0.5rem;
}
}
 
.game-infobox-argument {
table.ombox-delete {
font-size: 12px;
    border: 2px solid #b32424;
padding: 0.5rem 0.5rem 0.5rem 0.5rem;
    background-color: #fee7e6;
}
}
 
.game-infobox tr th, .game-infobox tr td {
table.ombox-content {
  border-right: 1px solid rgba(40,115,8,0.5);
    border: 1px solid #f28500;
  border-bottom: 1px solid rgba(40,115,8,0.5);
    background-color: #fff8f2;
}
}
 
.game-infobox tr th:first-child,
table.ombox-style {
.game-infobox tr td:first-child {
    border: 1px solid #fc3;
  border-left: 1px solid rgba(40,115,8,0.5);
    background-color: #fffbf0;
}
}
 
.game-infobox tr th {
table.ombox-move {
  border-top: 1px solid rgba(40,115,8,0.5);
    border: 1px solid #9932cc;
    background-color: #f7f0ff;
}
}
 
.game-infobox tr:first-child th:first-child {
table.ombox-protection {
  border-top-left-radius: 2px;
    border: 1px solid #a2a9b1;
    background-color: #f8f9fa;
}
}
 
.game-infobox tr:first-child th:last-child {
/* File namespace message boxes (fmbox) */
  border-top-right-radius: 2px;
table.fmbox {
    clear: both;
    margin: 0.2em 0;
    width: 100%;
    border: 1px solid #a2a9b1;
    background-color: #f8f9fa;
    box-sizing: border-box;
}
}
 
.game-infobox tr:last-child td:first-child {
table.fmbox-system {
  border-bottom-left-radius: 2px;
    background-color: #f8f9fa;
}
}
 
.game-infobox tr:last-child td:last-child {
table.fmbox-warning {
  border-bottom-right-radius: 2px;
    border: 1px solid #bb7070;
    background-color: #ffdbdb;
}
}


table.fmbox-editnotice {
.message-box {
    background-color: transparent;
padding: 0.5em 0.5em 0.5em 0.5em;
margin: 0 0.25em 1em 0.25em;
}
}


/* Small message boxes */
/* Gallery Classes */
.mbox-small {
.gallery-container {
    clear: right;
border: 1px solid #ccc;
    float: right;
width: 260px;
    line-height: 1.25em;
display: inline-block;
    font-size: 88%;
    border-collapse: collapse;
    width: 238px;
    box-sizing: border-box;
}
}
 
.gallery-container:hover {
.mbox-small-left {
border: 1px solid #777;
    margin: 4px 1em 4px 0;
    width: 238px;
    border-collapse: collapse;
    font-size: 88%;
    line-height: 1.25em;
    float: left;
    clear: left;
    box-sizing: border-box;
}
}
 
.gallery-caption {
/* Fix for small message box text */
font-size: 12px;
.mbox-small .mbox-text,
padding: 15px 8px 15px 8px;
.mbox-small-left .mbox-text {
     text-align: center;
    font-size: 100%;
     padding: 0.1em 0.8em;
}
}
 
.gallery-grid-container {
.mbox-small .mbox-image,
display: grid;
.mbox-small-left .mbox-image {
border: 1px solid #ccc;
    padding: 2px 3px 2px 0.5em;
grid-template-columns: repeat(auto-fill, 50px);
}
}


.mbox-small .mbox-imageright,
/* Viewport Containers */
.mbox-small-left .mbox-imageright {
@media(max-width: 850px) {
    padding: 2px 0.5em 2px 3px;
.game-infobox {
float: none;
}
}
}


/* Responsive design */
#gallery_1, #gallery_2 {
@media (max-width: 720px) {
border-radius: 5px;
    .mbox-small {
        width: 100%;
        margin: 4px 0;
        float: none;
        clear: both;
    }
   
    .mbox-small-left {
        width: 100%;
        margin: 4px 0;
        float: none;
        clear: both;
    }
}
}

Latest revision as of 01:02, 2 August 2025

/* Custom Fonts */
@font-face {
    font-family: "Rubik";
    src: url(https://survivalcraft.wiki/content/Fonts/Rubik.ttf) format("truetype");
}
@font-face {
    font-family: "Rubik Italic";
    src: url(https://survivalcraft.wiki/content/Fonts/Rubik_Italic.ttf) format("truetype");
}
@font-face {
    font-family: "Pericles";
    src: url(https://survivalcraft.wiki/content/Fonts/Pericles.ttf) format("truetype");
}

/* Changes the font-family style of all content */
#content, body, h1, h2, h3,h4, h5 {
	font-family: 'Rubik' !important;
}

/* Removes all default CSS icons */
#content a.external {
    background: none !important;
    padding: 0 !important;
}
.mw-heading, h2 {
	padding-top: 0 !important;
}
.mw-heading3 h3 {
	font-weight: 400;
}
.mw-head-base {
	background-color: #dfdbc3;
}
.mw-logo-wordmark {
	color: black;
	font-weight: 500;
}
.mw-logo-wordmark:hover {
	color: #28b017;
}
.mw-page-title-main {
	font-family: 'Rubik' !important;
}

/*
.vector-header-container, .vector-sticky-header, .vector-sticky-header-container, .vector-header-container, .mw-header {
	background-color: #287308 !important;
} */


.catlinks {
	margin-top: 0.25em !important;
	padding-top: 0.25em !important;
}
.mw-footer-container {
	padding-top: 25px !important;
}
.mw-body p + table {
	margin-top: 0 !important;
}

/* CreatureInfoBox & BlockInfoBox Classes */
.game-infobox {
	font-family: 'Rubik';
	border-spacing: 0;
	border-collapse: separate;
	float: right; 
	margin: 0.5rem 5px 0.5rem 2rem;
	max-width: 240px;
	min-width: 200px;
}
.game-infobox-title {
	background-color: #287308;
	color: white;
	padding: 0.5rem 2.5rem 0.5rem 2.5rem;
	font-size: 16px;
}
.game-infobox-header {
	width: 240px;
	background-color: #287308;
	color: white;
	font-size: 14px;
	padding: 0.5rem;
}
.game-infobox-attribute {
	width: 70px;
	font-size: 12px;
	padding: 0.5rem 0.5rem 0.5rem 0.5rem;
}
.game-infobox-argument {
	font-size: 12px;
	padding: 0.5rem 0.5rem 0.5rem 0.5rem;
}
.game-infobox tr th, .game-infobox tr td {
	  border-right: 1px solid rgba(40,115,8,0.5);
	  border-bottom: 1px solid rgba(40,115,8,0.5);
}
.game-infobox tr th:first-child,
.game-infobox tr td:first-child {
  border-left: 1px solid rgba(40,115,8,0.5);
}
.game-infobox tr th {
  border-top: 1px solid rgba(40,115,8,0.5);
}
.game-infobox tr:first-child th:first-child {
  border-top-left-radius: 2px;
}
.game-infobox tr:first-child th:last-child {
  border-top-right-radius: 2px;
}
.game-infobox tr:last-child td:first-child {
  border-bottom-left-radius: 2px;
}
.game-infobox tr:last-child td:last-child {
  border-bottom-right-radius: 2px;
}

.message-box {
	padding: 0.5em 0.5em 0.5em 0.5em;
	margin: 0 0.25em 1em 0.25em;
}

/* Gallery Classes */
.gallery-container {
	border: 1px solid #ccc;
	width: 260px;
	display: inline-block;
}
.gallery-container:hover {
	border: 1px solid #777;
}
.gallery-caption {
	font-size: 12px;
	padding: 15px 8px 15px 8px;
    text-align: center;
}
.gallery-grid-container {
	display: grid;
	border: 1px solid #ccc;
	grid-template-columns: repeat(auto-fill, 50px);
}

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

#gallery_1, #gallery_2 {
	border-radius: 5px;
}