MediaWiki:Common.css: Difference between revisions

From Nightlife Asia Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Tag: Reverted
Line 1: Line 1:
/* Existing styles */
/* General styles */
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;
}


/* new style changes */
/* 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 12: Line 23:
     color: #7c25b8;
     color: #7c25b8;
     text-decoration: none;
     text-decoration: none;
    transition: color 0.3s ease;
}
}


Line 19: Line 31:
}
}


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


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


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


/* Enhanced Navigation */
/* Navigation */
/* Navigation Menu */
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;
    }
    .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;
}
/* 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 135: Line 73:
     padding: 10px;
     padding: 10px;
     border-radius: 8px;
     border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
}


Line 146: Line 85:
}
}


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


h1, h2, h3, h4, h5, h6 {
/* Buttons */
     font-family: 'Open Sans', sans-serif;
.button, input[type="submit"], input[type="button"] {
     color: #333;
     background-color: #7c25b8;
     margin-bottom: 15px;
     color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
     border-radius: 5px;
    transition: background-color 0.3s ease;
}
}


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


a {
/* Forms */
     color: #7c25b8;
input[type="text"], input[type="password"], textarea {
     text-decoration: none;
     border: 1px solid #ccc;
    padding: 10px;
     border-radius: 5px;
    transition: border-color 0.3s ease;
}
}


a:hover {
input[type="text"]:focus, input[type="password"]:focus, textarea:focus {
     color: #5a1d8a;
     border-color: #7c25b8;
     text-decoration: underline;
     outline: none;
}
}


/* Existing styles from user */
/* Images */
 
.mw-body img {
/* CSS placed here will be applied to all skins */
    max-width: 100%;
 
    height: auto;
/* change the background color of the navigation menu above the main text of wiki */
    border-radius: 4px;
li.mw-list-item {
background-image: none;
}
}


/* Change the looks of the text on the navigation menu above the main text of wiki */
/* Footer */
nav#p-namespaces div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a {
.footer {
color: #7c25b8;
    background-color: #522F65;
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 14px;
    margin-top: 20px;
}
}


nav#p-views div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a {
/* Responsive design */
color: #7c25b8;
@media (max-width: 768px) {
}
    .mw-body {
        padding: 15px;
    }


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


nav#p-tb 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,
color: #7c25b8;
    nav#p-tb div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a {
        padding: 10px;
    }
}
}


/*No longer use this, we use Extension:MobileDetect instead*/
/* Infoboxes */
/* Important: do not display certain things on Desktop*/
.infobox {
.nodesktop {
    border: 1px solid #020202;
     display: none !important;
    background-color: #f9f9f9;
    color: black;
    margin-bottom: 0.2em;
    margin-left: 1em;
    padding: 0.2em;
    float: right;
    clear: right;
    border-radius: 4px;
     box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
}


/* New background */
.infobox td,
.mw-body {
.infobox th {
     background-color: rgba(255, 255, 255, 0.8);
     vertical-align: top;
    padding: 5px;
}
}


body {
.infobox caption {
     background: url(https://nightlifeasia.wiki/images/wiki_background99_test.jpg);
     font-size: larger;
     background-repeat: no-repeat !important;
     margin-left: inherit;
     background-attachment: fixed !important;
     font-weight: bold;
     background-position: top center;
     background-color: #522F65;
     background-size: cover;
     color: white;
     background-color: #fcf8fe;
     padding: 5px;
}
}


#mw-page-base {
/* Tables */
     background-color: transparent;
.table.ktv-table > :first-child > tr:first-child,
     background-image: none;
.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;
    color: white;
}
}


.table.plain > tbody > tr:nth-child(odd),
.table.ktv-table > tbody > tr:nth-child(odd),
.table > tbody > tr.plain:nth-child(odd) {
.table > tbody > tr.ktv-table:nth-child(odd) {
     background-color:transparent !important;
     background-color: #dfe1ec;
}
}
/* New background */


p.white {
/* Accessibility */
  color:#FFFFFF;
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
}


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


/** INFOBOXES **/
/* Custom classes */
.infobox {
.content-box {
  border: 1px solid #020202;
    background-color: #ffffff;
  background-color: #f9f9f9;
    padding: 20px;
  color: black;
    margin-bottom: 20px;
  margin-bottom: 0.2em;
    border-radius: 8px;
  margin-left: 1em;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 0.2em;
  float: right;
  clear: right;
}
}
.infobox td,
 
.infobox th {
p.white {
  vertical-align: top;
    color: #FFFFFF;
}
}
.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;
  }

Revision as of 12:18, 2 August 2024

/* General styles */
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 */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
}

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

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

/* Header */
.mw-head {
    background-color: #522F65;
    color: white;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.mw-head a {
    color: #e3d4f3;
    transition: color 0.3s ease;
}

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

/* 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,
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;
    color: #7c25b8;
    font-weight: bold;
    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-tb div.vector-menu-content > ul.vector-menu-content-list > li.mw-list-item a:hover {
    background-color: #e3d4f3;
    color: #5a1d8a;
}

/* Sidebar */
#mw-panel {
    background-color: #f3f0f9;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

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

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

/* Content area */
.mw-body {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.button, input[type="submit"], input[type="button"] {
    background-color: #7c25b8;
    color: white;
    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 {
    background-color: #5a1d8a;
}

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

input[type="text"]:focus, input[type="password"]:focus, textarea:focus {
    border-color: #7c25b8;
    outline: none;
}

/* Images */
.mw-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

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

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

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

/* 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;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.infobox td,
.infobox th {
    vertical-align: top;
    padding: 5px;
}

.infobox caption {
    font-size: larger;
    margin-left: inherit;
    font-weight: bold;
    background-color: #522F65;
    color: white;
    padding: 5px;
}

/* Tables */
.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;
    color: white;
}

.table.ktv-table > tbody > tr:nth-child(odd),
.table > tbody > tr.ktv-table:nth-child(odd) {
    background-color: #dfe1ec;
}

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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