MediaWiki:Common.css: Difference between revisions

Jump to navigation Jump to search
Undo revision 7609 by Prince of asia (talk)
No edit summary
Tag: Reverted
(Undo revision 7609 by Prince of asia (talk))
Tag: Undo
Line 1: Line 1:
/* General styles */
/* Existing 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 */
/* new style changes */
/* 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 12:
     color: #7c25b8;
     color: #7c25b8;
     text-decoration: none;
     text-decoration: none;
    transition: color 0.3s ease;
}
}


Line 31: Line 19:
}
}


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


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


Line 85: Line 146:
}
}


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


/* Buttons */
h1, h2, h3, h4, h5, h6 {
.button, input[type="submit"], input[type="button"] {
     font-family: 'Open Sans', sans-serif;
     background-color: #7c25b8;
     color: #333;
     color: white;
     margin-bottom: 15px;
     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 {
p {
     background-color: #5a1d8a;
     margin-bottom: 15px;
}
}


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


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


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


/* Footer */
/* 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 {
    background-color: #522F65;
color: #7c25b8;
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 14px;
    margin-top: 20px;
}
}


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


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


    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 {
color: #7c25b8;
        padding: 10px;
    }
}
}


/* Infoboxes */
/*No longer use this, we use Extension:MobileDetect instead*/
.infobox {
/* Important: do not display certain things on Desktop*/
    border: 1px solid #020202;
.nodesktop {
    background-color: #f9f9f9;
     display: none !important;
    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,
/* New background */
.infobox th {
.mw-body {
     vertical-align: top;
     background-color: rgba(255, 255, 255, 0.8);
    padding: 5px;
}
}


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


/* Tables */
#mw-page-base {
.table.ktv-table > :first-child > tr:first-child,
     background-color: transparent;
.table.ktv-table > tbody > tr.heading,
     background-image: none;
.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.plain > tbody > tr:nth-child(odd),
.table > tbody > tr.ktv-table:nth-child(odd) {
.table > tbody > tr.plain:nth-child(odd) {
     background-color: #dfe1ec;
     background-color:transparent !important;
}
}
/* New background */


/* Accessibility */
p.white {
.visually-hidden {
  color:#FFFFFF;
    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;
}
}


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


p.white {
/** TABLES **/
     color: #FFFFFF;
/* 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;
  }

Navigation menu