Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
mNo edit summary
No edit summary
Line 1: Line 1:
/* CSS placed here will be applied to all skins */


@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@700&display=swap');
/****************************************/
@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible&display=swap');
/*******  Start DRUID CSS rules *********/
/****************************************/


 
.druid-container {
.firstHeading {
    /* These variables are designed to inherit from your wiki's color variables.
font-family:'Raleway', sans-serif
      If your wiki uses a different naming scheme, change the inner names to match yours.
}
      If your wiki doesn't use color variables you should consider doing so,
 
      otherwise you can replace the inner variables or the fallback values with colors that match your wiki.
:root {
    */
--color-surface-0:#edf8fb;
    --druid-background-color: var(--wiki-content-background-color, #ffffff);
}
    --druid-background-color--rgb: var(--wiki-content-background-color--rgb, 255, 255, 255);
 
   
:root.skin-citizen-dark {
    --druid-secondary-background-color: var(--wiki-accent-color, #0077c0);
--color-surface-0:#0b1a20;
    --druid-secondary-background-color--rgb: var(--wiki-accent-color--rgb, 0, 119, 192);
}
    --druid-secondary-background-label-color: var(--wiki-accent-label-color, #fff);
 
    --druid-secondary-background-label-color--rgb: var(--wiki-accent-label-color--rgb, 255, 255, 255);
body {
   
  font-family: Atkinson Hyperlegible, var(--font-family-base);
    --druid-tertiary-background-color: var(--wiki-content-background-color--secondary, #eaecf0);
  font-variation-settings: 'GRAD' var(--font-grade);
    --druid-tertiary-background-color--rgb: var(--wiki-content-background-color--secondary--rgb, 234, 236, 240);
  font-weight: var(--font-weight-normal);
   
}
    --druid-border-color: var(--wiki-content-border-color, #a7d7f9);
 
    --druid-border-color--rgb: var(--wiki-content-border-color--rgb, 167, 215, 249);
table.wikitable tr th,table.wikitable tr td {
   
padding:.625rem 1.25rem .625rem .313rem
    --druid-link-color: var(--wiki-content-link-color, #0645ad);
}
    --druid-link-color--rgb: var(--wiki-content-link-color--rgb, 6, 69, 173);
 
    --druid-link-label-color: var(--wiki-content-link-label-color, #fff);
.wikitable sortable {
    --druid-link-label-color--rgb: var(--wiki-content-link-label-color--rgb, 255, 255, 255);
display:block;
font-size:185%;
width:100%
}
 
table.wikitable,table.prettytable {
width: 100%;
border-collapse:collapse;
background: #FFF;
color:#777;
empty-cells:show;
margin:1rem 0 1rem 0;
border-bottom: 5px solid #0077c0
}
 
table.wikitable th,table.wikitable td.hl3,table.wikitable th.hl3,table.prettytable th,table.prettytable td.hl3,table.wikitable th.hl3 {
background:@blue;
color:@text;
text-align:center
}
 
table.wikitable caption,table.prettytable caption {
font-weight:700;
margin-left:inherit;
margin-right:inherit
}
 
table.wikitable tbody,table.prettytable tbody {
display:table-row-group
}
 
.cg-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(21.875rem, 1fr));
}
 
#mw-indicator-Japan {
filter:none
}
 
.infoboxbubble {
background:var(--background-color-dp-00);
border:1px solid #0077c0;
color:var(--color-base);
font-size:85%;
object-fit:fill
}
}


img {
/* ---------------------------------  */
height:auto;
/*    Safe to edit ABOVE this line    */
max-width:100%
/* ---------------------------------  */
}


h1:after {
/* ---------------------------------  */
background:none repeat scroll 0 0 #0077c0;
/*    Do not edit below this line    */
bottom:-0;
/* ---------------------------------  */
content:"";
display:block;
height:2px;
position:relative;
width:100%
}


span.navbar a {
.druid-container {
font-size:1.56rem;
    border-image-source: url(/images/2/2c/Infobox_border.png);
text-shadow:-1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    border-image-slice: 15;
    border-image-width: 13px;
    border-image-repeat: round;
    border-width: unset;
    border-style: solid;
    border-radius: 0 0 30px 30px;
    background: none;
    float: right;
    clear: right;
    margin: 0 0 1em 1em;
width:100%;
max-width:22em;
    box-sizing: border-box;
}
}


span.navbar a,span.navbar-sub a {
@media screen and (max-width: 720px) {
color:#fff
  .druid-container {
    float: none;
    margin: 0.5rem auto;
  }
}
}


.navbarS1,.navbarS2,.navbarS3,.navbarS4,.navbarS5,.navbarTK,.navbarST,.navbarG1,.navbarG2,.navbarHS,.navbarHT,.navbarCS,.navbarPS,.navbarGS,.navbarRN {
.druid-main-images-file,
background-repeat:no-repeat
.druid-main-image {
    text-align:center;
}
}


.navbarS1 {
.druid-infobox .druid-title,
background-color:#b92a0a;
.druid-infobox .druid-section,
background-image:url(images/5/58/Navbar_Suikoden.webp)
.wikitable tr:first-of-type th:first-child {
    border-image-source: url(/images/0/07/Title_border.png);
    border-image-slice: 12;
    border-image-width: 12px;
    border-image-repeat: repeat;
    border-width: unset;
    border-style: solid;
    border-radius: 0;
    background:rgba(var(--druid-secondary-background-color--rgb));
    color:var(--druid-secondary-background-label-color);
    text-align:center;
    font-size:1.5em;
    padding:1px;
}
}


.navbarS2 {
.druid-infobox .druid-section {
background-color:#427da7;
    font-size: 1.25em;
background-image:url(images/0/06/Navbar_Suikoden_II.webp)
    font-weight: 500;
}
}


.navbarS3 {
.druid-label {
background-color:#92daa7;
    font-weight:bold;
background-image:url(images/b/b8/Navbar_Suikoden_III.webp)
    text-align: right;
box-sizing: border-box;
}
}


.navbarS4 {
.druid-row > .druid-label {
background-color:#006994;
    width: 38%;
background-image:url(images/2/27/Navbar_Suikoden_IV.webp)
    flex-shrink: 0;
}
}


.navbarS5 {
.druid-row > .druid-label,
background-color:#ceb25e;
.druid-row > .druid-data {
background-image:url(images/a/af/Navbar_Suikoden_V.webp)
padding-inline: 0.3em;
}
}


.navbarTK {
.druid-main-image,
background-color:#6d5849;
.druid-main-images {
background-image:url(images/4/47/Navbar_Suikoden_Tierkreis.webp)
    padding:5px;
}
}


.navbarST {
.druid-main-image img,
background-color:#93ac8b;
.druid-main-images img {
background-image:url(images/0/0e/Navbar_Suikoden_Tactics.webp)
    max-width:100%;
    height:auto;
}
}


.navbarG1 {
.druid-main-images-labels {
background-color:#cdccd9;
    display:flex;
background-image:url(images/a/a4/Navbar_Genso_Suikogaiden_Vol.1.webp)
    flex-direction:row;
    flex-wrap:wrap;
    justify-content: space-evenly;
    margin:0.25em;
    gap:0.25em;
}
}


.navbarG2 {
.druid-main-images-label {
background-color:#cdccd9;
    cursor:pointer;
background-image:url(images/8/87/Navbar_Genso_Suikogaiden_Vol.2.webp)
    flex:1 1 auto;
    text-align:center;
    transition:.1s ease-in;
    outline:1px solid var(--druid-link-color);
}
}


.navbarHS {
.druid-main-images-label.focused {
background-color:#7b726b;
    background:var(--druid-link-color);
background-image:url(images/3/3b/Navbar_Genso_Suikoden_Tierkreis_Hoshikuzu_no_Shiro.webp)
    color:var(--druid-link-label-color);
}
}


.navbarHT {
.druid-main-images-label:not(.focused):hover {
background-color:#008865;
    background:rgba(var(--druid-link-color--rgb), 0.25);
background-image:url(images/4/43/Navbar_Genso_Suikoden_Tsumugareshi_Hyakunen_no_Toki.webp)
}
}


.navbarCS {
.druid-toggleable-data:not(.focused),
background-color:#cfbd90;
.druid-main-images-file:not(.focused),
background-image:url(images/c/ca/Navbar_Genso_Suikoden_Card_Stories.webp)
.druid-toggleable-heading:not(.focused) {
    display:none;
}
}


.navbarPS {
.druid-row:not(:has(.druid-grid)):has(.druid-toggleable-data-empty.focused) {
background-color:#3d6b98;
    display:none;
background-image:url(images/0/03/Navbar_Pachislot_Genso_Suikoden.webp)
}
}


.navbarGS {
.druid-section:has(.druid-toggleable-heading-empty.focused) {
background-color:#10a4b7;
    display:none;
background-image:url(images/2/2d/Navbar_Genso_Suikoden.webp)
}
}


.navbarRN {
.druid-grid {
background-color:#294b80;
    display:grid;
background-image:url(images/0/01/Navbar_Runes.webp)
    gap: 0.3em;
padding: 0.35em;
}
}


#home-nav {
.druid-grid-item {
margin-top:1rem
    background:var(--druid-tertiary-background-color);
    padding:0.25em;
    border:1px solid rgba(var(--druid-border-color--rgb), 0.5);
    border-radius: 2px;
}
}


#home-nav .home-card__background:after {
.druid-grid-item > .druid-label,
background:linear-gradient(to right,#000,transparent);
.druid-grid-item > .druid-data {
bottom:0;
text-align: center;
content:"";
display:block;
left:0;
pointer-events:none;
position:absolute;
right:0;
top:0
}
}


#home-nav .home-card__foreground {
.druid-data-wide {
align-items:flex-end;
width:100%;
color:#fff;
display:flex;
font-size:150%;
font-weight:500;
height:100%;
padding:0 .938rem;
pointer-events:none;
}
}


.home-grid {
.druid-section-container > .druid-collapsible {
display:grid;
display: flex;
grid:auto-flow dense/repeat(auto-fit,minmax(15.375rem,1fr));
justify-content: space-between;
grid-auto-rows:minmax(3rem,auto);
align-items: center;
grid-gap:.625rem
}
}


.home-card {
.druid-collapsed {
border-radius:8px;
    display:none!important;
font-size:.875rem;
height:5.82rem;
position:relative
}
}


.home-card__background {
.druid-collapsible {
background:#000;
    cursor:pointer;
border-radius:4px;
    position:relative;
bottom:0;
left:0;
position:absolute;
right:0;
top:0
}
}


.home-card__background img {
.druid-collapsible::after {
height:100%;
    content:'\2013';
object-fit:cover;
    display:block;
    position:absolute;
    right:10px;
    font-size:20px;
    font-weight:bold;
    color:var(--druid-secondary-background-label-color);
}
}


.home-card__foreground {
.druid-collapsible-collapsed::after {
position:absolute
    content:'+';
}
}


.home-card.home-card--button {
.druid-section-container:has(.druid-toggleable-data-empty.focused):not(:has(.druid-toggleable-data-nonempty.focused)):not(:has(.druid-data-nonempty)) {
background:#242a31;
  display: none;
overflow:hidden;
padding:0
}
}


.home-card--button img {
/*****************************************
transition:transform .2s ease
Div support
}
*****************************************/


.home-card--button:hover img {
div.druid-row {
transform:scale(1.1)
    display:flex;
    margin-block: 1px;
    border-bottom: 1px solid #a2a9b1;
}
}


.home-link {
div.druid-row + div.druid-row {
display:grid;
margin-top: 0;
font-size:.875rem;
font-weight:500;
grid-gap:.375rem;
margin-top:.375rem;
text-align:center
}
}


span.hidden,span.citizen-section-indicator.citizen-ui-icon.mw-ui-icon-wikimedia-collapse,div.citizen-typeahead__labelItem {
div.druid-row > .druid-label {
display:none
background: none;
    color:rgba(var(--druid-secondary-background-color--rgb));
}
}


table.timeline {
.druid-infobox .druid-title {
display: table;
  font-weight: 700;
border-bottom: 0;
background:transparent
}
}


table.timeline tr {
div.druid-row:last-child {
display: flex;
  border-bottom: none;
flex-direction: column;
  padding-bottom: 10px;
border-left: 1px solid;
border-color: var( --border-color-base--darker );
padding-left: 20px
}
}


table.timeline tr td:first-child {
.druid-infobox #toc {
padding-bottom: 0;
    display:none;
font-size: 1rem;
font-weight: bold;
display: list-item;
margin-left: -7px;
padding-left: 7px;
padding-top: 0.8rem
}
}


table.timeline tr td {
border-bottom: 0
}


table.timeline tr td:last-child {
/********
padding-top: 0.2rem;
Custom display classes
padding-left: 0;
*********/
padding-right: 0
}


li::marker,td::marker {
div.druid-stacked.druid-row,
color:#0077c0
.druid-stacked div.druid-row {
    flex-direction: column;
}
}


.frontbanner {
.druid-stacked.druid-row > .druid-label,
background:url(images/8/84/Bannerbg.webp) no-repeat;
.druid-stacked .druid-row > .druid-label {
background-size: contain;
    text-align: left;
border-radius: 4px 4px 0 0
    width: 100%;
    flex-basis:unset;
}
}


.containbox {
.druid-stacked.druid-row > .druid-data,
border-radius: 4px;
.druid-stacked .druid-row > .druid-data {
border:1px solid #0077c0;
    padding-left: .75em;
margin:.2rem 0 0 0;
padding-bottom:.825rem;
background:url(images/3/39/ContainboxBL.webp) bottom left no-repeat, url(images/0/00/ContainboxBR.webp) bottom right no-repeat, url(images/4/45/ContainboxBC.webp) bottom center no-repeat
}
}


.infobox {
/* ---------------------------------  */
display:table;
/*    Do not edit above this line    */
float:right;
/* --------------------------------- */
clear:right;
width:16.875rem;
margin:.2rem .5rem 0 .5rem;
font-size:90%
}


.statbox {
/* ---------------------------------  */
width:72%;
/* Local overrides go below this line */
margin:0.313rem auto;
/* --------------------------------- */
padding-bottom:.825rem
}


.namebox {
border-radius: 4px 4px 0 0;
border: #fff 1px solid;
padding-left: 5px;
padding-bottom: 10px;
background:url(images/7/7d/NameboxTL.webp) top left no-repeat, url(images/9/9c/NameboxTR.webp) top right no-repeat, url(images/e/e0/NameboxTC.webp) top center no-repeat, url(images/d/d8/NameboxBL.webp) bottom left no-repeat, url(images/9/9e/NameboxBR.webp) bottom right no-repeat, url(images/9/95/NameboxBC.webp) bottom center no-repeat;
background-color:#0077c0;
color:#fff;
font-size: 120%
}
.starbox {
background:url(images/4/44/StarboxL.webp) left no-repeat, url(images/c/cb/StarboxR.webp) right no-repeat;
font-size: 90%
}
.headerbox {
background:url(images/3/3d/HeaderboxBL.webp) bottom left no-repeat, url(images/1/15/HeaderboxBR.webp) bottom right no-repeat
}


.tablebox {
/****************************************/
background:url(images/3/38/LabelboxL.webp) left no-repeat, url(images/2/2e/LabelboxR.webp) right no-repeat
/*******  End DRUID CSS rules  *********/
}
/****************************************/
 
.starbox,.headerbox,.tablebox {
background-color:#0077c0;
border:#fff 1px solid;
color:#fff
}
 
.imagebox {
width:100%;
background:url(images/0/07/Imagebox.webp) center no-repeat;
background-color:var(--background-color-dp-00);
background-size:contain;
margin-left:auto;
margin-right:auto;
font-size:75%
}
 
.labelbox {
width:35%;
color:#0077c0;
vertical-align:text-top;
text-align:left
}
 
.linebox {
box-shadow: inset 0 -1px 0 0 #a2a9b1
}
 
.thumb.tright {
clear: none
}
 
.card-grid {
display:grid;
grid:auto-flow dense/repeat(auto-fit,minmax(2.375rem,1fr));
grid-auto-rows:minmax(5rem,auto);
grid-gap:.625rem
}

Revision as of 13:52, 6 October 2024

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

/****************************************/
/*******  Start DRUID CSS rules *********/
/****************************************/

.druid-container {
    /* These variables are designed to inherit from your wiki's color variables.
       If your wiki uses a different naming scheme, change the inner names to match yours.
       If your wiki doesn't use color variables you should consider doing so,
       otherwise you can replace the inner variables or the fallback values with colors that match your wiki.
    */
    --druid-background-color: var(--wiki-content-background-color, #ffffff);
    --druid-background-color--rgb: var(--wiki-content-background-color--rgb, 255, 255, 255);
    
    --druid-secondary-background-color: var(--wiki-accent-color, #0077c0);
    --druid-secondary-background-color--rgb: var(--wiki-accent-color--rgb, 0, 119, 192);
    --druid-secondary-background-label-color: var(--wiki-accent-label-color, #fff);
    --druid-secondary-background-label-color--rgb: var(--wiki-accent-label-color--rgb, 255, 255, 255);
    
    --druid-tertiary-background-color: var(--wiki-content-background-color--secondary, #eaecf0);
    --druid-tertiary-background-color--rgb: var(--wiki-content-background-color--secondary--rgb, 234, 236, 240);
    
    --druid-border-color: var(--wiki-content-border-color, #a7d7f9);
    --druid-border-color--rgb: var(--wiki-content-border-color--rgb, 167, 215, 249);
    
    --druid-link-color: var(--wiki-content-link-color, #0645ad);
    --druid-link-color--rgb: var(--wiki-content-link-color--rgb, 6, 69, 173);
    --druid-link-label-color: var(--wiki-content-link-label-color, #fff);
    --druid-link-label-color--rgb: var(--wiki-content-link-label-color--rgb, 255, 255, 255);
}

/* ---------------------------------  */
/*    Safe to edit ABOVE this line    */
/* ---------------------------------  */

/* ---------------------------------  */
/*     Do not edit below this line    */
/* ---------------------------------  */

.druid-container {
    border-image-source: url(/images/2/2c/Infobox_border.png);
    border-image-slice: 15;
    border-image-width: 13px;
    border-image-repeat: round;
    border-width: unset;
    border-style: solid;
    border-radius: 0 0 30px 30px;
    background: none;
    float: right;
    clear: right;
    margin: 0 0 1em 1em;
	width:100%;
	max-width:22em;
    box-sizing: border-box;
}

@media screen and (max-width: 720px) {
  .druid-container {
    float: none;
    margin: 0.5rem auto;
  }
}

.druid-main-images-file,
.druid-main-image {
    text-align:center;
}

.druid-infobox .druid-title,
.druid-infobox .druid-section,
.wikitable tr:first-of-type th:first-child {
    border-image-source: url(/images/0/07/Title_border.png);
    border-image-slice: 12;
    border-image-width: 12px;
    border-image-repeat: repeat;
    border-width: unset;
    border-style: solid;
    border-radius: 0;
    background:rgba(var(--druid-secondary-background-color--rgb));
    color:var(--druid-secondary-background-label-color);
    text-align:center;
    font-size:1.5em;
    padding:1px;
}

.druid-infobox .druid-section {
    font-size: 1.25em;
    font-weight: 500;
}

.druid-label {
    font-weight:bold;
    text-align: right;
	box-sizing: border-box;
}

.druid-row > .druid-label {
    width: 38%;
    flex-shrink: 0;
}

.druid-row > .druid-label,
.druid-row > .druid-data {
	padding-inline: 0.3em;
}

.druid-main-image,
.druid-main-images {
    padding:5px;
}

.druid-main-image img, 
.druid-main-images img {
    max-width:100%;
    height:auto;
}

.druid-main-images-labels {
    display:flex;
    flex-direction:row;
    flex-wrap:wrap;
    justify-content: space-evenly;
    margin:0.25em;
    gap:0.25em;
}

.druid-main-images-label {
    cursor:pointer;
    flex:1 1 auto;
    text-align:center;
    transition:.1s ease-in;
    outline:1px solid var(--druid-link-color);
}

.druid-main-images-label.focused {
    background:var(--druid-link-color);
    color:var(--druid-link-label-color);
}

.druid-main-images-label:not(.focused):hover {
    background:rgba(var(--druid-link-color--rgb), 0.25);
}

.druid-toggleable-data:not(.focused),
.druid-main-images-file:not(.focused),
.druid-toggleable-heading:not(.focused) {
    display:none;
}

.druid-row:not(:has(.druid-grid)):has(.druid-toggleable-data-empty.focused) {
    display:none;
}

.druid-section:has(.druid-toggleable-heading-empty.focused) {
    display:none;
}

.druid-grid {
    display:grid;
    gap: 0.3em;
	padding: 0.35em;
}

.druid-grid-item {
    background:var(--druid-tertiary-background-color);
    padding:0.25em;
    border:1px solid rgba(var(--druid-border-color--rgb), 0.5);
    border-radius: 2px;
}

.druid-grid-item > .druid-label,
.druid-grid-item > .druid-data {
	text-align: center;
}

.druid-data-wide {
	width:100%;
}

.druid-section-container > .druid-collapsible {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.druid-collapsed {
    display:none!important;
}

.druid-collapsible {
    cursor:pointer;
    position:relative;
}

.druid-collapsible::after {
    content:'\2013';
    display:block;
    position:absolute;
    right:10px;
    font-size:20px;
    font-weight:bold;
    color:var(--druid-secondary-background-label-color);
}

.druid-collapsible-collapsed::after {
    content:'+';
}

.druid-section-container:has(.druid-toggleable-data-empty.focused):not(:has(.druid-toggleable-data-nonempty.focused)):not(:has(.druid-data-nonempty)) {
  display: none;
}

/*****************************************
Div support
*****************************************/

div.druid-row {
    display:flex;
    margin-block: 1px;
    border-bottom: 1px solid #a2a9b1;
}

div.druid-row + div.druid-row {
	margin-top: 0;
}

div.druid-row > .druid-label {
	background: none;
    color:rgba(var(--druid-secondary-background-color--rgb));
}

.druid-infobox .druid-title {
  font-weight: 700;
}

div.druid-row:last-child {
  border-bottom: none;
  padding-bottom: 10px;
}

.druid-infobox #toc {
    display:none;
}


/********
Custom display classes
*********/

div.druid-stacked.druid-row,
.druid-stacked div.druid-row {
    flex-direction: column;
}

.druid-stacked.druid-row > .druid-label,
.druid-stacked .druid-row > .druid-label {
    text-align: left;
    width: 100%;
    flex-basis:unset;
}

.druid-stacked.druid-row > .druid-data,
.druid-stacked .druid-row > .druid-data {
    padding-left: .75em;
}

/* ---------------------------------  */
/*    Do not edit above this line     */
/* ---------------------------------  */

/* ---------------------------------  */
/* Local overrides go below this line */
/* ---------------------------------  */


/****************************************/
/*******  End DRUID CSS rules   *********/
/****************************************/