MediaWiki:Common.css: Difference between revisions

From Coral Island Wiki
Jump to navigation Jump to search
No edit summary
m (Undo revision 25220 by Salty Nori (talk))
Tag: Undo
 
(62 intermediate revisions by 2 users not shown)
Line 1: Line 1:
.class { }
.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 */
/* Imports caching */
@import url("https://coralisland.wiki/w/index.php?title=MediaWiki:Module:Documentation.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Colors.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://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Module: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://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Documentation.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://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Infobox.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://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Tables.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://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:MessageBox.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://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:CustomTabs.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://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Navbox.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://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Icons.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Dialogue.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Cards.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Tabbers.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Mobile.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Recipe.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Modal.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:AceEditor.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:CodeMirror.css&action=raw&ctype=text/css");


/* || COLORS */
body.skin-vector-dark {
:root {
background: url("https://coralwiki.stairwaygames.com/w/images/9/9a/Site-background-dark.png") no-repeat fixed center center / cover !important;
  --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;
}
}


Line 51: Line 30:


/* || FIXES */
/* || FIXES */
h1, h2, h3, h4, h5, h6, .mw-body {
.wikiEditor-ui-text > .ui-resizable {
    color: #2F2D2B;
width: 100% !important;
max-width: 100%;
}
ul {
list-style: disc;
}
 
 
h2 .mw-headline,
h3 .mw-headline,
h4 .mw-headline {
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 {
    font-weight: normal;
margin-bottom: 4px;
    margin-bottom: 4px;
}
}


a {
a, a:visited, a:active,
color: var(--link);
.mw-parser-output a:is(.external, .external:visited, .external:active) {
color: var(--theme-link-color);
}
}
 
#mw-head .vector-menu-content-list .mw-list-item :is(a, a:visited, a:active) {
a:visited {
color: var(--theme-page-text-color);
color: #795cb2;
}
}
 
#mw-panel .vector-menu-content-list .mw-list-item :is(a, a:visited, a:active) {
a:active {
color: var(--theme-link-color);
color: #2254b7;
}
}


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


.catlinks {
.catlinks {
  border-color: var(--border-color);
border-color: var(--theme-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 * {
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;
}
}


.mw-input .mw-abusefilter-editor *  {
.gift-table .icon-list-container {
    font-size: 13px;
width: auto;
    font-family: monospace, monospace;
}
}


Line 107: Line 116:
/* Code block */
/* Code block */
code, pre {
code, pre {
  background-color: #f2f2f2;
background-color: var(--theme-page-background-color--secondary);
  padding: 2px 4px;
color: var(--theme-page-text-color);
  border: 1px solid #cecece;
border: 1px solid var(--theme-border-color);
  border-radius: 6px;
border-radius: 2px;
  padding: 8px;
padding: 1px 4px;
font-family: Consolas,Eupheima UCAS,Monaco,Menlo,monospace;
}
}


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;
}
}


/* || MAIN PAGE */
/* || MAIN PAGE */
body.page-Main_Page.action-view h1.firstHeading, body.page-Main_Page.action-submit h1.firstHeading { display: none; }
body.page-Main_Page.action-view h1.firstHeading, body.page-Main_Page.action-submit h1.firstHeading { display: none; }
body.page-Main_Page.action-view .main-page-top {
background-image: url(https://coralwiki.stairwaygames.com/w/images/c/c2/441Cover_image_only.png);
background-repeat: no-repeat;
background-size: cover;
width: 100%;
display: flex;
flex-direction: column;
gap: 4px;
color: rgb(67, 64, 61); /*fixed color due to bg image*/
text-align: center;
align-items: center;
}


/* ||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(--theme-page-background-color--secondary);
  border: 1px solid var(--border-color);
border: 1px solid var(--theme-border-color);
  margin-top: 16px;
margin-top: 16px;
}
.toctogglelabel {
color: var(--theme-link-color);
}
.tocnumber {
color: var(--theme-page-text-color);
}
}


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


Line 176: Line 205:


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


Line 183: Line 212:
/* 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(--theme-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(--theme-border-color-rgb),0.30) 0%, rgba(var(--theme-border-color-rgb),0) 100%);%);
    margin: 8px 0;
margin: 8px 0;
}
}


Line 234: Line 263:
opacity: 0.65;
opacity: 0.65;
content: "<";
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;
}
/* Theme toggle */
.wds-icon {
align-self: center;
margin: 0 6px;
pointer-events: none;
fill: currentColor;
}
.wds-icon-small {
height: 18px;
min-width: 18px;
width: 18px;
}
#p-personal .vector-menu-content-list,
#p-personal .mw-list-item > a {
display: flex;
align-items: center;
}
.cols {
background-color: var(--theme-page-background-color--secondary);
}
#pagehistory li.selected {
  background-color: var(--theme-page-background-color--secondary);
  color: var(--theme-page-text-color);
  outline: 1px dashed var(--theme-border-color);
}
}

Latest revision as of 02:16, 5 August 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://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Colors.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Module:Documentation.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Documentation.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Infobox.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Tables.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:MessageBox.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:CustomTabs.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Navbox.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Icons.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Dialogue.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Cards.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Tabbers.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Mobile.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Recipe.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:Modal.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:AceEditor.css&action=raw&ctype=text/css");
@import url("https://coralwiki.stairwaygames.com/w/index.php?title=MediaWiki:CodeMirror.css&action=raw&ctype=text/css");

body.skin-vector-dark {
	background: url("https://coralwiki.stairwaygames.com/w/images/9/9a/Site-background-dark.png") no-repeat fixed center center / cover !important;
}

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

/* || FIXES */
.wikiEditor-ui-text > .ui-resizable {
	width: 100% !important;
	max-width: 100%;
}
ul {
	list-style: disc;
}


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, a:visited, a:active,
.mw-parser-output a:is(.external, .external:visited, .external:active) {
	color: var(--theme-link-color);
}
#mw-head .vector-menu-content-list .mw-list-item :is(a, a:visited, a:active) {
	color: var(--theme-page-text-color);
}
#mw-panel .vector-menu-content-list .mw-list-item :is(a, a:visited, a:active) {
	color: var(--theme-link-color);
}

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

.catlinks {
	border-color: var(--theme-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: var(--theme-page-background-color--secondary);
	color: var(--theme-page-text-color);
	border: 1px solid var(--theme-border-color);
	border-radius: 2px;
	padding: 1px 4px;
	font-family: Consolas,Eupheima UCAS,Monaco,Menlo,monospace;
}

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; }
body.page-Main_Page.action-view .main-page-top {
	background-image: url(https://coralwiki.stairwaygames.com/w/images/c/c2/441Cover_image_only.png);
	background-repeat: no-repeat;
	background-size: cover;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 4px;
	color: rgb(67, 64, 61); /*fixed color due to bg image*/
	text-align: center;
	align-items: center;
}


/* ||TABLE OF CONTENTS */
.toc {
	padding: 8px 12px;
	border-radius: 4px;
	background-color: var(--theme-page-background-color--secondary);
	border: 1px solid var(--theme-border-color);
	margin-top: 16px;
}
.toctogglelabel {
	color: var(--theme-link-color);
}
.tocnumber {
	color: var(--theme-page-text-color);
}

.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(--theme-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(--theme-border-color);
	padding: 6px 12px;
	border-radius: 4px;
	background: linear-gradient(145deg, rgba(var(--theme-border-color-rgb),0.30) 0%, rgba(var(--theme-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;
}

/* Theme toggle */
.wds-icon {
	align-self: center;
	margin: 0 6px;
	pointer-events: none;
	fill: currentColor;
}
.wds-icon-small {
	height: 18px;
	min-width: 18px;
	width: 18px;
}
#p-personal .vector-menu-content-list,
#p-personal .mw-list-item > a {
	display: flex;
	align-items: center;
}
.cols {
	background-color: var(--theme-page-background-color--secondary);
}
#pagehistory li.selected {
  background-color: var(--theme-page-background-color--secondary);
  color: var(--theme-page-text-color);
  outline: 1px dashed var(--theme-border-color);
}