MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
(69 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
/* SEARCH RESULT CREATE LINK */ | |||
/* Ensure the 'Create the page' link is visible */ | |||
.mw-search-createlink { | |||
display: block !important; /* Force it to appear */ | |||
font-size: 16px; /* Adjust the font size for Minerva */ | |||
color: #007bff; /* Link color */ | |||
font-weight: bold; /* Make it stand out */ | |||
margin: 10px 0; /* Add some spacing */ | |||
text-align: center; /* Center-align for better visibility in mobile */ | |||
} | |||
/* Style the 'Create the page' link */ | |||
.mw-search-createlink a.new { | |||
color: #007bff !important; /* Set the link color */ | |||
text-decoration: underline; /* Ensure it's clear it’s a link */ | |||
padding: 5px; /* Add padding for touch-friendly design */ | |||
} | |||
/* Hover effect for the link (desktop use) */ | |||
.mw-search-createlink a.new:hover { | |||
color: #0056b3; /* Darken the link color on hover */ | |||
text-decoration: none; /* Remove underline on hover */ | |||
} | |||
/* Adjust for better display in mobile layout */ | |||
.minerva .mw-search-createlink { | |||
padding: 10px; | |||
background-color: #f8f9fa; /* Light background for contrast */ | |||
border: 1px solid #e0e0e0; /* Subtle border */ | |||
border-radius: 5px; /* Rounded corners */ | |||
margin-top: 15px; /* Add spacing above */ | |||
} | |||
/* General page styling adjustments */ | |||
/* Hide the sidebar/navigation drawer on the left side of the header */ | |||
#mw-mf-page-left { | |||
display: none !important; /* Completely hide the sidebar */ | |||
} | |||
/* If you also want to hide the icon that opens the sidebar */ | |||
#mw-mf-main-menu-button { | |||
display: none !important; /* Hide the button/icon that toggles the sidebar */ | |||
} | |||
/* Remove any borders, padding, or margins above .minerva-header */ | |||
.minerva-header { | |||
border-top: none !important; /* Ensure no top border */ | |||
margin-top: 0 !important; /* Remove any top margin */ | |||
padding-top: 0 !important; /* Remove any top padding */ | |||
box-shadow: none !important; /* Remove shadow if it's causing the line */ | |||
} | |||
/* Ensure the parent container of .minerva-header doesn't add extra space */ | |||
.header-container { | |||
border-top: none !important; /* No top border */ | |||
margin-top: 0 !important; /* Remove any top margin */ | |||
padding-top: 0 !important; /* Remove any top padding */ | |||
box-shadow: none !important; /* Remove any shadow */ | |||
} | |||
/* Hide the "last modified" bar */ | |||
.last-modified-bar, | |||
.last-modified-bar__text, | |||
.modified-enhancement { | |||
display: none !important; /* Completely hide the elements */ | |||
} | |||
/* Remove the white lines associated with the last edited bar */ | |||
.last-modified-bar, | |||
.last-modified-bar__text, | |||
.modified-enhancement { | |||
border: none !important; /* Remove borders */ | |||
} | |||
/* <pre> */ | |||
:root { | |||
/* General colors and background */ | |||
--body-main: transparent; /* Fully transparent main background */ | |||
--body-light: transparent; /* Fully transparent lighter grey */ | |||
--body-mid: transparent; /* Fully transparent medium grey */ | |||
--body-dark: transparent; /* Fully transparent dark grey */ | |||
--body-border: rgba(68, 68, 68, 0.5); /* Semi-transparent border color */ | |||
--body-background-color: transparent; /* Fully transparent body background */ | |||
/* Buttons and interactive elements */ | |||
--button-background: rgba(51, 51, 51, 0.8); | |||
--button-color: #fff; | |||
--button-border: rgba(85, 85, 85, 0.7); | |||
--button-dark: rgba(42, 42, 42, 0.8); | |||
--button-light: rgba(68, 68, 68, 0.7); | |||
/* Sidebar or menus */ | |||
--sidebar: rgba(39, 39, 39, 0.8); | |||
/* Other UI elements */ | |||
--search-box: rgba(50, 50, 50, 0.9); | |||
--thumb-bg: transparent; /* Fully transparent thumbnails */ | |||
--thumb-caption-bg: transparent; | |||
--sourceeditor-input-background: transparent; | |||
--sourceeditor-background: transparent; | |||
--sourceeditor-border: rgba(68, 68, 68, 0.7); | |||
--codemirror-gutter-background: transparent; | |||
/* Background image */ | |||
--body-background-image: url('https://wiki.cosmicsky.net/images/thumb/4/48/BackgroundThree.png/1600px-BackgroundThree.png?20240916194629'); | |||
} | |||
body { | |||
background-color: transparent; /* Body is fully transparent */ | |||
background-image: var(--body-background-image); /* Set background image */ | |||
background-attachment: fixed; | |||
background-position: center; | |||
background-repeat: no-repeat; | |||
background-size: cover; /* Cover the entire screen */ | |||
color: var(--text-color); /* Ensure text remains visible */ | |||
margin: 0; /* Remove default body margin */ | |||
padding: 0; /* Remove default padding */ | |||
width: 100%; /* Allow full width of the viewport */ | |||
max-width: none; /* Ensure no restriction on width */ | |||
} | |||
/* Sticky header spans site width */ | |||
.header-container { | |||
position: sticky; /* Make it stick to the top */ | |||
top: 0; /* Stick to the very top */ | |||
z-index: 1000; /* Ensure it stays above other elements */ | |||
background-color: rgba(30, 30, 30, 0.35); /* 50% transparency */ | |||
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Add shadow for better visibility */ | |||
display: flex; /* Flex layout for header elements */ | |||
align-items: center; /* Center header items vertically */ | |||
justify-content: space-between; /* Distribute space between header elements */ | |||
} | |||
/* Buttons and page alignment */ | |||
.page-buttons-box { | |||
display: flex; | |||
justify-content: center; /* Center the buttons */ | |||
align-items: center; | |||
gap: 10px; /* Space between buttons */ | |||
background-color: rgba(42, 42, 42, 0.9); /* Background for the button box */ | |||
border: 1px solid rgba(68, 68, 68, 0.7); /* Border around the button box */ | |||
border-radius: 8px; /* Rounded corners */ | |||
padding: 10px; /* Padding inside the box */ | |||
margin-bottom: 15px; /* Space below the button box */ | |||
box-sizing: border-box; /* Include padding and borders in width */ | |||
} | |||
/* Remove unnecessary left padding from pages */ | |||
#mw-page-base, #content, .mw-body { | |||
background-color: transparent !important; /* Fully transparent */ | |||
color: var(--background-text-color); /* Text remains readable */ | |||
border: none; /* Remove borders around the page */ | |||
box-shadow: none; /* Remove any shadows that obscure transparency */ | |||
} | |||
/* General page styling adjustments */ | /* General page styling adjustments */ | ||
body.page-Main_Page.action-view h1.firstHeading, body.page-Main_Page.action-submit h1.firstHeading { | body.page-Main_Page.action-view h1.firstHeading, | ||
body.page-Main_Page.action-submit h1.firstHeading { | |||
display: none; | display: none; | ||
} | } | ||
Line 12: | Line 172: | ||
} | } | ||
/* Main page-specific adjustments */ | |||
body.page-Main_Page .mw-body { | |||
padding-left: 1em; | |||
padding-right: 1em; | |||
} | } | ||
/* | |||
/* --- WIKITABLE BASICS --- */ | |||
table.wikitable { | table.wikitable { | ||
width:75%; | |||
margin:0 auto; | |||
text-align:center; | |||
border-collapse:separate; | |||
border-spacing:0; | |||
/* Thicker single border around the entire table (changed to dark black) */ | |||
border:4px solid #000; | |||
/* Slightly rounded corners */ | |||
border-radius:8px; | |||
/* Subtle shadow for a modern look */ | |||
box-shadow:0 0 8px rgba(0,0,0,0.5); | |||
background-color:#4c4c4c; | |||
color:#c1c1c1; | |||
font-family:"Georgia", serif; | |||
} | |||
table.wikitable th, | |||
table.wikitable td { | |||
padding:12px 16px; | |||
/* Changed border to dark black */ | |||
border:1px solid #000; | |||
font-size:1.15em; | |||
} | } | ||
table.wikitable th { | |||
table.wikitable th | background-color:#2c2c2c; | ||
color:#fff; | |||
font-weight:bold; | |||
font-size:1.3em; | |||
} | } | ||
/* Alternating row colors */ | /* Alternating row colors */ | ||
table.wikitable tr:nth-child(even) { | table.wikitable tr:nth-child(even) { | ||
background-color:#1c1c1c; | |||
} | |||
table.wikitable tr:nth-child(odd) { | |||
background-color:#2c2c2c; | |||
} | |||
/* --- SORTABLE SUPPORT (if using class="sortable") --- */ | |||
table.wikitable.sortable thead th { | |||
cursor:pointer; | |||
} | |||
table.wikitable.sortable thead th:hover { | |||
background-color:#666666; /* highlight on hover */ | |||
} | |||
/* --- ICON & TOOLTIP WRAPPER --- */ | |||
.tooltip-wrapper { | |||
position:relative; | |||
width:84px; | |||
height:84px; | |||
margin:0 auto; | |||
border:none; | |||
} | |||
/* The 64×64 background icon */ | |||
.tooltip-background { | |||
display:block; | |||
margin:0 auto; | |||
width:64px; | |||
height:64px; | |||
} | |||
/* Foreground icon, absolutely placed (36×36) */ | |||
.foreground-icon { | |||
position:absolute; | |||
top:24px; /* Adjust if needed to center your mask in the 1x1GUI */ | |||
left:24px; | |||
width:36px; | |||
height:36px; | |||
border:none; | |||
margin:0; | |||
padding:0; | |||
cursor:pointer; | |||
} | |||
/* The mask or front icon inside .foreground-icon */ | |||
.foreground-icon img { | |||
width:36px; | |||
height:36px; | |||
border:none; | |||
display:block; | |||
} | |||
/* TOOLTIP that appears on hover */ | |||
.tooltip-text { | |||
display:none; | |||
position:absolute; | |||
top:-10px; | |||
left:110%; | |||
z-index:999999; | |||
background:none; | |||
padding:0; | |||
border:none; | |||
border-radius:0; | |||
/* Makes the tooltip ignore mouse hover so it disappears when cursor leaves the icon */ | |||
pointer-events:none; | |||
} | |||
/* Show tooltip when hovering over .foreground-icon */ | |||
.foreground-icon:hover .tooltip-text { | |||
display:block; | |||
} | } | ||
/* Force the tooltip image bigger/higher resolution */ | |||
background-color: | .tooltip-text img { | ||
display:block; | |||
margin:0 auto; | |||
border:none; | |||
width:400px !important; /* tweak to 300px, 500px, etc. */ | |||
height:auto !important; | |||
max-width:none !important; | |||
} | |||
/* HEADER SPACING ADJUSTMENTS */ | |||
/* Sticky header container */ | |||
.header-container { | |||
width: 100vw; /* Ensure the header spans the full viewport width */ | |||
position: fixed; /* Keep the header fixed at the top */ | |||
top: 0; /* Align to the top of the viewport */ | |||
left: 0; /* Align to the left edge */ | |||
margin: 0; /* Remove any margin */ | |||
padding: 0; /* Remove padding to avoid gaps */ | |||
box-sizing: border-box; /* Include padding and border in width calculations */ | |||
background-color: rgba(10, 10, 10, 0.35); /* Transparent background */ | |||
border-bottom: none; /* Remove any borders */ | |||
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */ | |||
z-index: 1000; /* Ensure it appears above all other content */ | |||
height: 60px; /* Set a fixed height for the header */ | |||
overflow: hidden; /* Prevent vertical and horizontal scrolls */ | |||
} | |||
/* Push body content down to prevent overlap with the header */ | |||
body { | |||
margin-top: 60px; /* Add margin equal to header height */ | |||
} | |||
/* Inner header content */ | |||
.minerva-header { | |||
width: 100%; /* Allow the content to span the full width of the header container */ | |||
max-width: 1200px; /* Constrain the inner content for larger screens */ | |||
margin: 0 auto; /* Center the inner content */ | |||
display: flex; | |||
justify-content: space-between; /* Distribute child elements */ | |||
align-items: center; /* Vertically align items */ | |||
padding: 0 15px; /* Add horizontal padding */ | |||
height: 100%; /* Match the height of the parent */ | |||
box-sizing: border-box; /* Include padding in width */ | |||
} | |||
/* Branding box adjustments */ | |||
.branding-box { | |||
flex: 0 1 auto; /* Allow resizing without collapsing */ | |||
font-size: 1.8em; /* Increase font size for prominence */ | |||
margin: 0; /* Remove margin to avoid shifting */ | |||
padding: 10px 20px; /* Add padding for desktop */ | |||
text-align: left; /* Align content to the left */ | |||
display: flex; | |||
align-items: center; /* Vertically center content */ | |||
} | |||
/* Center-align the search bar */ | |||
.minerva-search-form { | |||
flex: 1; /* Use flexible space between branding and navigation */ | |||
display: flex; | |||
justify-content: center; /* Center the search bar and button */ | |||
align-items: center; /* Vertically align items */ | |||
position: relative; /* For proper alignment */ | |||
max-width: 500px; /* Limit maximum width */ | |||
margin: 0 auto; /* Center-align the form */ | |||
height: 40px; /* Ensure consistent height */ | |||
} | |||
/* Search bar styling */ | |||
input.search { | |||
width: calc(100% - 50px); /* Adjust width dynamically to account for the button */ | |||
max-width: 400px; /* Limit search bar width */ | |||
height: 100%; /* Match the height of its parent */ | |||
border: 1px solid rgba(68, 68, 68, 0.8); /* Dark grey border */ | |||
border-radius: 5px; /* Rounded corners */ | |||
background-color: rgba(30, 30, 30, 0.9); /* Consistent dark background */ | |||
color: white; /* White text */ | |||
padding: 0 15px; /* Ensure proper padding inside */ | |||
text-align: left; /* Left-align the input text */ | |||
box-sizing: border-box; /* Include padding and border in width */ | |||
} | |||
/* Adjust placeholder text alignment */ | |||
input.search::placeholder { | |||
color: rgba(200, 200, 200, 0.7); /* Placeholder in light grey */ | |||
text-align: left; /* Left-align placeholder text */ | |||
} | } | ||
/* | /* Adjust search button alignment */ | ||
#searchIcon { | |||
background-color: | height: 100%; /* Match the height of the search bar */ | ||
width: 50px; /* Fixed button width */ | |||
margin-left: 5px; /* Space between search bar and button */ | |||
background-color: rgba(30, 30, 30, 0.9); /* Consistent dark background */ | |||
border: 1px solid rgba(68, 68, 68, 0.8); /* Match border with search bar */ | |||
border-radius: 5px; /* Rounded corners */ | |||
display: flex; | |||
align-items: center; /* Vertically align content */ | |||
justify-content: center; /* Center the icon inside the button */ | |||
} | } | ||
/* | /* Responsive adjustments for smaller devices */ | ||
@media (max-width: 768px) { | |||
.header-container { | |||
width: 100vw; /* Ensure the header spans full width */ | |||
padding: 0; /* Remove padding */ | |||
} | |||
.minerva-header { | |||
max-width: 100%; /* Allow full width on mobile */ | |||
padding: 0 10px; /* Add padding for smaller screens */ | |||
} | |||
.branding-box { | |||
flex: 1 100%; /* Branding spans full width */ | |||
text-align: left; /* Left-align branding */ | |||
padding: 10px 0; /* Add vertical padding */ | |||
margin-bottom: 10px; /* Add space below branding */ | |||
} | |||
.minerva-search-form { | |||
flex: 1 100%; /* Search bar spans full width */ | |||
margin-bottom: 10px; /* Add spacing below search bar */ | |||
height: 40px; /* Ensure consistent height */ | |||
} | |||
input.search { | |||
width: calc(100% - 50px); /* Adjust width for button */ | |||
max-width: 90%; /* Reduce max width for mobile */ | |||
height: 100%; /* Match parent height */ | |||
} | |||
#searchIcon { | |||
margin-left: 0; /* Remove extra margin for mobile alignment */ | |||
width: 50px; /* Fixed width for button */ | |||
height: 100%; /* Match parent height */ | |||
} | |||
} | } | ||
/* FOOTER FOOTER FOOTER FOOTER FOOTER FOOTER */ | |||
/* Ensure html and body take full height */ | |||
html, body { | |||
height: 100%; /* Full height of the viewport */ | |||
margin: 0; /* Remove default margin */ | |||
display: flex; | |||
flex-direction: column; /* Stack content vertically */ | |||
} | } | ||
/* Main content container */ | |||
#content { | |||
flex-grow: 1; /* This ensures the content takes up all available space */ | |||
display: flex; | |||
flex-direction: column; | |||
padding-bottom: 320px; /* Add padding to prevent content from being covered by footer */ | |||
} | } | ||
/* FOOTER FOOTER FOOTER FOOTER FOOTER FOOTER */ | |||
/* Style the main footer container */ | |||
.post-content.footer-content { | |||
position: absolute; /* Make footer position absolute */ | |||
bottom: 0; /* Align the footer at the bottom of the viewport */ | |||
width: 100vw; /* Full width of the viewport */ | |||
max-width: 100%; | |||
height: 150px; /* Adjusted height for the footer */ | |||
display: flex; /* Flexbox layout for footer */ | |||
justify-content: space-between; | |||
align-items: flex-start; | |||
padding: 40px 0; | |||
color: white; | |||
z-index: 1000; | |||
margin: 0 auto; | |||
overflow: hidden; | |||
} | } | ||
/* | /* Add the background image as a pseudo-element */ | ||
. | .post-content.footer-content::before { | ||
. | content: ""; | ||
position: absolute; | |||
width: | top: 0; | ||
left: 0; | |||
width: 100%; | |||
height: 100%; | |||
background-image: url('https://wiki.cosmicsky.net/images/thumb/a/ad/FooterBackground2.png/1200px-FooterBackground2.png?20241208044913'); | |||
background-repeat: no-repeat; | |||
background-position: center; | |||
background-size: cover; | |||
z-index: -1; | |||
} | } | ||
/* | /* Branding box styles */ | ||
. | .minerva-footer-logo { | ||
position: relative; | position: relative; | ||
text- | width: 300px; | ||
height: 120px; | |||
margin-left: 120px; | |||
margin-bottom: 10px; | |||
overflow: hidden; | |||
text-indent: -9999px; | |||
border: none; | |||
} | |||
.minerva-footer-logo::before { | |||
content: ""; | |||
position: absolute; | |||
top: 0; | |||
left: 0; | |||
width: 100%; | |||
height: 100%; | |||
background: url('https://wiki.cosmicsky.net/images/6/62/CosmicLogo.png?20240913203127') no-repeat center center; | |||
background-size: contain; | |||
cursor: pointer; | |||
} | |||
/* Privacy policy and misc info placement */ | |||
#footer-places { | |||
position: absolute; | |||
bottom: 15px; | |||
right: 15px; | |||
text-align: right; | |||
list-style: none; | |||
margin: 0; | |||
padding: 0; | padding: 0; | ||
} | } | ||
/* | /* Remove the unwanted bottom line */ | ||
#page-secondary-actions { | |||
display: none; /* Hide the element completely */ | |||
} | |||
/* Additional fix for the unwanted line and padding/margin */ | |||
footer.mw-footer.minerva-footer { | |||
border: none; /* Remove any border applied to the footer */ | |||
padding: 0; /* Remove padding */ | |||
margin: 0; /* Remove margin */ | |||
} | |||
/* Remove padding from elements inside the footer */ | |||
footer.mw-footer.minerva-footer .post-content { | |||
padding: 0; /* Remove padding from post content inside footer */ | |||
} | } | ||
/* | /* Ensure there’s no unwanted border at the top of the footer */ | ||
. | footer.mw-footer.minerva-footer .minerva-footer-logo { | ||
border: none; /* Remove any borders from the footer logo */ | |||
margin-top: 0; /* Remove any margins to avoid unwanted spacing */ | |||
margin: 0 | |||
} | } | ||
/* | /* Remove any top margins and paddings on the footer-info and footer-places elements */ | ||
#footer-info, #footer-places { | |||
margin-top: 0; | |||
padding-top: 0; | |||
border-top: none; /* Remove any borders */ | |||
} | } | ||
/* | /* Remove last-modified bar content that could be causing issues */ | ||
. | .last-modified-bar { | ||
margin: 0; | |||
margin: 0 | |||
padding: 0; | padding: 0; | ||
border: none; | border: none; | ||
background: none; | } | ||
/* CANCEL BUTTON IN EDIT WINDOW */ | |||
/* Add Cancel button in Minerva skin */ | |||
#mw-editform-cancel { | |||
display: inline-block; /* Make it inline like other buttons */ | |||
margin-left: 10px; /* Space between buttons */ | |||
} | |||
#mw-editform-cancel .oo-ui-buttonElement-button { | |||
background-color: #d9534f; /* Red background for the Cancel button */ | |||
color: white; /* White text */ | |||
border: 1px solid #d43f00; /* Darker red border */ | |||
padding: 5px 15px; /* Adjust the padding */ | |||
font-size: 14px; /* Adjust font size */ | |||
cursor: pointer; /* Pointer cursor on hover */ | |||
border-radius: 5px; /* Rounded corners */ | |||
text-decoration: none; /* Remove underline from link */ | |||
display: flex; /* Align text and icon inline */ | |||
align-items: center; /* Center align the icon and text */ | |||
} | |||
/* Hover effect for Cancel button */ | |||
#mw-editform-cancel .oo-ui-buttonElement-button:hover { | |||
background-color: #c9302c; /* Darker red on hover */ | |||
border-color: #ac2925; /* Darker red border on hover */ | |||
} | |||
/* Optional: focus style */ | |||
#mw-editform-cancel .oo-ui-buttonElement-button:focus { | |||
outline: none; | |||
box-shadow: 0 0 5px rgba(0, 0, 0, 0.2); | |||
} | |||
/* Style for the "Cancel" text */ | |||
#mw-editform-cancel .oo-ui-labelElement-label { | |||
font-size: 14px; /* Optional: adjust font size */ | |||
font-weight: bold; /* Optional: make the text bold */ | |||
} | |||
/* Style the page action menu container */ | |||
.page-actions-menu { | |||
border: 5px solid rgba(255, 255, 255, 0.25); /* Thin, transparent white border */ | |||
border-radius: 8px; /* Rounded corners */ | |||
padding: 4px; /* Adjust padding to fit buttons inside */ | |||
display: flex; | |||
justify-content: space-between; | |||
background-color: #333; /* Dark background for the menu */ | |||
position: absolute; /* Position the menu absolutely */ | |||
top: 20px; /* Adjust the distance from the top (slightly above the page name) */ | |||
right: 10px; /* Move the menu to the right */ | |||
z-index: 1000; /* Ensure it's above other elements */ | |||
} | |||
/* Remove space from the right and make the border wrap the buttons */ | |||
.page-actions-menu__list { | |||
display: flex; | |||
gap: 0; /* No gap between buttons */ | |||
margin: 0; /* Remove any default margin */ | |||
padding: 0; /* Remove any default padding */ | |||
} | |||
/* Style each button in the menu */ | |||
.page-actions-menu__list-item { | |||
list-style: none; | |||
margin: 0; /* Remove default margin */ | |||
padding: 0; /* Remove default padding */ | |||
} | |||
/* Make the icon and text white */ | |||
.page-actions-menu__list-item a, | |||
.page-actions-menu__list-item img { | |||
color: white; /* White text */ | |||
filter: brightness(0) invert(1); /* Invert the icon color to white */ | |||
} | |||
/* Ensure the "More" button and three dots are white */ | |||
.page-actions-menu__list-item#p-more a, | |||
.page-actions-menu__list-item#p-more img { | |||
color: white; | |||
filter: brightness(0) invert(1); | |||
} | |||
/* Optional: Hover effect for better interaction */ | |||
.page-actions-menu__list-item:hover { | |||
background-color: #444; /* Slightly lighter background on hover */ | |||
cursor: pointer; | |||
} | |||
/* Optional: Adjust the size of the icons */ | |||
.page-actions-menu__list-item img { | |||
width: 16px; /* Set a uniform size for the icons */ | |||
height: 16px; /* Set a uniform height for the icons */ | |||
} | |||
/* Fix the "More" button pop-up's background and text color */ | |||
#mw-ui-popups .mw-ui-popup { | |||
background-color: rgba(50, 50, 50, 0.9); /* Darker background */ | |||
color: white; /* White text */ | |||
border-radius: 8px; /* Rounded corners for the pop-up */ | |||
} | |||
/* Hide the Language button from the page action menu */ | |||
.language-selector { | |||
display: none !important; /* Hide the Language button */ | |||
} | } |
Latest revision as of 03:51, 22 March 2025
/* SEARCH RESULT CREATE LINK */ /* Ensure the 'Create the page' link is visible */ .mw-search-createlink { display: block !important; /* Force it to appear */ font-size: 16px; /* Adjust the font size for Minerva */ color: #007bff; /* Link color */ font-weight: bold; /* Make it stand out */ margin: 10px 0; /* Add some spacing */ text-align: center; /* Center-align for better visibility in mobile */ } /* Style the 'Create the page' link */ .mw-search-createlink a.new { color: #007bff !important; /* Set the link color */ text-decoration: underline; /* Ensure it's clear it’s a link */ padding: 5px; /* Add padding for touch-friendly design */ } /* Hover effect for the link (desktop use) */ .mw-search-createlink a.new:hover { color: #0056b3; /* Darken the link color on hover */ text-decoration: none; /* Remove underline on hover */ } /* Adjust for better display in mobile layout */ .minerva .mw-search-createlink { padding: 10px; background-color: #f8f9fa; /* Light background for contrast */ border: 1px solid #e0e0e0; /* Subtle border */ border-radius: 5px; /* Rounded corners */ margin-top: 15px; /* Add spacing above */ } /* General page styling adjustments */ /* Hide the sidebar/navigation drawer on the left side of the header */ #mw-mf-page-left { display: none !important; /* Completely hide the sidebar */ } /* If you also want to hide the icon that opens the sidebar */ #mw-mf-main-menu-button { display: none !important; /* Hide the button/icon that toggles the sidebar */ } /* Remove any borders, padding, or margins above .minerva-header */ .minerva-header { border-top: none !important; /* Ensure no top border */ margin-top: 0 !important; /* Remove any top margin */ padding-top: 0 !important; /* Remove any top padding */ box-shadow: none !important; /* Remove shadow if it's causing the line */ } /* Ensure the parent container of .minerva-header doesn't add extra space */ .header-container { border-top: none !important; /* No top border */ margin-top: 0 !important; /* Remove any top margin */ padding-top: 0 !important; /* Remove any top padding */ box-shadow: none !important; /* Remove any shadow */ } /* Hide the "last modified" bar */ .last-modified-bar, .last-modified-bar__text, .modified-enhancement { display: none !important; /* Completely hide the elements */ } /* Remove the white lines associated with the last edited bar */ .last-modified-bar, .last-modified-bar__text, .modified-enhancement { border: none !important; /* Remove borders */ } /* <pre> */ :root { /* General colors and background */ --body-main: transparent; /* Fully transparent main background */ --body-light: transparent; /* Fully transparent lighter grey */ --body-mid: transparent; /* Fully transparent medium grey */ --body-dark: transparent; /* Fully transparent dark grey */ --body-border: rgba(68, 68, 68, 0.5); /* Semi-transparent border color */ --body-background-color: transparent; /* Fully transparent body background */ /* Buttons and interactive elements */ --button-background: rgba(51, 51, 51, 0.8); --button-color: #fff; --button-border: rgba(85, 85, 85, 0.7); --button-dark: rgba(42, 42, 42, 0.8); --button-light: rgba(68, 68, 68, 0.7); /* Sidebar or menus */ --sidebar: rgba(39, 39, 39, 0.8); /* Other UI elements */ --search-box: rgba(50, 50, 50, 0.9); --thumb-bg: transparent; /* Fully transparent thumbnails */ --thumb-caption-bg: transparent; --sourceeditor-input-background: transparent; --sourceeditor-background: transparent; --sourceeditor-border: rgba(68, 68, 68, 0.7); --codemirror-gutter-background: transparent; /* Background image */ --body-background-image: url('https://wiki.cosmicsky.net/images/thumb/4/48/BackgroundThree.png/1600px-BackgroundThree.png?20240916194629'); } body { background-color: transparent; /* Body is fully transparent */ background-image: var(--body-background-image); /* Set background image */ background-attachment: fixed; background-position: center; background-repeat: no-repeat; background-size: cover; /* Cover the entire screen */ color: var(--text-color); /* Ensure text remains visible */ margin: 0; /* Remove default body margin */ padding: 0; /* Remove default padding */ width: 100%; /* Allow full width of the viewport */ max-width: none; /* Ensure no restriction on width */ } /* Sticky header spans site width */ .header-container { position: sticky; /* Make it stick to the top */ top: 0; /* Stick to the very top */ z-index: 1000; /* Ensure it stays above other elements */ background-color: rgba(30, 30, 30, 0.35); /* 50% transparency */ box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Add shadow for better visibility */ display: flex; /* Flex layout for header elements */ align-items: center; /* Center header items vertically */ justify-content: space-between; /* Distribute space between header elements */ } /* Buttons and page alignment */ .page-buttons-box { display: flex; justify-content: center; /* Center the buttons */ align-items: center; gap: 10px; /* Space between buttons */ background-color: rgba(42, 42, 42, 0.9); /* Background for the button box */ border: 1px solid rgba(68, 68, 68, 0.7); /* Border around the button box */ border-radius: 8px; /* Rounded corners */ padding: 10px; /* Padding inside the box */ margin-bottom: 15px; /* Space below the button box */ box-sizing: border-box; /* Include padding and borders in width */ } /* Remove unnecessary left padding from pages */ #mw-page-base, #content, .mw-body { background-color: transparent !important; /* Fully transparent */ color: var(--background-text-color); /* Text remains readable */ border: none; /* Remove borders around the page */ box-shadow: none; /* Remove any shadows that obscure transparency */ } /* General page styling adjustments */ body.page-Main_Page.action-view h1.firstHeading, body.page-Main_Page.action-submit h1.firstHeading { display: none; } .mw-page-title-main .mw-namespace { display: none; } .page-header h1.firstHeading { display: none; } /* Main page-specific adjustments */ body.page-Main_Page .mw-body { padding-left: 1em; padding-right: 1em; } /* --- WIKITABLE BASICS --- */ table.wikitable { width:75%; margin:0 auto; text-align:center; border-collapse:separate; border-spacing:0; /* Thicker single border around the entire table (changed to dark black) */ border:4px solid #000; /* Slightly rounded corners */ border-radius:8px; /* Subtle shadow for a modern look */ box-shadow:0 0 8px rgba(0,0,0,0.5); background-color:#4c4c4c; color:#c1c1c1; font-family:"Georgia", serif; } table.wikitable th, table.wikitable td { padding:12px 16px; /* Changed border to dark black */ border:1px solid #000; font-size:1.15em; } table.wikitable th { background-color:#2c2c2c; color:#fff; font-weight:bold; font-size:1.3em; } /* Alternating row colors */ table.wikitable tr:nth-child(even) { background-color:#1c1c1c; } table.wikitable tr:nth-child(odd) { background-color:#2c2c2c; } /* --- SORTABLE SUPPORT (if using class="sortable") --- */ table.wikitable.sortable thead th { cursor:pointer; } table.wikitable.sortable thead th:hover { background-color:#666666; /* highlight on hover */ } /* --- ICON & TOOLTIP WRAPPER --- */ .tooltip-wrapper { position:relative; width:84px; height:84px; margin:0 auto; border:none; } /* The 64×64 background icon */ .tooltip-background { display:block; margin:0 auto; width:64px; height:64px; } /* Foreground icon, absolutely placed (36×36) */ .foreground-icon { position:absolute; top:24px; /* Adjust if needed to center your mask in the 1x1GUI */ left:24px; width:36px; height:36px; border:none; margin:0; padding:0; cursor:pointer; } /* The mask or front icon inside .foreground-icon */ .foreground-icon img { width:36px; height:36px; border:none; display:block; } /* TOOLTIP that appears on hover */ .tooltip-text { display:none; position:absolute; top:-10px; left:110%; z-index:999999; background:none; padding:0; border:none; border-radius:0; /* Makes the tooltip ignore mouse hover so it disappears when cursor leaves the icon */ pointer-events:none; } /* Show tooltip when hovering over .foreground-icon */ .foreground-icon:hover .tooltip-text { display:block; } /* Force the tooltip image bigger/higher resolution */ .tooltip-text img { display:block; margin:0 auto; border:none; width:400px !important; /* tweak to 300px, 500px, etc. */ height:auto !important; max-width:none !important; } /* HEADER SPACING ADJUSTMENTS */ /* Sticky header container */ .header-container { width: 100vw; /* Ensure the header spans the full viewport width */ position: fixed; /* Keep the header fixed at the top */ top: 0; /* Align to the top of the viewport */ left: 0; /* Align to the left edge */ margin: 0; /* Remove any margin */ padding: 0; /* Remove padding to avoid gaps */ box-sizing: border-box; /* Include padding and border in width calculations */ background-color: rgba(10, 10, 10, 0.35); /* Transparent background */ border-bottom: none; /* Remove any borders */ box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */ z-index: 1000; /* Ensure it appears above all other content */ height: 60px; /* Set a fixed height for the header */ overflow: hidden; /* Prevent vertical and horizontal scrolls */ } /* Push body content down to prevent overlap with the header */ body { margin-top: 60px; /* Add margin equal to header height */ } /* Inner header content */ .minerva-header { width: 100%; /* Allow the content to span the full width of the header container */ max-width: 1200px; /* Constrain the inner content for larger screens */ margin: 0 auto; /* Center the inner content */ display: flex; justify-content: space-between; /* Distribute child elements */ align-items: center; /* Vertically align items */ padding: 0 15px; /* Add horizontal padding */ height: 100%; /* Match the height of the parent */ box-sizing: border-box; /* Include padding in width */ } /* Branding box adjustments */ .branding-box { flex: 0 1 auto; /* Allow resizing without collapsing */ font-size: 1.8em; /* Increase font size for prominence */ margin: 0; /* Remove margin to avoid shifting */ padding: 10px 20px; /* Add padding for desktop */ text-align: left; /* Align content to the left */ display: flex; align-items: center; /* Vertically center content */ } /* Center-align the search bar */ .minerva-search-form { flex: 1; /* Use flexible space between branding and navigation */ display: flex; justify-content: center; /* Center the search bar and button */ align-items: center; /* Vertically align items */ position: relative; /* For proper alignment */ max-width: 500px; /* Limit maximum width */ margin: 0 auto; /* Center-align the form */ height: 40px; /* Ensure consistent height */ } /* Search bar styling */ input.search { width: calc(100% - 50px); /* Adjust width dynamically to account for the button */ max-width: 400px; /* Limit search bar width */ height: 100%; /* Match the height of its parent */ border: 1px solid rgba(68, 68, 68, 0.8); /* Dark grey border */ border-radius: 5px; /* Rounded corners */ background-color: rgba(30, 30, 30, 0.9); /* Consistent dark background */ color: white; /* White text */ padding: 0 15px; /* Ensure proper padding inside */ text-align: left; /* Left-align the input text */ box-sizing: border-box; /* Include padding and border in width */ } /* Adjust placeholder text alignment */ input.search::placeholder { color: rgba(200, 200, 200, 0.7); /* Placeholder in light grey */ text-align: left; /* Left-align placeholder text */ } /* Adjust search button alignment */ #searchIcon { height: 100%; /* Match the height of the search bar */ width: 50px; /* Fixed button width */ margin-left: 5px; /* Space between search bar and button */ background-color: rgba(30, 30, 30, 0.9); /* Consistent dark background */ border: 1px solid rgba(68, 68, 68, 0.8); /* Match border with search bar */ border-radius: 5px; /* Rounded corners */ display: flex; align-items: center; /* Vertically align content */ justify-content: center; /* Center the icon inside the button */ } /* Responsive adjustments for smaller devices */ @media (max-width: 768px) { .header-container { width: 100vw; /* Ensure the header spans full width */ padding: 0; /* Remove padding */ } .minerva-header { max-width: 100%; /* Allow full width on mobile */ padding: 0 10px; /* Add padding for smaller screens */ } .branding-box { flex: 1 100%; /* Branding spans full width */ text-align: left; /* Left-align branding */ padding: 10px 0; /* Add vertical padding */ margin-bottom: 10px; /* Add space below branding */ } .minerva-search-form { flex: 1 100%; /* Search bar spans full width */ margin-bottom: 10px; /* Add spacing below search bar */ height: 40px; /* Ensure consistent height */ } input.search { width: calc(100% - 50px); /* Adjust width for button */ max-width: 90%; /* Reduce max width for mobile */ height: 100%; /* Match parent height */ } #searchIcon { margin-left: 0; /* Remove extra margin for mobile alignment */ width: 50px; /* Fixed width for button */ height: 100%; /* Match parent height */ } } /* FOOTER FOOTER FOOTER FOOTER FOOTER FOOTER */ /* Ensure html and body take full height */ html, body { height: 100%; /* Full height of the viewport */ margin: 0; /* Remove default margin */ display: flex; flex-direction: column; /* Stack content vertically */ } /* Main content container */ #content { flex-grow: 1; /* This ensures the content takes up all available space */ display: flex; flex-direction: column; padding-bottom: 320px; /* Add padding to prevent content from being covered by footer */ } /* FOOTER FOOTER FOOTER FOOTER FOOTER FOOTER */ /* Style the main footer container */ .post-content.footer-content { position: absolute; /* Make footer position absolute */ bottom: 0; /* Align the footer at the bottom of the viewport */ width: 100vw; /* Full width of the viewport */ max-width: 100%; height: 150px; /* Adjusted height for the footer */ display: flex; /* Flexbox layout for footer */ justify-content: space-between; align-items: flex-start; padding: 40px 0; color: white; z-index: 1000; margin: 0 auto; overflow: hidden; } /* Add the background image as a pseudo-element */ .post-content.footer-content::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url('https://wiki.cosmicsky.net/images/thumb/a/ad/FooterBackground2.png/1200px-FooterBackground2.png?20241208044913'); background-repeat: no-repeat; background-position: center; background-size: cover; z-index: -1; } /* Branding box styles */ .minerva-footer-logo { position: relative; width: 300px; height: 120px; margin-left: 120px; margin-bottom: 10px; overflow: hidden; text-indent: -9999px; border: none; } .minerva-footer-logo::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url('https://wiki.cosmicsky.net/images/6/62/CosmicLogo.png?20240913203127') no-repeat center center; background-size: contain; cursor: pointer; } /* Privacy policy and misc info placement */ #footer-places { position: absolute; bottom: 15px; right: 15px; text-align: right; list-style: none; margin: 0; padding: 0; } /* Remove the unwanted bottom line */ #page-secondary-actions { display: none; /* Hide the element completely */ } /* Additional fix for the unwanted line and padding/margin */ footer.mw-footer.minerva-footer { border: none; /* Remove any border applied to the footer */ padding: 0; /* Remove padding */ margin: 0; /* Remove margin */ } /* Remove padding from elements inside the footer */ footer.mw-footer.minerva-footer .post-content { padding: 0; /* Remove padding from post content inside footer */ } /* Ensure there’s no unwanted border at the top of the footer */ footer.mw-footer.minerva-footer .minerva-footer-logo { border: none; /* Remove any borders from the footer logo */ margin-top: 0; /* Remove any margins to avoid unwanted spacing */ } /* Remove any top margins and paddings on the footer-info and footer-places elements */ #footer-info, #footer-places { margin-top: 0; padding-top: 0; border-top: none; /* Remove any borders */ } /* Remove last-modified bar content that could be causing issues */ .last-modified-bar { margin: 0; padding: 0; border: none; } /* CANCEL BUTTON IN EDIT WINDOW */ /* Add Cancel button in Minerva skin */ #mw-editform-cancel { display: inline-block; /* Make it inline like other buttons */ margin-left: 10px; /* Space between buttons */ } #mw-editform-cancel .oo-ui-buttonElement-button { background-color: #d9534f; /* Red background for the Cancel button */ color: white; /* White text */ border: 1px solid #d43f00; /* Darker red border */ padding: 5px 15px; /* Adjust the padding */ font-size: 14px; /* Adjust font size */ cursor: pointer; /* Pointer cursor on hover */ border-radius: 5px; /* Rounded corners */ text-decoration: none; /* Remove underline from link */ display: flex; /* Align text and icon inline */ align-items: center; /* Center align the icon and text */ } /* Hover effect for Cancel button */ #mw-editform-cancel .oo-ui-buttonElement-button:hover { background-color: #c9302c; /* Darker red on hover */ border-color: #ac2925; /* Darker red border on hover */ } /* Optional: focus style */ #mw-editform-cancel .oo-ui-buttonElement-button:focus { outline: none; box-shadow: 0 0 5px rgba(0, 0, 0, 0.2); } /* Style for the "Cancel" text */ #mw-editform-cancel .oo-ui-labelElement-label { font-size: 14px; /* Optional: adjust font size */ font-weight: bold; /* Optional: make the text bold */ } /* Style the page action menu container */ .page-actions-menu { border: 5px solid rgba(255, 255, 255, 0.25); /* Thin, transparent white border */ border-radius: 8px; /* Rounded corners */ padding: 4px; /* Adjust padding to fit buttons inside */ display: flex; justify-content: space-between; background-color: #333; /* Dark background for the menu */ position: absolute; /* Position the menu absolutely */ top: 20px; /* Adjust the distance from the top (slightly above the page name) */ right: 10px; /* Move the menu to the right */ z-index: 1000; /* Ensure it's above other elements */ } /* Remove space from the right and make the border wrap the buttons */ .page-actions-menu__list { display: flex; gap: 0; /* No gap between buttons */ margin: 0; /* Remove any default margin */ padding: 0; /* Remove any default padding */ } /* Style each button in the menu */ .page-actions-menu__list-item { list-style: none; margin: 0; /* Remove default margin */ padding: 0; /* Remove default padding */ } /* Make the icon and text white */ .page-actions-menu__list-item a, .page-actions-menu__list-item img { color: white; /* White text */ filter: brightness(0) invert(1); /* Invert the icon color to white */ } /* Ensure the "More" button and three dots are white */ .page-actions-menu__list-item#p-more a, .page-actions-menu__list-item#p-more img { color: white; filter: brightness(0) invert(1); } /* Optional: Hover effect for better interaction */ .page-actions-menu__list-item:hover { background-color: #444; /* Slightly lighter background on hover */ cursor: pointer; } /* Optional: Adjust the size of the icons */ .page-actions-menu__list-item img { width: 16px; /* Set a uniform size for the icons */ height: 16px; /* Set a uniform height for the icons */ } /* Fix the "More" button pop-up's background and text color */ #mw-ui-popups .mw-ui-popup { background-color: rgba(50, 50, 50, 0.9); /* Darker background */ color: white; /* White text */ border-radius: 8px; /* Rounded corners for the pop-up */ } /* Hide the Language button from the page action menu */ .language-selector { display: none !important; /* Hide the Language button */ }