MediaWiki:Vector.css: Difference between revisions

From Heavenly Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 34: Line 34:
     font-size: 100%;
     font-size: 100%;
     height: 100%;
     height: 100%;
    background-color: var(--body-background-color);
}
}


Line 43: Line 42:
     font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
     font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
     min-height: 100%;
     min-height: 100%;
     background-color: var(--body-background-color);
     background: #1c1c1c;
}
}


/* Background image container */
/* Main layout structure */
#mw-page-base {
#mw-page-base {
    position: fixed;
     height: 5em;
    top: 0;
     background-color: transparent;
    left: 0;
    right: 0;
     height: 375px;
    background: url('/resources/assets/bg.png') no-repeat;
     background-size: 1500px auto;
    z-index: -2;
}
}


/* Gradient overlay */
#mw-head-base {
#mw-page-base::after {
     margin-top: -5em;
     content: '';
     margin-left: 10em;
    position: absolute;
     height: 5em;
    top: 0;
     background-image: linear-gradient(to bottom, rgba(28, 28, 28, 0.95), rgba(28, 28, 28, 0.85));
     left: 0;
     background-position: 100% 0;
    right: 0;
     bottom: 0;
     background: var(--header-gradient);
     z-index: -1;
}
}


/* Main layout structure */
#mw-panel {
#mw-head {
     position: absolute;
     position: absolute;
     top: 0;
     top: 0;
    right: 0;
     width: 10em;
     width: 100%;
     left: 0;
     height: 2.5em;
    padding-top: 0.5em;
    background: var(--header-gradient);
    z-index: 1;
}
 
#left-navigation {
    float: left;
    margin-left: 11em;
}
 
#right-navigation {
    float: right;
    margin-right: 1em;
}
}


/* Content wrapper */
/* Content area */
#content {
#content {
     margin-left: 11em;
     margin-left: 10em;
    margin-top: 3em;
     padding: 1.25em;
     padding: 1.25em;
     background: var(--body-light);
     background: var(--body-light);
     border: 1px solid var(--body-dark);
     border: 1px solid var(--body-dark);
     border-radius: 2px;
     border-radius: 2px;
     position: relative;
     margin-top: -1em;
    z-index: 0;
}
}


/* Logo and sidebar */
/* Navigation */
#mw-navigation {
#left-navigation {
     position: absolute;
     float: left;
    top: 0;
     margin-left: 10em;
    width: 10em;
    left: 0;
     padding-top: 1em;
}
}


#p-logo {
#right-navigation {
     width: 10em;
     float: right;
    height: 160px;
     margin: 0.5em 0.5em 0;
     margin-bottom: 1em;
}
}


/* Navigation tabs */
.vector-menu-tabs {
.vector-menu-tabs {
     float: left;
     float: left;
     height: 2.5em;
     height: 2.5em;
    margin: 0;
    padding: 0;
}
}


Line 130: Line 95:
     float: left;
     float: left;
     height: 2.5em;
     height: 2.5em;
    list-style: none;
     margin: 0;
     margin: 0;
     padding: 0;
     padding: 0;
    list-style: none;
}
}


.vector-menu-tabs li {
.vector-menu-tabs li {
     float: left;
     float: left;
    line-height: 1.125em;
    display: block;
    height: 2.5em;
     margin: 0;
     margin: 0;
     padding: 0;
     padding: 0;
     background: var(--vector-tab-background);
     background: var(--body-dark);
    border: 1px solid var(--body-dark);
     white-space: nowrap;
     border-bottom: none;
    margin-right: 0.5em;
    border-radius: 2px 2px 0 0;
}
}


Line 152: Line 111:
     display: block;
     display: block;
     height: 2.5em;
     height: 2.5em;
     padding: 0 1em;
     padding: 0 0.5em;
     color: var(--background-link-color);
     color: var(--background-link-color);
     cursor: pointer;
     cursor: pointer;
    font-size: 0.8125em;
    line-height: 2.5em;
     text-decoration: none;
     text-decoration: none;
    line-height: 2.5em;
}
}


.vector-menu-tabs .selected {
.vector-menu-tabs .selected {
    background: var(--body-main);
    border-bottom: none;
    position: relative;
}
.vector-menu-tabs .selected::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
     background: var(--body-main);
     background: var(--body-main);
}
}
Line 179: Line 127:
}
}


/* Views menu (Edit, History etc) */
/* Search box */
#p-views {
#p-search {
     float: left;
     float: right;
    margin-right: 0.5em;
    margin-top: 0.5em;
}
}


#ca-edit, #ca-history, #ca-view {
#p-search h3 {
     float: left;
     display: none;
}
}


/* Search box */
.vector-search-box-inner {
.vector-search-box-inner {
     background: var(--search-box);
     background-color: rgba(0, 0, 0, 0.2);
     border-radius: 2px;
     border-radius: 2px;
     padding: 0.5em;
     padding: 0.25em;
     margin-top: 0;
}
     float: right;
 
     width: 20em;
.searchButton {
     background: none;
    border: none;
    color: var(--text-color);
     cursor: pointer;
     padding: 0.25em;
}
}


.vector-search-box input {
#searchInput {
     background: transparent;
     background: transparent;
     border: none;
     border: none;
     color: var(--text-color);
     color: var(--text-color);
     width: 100%;
     margin: 0;
     padding: 0.5em;
     padding: 0.25em;
     font-size: 0.875em;
     width: 15em;
}
}


/* Content styling */
/* First heading */
.firstHeading {
.firstHeading {
     font-size: 1.8rem;
    margin: 0 0 0.5em;
    padding: 0;
     font-size: 1.8em;
     font-weight: normal;
     font-weight: normal;
     color: var(--text-color);
     color: var(--text-color);
    margin: 0;
    padding: 0.5em 0 1em;
     border-bottom: 1px solid var(--body-dark);
     border-bottom: 1px solid var(--body-dark);
}
}


/* Links */
/* Background image */
a {
body::before {
     color: var(--background-link-color);
     content: "";
     text-decoration: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 1500px;
    height: 375px;
    background: url('/resources/assets/bg.png') no-repeat;
    background-size: 1500px auto;
    z-index: -1;
}
 
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 375px;
    background: linear-gradient(to right,
        rgba(28, 28, 28, 0.95) 0%,
        rgba(28, 28, 28, 0.85) 20%,
        rgba(28, 28, 28, 0.85) 100%
    );
     z-index: -1;
}
}


a:visited {
/* Views menu (Edit, History etc) */
     color: #4a80c4;
#p-views {
     float: left;
}
}


a:hover {
#ca-edit, #ca-history, #ca-view {
     text-decoration: underline;
     float: left;
}
}


Line 276: Line 253:
     padding: 0.5em;
     padding: 0.5em;
     text-align: center;
     text-align: center;
}
/* Links */
a {
    color: var(--background-link-color);
    text-decoration: none;
}
a:visited {
    color: #4a80c4;
}
a:hover {
    text-decoration: underline;
}
}

Revision as of 22:21, 1 May 2025

:root {
    /* Core colors */
    --body-background-color: #1c1c1c;
    --body-main: #2a2a2a;
    --body-light: rgba(28, 28, 28, 0.95);
    --body-mid: #262626;
    --body-dark: #1f1f1f;
    
    /* Text colors */
    --text-color: #fff;
    --background-text-color: rgba(255, 255, 255, 0.8);
    --background-link-color: #6ab0f4;
    
    /* UI elements */
    --vector-tab-background: var(--body-dark);
    --vector-tab-background--hover: var(--body-mid);
    --search-box: rgba(0, 0, 0, 0.2);
    --thumb-bg: var(--body-main);
    --thumb-caption-bg: var(--body-dark);
    --toc-bg: var(--body-light);
    --toc-title-bg: var(--body-dark);

    /* Gradients */
    --header-gradient: linear-gradient(to bottom, 
        rgba(28, 28, 28, 0.95) 0%,
        rgba(28, 28, 28, 0.85) 100%);
    --content-gradient: linear-gradient(to right,
        rgba(28, 28, 28, 0.7) 0%,
        rgba(28, 28, 28, 0.95) 20%);
}

/* Base layout */
html {
    font-size: 100%;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    min-height: 100%;
    background: #1c1c1c;
}

/* Main layout structure */
#mw-page-base {
    height: 5em;
    background-color: transparent;
}

#mw-head-base {
    margin-top: -5em;
    margin-left: 10em;
    height: 5em;
    background-image: linear-gradient(to bottom, rgba(28, 28, 28, 0.95), rgba(28, 28, 28, 0.85));
    background-position: 100% 0;
}

#mw-panel {
    position: absolute;
    top: 0;
    width: 10em;
    left: 0;
}

/* Content area */
#content {
    margin-left: 10em;
    padding: 1.25em;
    background: var(--body-light);
    border: 1px solid var(--body-dark);
    border-radius: 2px;
    margin-top: -1em;
}

/* Navigation */
#left-navigation {
    float: left;
    margin-left: 10em;
}

#right-navigation {
    float: right;
    margin: 0.5em 0.5em 0;
}

.vector-menu-tabs {
    float: left;
    height: 2.5em;
}

.vector-menu-tabs ul {
    float: left;
    height: 2.5em;
    margin: 0;
    padding: 0;
    list-style: none;
}

.vector-menu-tabs li {
    float: left;
    margin: 0;
    padding: 0;
    background: var(--body-dark);
    white-space: nowrap;
}

.vector-menu-tabs a {
    display: block;
    height: 2.5em;
    padding: 0 0.5em;
    color: var(--background-link-color);
    cursor: pointer;
    font-size: 0.8125em;
    line-height: 2.5em;
    text-decoration: none;
}

.vector-menu-tabs .selected {
    background: var(--body-main);
}

.vector-menu-tabs .selected a {
    color: var(--text-color);
}

/* Search box */
#p-search {
    float: right;
    margin-right: 0.5em;
    margin-top: 0.5em;
}

#p-search h3 {
    display: none;
}

.vector-search-box-inner {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    padding: 0.25em;
}

.searchButton {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.25em;
}

#searchInput {
    background: transparent;
    border: none;
    color: var(--text-color);
    margin: 0;
    padding: 0.25em;
    width: 15em;
}

/* First heading */
.firstHeading {
    margin: 0 0 0.5em;
    padding: 0;
    font-size: 1.8em;
    font-weight: normal;
    color: var(--text-color);
    border-bottom: 1px solid var(--body-dark);
}

/* Background image */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 1500px;
    height: 375px;
    background: url('/resources/assets/bg.png') no-repeat;
    background-size: 1500px auto;
    z-index: -1;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 375px;
    background: linear-gradient(to right, 
        rgba(28, 28, 28, 0.95) 0%,
        rgba(28, 28, 28, 0.85) 20%,
        rgba(28, 28, 28, 0.85) 100%
    );
    z-index: -1;
}

/* Views menu (Edit, History etc) */
#p-views {
    float: left;
}

#ca-edit, #ca-history, #ca-view {
    float: left;
}

/* Tables */
.wikitable {
    background: var(--body-main);
    border-collapse: collapse;
    margin: 1em 0;
    border: 1px solid var(--body-dark);
}

.wikitable th {
    background: var(--body-dark);
    padding: 0.5em;
    text-align: left;
}

.wikitable td {
    padding: 0.5em;
    border: 1px solid var(--body-dark);
}

/* Images and thumbnails */
.thumb {
    background: var(--thumb-bg);
    border: 1px solid var(--body-dark);
    padding: 0.5em;
    margin: 1em 0;
}

.thumbcaption {
    background: var(--thumb-caption-bg);
    padding: 0.5em;
    font-size: 0.9em;
}

/* Table of contents */
.toc {
    background: var(--toc-bg);
    border: 1px solid var(--body-dark);
    padding: 1em;
    margin: 1em 0;
}

.toc .toctitle {
    background: var(--toc-title-bg);
    padding: 0.5em;
    text-align: center;
}

/* Links */
a {
    color: var(--background-link-color);
    text-decoration: none;
}

a:visited {
    color: #4a80c4;
}

a:hover {
    text-decoration: underline;
}