MediaWiki:Common.css: Difference between revisions

From Nightlife Asia Wiki
Jump to navigation Jump to search
No edit summary
Tag: Reverted
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* General styles */
/* Enhanced styles for a modern look */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background: url(https://nightlifeasia.wiki/images/wiki_background99_test.jpg) no-repeat fixed top center / cover;
    background-color: #fcf8fe;
}


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


Line 23: Line 11:
     color: #7c25b8;
     color: #7c25b8;
     text-decoration: none;
     text-decoration: none;
    transition: color 0.3s ease;
}
}


Line 31: Line 18:
}
}


/* Header */
/* Buttons */
.mw-head {
.button, input[type="submit"], input[type="button"] {
     background-color: #522F65;
     background-color: #7c25b8;
     color: white;
     color: white;
     padding: 15px;
    border: none;
     box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
     padding: 10px 20px;
    cursor: pointer;
     border-radius: 5px;
    display: inline-block;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
}
}


.mw-head a {
.button:hover, input[type="submit"]:hover, input[type="button"]:hover {
     color: #e3d4f3;
     background-color: #5a1d8a;
    transition: color 0.3s ease;
}
}


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


/* Navigation */
/* Enhanced Navigation */
nav#p-namespaces div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a,
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,
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-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 {
nav#p-tb div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a {
     padding: 10px 15px;
     padding: 10px 15px;
     display: block;
     display: block;
    color: #7c25b8;
    font-weight: bold;
     transition: background-color 0.3s, color 0.3s;
     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,
nav#p-navigation div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a:hover,
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 {
nav#p-tb div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a:hover {
     background-color: #e3d4f3;
     background-color: #e3d4f3;
     color: #5a1d8a;
     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;
}
}


Line 73: Line 138:
     padding: 10px;
     padding: 10px;
     border-radius: 8px;
     border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
}


Line 85: Line 149:
}
}


/* Content area */
/* Typography */
.mw-body {
body {
     background-color: rgba(255, 255, 255, 0.9);
     font-family: 'Open Sans', sans-serif;
     padding: 20px;
    line-height: 1.6;
     border-radius: 8px;
    color: #333;
     box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}
 
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;
}
}


/* Buttons */
/* Change the looks of the text on sidebar */
.button, input[type="submit"], input[type="button"] {
nav#p-navigation div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a {
     background-color: #7c25b8;
     font-weight: bold;
     color: white;
     color: #7c25b8;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
}


.button:hover, input[type="submit"]:hover, input[type="button"]:hover {
nav#p-tb div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a {
     background-color: #5a1d8a;
     color: #7c25b8;
}
}


/* Forms */
/*No longer use this, we use Extension:MobileDetect instead*/
input[type="text"], input[type="password"], textarea {
/* Important: do not display certain things on Desktop*/
    border: 1px solid #ccc;
.nodesktop {
    padding: 10px;
     display: none !important;
     border-radius: 5px;
    transition: border-color 0.3s ease;
}
}


input[type="text"]:focus, input[type="password"]:focus, textarea:focus {
/* New background */
     border-color: #7c25b8;
.mw-body {
    outline: none;
     background-color: rgba(255, 255, 255, 0.8);
}
}


/* Images */
body {
.mw-body img {
    background: url(https://nightlifeasia.wiki/images/wiki_background99_test.jpg);
     max-width: 100%;
    background-repeat: no-repeat !important;
     height: auto;
    background-attachment: fixed !important;
     border-radius: 4px;
     background-position: top center;
     background-size: cover;
     background-color: #fcf8fe;
}
}


/* Footer */
#mw-page-base {
.footer {
     background-color: transparent;
     background-color: #522F65;
     background-image: none;
     color: white;
}
    padding: 20px;
 
    text-align: center;
.table.plain > tbody > tr:nth-child(odd),
    font-size: 14px;
.table > tbody > tr.plain:nth-child(odd) {
     margin-top: 20px;
     background-color: transparent !important;
}
}


/* Responsive design */
/* New background */
@media (max-width: 768px) {
    .mw-body {
        padding: 15px;
    }


    .infobox {
p.white {
        float: none;
    color: #FFFFFF;
        margin-left: 0;
}
        width: 100%;
    }


    nav#p-navigation div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a,
/*remove header on Main_Page*/
    nav#p-tb div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a {
body.page-Main_Page.ns-subject h1.firstHeading {
        padding: 10px;
    display: none;
    }
}
}


/* Infoboxes */
/** INFOBOXES **/
.infobox {
.infobox {
     border: 1px solid #020202;
     border: 1px solid #020202;
Line 166: Line 253:
     float: right;
     float: right;
     clear: right;
     clear: right;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
}
.infobox td,
.infobox td,
.infobox th {
.infobox th {
     vertical-align: top;
     vertical-align: top;
    padding: 5px;
}
}
.infobox caption {
.infobox caption {
     font-size: larger;
     font-size: larger;
     margin-left: inherit;
     margin-left: inherit;
     font-weight: bold;
}
     background-color: #522F65;
.infobox.bordered {
    color: white;
     border-collapse: collapse;
     padding: 5px;
}
.infobox.bordered td,
.infobox.bordered th {
     border: 1px solid #020202;
}
.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
     border: 0;
}
}


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


/* Accessibility */
/* Allow limiting of which header levels are shown in a TOC;
.visually-hidden {
  <div class="toclimit-3">, for instance, will limit to
    position: absolute;
  showing ==headings== and ===headings=== but no further
    width: 1px;
  (as long as there are no =headings= on the page, which
    height: 1px;
  there shouldn't be according to the MoS). */
    padding: 0;
.toclimit-2 .toclevel-1 ul,
    margin: -1px;
.toclimit-3 .toclevel-2 ul,
    overflow: hidden;
.toclimit-4 .toclevel-3 ul,
    clip: rect(0, 0, 0, 0);
.toclimit-5 .toclevel-4 ul,
    white-space: nowrap;
.toclimit-6 .toclevel-5 ul,
    border: 0;
.toclimit-7 .toclevel-6 ul {
}
  display: none;
 
/* Remove header on Main_Page */
body.page-Main_Page.ns-subject h1.firstHeading {
    display: none;
}
 
/* Custom classes */
.content-box {
    background-color: #ffffff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
 
p.white {
    color: #FFFFFF;
}
}

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