MediaWiki:Common.css: Difference between revisions

From Coral Island Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 154: Line 154:
}
}


/* For [[Template:Change History]] */
/* For [[Template:Changelist]] */
.change-history-header {
.changelist-header {
display: flex;
display: flex;
justify-content: space-between;
justify-content: space-between;
Line 163: Line 163:
}
}


.change-history-content {
.changelist-content {
overflow: auto;
overflow: auto;
max-height: 330px;
max-height: 330px;

Revision as of 10:53, 2 January 2024

.class { }
/* Imports caching */
@import url("https://coralisland.wiki/w/index.php?title=MediaWiki:Module:Documentation.css&action=raw&ctype=text/css");
@import url("https://coralisland.wiki/w/index.php?title=MediaWiki:Documentation.css&action=raw&ctype=text/css");
@import url("https://coralisland.wiki/w/index.php?title=MediaWiki:Infobox.css&action=raw&ctype=text/css");
@import url("https://coralisland.wiki/w/index.php?title=MediaWiki:Tables.css&action=raw&ctype=text/css");
@import url("https://coralisland.wiki/w/index.php?title=MediaWiki:MessageBox.css&action=raw&ctype=text/css");
@import url("https://coralisland.wiki/w/index.php?title=MediaWiki:CustomTabs.css&action=raw&ctype=text/css");
@import url("https://coralisland.wiki/w/index.php?title=MediaWiki:Navbox.css&action=raw&ctype=text/css");
@import url("https://coralisland.wiki/w/index.php?title=MediaWiki:Icons.css&action=raw&ctype=text/css");

/* || COLORS */
:root {
  --gray-900: #1F1E1E;
  --gray-800: #272727;
  --gray-700: #31302F;
  --gray-600: #403F3F;
  --gray-500: #545353;
  --gray-400: #848181;
  --gray-300: #9F9D9D;
  --gray-200: #C7C4C4;
  --gray-100: #E9E5E5;
  --gray-050: #F6F6F6;
  
  --brown-800: #3F3125;
  --brown-500: #B38A63;
  --brown-400: #CB9E71;
  --brown-300: #E4B17F;
  --brown-200: #EBC59F;
  --brown-100: #EFD8BE;
  --brown-050: #F7F2E8;
  
  --link: #3366cc;
  --accent: #F6816C;
  --light-blue: #C4D6EB;
  --gold: #D9A14A;
  --player: #71A350;
  --npc: #8C6233;
  
  --border-color: var(--gray-200);
  
  --font-color: #2F2D2B;
  --white: #fff;
}

.mobileHide, .mobile-only, .no-desktop {
	display: none!important;
}

/* || FIXES */
h1, h2, h3, h4, h5, h6, .mw-body {
    color: #2F2D2B;
}

.vector-body h3 , .vector-body h4 , .vector-body h5 , .vector-body h6 {
    font-weight: normal;
    margin-bottom: 4px;
}

a {
	color: var(--link);
}

a:visited {
	color: #795cb2;
}

a:active {
	color: #2254b7;
}

.mw-parser-output a.external {
	padding-right: 0;
}

.catlinks {
  border-color: var(--border-color);
  border-radius: 6px;
  background-color: var(--gray-050);
}

.CodeMirror-lines span {
  font: 14px Consolas,Eupheima UCAS,Monaco,Menlo,monospace
}

.wikiEditor-ui .ace_editor * {
    font-size: 13px;
    font-family: monospace, monospace;
}

/* Fix to gift module */
.icon-list .custom-icon {
  display:block; /* list vertically */
}

/* Quote template */
.quotetable {
	width: auto;
}

.Bug6200 {
	margin-bottom: 0.75em;
}

/* Code block */
code, pre {
  background-color: #f2f2f2;
  padding: 2px 4px;
  border: 1px solid #cecece;
  border-radius: 6px;
}

code.code-block-table {
  display: table;
  line-height: 21px;
}

.code-block-table * {
  font: 14px Consolas,Eupheima UCAS,Monaco,Menlo,monospace;
}

.mw-content-ltr ul, .mw-content-rtl .mw-content-ltr ul {
	margin: 0.3em 0 0 1.6em;
}

ul {
	list-style-type: disc;
}

/* || MAIN PAGE */
body.page-Main_Page.action-view h1.firstHeading, body.page-Main_Page.action-submit h1.firstHeading { display: none; }

/* ||TABLE OF CONTENTS */
.toc {
  padding: 8px 12px;
  border-radius: 4px;
  background-color: var(--gray-050);
  border: 1px solid var(--border-color);
  margin-top: 16px;
}

.vector-body .toc h2 {
  font-family: Fredoka, sans-serif;
}

/* TOC hide headings */
.toclimit-2 .toclevel-1 ul,
.toclimit-3 .toclevel-2 ul,
.toclimit-4 .toclevel-3 ul,
.toclimit-5 .toclevel-4 ul,
.toclimit-6 .toclevel-5 ul,
.toclimit-7 .toclevel-6 ul {
	display: none;
}

/* For [[Template:Changelist]] */
.changelist-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 88%;
	margin: 0.3em 0;
}

.changelist-content {
	overflow: auto;
	max-height: 330px;
	padding: 0.5em;
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-moz-border-radius-topleft: 0.5em;
	background: transparent;
	border-radius: 4px;
}