Jump to content

MediaWiki:Common.css: Difference between revisions

From Hackerpedia
No edit summary
No edit summary
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Hackerpedia Modern Tech Theme */
/* 1. MASTER LIGHT THEME - Pure white & soft greys */
body {
html, body,
     background-color: #0f172a; /* Deep Navy/Slate background */
.mw-page-container,
     color: #e2e8f0; /* Soft white/gray text for readability */
.mw-header,
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
.vector-header-container,
.mw-footer-container,
.mw-body, #content {
     background-color: #ffffff !important;
     color: #202122 !important; /* Standard high-readability dark grey text */
}
}


/* Technical Monospace Headers */
/* 2. HEADINGS - Professional Royal Blue */
h1, h2, h3, h4 {
h1, h2, h3, .firstHeading {
     color: #38bdf8; /* Soft blue for headings */
     color: #0056b3 !important;  
    font-family: 'Courier New', monospace;
     border-bottom: 2px solid #eeeeee !important;
     border-bottom: 1px solid #334155;
     font-family: 'Segoe UI', Tahoma, sans-serif;
     text-transform: uppercase;
    letter-spacing: 1px;
}
}


/* The Definition Box (The Template we created earlier) */
/* 3. SEARCH & BUTTONS - Subtle Blue Grey */
.cyber-term-box {
.cdx-button,
     background-color: #1e293b; /* Slightly lighter slate */
.cdx-search-input__button {
     border-left: 4px solid #10b981; /* Emerald accent */
     background-color: #f8f9fa !important;
     padding: 20px;
    color: #0056b3 !important;
     margin: 20px 0;
    border: 1px solid #ced4da !important;
     border-radius: 4px;
}
     box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
/* 1. Expand the Logo Container */
.mw-logo {
    padding: 10px 0 !important;
}
 
/* 2. Set the Logo Image Size */
.mw-logo-icon {
    width: 80px !important; /* Adjust this number to your liking */
     height: 80px !important; /* Keep width and height equal for square logos */
    max-width: none !important;
    max-height: none !important;
}
 
/* 3. If you have a Wordmark (Text) next to the icon */
.mw-logo-wordmark {
    height: 40px !important; /* Makes the "Hackerpedia" text larger */
     width: auto !important;
}
 
.cdx-text-input__input {
    background-color: #ffffff !important;
     color: #202122 !important;
     border: 1px solid #ced4da !important;
}
 
/* 4. SIDEBAR (MAIN MENU) */
.vector-main-menu {
    background-color: #f8f9fa !important; /* Soft grey sidebar */
     border-right: 1px solid #eeeeee !important;
}
 
.vector-group-title, .vector-menu-heading {
    color: #4b0082 !important; /* Indigo/Purple for menu headers */
    font-weight: bold;
}
}


/* Links - High visibility but not neon */
/* 5. TABS (Read, Edit, History) */
a {
.vector-menu-tabs .mw-list-item a {
     color: #10b981 !important;
    background-color: #f8f9fa !important;
     text-decoration: none;
     color: #0056b3 !important;
     border: 1px solid #eeeeee !important;
}
}


a:hover {
.vector-menu-tabs .selected a {
     text-decoration: underline;
     background-color: #ffffff !important;
     color: #34d399 !important;
     color: #d32f2f !important; /* Red for the active tab */
    border-bottom: 2px solid #d32f2f !important;
}
}


/* Sidebar and Navigation */
/* 6. LINKS - Deep Purple for a sophisticated look */
#mw-panel, #p-navigation, #p-tb {
a { color: #6f42c1 !important; }
     background-color: #0f172a;
a:visited { color: #4b0082 !important; }
a:hover { color: #d32f2f !important; text-decoration: underline; }
 
/* 7. DEFINITION BOX (CyberTerm) - Red Tech Accent */
.cyber-term-box {
     background-color: #fff9f9; /* Extremely light red tint */
    border: 1px solid #f5c2c7;
    border-left: 6px solid #d32f2f; /* Bold Crimson Red bar */
    padding: 25px;
    margin: 20px 0;
    border-radius: 4px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.05);
}
}


.mw-wiki-logo {
/* 8. CATEGORY & LANGUAGE BOXES */
     filter: hue-rotate(180deg) brightness(1.5); /* Adjusts logo to match blue/green theme */
#catlinks, .mw-portlet-lang, #p-lang {
     background-color: #f8f9fa !important;
    border: 1px solid #eeeeee !important;
    color: #202122 !important;
}
}


/* Code and technical terms */
#catlinks a {
code {
     color: #0056b3 !important;
     background-color: #334155;
    color: #f472b6; /* Pinkish-red for code snippets */
    padding: 2px 4px;
    border-radius: 3px;
}
}
/* 9. INDICATORS (Icons) */
.mw-indicators { filter: none !important; } /* Restore original icon colors */

Latest revision as of 03:19, 16 January 2026

/* 1. MASTER LIGHT THEME - Pure white & soft greys */
html, body, 
.mw-page-container, 
.mw-header, 
.vector-header-container,
.mw-footer-container,
.mw-body, #content {
    background-color: #ffffff !important;
    color: #202122 !important; /* Standard high-readability dark grey text */
}

/* 2. HEADINGS - Professional Royal Blue */
h1, h2, h3, .firstHeading {
    color: #0056b3 !important; 
    border-bottom: 2px solid #eeeeee !important;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

/* 3. SEARCH & BUTTONS - Subtle Blue Grey */
.cdx-button, 
.cdx-search-input__button {
    background-color: #f8f9fa !important;
    color: #0056b3 !important;
    border: 1px solid #ced4da !important;
}
/* 1. Expand the Logo Container */
.mw-logo {
    padding: 10px 0 !important;
}

/* 2. Set the Logo Image Size */
.mw-logo-icon {
    width: 80px !important;  /* Adjust this number to your liking */
    height: 80px !important; /* Keep width and height equal for square logos */
    max-width: none !important;
    max-height: none !important;
}

/* 3. If you have a Wordmark (Text) next to the icon */
.mw-logo-wordmark {
    height: 40px !important; /* Makes the "Hackerpedia" text larger */
    width: auto !important;
}

.cdx-text-input__input {
    background-color: #ffffff !important;
    color: #202122 !important;
    border: 1px solid #ced4da !important;
}

/* 4. SIDEBAR (MAIN MENU) */
.vector-main-menu {
    background-color: #f8f9fa !important; /* Soft grey sidebar */
    border-right: 1px solid #eeeeee !important;
}

.vector-group-title, .vector-menu-heading {
    color: #4b0082 !important; /* Indigo/Purple for menu headers */
    font-weight: bold;
}

/* 5. TABS (Read, Edit, History) */
.vector-menu-tabs .mw-list-item a {
    background-color: #f8f9fa !important;
    color: #0056b3 !important;
    border: 1px solid #eeeeee !important;
}

.vector-menu-tabs .selected a {
    background-color: #ffffff !important;
    color: #d32f2f !important; /* Red for the active tab */
    border-bottom: 2px solid #d32f2f !important;
}

/* 6. LINKS - Deep Purple for a sophisticated look */
a { color: #6f42c1 !important; }
a:visited { color: #4b0082 !important; }
a:hover { color: #d32f2f !important; text-decoration: underline; }

/* 7. DEFINITION BOX (CyberTerm) - Red Tech Accent */
.cyber-term-box {
    background-color: #fff9f9; /* Extremely light red tint */
    border: 1px solid #f5c2c7;
    border-left: 6px solid #d32f2f; /* Bold Crimson Red bar */
    padding: 25px;
    margin: 20px 0;
    border-radius: 4px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.05);
}

/* 8. CATEGORY & LANGUAGE BOXES */
#catlinks, .mw-portlet-lang, #p-lang {
    background-color: #f8f9fa !important;
    border: 1px solid #eeeeee !important;
    color: #202122 !important;
}

#catlinks a {
    color: #0056b3 !important;
}

/* 9. INDICATORS (Icons) */
.mw-indicators { filter: none !important; } /* Restore original icon colors */