MediaWiki:Common.css: Difference between revisions

From Nightlife Asia Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(102 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* Enhanced styles for a modern look */
/*remove header on Main_Page*/
 
body.page-Main_Page.ns-subject h1.firstHeading {
/* Headings */
  display: none;
h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', sans-serif;
    color: #333;
}
}


/** INFOBOXES **/
/* Links */
div.infobox{
a {
  float:right;
    color: #7c25b8;
  position:relative;
    text-decoration: none;
  width:300px;
  background:#FFF;
  font-size:.923em;
  border:1px solid #AAA;
  margin:0 0 1em 1em;
  padding:0;
}
}


div.infobox,
a:hover {
div.nav .box {
    color: #5a1d8a;
  filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr=#ffffffff,EndColorStr=#ffeeeeee);
    text-decoration: underline;
  background-image:linear-gradient(top, #fff 0%, #eee 100%);
  background-image:-o-linear-gradient(top, #fff 0%, #eee 100%);
  background-image:-moz-linear-gradient(top, #fff 0%, #eee 100%);
  background-image:-webkit-linear-gradient(top, #fff 0%, #eee 100%);
  background-image:-ms-linear-gradient(top, #fff 0%, #eee 100%);
  background-image:-webkit-gradient(linear, left top, left bottom, color-stop(0, #fff), color-stop(1, #eee));
}
}


div.infobox-n .icon {
/* Buttons */
  float:right;
.button, input[type="submit"], input[type="button"] {
  position:relative;
    background-color: #7c25b8;
  z-index:2;
    color: white;
  width:auto;
    border: none;
  margin:5px;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    display: inline-block;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
}
}


div.infobox-n .icon p {
.button:hover, input[type="submit"]:hover, input[type="button"]:hover {
  text-align:center;
    background-color: #5a1d8a;
  color:#444;
  font-size:9px!important;
  background-color:rgba(255,255,255,0.5);
  border-radius:.75em;
  line-height:1em;
  margin:.25em -.5em;
  padding:2px;
}
}


div.infobox-n .wrapper {
/* Forms */
  clear:both;
input[type="text"], input[type="password"], textarea {
  padding:0;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
}
}


div.infobox-n .statistics {
/* Enhanced Navigation */
  text-align:center;
nav#p-namespaces div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a,
  margin:0 8px;
nav#p-views div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a {
    padding: 10px 15px;
    display: block;
    transition: background-color 0.3s, color 0.3s;
}
}


div.statistics span + span { margin-left:5px; }
nav#p-namespaces div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a:hover,
 
nav#p-views div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a:hover {
div.infobox-n .heading,
    background-color: #e3d4f3;
div.nav .heading {
    color: #5a1d8a;
  font-weight:700;
  background-image:url("/mediawiki/images/b/b3/Box_overlay.png") !important;
  text-align:center;
  border:1px solid rgba(0,0,0,0.25);
  border-bottom-width:0;
  position:relative;
  z-index:1;
  font-size-adjust:.52;
  margin:-1px -1px 5px!important;
}
}


div.infobox-n .heading {
/* Sidebar Menu */
  font-family:EasonPro, "Times New Roman", serif!important;
nav#p-navigation div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a,
  font-size:1.417em!important;
nav#p-tb div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a {
  color:#fff!important;
    padding: 10px 15px;
  background-color:#444;
    display: block;
  text-shadow:rgba(0,0,0,0.75) 0 0 .25em;
    transition: background-color 0.3s, color 0.3s;
  line-height:1.176em;
  font-size-adjust:.43;
  padding:.5em!important;
}
}


div.infobox-n .subheading,
nav#p-navigation div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a:hover,
div.nav .subheading {
nav#p-tb div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a:hover {
  font-weight:700;
    background-color: #e3d4f3;
  background-color:#888;
    color: #5a1d8a;
  background-image:url("/mediawiki/images/b/b3/Box_overlay.png")!important;
  border-left:1px solid rgba(0,0,0,0.25);
  border-right:1px solid rgba(0,0,0,0.25);
  line-height:100%;
  text-align:center;
  position:relative;
  margin:0 -1px!important;
}
}


div.infobox-n .subheading {
/* Responsive Design */
  font-family:EasonPro, "Times New Roman", serif;
@media (max-width: 768px) {
  font-size:1.25em!important;
    .mw-body {
  color:#fff!important;
        padding: 15px;
  background-color:#444;
        margin: 0; /* Remove margin */
  text-shadow:rgba(0,0,0,0.75) 0 0 .25em;
    }
  z-index:1;
  line-height:1.333em;
  font-size-adjust:0.43;
  padding:.567em!important;
}


div.nav dl,
    .infobox {
div.infobox-n dl { margin:10px 0; }
        float: none;
        margin-left: 0;
        width: 100%;
    }


div.infobox-n dt {
    nav#p-navigation div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a,
  float:left;
    nav#p-tb div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a {
  text-align:right;
        padding: 10px 10px;
  width:90px;
    }
  line-height:1em;
  font-weight:700;
  clear:left;
  border-right:2px solid #999;
  margin:0 -2px 0 0;
  padding:2px 8px 2px 3px;
}
}


div.infobox-n dd {
/* Use custom font */
  float:left;
body {
  width:170px;
    font-family: 'Open Sans', sans-serif;
  font-weight:400;
    margin: 0; /* Remove margin */
  border-left:2px solid #999;
  margin:0;
  padding:2px 7px;
}
}


div.infobox-n .image_wrapper {
/* Use Font Awesome icons */
  text-align:center;
.nav-icon {
  padding:0;
    margin-right: 5px;
  margin:10px 0;
}
}


div.infobox::after,
/* Content Box */
div.nav .box::after,
.content-box {
div.infobox-n .heading::after,
    background-color: #ffffff;
div.nav .heading::after,
    padding: 20px;
div.infobox-n .subheading::after,
    margin-bottom: 20px;
div.nav .subheading::after,
    border-radius: 8px;
.table::after {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  content:"";
  position:absolute;
  width:100%;
  left:0;
  height:3px;
  background-image:url("/mediawiki/images/4/45/Shadow_after.png");
  background-size:100% 3px;
}
}


div.infobox::after,
/* Footer */
div.nav .box::after { bottom:-4px; }
.footer {
    background-color: #522F65;
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 14px;
}


div.infobox-n .heading::after,
/* Header */
div.nav .heading::after,
.mw-head {
div.infobox-n .subheading::after,
    background-color: #522F65;
div.nav .subheading::after,
    color: white;
.table::after { bottom:-3px; }
    padding: 15px;
}


/* Remove after shadow for tables that have been centered, otherwise the shadow spans the entire page */
.mw-head a {
.table[class*=center]::after,
    color: #e3d4f3;
.table.noshadowafter::after { background-image:none; }
}


div.infobox-n table,
.mw-head a:hover {
div.nav table { background-color:transparent; }
    color: #ffffff;
}


div.infobox-n.exotic dd,
/* Sidebar */
div.infobox-n.exotic dt { border-color:#2a491d!important; }
#mw-panel {
    background-color: #f3f0f9;
    padding: 10px;
    border-radius: 8px;
}


div.infobox-n.exotic .heading,
#mw-panel .vector-menu-content-list a {
div.infobox-n.exotic .subheading { background-color:#3c6829!important; }
    color: #522F65;
    font-weight: bold;
}


div.infobox-n.tanker-role dd,
#mw-panel .vector-menu-content-list a:hover {
div.infobox-n.tanker-role dt { border-color:#4871a0!important; }
    color: #7c25b8;
}


div.infobox-n.tanker-role .heading,
/* Typography */
div.infobox-n.tanker-role .subheading { background-color:#5587c1!important; }
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
}


div.infobox-n.dps-role dd,
h1, h2, h3, h4, h5, h6 {
div.infobox-n.dps-role dt { border-color:#9a4848 !important; }
    font-family: 'Open Sans', sans-serif;
    color: #333;
    margin-bottom: 15px;
}


div.infobox-n.dps-role .heading,
p {
div.infobox-n.dps-role .subheading { background-color:#bb6363 !important; }
    margin-bottom: 15px;
}


div.infobox-n.pet-role dd,
a {
div.infobox-n.pet-role dt { border-color:#479e91 !important; }
    color: #7c25b8;
    text-decoration: none;
}


div.infobox-n.pet-role .heading,
a:hover {
div.infobox-n.pet-role .subheading { background-color:#5fb7aa !important; }
    color: #5a1d8a;
    text-decoration: underline;
}


div.infobox-n.crafting-role dd,
/* Existing styles from user */
div.infobox-n.crafting-role dt { border-color:#777d9e!important; }


div.infobox-n.crafting-role .heading,
/* change the background color of the navigation menu above the main text of wiki */
div.infobox-n.crafting-role .subheading { background-color:#878eb5!important; }
li.mw-list-item {
    background-image: none;
}


div.infobox-n.mixed-role dd,
/* Change the looks of the text on the navigation menu above the main text of wiki */
div.infobox-n.mixed-role dt { border-color:#ac8920!important; }
nav#p-namespaces div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a {
    color: #7c25b8;
}


div.infobox-n.mixed-role .heading,
nav#p-views div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a {
div.infobox-n.mixed-role .subheading { background-color:#deb94e!important; }
    color: #7c25b8;
}


div.infobox-n.buff dd,
/* Change the looks of the text on sidebar */
div.infobox-n.buff dt { border-color:#399!important; }
nav#p-navigation div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a {
    font-weight: bold;
    color: #7c25b8;
}


div.infobox-n.buff .heading,
nav#p-tb div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a {
div.infobox-n.buff .subheading { background-color:#399!important; }
    color: #7c25b8;
}


div.infobox-n.debuff dd,
/*No longer use this, we use Extension:MobileDetect instead*/
div.infobox-n.debuff dt { border-color:#363!important; }
/* Important: do not display certain things on Desktop*/
.nodesktop {
    display: none !important;
}


div.infobox-n.debuff .heading,
/* New background */
div.infobox-n.debuff .subheading { background-color:#363!important; }
.mw-body {
    background-color: rgba(255, 255, 255, 0.8);
}


div.infobox-n.armor dd,
body {
div.infobox-n.weapon dd,
    background: url(https://nightlifeasia.wiki/images/wiki_background99_test.jpg);
div.infobox-n.item dd,
    background-repeat: no-repeat !important;
div.infobox-n.armor dt,
    background-attachment: fixed !important;
div.infobox-n.weapon dt,
    background-position: top center;
div.infobox-n.item dt { border-color:#C30; }
    background-size: cover;
    background-color: #fcf8fe;
}


div.infobox-n.armor .heading,
#mw-page-base {
div.infobox-n.weapon .heading,
    background-color: transparent;
div.infobox-n.item .heading,
    background-image: none;
div.infobox-n.armor .subheading,
}
div.infobox-n.weapon .subheading,
div.infobox-n.item .subheading { background:#C30; }


div.infobox-n.skin dd,
.table.plain > tbody > tr:nth-child(odd),
div.infobox-n.skin dt { border-color:#C4003E; }
.table > tbody > tr.plain:nth-child(odd) {
    background-color: transparent !important;
}


div.infobox-n.skin .heading,
/* New background */
div.infobox-n.skin .subheading { background:#C4003E; }


div.infobox-n.recipe {
p.white {
  width:300px;
    color: #FFFFFF;
  display:inline-block;
  float:none;
  clear:none;
  vertical-align:top;
  font-size:1em;
  margin:0 1em 1em 0;
}
}


div.infobox-n.recipe .heading,
/*remove header on Main_Page*/
div.infobox-n.recipe .subheading {
body.page-Main_Page.ns-subject h1.firstHeading {
  font-size:1.133em;
    display: none;
  background:#533610;
}
}


div.infobox-n.recipe .wrapper { padding:0 10px; }
/** INFOBOXES **/
.infobox {
    border: 1px solid #020202;
    background-color: #f9f9f9;
    color: black;
    margin-bottom: 0.2em;
    margin-left: 1em;
    padding: 0.2em;
    float: right;
    clear: right;
}
.infobox td,
.infobox th {
    vertical-align: top;
}
.infobox caption {
    font-size: larger;
    margin-left: inherit;
}
.infobox.bordered {
    border-collapse: collapse;
}
.infobox.bordered td,
.infobox.bordered th {
    border: 1px solid #020202;
}
.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
    border: 0;
}


div.infobox-n.crafting .heading,
/** TABLES **/
div.infobox-n.crafting .subheading { background:#533610; }
/* KTV Table */
.table.ktv-table > :first-child > tr:first-child,
.table.ktv-table > tbody > tr.heading,
.table.ktv-table > :first-child > tr:first-child > *,
.table.ktv-table > tbody > tr.heading > * {
    background-color: #522F65 !important;
    border-color: #777d9e !important;
}
 
.table.ktv-table > tbody > tr:nth-child(odd),
.table > tbody > tr.ktv-table:nth-child(odd) {
    background-color: #dfe1ec;
}


div.infobox-n.crafting dd,
/* Allow limiting of which header levels are shown in a TOC;
div.infobox-n.recipe dd,
  <div class="toclimit-3">, for instance, will limit to
div.infobox-n.crafting dt,
  showing ==headings== and ===headings=== but no further
div.infobox-n.recipe dt { border-color:#533610; }
  (as long as there are no =headings= on the page, which
 
  there shouldn't be according to the MoS). */
div.infobox-n.npc dd,
.toclimit-2 .toclevel-1 ul,
div.infobox-n.npc dt { border-color:#390; }
.toclimit-3 .toclevel-2 ul,
 
.toclimit-4 .toclevel-3 ul,
div.infobox-n.npc .heading,
.toclimit-5 .toclevel-4 ul,
div.infobox-n.npc .subheading { background:#390; }
.toclimit-6 .toclevel-5 ul,
 
.toclimit-7 .toclevel-6 ul {
div.infobox-n.action dd,
  display: none;
div.infobox-n.action dt { border-color:#999; }
}
 
div.infobox-n.trait dd,
div.infobox-n.trait dt { border-color:#bb7639; }
 
div.infobox-n.trait .heading,
div.infobox-n.trait .subheading { background:#444; }
 
div.infobox-n.trait .heading,
div.infobox-n.trait .subheading { background:#ce8d54; }
 
/* CUSTOM: Overwritten with STFI - div.infobox-n.action .icon > div { border:2px solid #111; } */
 
div.infobox-n.effect .debuff { background:#363; }
 
div.infobox-n.effect .buff { background:#399; }
 
div.infobox-n.pet dd,
div.infobox-n.pet dt { border-color:#360; }
 
div.infobox-n.pet .heading,
div.infobox-n.pet .subheading { background:#360; }
 
div.infobox-n.quest dd,
div.infobox-n.quest dt { border-color:#eea63a; }
 
div.infobox-n.quest .heading,
div.infobox-n.quest .subheading { background:#efaa43; }
 
div.infobox-n.area dd,
div.infobox-n.area dt { border-color:#306; }
 
div.infobox-n.area .heading,
div.infobox-n.area .subheading { background:#306; }

Latest revision as of 23:03, 18 August 2024

/* Enhanced styles for a modern look */

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', sans-serif;
    color: #333;
}

/* Links */
a {
    color: #7c25b8;
    text-decoration: none;
}

a:hover {
    color: #5a1d8a;
    text-decoration: underline;
}

/* Buttons */
.button, input[type="submit"], input[type="button"] {
    background-color: #7c25b8;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    display: inline-block;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
}

.button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    background-color: #5a1d8a;
}

/* Forms */
input[type="text"], input[type="password"], textarea {
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
}

/* Enhanced Navigation */
nav#p-namespaces div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a,
nav#p-views div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a {
    padding: 10px 15px;
    display: block;
    transition: background-color 0.3s, color 0.3s;
}

nav#p-namespaces div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a:hover,
nav#p-views div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a:hover {
    background-color: #e3d4f3;
    color: #5a1d8a;
}

/* Sidebar Menu */
nav#p-navigation div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a,
nav#p-tb div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a {
    padding: 10px 15px;
    display: block;
    transition: background-color 0.3s, color 0.3s;
}

nav#p-navigation div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a:hover,
nav#p-tb div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a:hover {
    background-color: #e3d4f3;
    color: #5a1d8a;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mw-body {
        padding: 15px;
        margin: 0; /* Remove margin */
    }

    .infobox {
        float: none;
        margin-left: 0;
        width: 100%;
    }

    nav#p-navigation div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a,
    nav#p-tb div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a {
        padding: 10px 10px;
    }
}

/* Use custom font */
body {
    font-family: 'Open Sans', sans-serif;
    margin: 0; /* Remove margin */
}

/* Use Font Awesome icons */
.nav-icon {
    margin-right: 5px;
}

/* Content Box */
.content-box {
    background-color: #ffffff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    background-color: #522F65;
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 14px;
}

/* Header */
.mw-head {
    background-color: #522F65;
    color: white;
    padding: 15px;
}

.mw-head a {
    color: #e3d4f3;
}

.mw-head a:hover {
    color: #ffffff;
}

/* Sidebar */
#mw-panel {
    background-color: #f3f0f9;
    padding: 10px;
    border-radius: 8px;
}

#mw-panel .vector-menu-content-list a {
    color: #522F65;
    font-weight: bold;
}

#mw-panel .vector-menu-content-list a:hover {
    color: #7c25b8;
}

/* Typography */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
}

a {
    color: #7c25b8;
    text-decoration: none;
}

a:hover {
    color: #5a1d8a;
    text-decoration: underline;
}

/* Existing styles from user */

/* change the background color of the navigation menu above the main text of wiki */
li.mw-list-item {
    background-image: none;
}

/* Change the looks of the text on the navigation menu above the main text of wiki */
nav#p-namespaces div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a {
    color: #7c25b8;
}

nav#p-views div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a {
    color: #7c25b8;
}

/* Change the looks of the text on sidebar */
nav#p-navigation div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a {
    font-weight: bold;
    color: #7c25b8;
}

nav#p-tb div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a {
    color: #7c25b8;
}

/*No longer use this, we use Extension:MobileDetect instead*/
/* Important: do not display certain things on Desktop*/
.nodesktop {
    display: none !important;
}

/* New background */
.mw-body {
    background-color: rgba(255, 255, 255, 0.8);
}

body {
    background: url(https://nightlifeasia.wiki/images/wiki_background99_test.jpg);
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    background-position: top center;
    background-size: cover;
    background-color: #fcf8fe;
}

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

.table.plain > tbody > tr:nth-child(odd),
.table > tbody > tr.plain:nth-child(odd) {
    background-color: transparent !important;
}

/* New background */

p.white {
    color: #FFFFFF;
}

/*remove header on Main_Page*/
body.page-Main_Page.ns-subject h1.firstHeading {
    display: none;
}

/** INFOBOXES **/
.infobox {
    border: 1px solid #020202;
    background-color: #f9f9f9;
    color: black;
    margin-bottom: 0.2em;
    margin-left: 1em;
    padding: 0.2em;
    float: right;
    clear: right;
}
.infobox td,
.infobox th {
    vertical-align: top;
}
.infobox caption {
    font-size: larger;
    margin-left: inherit;
}
.infobox.bordered {
    border-collapse: collapse;
}
.infobox.bordered td,
.infobox.bordered th {
    border: 1px solid #020202;
}
.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
    border: 0;
}

/** TABLES **/
/* KTV Table */
.table.ktv-table > :first-child > tr:first-child,
.table.ktv-table > tbody > tr.heading,
.table.ktv-table > :first-child > tr:first-child > *,
.table.ktv-table > tbody > tr.heading > * {
    background-color: #522F65 !important;
    border-color: #777d9e !important;
}
  
.table.ktv-table > tbody > tr:nth-child(odd),
.table > tbody > tr.ktv-table:nth-child(odd) {
    background-color: #dfe1ec;
}

/* Allow limiting of which header levels are shown in a TOC;
   <div class="toclimit-3">, for instance, will limit to
   showing ==headings== and ===headings=== but no further
   (as long as there are no =headings= on the page, which
   there shouldn't be according to the MoS). */
.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;
}