MediaWiki:Common.css: Difference between revisions

From Frutiger Space Wikipedia!
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
/* =================================================================== */
/* == FRUTIGER AERO THEME for MediaWiki Vector Skin                == */
/* == by Gemini                                                    == */
/* == Updated: Header Background & Custom Logo                      == */
/* =================================================================== */
/* --- :root variables for easy customization --- */
:root {
:root {
     --fa-sky-blue-light: #88c9f5;
     --fa-sky-blue-light: #88c9f5;
Line 20: Line 13:
     --fa-link-hover-color: #007bff;
     --fa-link-hover-color: #007bff;


     /* --- Custom Image URLs (Replace these!) --- */
     /* --- NEW: Custom Image URLs --- */
     --fa-logo-image: url('https://cdn.discordapp.com/attachments/1372618624740884513/1411444571526791409/FrutigerWikiLogo.png?ex=68b8a231&is=68b750b1&hm=15cf551d120189f9b327f78e531848dcca0e9796d784502a275cfc59d8705f7f&'); /* Placeholder: Replace with your logo URL */
     --fa-logo-image: url('https://cdn.discordapp.com/attachments/1372618624740884513/1411444571526791409/FrutigerWikiLogo.png?ex=68b8a231&is=68b750b1&hm=15cf551d120189f9b327f78e531848dcca0e9796d784502a275cfc59d8705f7f&/120px-Windows_Vista_logo.png'); /* Placeholder: Replace with your logo URL */
     --fa-top-background-image: url('https://cdn.discordapp.com/attachments/1372618624740884513/1412158578185207929/Aero_Page.png?ex=68b89829&is=68b746a9&hm=d451bfaeddf40fb5854ed3bf4b2f5878c0bf43135ec38a516355f9e8fa72230c&'); /* Placeholder: Replace with your top background image URL */
     --fa-top-background-image: url('https://cdn.discordapp.com/attachments/1372618624740884513/1412158578185207929/Aero_Page.png?ex=68b89829&is=68b746a9&hm=d451bfaeddf40fb5854ed3bf4b2f5878c0bf43135ec38a516355f9e8fa72230c&'); /* Placeholder: Replace with your top background image URL */
}
}
Line 32: Line 25:
     font-family: var(--fa-font-family);
     font-family: var(--fa-font-family);
     color: var(--fa-text-color);
     color: var(--fa-text-color);
     /* The main background is now just the lower gradient. The top image is handled by the header. */
     /* The quintessential Frutiger Aero background: a soft, optimistic gradient */
     background: linear-gradient(to bottom, #d4f0ff 0%, #a2d7f5 100%) fixed;
     background: linear-gradient(to bottom, #d4f0ff 0%, #a2d7f5 100%) fixed;
     background-size: cover;
     background-size: cover;
     background-attachment: fixed;
     background-attachment: fixed;
}
/* --- NEW: Custom Top Half Background --- */
/* We'll use a pseudo-element on the body to create a distinct top background image. */
/* This allows the main body background to handle the lower gradient/color. */
body::before {
    content: '';
    position: fixed; /* Fixed position so it stays in place on scroll */
    top: 0;
    left: 0;
    width: 100%;
    height: 350px; /* Adjust this height to control how much of the top background is visible */
    background-image: var(--fa-top-background-image);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: -1; /* Place it behind other content */
    box-shadow: inset 0 -10px 15px rgba(0,0,0,0.1); /* Subtle fade at the bottom of the image */
}
}


Line 52: Line 63:
/* =========================================== */
/* =========================================== */


/* --- MODIFIED: Header area now has the background image --- */
/* Main content area - this is our primary "glass" panel */
.mw-header {
    background-image: var(--fa-top-background-image);
    background-size: cover;
    background-position: center 30%; /* Adjust vertical position of background */
    background-repeat: no-repeat;
    padding-bottom: 50px; /* Creates space for the image to show and pushes content down */
    border-bottom: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
 
/* --- NEW: Style header links for visibility on the new background --- */
#p-personal ul li a {
    color: white !important; /* Force color to white */
    text-shadow: 0 1px 2px rgba(0,0,0,0.7);
}
 
#p-personal ul li a:hover {
    text-decoration: underline;
}
 
/* Icon for user tools */
#p-personal .mw-ui-icon {
  filter: brightness(0) invert(1); /* Makes the default black icon white */
}
 
 
/* --- MODIFIED: Main content area positioning --- */
.mw-body,
.mw-body,
#content {
#content {
Line 91: Line 75:
     backdrop-filter: blur(15px);
     backdrop-filter: blur(15px);
      
      
     /* Use a negative margin to pull the glass panel UP, slightly overlapping the header */
     margin-top: 50px; /* Adjust this to give space below the top background image */
     margin-top: -30px;  
}
 
/* Header area (where search and user links are) */
.mw-header {
     background: none; /* Remove default background to let the body gradient show through */
}
}


Line 105: Line 93:


/* =========================================== */
/* =========================================== */
/* == Custom Logo Section                     == */
/* == NEW: Custom Logo Section             == */
/* =========================================== */
/* =========================================== */
#p-logo {
#p-logo {

Revision as of 04:57, 3 September 2025

:root {
    --fa-sky-blue-light: #88c9f5;
    --fa-sky-blue-medium: #54a9e0;
    --fa-sky-blue-dark: #2a8ad0;
    --fa-grass-green: #77b900;
    --fa-grass-green-dark: #669c00;

    --fa-glass-bg: rgba(255, 255, 255, 0.75);
    --fa-glass-border: rgba(0, 0, 0, 0.1);
    --fa-font-family: 'Segoe UI', Frutiger, 'Frutiger Linotype', 'Dejavu Sans', 'Helvetica Neue', Arial, sans-serif;
    --fa-text-color: #222;
    --fa-link-color: #005ab8;
    --fa-link-hover-color: #007bff;

    /* --- NEW: Custom Image URLs --- */
    --fa-logo-image: url('https://cdn.discordapp.com/attachments/1372618624740884513/1411444571526791409/FrutigerWikiLogo.png?ex=68b8a231&is=68b750b1&hm=15cf551d120189f9b327f78e531848dcca0e9796d784502a275cfc59d8705f7f&/120px-Windows_Vista_logo.png'); /* Placeholder: Replace with your logo URL */
    --fa-top-background-image: url('https://cdn.discordapp.com/attachments/1372618624740884513/1412158578185207929/Aero_Page.png?ex=68b89829&is=68b746a9&hm=d451bfaeddf40fb5854ed3bf4b2f5878c0bf43135ec38a516355f9e8fa72230c&'); /* Placeholder: Replace with your top background image URL */
}

/* =========================================== */
/* == 1. Overall Page & Body Look           == */
/* =========================================== */

body {
    font-family: var(--fa-font-family);
    color: var(--fa-text-color);
    /* The quintessential Frutiger Aero background: a soft, optimistic gradient */
    background: linear-gradient(to bottom, #d4f0ff 0%, #a2d7f5 100%) fixed;
    background-size: cover;
    background-attachment: fixed;
}

/* --- NEW: Custom Top Half Background --- */
/* We'll use a pseudo-element on the body to create a distinct top background image. */
/* This allows the main body background to handle the lower gradient/color. */
body::before {
    content: '';
    position: fixed; /* Fixed position so it stays in place on scroll */
    top: 0;
    left: 0;
    width: 100%;
    height: 350px; /* Adjust this height to control how much of the top background is visible */
    background-image: var(--fa-top-background-image);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: -1; /* Place it behind other content */
    box-shadow: inset 0 -10px 15px rgba(0,0,0,0.1); /* Subtle fade at the bottom of the image */
}

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

/* =========================================== */
/* == 2. Main Layout Structure (The "Glass") == */
/* =========================================== */

/* Main content area - this is our primary "glass" panel */
.mw-body,
#content {
    background-color: var(--fa-glass-bg);
    border: 1px solid var(--fa-glass-border);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    
    /* This adds the blurry glass effect, a hallmark of Aero */
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    
    margin-top: 50px; /* Adjust this to give space below the top background image */
}

/* Header area (where search and user links are) */
.mw-header {
    background: none; /* Remove default background to let the body gradient show through */
}

/* Page Title */
h1.firstHeading {
    color: #1a4a75;
    font-weight: 600;
    border-bottom: 1px solid var(--fa-sky-blue-light);
    padding-bottom: 0.4em;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

/* =========================================== */
/* == NEW: Custom Logo Section              == */
/* =========================================== */
#p-logo {
    /* Hide the default text logo */
    text-indent: -9999px; 
    overflow: hidden;
    width: 100%;
    height: 100%; /* Make sure it takes up the full space of its container */
    margin: 0;
    padding: 0;
}

#p-logo a {
    display: block;
    background-image: var(--fa-logo-image);
    background-size: contain; /* Adjust to 'cover' or specific pixels if needed */
    background-repeat: no-repeat;
    background-position: center;
    width: 135px; /* Adjust width of the logo container */
    height: 135px; /* Adjust height of the logo container */
    margin: 10px auto; /* Center the logo and add some margin */
    border-radius: 50%; /* Optional: make the logo circular */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Subtle shadow for depth */
    transition: transform 0.2s ease-in-out;
}

#p-logo a:hover {
    transform: scale(1.05); /* Slight scale up on hover */
}


/* =========================================== */
/* == 3. Glossy Elements & Buttons          == */
/* =========================================== */

/* This is the core "glossy" effect we will apply to several elements. */
.frutiger-glossy {
    border: 1px solid rgba(0,0,0,0.25);
    border-radius: 5px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1), inset 0 1px 1px rgba(255,255,255,0.4);
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
    color: white !important;
    font-weight: bold;
}

/* --- Search Bar --- */
#simpleSearch #searchInput {
    border: 1px solid var(--fa-sky-blue-medium);
    border-radius: 15px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.15);
    transition: all 0.2s ease-in-out;
}
#simpleSearch #searchInput:focus {
    border-color: var(--fa-grass-green);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1), 0 0 5px var(--fa-grass-green);
}

/* --- Main Tabs (Article, Talk, Read, Edit, etc.) --- */
#p-views ul li a {
    transition: all 0.2s ease;
}

#p-views ul li.selected a,
#p-views ul li a:hover {
    background: var(--fa-glass-bg);
    border-radius: 6px 6px 0 0;
    border: 1px solid var(--fa-glass-border);
    border-bottom: none;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
}

/* --- Buttons (e.g., "Save page", "Show preview") --- */
.oo-ui-buttonElement-framed.oo-ui-labelElement > .oo-ui-buttonElement-button {
    background: linear-gradient(to bottom, var(--fa-sky-blue-light), var(--fa-sky-blue-dark));
    color: white !important;
    text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
    border: 1px solid var(--fa-sky-blue-dark);
    border-radius: 5px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 1px 2px rgba(0,0,0,0.2);
    transition: all 0.15s ease;
}

.oo-ui-buttonElement-framed.oo-ui-labelElement.oo-ui-flagged-progressive > .oo-ui-buttonElement-button {
    background: linear-gradient(to bottom, var(--fa-grass-green), var(--fa-grass-green-dark));
    border-color: var(--fa-grass-green-dark);
}

.oo-ui-buttonElement-framed.oo-ui-labelElement > .oo-ui-buttonElement-button:hover {
    filter: brightness(1.1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 2px 4px rgba(0,0,0,0.3);
}

.oo-ui-buttonElement-framed.oo-ui-labelElement > .oo-ui-buttonElement-button:active {
    filter: brightness(0.9);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}


/* =========================================== */
/* == 4. Sidebar / Navigation               == */
/* =========================================== */

/* The entire sidebar container */
#mw-panel {
    background: none;
    padding-top: 20px;
}

.mw-portlet {
    background: none;
    margin-bottom: 1.5em;
}

/* The glossy header for each sidebar section (Navigation, Tools, etc.) */
.mw-portlet h3 {
    background: linear-gradient(to bottom, var(--fa-sky-blue-light) 0%, var(--fa-sky-blue-medium) 100%);
    border: 1px solid var(--fa-sky-blue-dark);
    border-radius: 6px;
    padding: 8px 12px !important;
    color: white;
    font-size: 1em;
    font-weight: bold;
    text-shadow: 0 1px 1px rgba(0,0,0,0.25);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.3);
}

/* The list of links within each sidebar section */
.mw-portlet .mw-portlet-body ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mw-portlet .mw-portlet-body li {
    padding: 0;
}

.mw-portlet .mw-portlet-body li a {
    display: block;
    padding: 6px 15px;
    margin: 2px 0;
    color: #1a4a75;
    text-shadow: 1px 1px 1px white;
    transition: all 0.2s ease;
    border-radius: 5px;
}

.mw-portlet .mw-portlet-body li a:hover {
    background-color: var(--fa-grass-green);
    color: white;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
    text-decoration: none;
}

.mw-portlet .mw-portlet-body li#n-mainpage-description a {
    font-weight: bold;
}

/* =========================================== */
/* == 5. Content Elements (TOC, Infoboxes)  == */
/* =========================================== */

/* Table of Contents */
#toc, .toc {
    background-color: rgba(220, 240, 255, 0.6); /* Lighter, more transparent blue */
    border: 1px solid var(--fa-sky-blue-light);
    border-radius: 6px;
    padding: 10px;
}
#toc .toctitle, .toc .toctitle {
    text-align: center;
    font-weight: bold;
}

/* Infoboxes */
.infobox {
    background-color: #f5fcff;
    border: 1px solid var(--fa-sky-blue-light);
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.infobox .infobox-title, .infobox caption {
    background-color: var(--fa-sky-blue-light);
    border-bottom: 1px solid var(--fa-sky-blue-medium);
    font-weight: bold;
}

/* Generic Wikitables */
table.wikitable {
    border: 1px solid #a2d7f5;
    background: #f5fcff;
}
table.wikitable > tr > th, table.wikitable > * > tr > th {
    background: #e2f2ff;
    border-color: #a2d7f5;
}
table.wikitable > tr > td, table.wikitable > * > tr > td {
    border-color: #a2d7f5;
}