Difference between revisions of "MediaWiki:Common.css"

From Modern Nights
Jump to: navigation, search
Line 307: Line 307:
 
   color: var(--color-pink-6);
 
   color: var(--color-pink-6);
 
}
 
}
.Pink character-page_heading,
+
.Pink .character-page_heading,
.Pink character-page_heading p,
+
.Pink .character-page_heading p,
 
.PinkText .character-page_heading,
 
.PinkText .character-page_heading,
 
.PinkText .character-page_heading p {
 
.PinkText .character-page_heading p {

Revision as of 16:39, 4 August 2021

/* CSS placed here will be applied to all skins */

@import url('https://fonts.googleapis.com/css2?family=Eczar:wght@700&family=Rubik:wght@400;700&display=swap');

:root {
  --color-white: #fdfdfd;
  --color-red-9: #520408;
  --color-red-8: #da1e28;
  --color-red-7: #a2191f; 
  --color-red-6: #750e13;
  --color-red-5: #fa4d56;

  --color-pink-9: #510224;
  --color-pink-8: #740937;
  --color-pink-7: #9f1853;
  --color-pink-6: #d02670;
  --color-pink-5: #ee5396;
  --color-pink-1: #ffd6e8;

  --color-gray-8: #393939;
  --color-gray-7: #525252;
  --color-gray-6: #6f6f6f;
  --color-gray-5: #8d8d8d;
  
  --font-size-sm: 0.93em;
  --font-size-md: 1.16em;
  --font-size-lg: 1.45em;
  --font-size-xl: 1.813em;
  --font-size-2xl: 2.27em;
  --font-size-3xl: 2.83em;
  --font-size-4xl: 3.54em;
  --spacing-3xs: 0.25em;
  --spacing-2xs: 0.35em;
  --spacing-xs: 0.467em;
  --spacing-sm: 0.7em;
  --spacing-md: 1.4em;
  --spacing-lg: 2.8em;
  --spacing-xl: 4.2em;
  --spacing-2xl: 5.6em;

  --border-radius: 0.25em;
  --background-01: #efefef;
  --background-02: #d0d0d0;
  --background-03: #fdfdfd;
  --interactive-1: #005D5D; /* primary */
  --interactive-2: #00539a /* secondary */
  --interactive-3: #9f1853; /* tertiary */
  --interactive-active-accent: #007d70;
  --danger-1: #da1e28;
  --danger-2: #da1e28;
  --background-02-subtle-border: #dde1e6;
  --medium-contrast-border: #8d8d8d;
  --high-contrast-border: #161616;
  --button-separator: #e0e0e0;
  --decorative-light: #e0e0e0;
  --text-primary: #161616;
  --text-secondary: #525252;
  --text-tertiary: #a8a8a8;
  --text-interactive: #ffffff;
  --text-help: #6f6f6f;
  --text-error: #da1e28;
  --link-primary: #0f62fe;
  --link-secondary: #0043ce /* lower contrast bgs */
  --inverse-link: #78a9ff; 
  --icon-primary: #161616;
  --icon-secondary: #525252;
  --icon-tertiary: #ffffff;
  --field-01: #ffffff;
  --field-02: #f4f4f4;
  --inverse-01: #ffffff;
  --inverse-02: #393939
  --support-error: #da1e28;
  --support-success: #198038;
  --support-warning: #f1c21b;
  --support-information: #0043ce;
  --overlay: rgba(8.6, 8.6, 8.6, 50%);
}

img {
  width: 100%;
  height: auto;
}

#mw-page-base, #mw-panel, .mw-body, .parsoid-body, body {
  background-color: var(--background-01); 
  color: var(--text-primary);
}

#mw-page-base {
  background-image: none;
}

.mw-body-content {
  font-size: var(--font-size-sm);
}

.mw-body-content p {
  line-height: 1.4;
  margin-bottom: var(--spacing-md);
  margin-top: var(--spacing-xs);
}

#toc {
  margin: 0 2em 2em 0;
  float: left;
  border: none;
  padding: var(--spacing-md);
}

a, a:visited, 
#mw-panel .portal .body li a,
 #mw-panel .portal .body li a:visited {
  color: var(--interactive-1);
  font-weight: bold;
}

.mw-body, .mw-body-content p {
border: none;
font-family: 'Rubik', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
font-weight: bold;
border-bottom: none;
font-family: 'Eczar', serif;
margin-top: var(--spacing-md);
margin-bottom: var(--spacing-xs);
}

.mw-body h1,
.mw-body-content h1,
.mw-body-content h2,
.mw-body-content h3,
.mw-body-content h4,
.mw-body-content h5,
.mw-body-content h6 {
font-family: 'Eczar', serif;
}

.mn-content_horizontal-nav {
width: 100%;
display: flex;
flex-direction: row;
justify-content: space-around;
background: var(--interactive-1);
color: var(--text-interactive);
}

.mn-content_horizontal-nav span {
padding: 0.5em 1em;
}

.mn-content_horizontal-nav a{
color: var(--text-interactive);
}

.character-page, .mn-content {
  display: flex;
  flex-direction: row;
}

.mn-content_section,
.character-page_section {
  padding: 1em;
}

.character-page_panel, .mn-content_panel, .mn-content_inset-panel, .toc {
  min-width: 320px;
  box-shadow:  5px 5px 13px var(--background-02);
              -5px -5px 13px var(--background-03);
  width: auto;
  margin: 0 1em 1em 0;
  border-radius: var(--border-radius);
}

.mn-content_panel, .mn-content_inset-panel {
  padding: 1em
}
.mn-content_inset-panel {
  background-color: var(--background-01);
}

.mn-tileset {
  display: flex;
  flex-direction: column;
}
.mn-tileset_row {
  display: flex;
  flex-direction: row;
}
.mn-tileset_row div, .mn-tileset_row p {
  width: 200px;
  padding: var(--spacing-xs);
}

.mn-content Darktheme .mn-content_panel {
  background-color: #1C1C1C;
  color: #FDFDFD;
}

.character-page_quote {
  padding:1em;
  text-align: center; 
  color: #666665;
  font-weight: 100;
  font-style: italic;
  font-size: var(--font-size-lg);
  font-family: "Palatino Linotype", serif;
}

.character-page_heading {
  background-color: var(--color-gray-8);
  color: var(--color-white);
  line-height:300%;
  text-align: center;
  font-size:18pt; 
  font-variant:small-caps;
  padding-top: 1em;
  padding-bottom: 1em;
  font-weight: bold;
  font-family: 'Eczar', serif;
  border-radius: var(--border-radius);
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
}
.character-page_heading p {
  margin: 0;
  padding: 0;
}

.character-page_gallery-set p {
  display:flex;
  flex-direction: row;
}

.character-page_gallery-set.Column p {
  flex-direction: column;
}

.character-page_gallery-set p a {
  margin: 0.25em;
}

.character-page_contact p {
  display:flex;
  flex-direction: row;
  align-items: center;
}

.character-page_contact p a {
  width: 150px;
  height: auto;
  margin-right: 1em;
}

/* THEMES */ 
/* Raphael Theme! */
.RiffRaph .character-page_panel {
  outline: var(--spacing-sm) solid var(--color-gray-8);
  padding: var(--spacing-md);
}
.RiffRaph #title, .RiffRaph #title p {
  margin: var(--spacing-sm);
  font-size: var(--font-size-xl);
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-style: italic;
  font-variant: small-caps;
  text-align: center;
  font-weight: bold;
}

.character-page_snapshot {
  border: var(--spacing-3xs) solid transparent !important;
  outline: var(--spacing-3xs) solid var(--high-contrast-border);
  margin-bottom: var(--spacing-sm);
}

.RiffRaph .character-page_heading p {
  font-family: "Palatino Linotype", serif;
}

.RiffRaph .character-page_heading {
  border-radius: 0;
  width: 100%;
  padding: var(--spacing-sm) 1.16em;
  box-sizing: content-box;
  margin-left: -1.16em;
  font-family: "Palatino Linotype", serif;
  text-align: left;
}


.PinkText, .PinkText .mw-headline {
  color: var(--color-pink-6);
}
.Pink, .PinkBorder, .PinkBorder .character-page_panel, .PinkBorder .character-page_snapshot {
  border-color: var(--color-pink-7);
  outline-color: var(--color-pink-7);
}
.PinkBG .character-page_panel {
  background-color: var(--color-pink-1);
}
.PinkBG.PinkText {
  color: var(--color-pink-7);
}
.PinkText .character-page_quote {
  color: var(--color-pink-6);
}
.Pink .character-page_heading,
.Pink .character-page_heading p,
.PinkText .character-page_heading,
.PinkText .character-page_heading p {
  background-color: var(--color-pink-7);
}
.Shaded.PinkText .character-page_heading,
.Shaded.PinkText .character-page_heading p {
  background: linear-gradient(80deg, var(--color-pink-9) 0%, var(--color-pink-8) 35%, var(--color-pink-7) 100%);
}

.PinkText .character-page_heading,
.PinkText .character-page_heading .mw-headline,
.PinkText .character-page_heading p {
  color: var(--color-pink-1);
}
.character-page_heading .mw-headline {
  color: var(--color-white);
}