MediaWiki:Common.css: Difference between revisions

From Coral Island Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 20: Line 20:
/* || COLORS */
/* || COLORS */
:root {
:root {
  --gray-900: #1F1E1E;
--gray-900: #1F1E1E;
  --gray-800: #272727;
--gray-800: #272727;
  --gray-700: #31302F;
--gray-700: #31302F;
  --gray-600: #403F3F;
--gray-600: #403F3F;
  --gray-500: #545353;
--gray-500: #545353;
  --gray-400: #848181;
--gray-400: #848181;
  --gray-300: #9F9D9D;
--gray-300: #9F9D9D;
  --gray-200: #C7C4C4;
--gray-200: #C7C4C4;
  --gray-100: #E9E5E5;
--gray-100: #E9E5E5;
  --gray-050: #F6F6F6;
--gray-050: #F6F6F6;
 
  --brown-800: #3F3125;
--brown-800: #3F3125;
  --brown-500: #B38A63;
--brown-500: #B38A63;
  --brown-400: #CB9E71;
--brown-400: #CB9E71;
  --brown-300: #E4B17F;
--brown-300: #E4B17F;
  --brown-200: #EBC59F;
--brown-200: #EBC59F;
  --brown-100: #EFD8BE;
--brown-100: #EFD8BE;
  --brown-050: #F7F2E8;
--brown-050: #F7F2E8;
 
  --link: #3366cc;
--link: #3366cc;
  --accent: #F6816C;
--accent: #F6816C;
  --light-blue: #C4D6EB;
--light-blue: #C4D6EB;
  --gold: #D9A14A;
--gold: #D9A14A;
  --player: #71A350;
--player: #71A350;
  --npc: #8C6233;
--npc: #8C6233;
 
  --border-color: var(--gray-200);
--border-color: var(--gray-200);
  --border-color-rgb: 206,206,206;
--border-color-rgb: 206,206,206;
 
  --font-color: #2F2D2B;
--font-color: #2F2D2B;
  --white: #fff;
--white: #fff;
--theme-page-background: rgba(255,255,255,0.98);
}
:root .skin-vector-dark {
--theme-page-background: rgb(27, 29, 36, 0.98);
}
}


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


Line 65: Line 70:
h3 .mw-headline,
h3 .mw-headline,
h4 .mw-headline {
h4 .mw-headline {
  font-weight: 500;
font-weight: 500;
}
}


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


Line 87: Line 92:
padding-right: 0;
padding-right: 0;
font-size: inherit;
font-size: inherit;
}
.mw-body, .parsoid-body {
background-color: !important;
}
}


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


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


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


.mw-input .mw-abusefilter-editor * {
.mw-input .mw-abusefilter-editor * {
    font-size: 13px;
font-size: 13px;
    font-family: monospace, monospace;
font-family: monospace, monospace;
}
}


Line 117: Line 126:
.columntemplate ul,
.columntemplate ul,
.columntemplate ol {
.columntemplate ol {
    margin-top: 0;
margin-top: 0;
}
}


/* RC */
/* RC */
.mw-changeslist table {
.mw-changeslist table {
  width: unset;
width: unset;
}
}


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


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


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


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


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


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


Line 208: Line 217:


.changelist-border {
.changelist-border {
  border: 1px solid var(--border-color);
border: 1px solid var(--border-color);
  border-left: 6px solid var(--accent);
border-left: 6px solid var(--accent);
}
}


Line 215: Line 224:
/* For Template:Chat */
/* For Template:Chat */
.chat-wrapper {
.chat-wrapper {
    display: flex;
display: flex;
    flex-direction: column;
flex-direction: column;
}
}


.chat-player,
.chat-player,
.chat-npc {
.chat-npc {
    display: flex;
display: flex;
    flex-direction: row;
flex-direction: row;
    gap: 0.5em;
gap: 0.5em;
}
}


.chat-player-speaker {
.chat-player-speaker {
    white-space: nowrap;
white-space: nowrap;
    min-width: 70px;
min-width: 70px;
    color: rgb(105, 172, 82);
color: rgb(105, 172, 82);
}
}


.chat-npc-speaker {
.chat-npc-speaker {
    white-space: nowrap;
white-space: nowrap;
    min-width: 70px;
min-width: 70px;
    color: rgb(237, 123, 103);
color: rgb(237, 123, 103);
}
}


/* Hatnote */
/* Hatnote */
.hatnote {
.hatnote {
    border-left: 4px solid var(--border-color);
border-left: 4px solid var(--border-color);
    padding: 6px 12px;
padding: 6px 12px;
    border-radius: 4px;
border-radius: 4px;
    background: linear-gradient(145deg, rgba(var(--border-color-rgb),0.30) 0%, rgba(var(--border-color-rgb),0) 100%);%);
background: linear-gradient(145deg, rgba(var(--border-color-rgb),0.30) 0%, rgba(var(--border-color-rgb),0) 100%);%);
    margin: 8px 0;
margin: 8px 0;
}
}


Line 271: Line 280:


.pull-quote {
.pull-quote {
  font-style: italic;
font-style: italic;
  margin: 0;
margin: 0;
  padding: 0 30px 8px !important
padding: 0 30px 8px !important
}
}


.pull-quote::before {
.pull-quote::before {
  color: var(--accent);
color: var(--accent);
  content: "“";
content: "“";
  display: block;
display: block;
  font-size: 96px;
font-size: 96px;
  font-style: normal;
font-style: normal;
  line-height: 72px;
line-height: 72px;
  margin: 4px 0 -45px -5px;;
margin: 4px 0 -45px -5px;;
}
}


.pull-quote__source::before {
.pull-quote__source::before {
  content: "— ";
content: "— ";
  margin-bottom:8px;
margin-bottom:8px;
}
}


.pull-quote__text {
.pull-quote__text {
  margin-bottom:4px;
margin-bottom:4px;
}
}


/* Gallery */
/* Gallery */
.gallerytext {
.gallerytext {
  text-align: center;
text-align: center;
  font-size:100%;
font-size:100%;
}
}


/* Fix to Template Data */
/* Fix to Template Data */
.mw-templatedata-doc-params > * > tr > th {
.mw-templatedata-doc-params > * > tr > th {
  width: 150px;
width: 150px;
}
}


.mw-templatedata-doc-params {
.mw-templatedata-doc-params {
  width: auto;
width: auto;
  max-width: 100%;
max-width: 100%;
}
}



Revision as of 07:37, 12 July 2024

.class { }/* needed for some reason for the @imports to work */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600&display=swap');

/* 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");
@import url("https://coralisland.wiki/w/index.php?title=MediaWiki:Dialogue.css&action=raw&ctype=text/css");
@import url("https://coralisland.wiki/w/index.php?title=MediaWiki:Cards.css&action=raw&ctype=text/css");
@import url("https://coralisland.wiki/w/index.php?title=MediaWiki:Tabbers.css&action=raw&ctype=text/css");
@import url("https://coralisland.wiki/w/index.php?title=MediaWiki:Mobile.css&action=raw&ctype=text/css");
@import url("https://coralisland.wiki/w/index.php?title=MediaWiki:Recipe.css&action=raw&ctype=text/css");
@import url("https://coralisland.wiki/w/index.php?title=MediaWiki:Modal.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);
	--border-color-rgb: 206,206,206;
	
	--font-color: #2F2D2B;
	--white: #fff;
	
	--theme-page-background: rgba(255,255,255,0.98);
}
:root .skin-vector-dark {
	--theme-page-background: rgb(27, 29, 36, 0.98);
}

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

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

h2 .mw-headline,
h3 .mw-headline,
h4 .mw-headline {
	font-weight: 500;
}

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

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

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

a:active {
	color: #2254b7;
}

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

.mw-body, .parsoid-body {
	background-color: !important;
}

.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 /* Source Editor */
}

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

.mw-input .mw-abusefilter-editor *	{
	font-size: 13px;
	font-family: monospace, monospace;
}

/* Hide default TOOLBOX nav section on sidebar */
#mw-navigation > #mw-panel > #p-tb {
	display: none;
}

/* Column template fix */
.columntemplate ul,
.columntemplate ol {
	margin-top: 0;
}

/* RC */
.mw-changeslist table {
	width: unset;
}

.gift-table .icon-list-container {
	width: auto;
}

/* 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;
	padding:8px;
}

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

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

/* || 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: 384px;
	padding: 1em;
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-moz-border-radius-topleft: 0.5em;
	background: transparent;
	border-radius: 6px;
}

.changelist-border {
	border: 1px solid var(--border-color);
	border-left: 6px solid var(--accent);
}


/* For Template:Chat */
.chat-wrapper {
	display: flex;
	flex-direction: column;
}

.chat-player,
.chat-npc {
	display: flex;
	flex-direction: row;
	gap: 0.5em;
}

.chat-player-speaker {
	white-space: nowrap;
	min-width: 70px;
	color: rgb(105, 172, 82);
}

.chat-npc-speaker {
	white-space: nowrap;
	min-width: 70px;
	color: rgb(237, 123, 103);
}

/* Hatnote */
.hatnote {
	border-left: 4px solid var(--border-color);
	padding: 6px 12px;
	border-radius: 4px;
	background: linear-gradient(145deg, rgba(var(--border-color-rgb),0.30) 0%, rgba(var(--border-color-rgb),0) 100%);%);
	margin: 8px 0;
}

/* For [[Module:Formatting]] */
code.code-block {
	display: inline-block;
	line-height: 21px;
}
code.code-block-table {
	display: table;
	line-height: 21px;
}
span.variable {
	opacity: 0.65;
}
span.variable::after {
	opacity: 0.65;
	content: ">";
}
span.variable::before {
	opacity: 0.65;
	content: "<";
}

/* Quote */

.pull-quote {
	font-style: italic;
	margin: 0;
	padding: 0 30px 8px !important
}

.pull-quote::before {
	color: var(--accent);
	content: "“";
	display: block;
	font-size: 96px;
	font-style: normal;
	line-height: 72px;
	margin: 4px 0 -45px -5px;;
}

.pull-quote__source::before {
	content: "— ";
	margin-bottom:8px;
}

.pull-quote__text {
	margin-bottom:4px;
}

/* Gallery */
.gallerytext {
	text-align: center;
	font-size:100%;
}

/* Fix to Template Data */
.mw-templatedata-doc-params > * > tr > th {
	width: 150px;
}

.mw-templatedata-doc-params {
	width: auto;
	max-width: 100%;
}

/* Space sidebar arrows properly */
#mw-panel.collapsible-nav .portal:is(.collapsed, .expanded) .vector-menu-heading {
	background-position: 95% center;
}