Difference between revisions of "MediaWiki:Common.css"
RoyalBatty (talk | contribs) |
RoyalBatty (talk | contribs) |
||
Line 23: | Line 23: | ||
--color-gray-5: #8d8d8d; | --color-gray-5: #8d8d8d; | ||
− | --font-size-sm: 0. | + | --font-size-sm: 0.93em; |
− | --font-size-md: 1. | + | --font-size-md: 1.16em; |
− | --font-size-lg: 1. | + | --font-size-lg: 1.45em; |
− | --font-size-xl: 1. | + | --font-size-xl: 1.813em; |
− | --font-size-2xl: 2. | + | --font-size-2xl: 2.27em; |
− | --font-size-3xl: 2. | + | --font-size-3xl: 2.83em; |
− | --font-size-4xl: 3. | + | --font-size-4xl: 3.54em; |
− | --spacing-3xs: 0. | + | --spacing-3xs: 0.25em; |
− | --spacing-2xs: 0. | + | --spacing-2xs: 0.35em; |
− | --spacing-xs: 0. | + | --spacing-xs: 0.467em; |
− | --spacing-sm: 0. | + | --spacing-sm: 0.7em; |
− | --spacing-md: 1. | + | --spacing-md: 1.4em; |
− | --spacing-lg: 2. | + | --spacing-lg: 2.8em; |
− | --spacing-xl: 4. | + | --spacing-xl: 4.2em; |
− | --spacing-2xl: 5. | + | --spacing-2xl: 5.6em; |
− | --border-radius: 0. | + | --border-radius: 0.25em; |
--background-01: #efefef; | --background-01: #efefef; | ||
--background-02: #d0d0d0; | --background-02: #d0d0d0; | ||
Line 102: | Line 102: | ||
#toc { | #toc { | ||
− | margin: 0 | + | margin: 0 2em 2em 0; |
float: left; | float: left; | ||
border: none; | border: none; | ||
Line 148: | Line 148: | ||
.mn-content_horizontal-nav span { | .mn-content_horizontal-nav span { | ||
− | padding: 0. | + | padding: 0.5em 1em; |
} | } | ||
Line 162: | Line 162: | ||
.mn-content_section, | .mn-content_section, | ||
.character-page_section { | .character-page_section { | ||
− | padding: | + | padding: 1em; |
} | } | ||
Line 170: | Line 170: | ||
-5px -5px 13px var(--background-03); | -5px -5px 13px var(--background-03); | ||
width: auto; | width: auto; | ||
− | margin: 0 | + | margin: 0 1em 1em 0; |
border-radius: var(--border-radius); | border-radius: var(--border-radius); | ||
} | } | ||
.mn-content_panel, .mn-content_inset-panel { | .mn-content_panel, .mn-content_inset-panel { | ||
− | padding: | + | padding: 1em |
} | } | ||
.mn-content_inset-panel { | .mn-content_inset-panel { | ||
Line 200: | Line 200: | ||
.character-page_quote { | .character-page_quote { | ||
− | padding: | + | padding:1em; |
text-align: center; | text-align: center; | ||
color: #666665; | color: #666665; | ||
Line 216: | Line 216: | ||
font-size:18pt; | font-size:18pt; | ||
font-variant:small-caps; | font-variant:small-caps; | ||
− | padding: 0.5 | + | padding: 0.5 1em !important; |
font-weight: bold; | font-weight: bold; | ||
font-family: 'Eczar', serif; | font-family: 'Eczar', serif; | ||
Line 232: | Line 232: | ||
.character-page_gallery-set p a { | .character-page_gallery-set p a { | ||
− | margin: 0. | + | margin: 0.25em; |
} | } | ||
Line 244: | Line 244: | ||
width: 150px; | width: 150px; | ||
height: auto; | height: auto; | ||
− | margin-right: | + | margin-right: 1em; |
} | } | ||
Line 269: | Line 269: | ||
padding: 0 var(--spacing-md); | padding: 0 var(--spacing-md); | ||
box-sizing: content-box; | box-sizing: content-box; | ||
− | margin-left: -1. | + | margin-left: -1.16em; |
} | } | ||
Revision as of 16:08, 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, .character-page_heading p { background-color: var(--color-gray-8); color: var(--color-white); line-height:300%; text-align: center; font-size:18pt; font-variant:small-caps; padding: 0.5 1em !important; font-weight: bold; font-family: 'Eczar', serif; border-radius: var(--border-radius); } .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(--high-contrast-border); padding: var(--spacing-md); } .RiffRaph #title, .RiffRaph #title p { margin: var(--spacing-md); 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; } .RiffRaph .character-page_heading, .RiffRaph .character-page_heading p { border-radius: 0; width: 100%; padding: 0 var(--spacing-md); box-sizing: content-box; margin-left: -1.16em; } .PinkText, .PinkText .mw-headline { color: var(--color-pink-6); } .PinkBorder, .PinkBorder .character-page_panel { 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); } .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 p { color: var(--color-pink-1); } .character-page_heading .mw-headline { color: var(--color-white); }