No edit summary
No edit summary
 
(25 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 */
/* General page styling adjustments */


Line 29: Line 64:




/* 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> */
/* <pre> */
:root {
:root {
Line 56: Line 86:
     --body-border: rgba(68, 68, 68, 0.5); /* Semi-transparent border color */
     --body-border: rgba(68, 68, 68, 0.5); /* Semi-transparent border color */
     --body-background-color: transparent; /* Fully transparent body background */
     --body-background-color: transparent; /* Fully transparent body background */
    --background-text-color: #ccc; /* Lighter text color */
 
    --link-color: #62a0ea; /* Blue for links */
    --redlink-color: #ff4d4d; /* Red for broken links */
    --text-color: #e0e0e0; /* Text color */
    --subtle-color: #999; /* Subtle elements */


     /* Buttons and interactive elements */
     /* Buttons and interactive elements */
Line 80: Line 106:
     --sourceeditor-border: rgba(68, 68, 68, 0.7);
     --sourceeditor-border: rgba(68, 68, 68, 0.7);
     --codemirror-gutter-background: transparent;
     --codemirror-gutter-background: transparent;
    /* Background image */
    --body-background-image: url('https://wiki.cosmicsky.net/images/thumb/4/48/BackgroundThree.png/1600px-BackgroundThree.png?20240916194629');


    /* Background image */
    --body-background-image: url('http://localhost:8080/w/images/4/48/BackgroundThree.png');
}
}


Line 124: Line 150:
     box-sizing: border-box; /* Include padding and borders in width */
     box-sizing: border-box; /* Include padding and borders in width */
}
}
/* Remove unnecessary left padding from pages */
/* Remove unnecessary left padding from pages */
#mw-page-base, #content, .mw-body {
#mw-page-base, #content, .mw-body {
Line 154: Line 179:




/* WIKITABLE */


 
/* --- WIKITABLE BASICS --- */
 
/* General Wikitable Styling */
table.wikitable {
table.wikitable {
    width: 100%; /* Ensures table spans the available width */
  width:75%;
    max-width: none; /* Removes any fixed width constraint */
  margin:0 auto;
    border-collapse: separate;
  text-align:center;
    border-spacing: 0;
  border-collapse:separate;
    border: 4px solid #2b2b2b;
  border-spacing:0;
    border-radius: 8px;
    overflow: visible; /* Ensures tooltip can extend beyond table */
    font-family: "Georgia", serif;
    color: #c1c1c1;
    background-color: #4c4c4c;
}


table.wikitable th, table.wikitable td {
  /* Thicker single border around the entire table (changed to dark black) */
    padding: 12px 16px;
  border:4px solid #000;
    border: 1px solid #666666;
  /* Slightly rounded corners */
    color: #c1c1c1;
  border-radius:8px;
    font-size: 1.15em;
  /* Subtle shadow for a modern look */
}
  box-shadow:0 0 8px rgba(0,0,0,0.5);


table.wikitable tr:nth-child(even) {
  background-color:#4c4c4c;
    background-color: #333333;
  color:#c1c1c1;
  font-family:"Georgia", serif;
}
}


table.wikitable tr:nth-child(odd) {
table.wikitable th,
    background-color: #4d4d4d;
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: #595959;
  background-color:#2c2c2c;
    color: #ffffff;
  color:#fff;
    font-weight: bold;
  font-weight:bold;
    font-size: 1.3em;
  font-size:1.3em;
    font-family: "Georgia", serif;
    border: 1px solid #666666;
}
}


/* Tooltip table styling */
/* Alternating row colors */
.tooltip-table {
table.wikitable tr:nth-child(even) {
    border-collapse: separate;
  background-color:#1c1c1c;
    width: auto;
    overflow: visible;
    border-radius: 8px;
}
}
 
table.wikitable tr:nth-child(odd) {
.tooltip-table td {
  background-color:#2c2c2c;
    position: relative;
    text-align: center;
    vertical-align: middle;
    padding: 0;
    width: 48px;
    height: 48px;
    border: 1px solid black;
    overflow: visible;
    box-sizing: border-box;
}
}


.tooltip-cell .tooltip-text {
/* --- SORTABLE SUPPORT (if using class="sortable") --- */
    visibility: hidden;
table.wikitable.sortable thead th {
    width: 375px;
  cursor:pointer;
    max-width: none;
    padding: 0 !important;
    margin: 0;
    background: transparent !important;
    border: none;
    position: absolute;
    z-index: 1000;
    top: -10px;
    left: 100%;
    opacity: 0;
    transition: opacity 0.3s;
    box-sizing: border-box;
    white-space: nowrap;
    pointer-events: none;
}
}
 
table.wikitable.sortable thead th:hover {
.tooltip-cell:hover .tooltip-text {
  background-color:#666666; /* highlight on hover */
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}
}


.tooltip-cell img {
    display: inline-block;
    margin: 0 auto;
    padding: 0;
    width: 48px;
    height: 48px;
    border: none;
    background: none;
}


.tooltip-cell .tooltip-text img {
/* --- ICON & TOOLTIP WRAPPER --- */
    width: 100%;
.tooltip-wrapper {
    height: auto;
position:relative;
    display: block;
width:84px;
    margin: 0 auto;
height:84px;
    border: none !important;
margin:0 auto;
    background: none;
border:none;
}
}


/* Style the page action menu container */
/* The 64×64 background icon */
.page-actions-menu {
.tooltip-background {
    border: 5px solid rgba(255, 255, 255, 0.25); /* Thin, transparent white border */
display:block;
    border-radius: 8px; /* Rounded corners */
margin:0 auto;
    padding: 4px; /* Adjust padding to fit buttons inside */
width:64px;
    display: flex;
height:64px;
    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 */
/* Foreground icon, absolutely placed (36×36) */
.page-actions-menu__list {
.foreground-icon {
    display: flex;
position:absolute;
    gap: 0; /* No gap between buttons */
top:24px; /* Adjust if needed to center your mask in the 1x1GUI */
    margin: 0; /* Remove any default margin */
left:24px;
    padding: 0; /* Remove any default padding */
width:36px;
height:36px;
border:none;
margin:0;
padding:0;
cursor:pointer;
}
}


/* Style each button in the menu */
/* The mask or front icon inside .foreground-icon */
.page-actions-menu__list-item {
.foreground-icon img {
    list-style: none;
width:36px;
    margin: 0; /* Remove default margin */
height:36px;
    padding: 0; /* Remove default padding */
border:none;
display:block;
}
}


/* Make the icon and text white */
/* TOOLTIP that appears on hover */
.page-actions-menu__list-item a,
.tooltip-text {
.page-actions-menu__list-item img {
display:none;
    color: white; /* White text */
position:absolute;
    filter: brightness(0) invert(1); /* Invert the icon color to white */
top:-10px;
}
left:110%;
 
z-index:999999;
/* Ensure the "More" button and three dots are white */
background:none;
.page-actions-menu__list-item#p-more a,
padding:0;
.page-actions-menu__list-item#p-more img {
border:none;
    color: white;
border-radius:0;
    filter: brightness(0) invert(1);
/* Makes the tooltip ignore mouse hover so it disappears when cursor leaves the icon */
}
pointer-events:none;
 
/* 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 */
/* Show tooltip when hovering over .foreground-icon */
#mw-ui-popups .mw-ui-popup {
.foreground-icon:hover .tooltip-text {
    background-color: rgba(50, 50, 50, 0.9); /* Darker background */
display:block;
    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 */
}
/* Style for the 'No results found' message */
.mw-search-nonefound {
    font-size: 18px; /* Adjust font size */
    color: #e0e0e0; /* Set text color */
    margin-bottom: 15px; /* Add some space below the message */
}
}


/* Style for the 'Create the page' message */
/* Force the tooltip image bigger/higher resolution */
.mw-search-createlink {
.tooltip-text img {
    font-size: 18px; /* Adjust font size */
display:block;
    color: #62a0ea; /* Link color */
margin:0 auto;
    font-weight: bold; /* Make it stand out */
border:none;
    margin-top: 10px; /* Add some space above */
width:400px !important; /* tweak to 300px, 500px, etc. */
height:auto !important;
max-width:none !important;
}
}


/* Style for the 'Create the page' link */
.mw-search-createlink a.new {
    color: #62a0ea; /* Set link color */
    text-decoration: none; /* Remove underline */
}


.mw-search-createlink a.new:hover {
    text-decoration: underline; /* Add underline on hover */
}


/* Ensure the visual clear divs do not interfere with layout */
.mw-search-visualclear {
    clear: both;
    display: block;
}




/* HEADER SPACING ADJUSTMENTS */
/* HEADER SPACING ADJUSTMENTS */


/* Ensure the header spans narrower */
 
/* Sticky header container */
.header-container {
.header-container {
     width: 100%; /* Full width across the page */
     width: 100vw; /* Ensure the header spans the full viewport width */
     max-width: 1440px; /* Reduce width to make it about 10% smaller */
    position: fixed; /* Keep the header fixed at the top */
     margin: 0 auto; /* Center the header container */
     top: 0; /* Align to the top of the viewport */
     padding: 0 10px; /* Add horizontal padding */
    left: 0; /* Align to the left edge */
     box-sizing: border-box; /* Include padding in width calculations */
     margin: 0; /* Remove any margin */
    display: flex;
     padding: 0; /* Remove padding to avoid gaps */
    justify-content: space-between;
     box-sizing: border-box; /* Include padding and border in width calculations */
    align-items: center;
     background-color: rgba(10, 10, 10, 0.35); /* Transparent background */
     background-color: rgba(10, 10, 10, 0.35); /* Even darker shade with 35% transparency */
     border-bottom: none; /* Remove any borders */
     border-bottom: none !important; /* Remove bottom border */
     box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */
     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 */
}
}


/* Adjust the inner header content width */
/* 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 {
.minerva-header {
     width: 100%; /* Full width of the container */
     width: 100%; /* Allow the content to span the full width of the header container */
     max-width: 1440px; /* Match the reduced width of the header container */
     max-width: 1200px; /* Constrain the inner content for larger screens */
     margin: 0 auto; /* Center-align the header */
     margin: 0 auto; /* Center the inner content */
     display: flex;
     display: flex;
     justify-content: space-between; /* Space out the elements */
     justify-content: space-between; /* Distribute child elements */
     align-items: center; /* Vertically align all items */
     align-items: center; /* Vertically align items */
     padding: 0; /* Remove unnecessary padding */
     padding: 0 15px; /* Add horizontal padding */
     position: relative; /* Position for precise element alignment */
     height: 100%; /* Match the height of the parent */
}
    box-sizing: border-box; /* Include padding in width */
 
/* Adjust menu button spacing (move closer to branding box) */
.navigation-drawer {
    margin-right: 5px; /* Reduce spacing between menu button and branding */
    padding-left: 0; /* Remove left padding */
}
}


Line 396: Line 346:
     flex: 0 1 auto; /* Allow resizing without collapsing */
     flex: 0 1 auto; /* Allow resizing without collapsing */
     font-size: 1.8em; /* Increase font size for prominence */
     font-size: 1.8em; /* Increase font size for prominence */
     padding: 0; /* Remove padding around the branding */
     margin: 0; /* Remove margin to avoid shifting */
     margin-right: 10px; /* Reduce space between branding and search bar */
     padding: 10px 20px; /* Add padding for desktop */
     text-align: left; /* Align branding content to the left */
     text-align: left; /* Align content to the left */
    display: flex;
    align-items: center; /* Vertically center content */
}
}


/* Center-align the search bar and make it narrower */
/* Center-align the search bar */
.minerva-search-form {
.minerva-search-form {
     flex: 2; /* Allow search bar to take space */
     flex: 1; /* Use flexible space between branding and navigation */
     display: flex;
     display: flex;
     justify-content: center; /* Center the search bar within available space */
     justify-content: center; /* Center the search bar and button */
     align-items: center; /* Ensure vertical alignment */
     align-items: center; /* Vertically align items */
     position: absolute; /* Absolute positioning for precise centering */
     position: relative; /* For proper alignment */
     left: 50%; /* Position relative to the left edge */
     max-width: 500px; /* Limit maximum width */
     transform: translateX(-50%); /* Adjust for true centering */
     margin: 0 auto; /* Center-align the form */
     width: 1440px; /* Match the reduced header width */
     height: 40px; /* Ensure consistent height */
}
}


/* Search bar styling */
/* Search bar styling */
input.search {
input.search {
     width: 100%; /* Stretch to fit container */
     width: calc(100% - 50px); /* Adjust width dynamically to account for the button */
     height: 45px; /* Taller search bar */
     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: 1px solid rgba(68, 68, 68, 0.8); /* Dark grey border */
     border-radius: 5px; /* Rounded corners */
     border-radius: 5px; /* Rounded corners */
Line 422: Line 375:
     color: white; /* White text */
     color: white; /* White text */
     padding: 0 15px; /* Ensure proper padding inside */
     padding: 0 15px; /* Ensure proper padding inside */
     text-align: center; /* Center-align the input text */
     text-align: left; /* Left-align the input text */
    box-sizing: border-box; /* Include padding and border in width */
}
}


Line 428: Line 382:
input.search::placeholder {
input.search::placeholder {
     color: rgba(200, 200, 200, 0.7); /* Placeholder in light grey */
     color: rgba(200, 200, 200, 0.7); /* Placeholder in light grey */
     text-align: center; /* Ensure placeholder text is centered */
     text-align: left; /* Left-align placeholder text */
}
}


/* Adjust search button alignment */
/* Adjust search button alignment */
#searchIcon {
#searchIcon {
     height: 45px; /* Match height of the search bar */
     height: 100%; /* Match the height of the search bar */
     margin-left: 10px; /* Add space between search button and 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 */
     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: 1px solid rgba(68, 68, 68, 0.8); /* Match border with search bar */
     border-radius: 5px; /* Rounded corners */
     border-radius: 5px; /* Rounded corners */
    display: flex;
    align-items: center; /* Vertically align content */
    justify-content: center; /* Center the icon inside the button */
}
}


/* Adjust user navigation (move far right) */
/* Responsive adjustments for smaller devices */
.minerva-user-navigation {
@media (max-width: 768px) {
    margin-left: auto; /* Push navigation to the far right */
    .header-container {
     padding-right: 15px; /* Add spacing from the right edge */
        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 */
    }
}
}


/* Add consistent spacing between header items */
/* FOOTER FOOTER FOOTER FOOTER FOOTER FOOTER  */
.minerva-header > * {
 
     margin: 0 10px; /* Space between header elements */
/* 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 */
}
}


/* Remove any residual line above the header */
/* Main content container */
.header-container {
#content {
     border-top: none !important; /* Ensure no top border */
    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 */
}
}


/* Add padding and spacing to notifications and user menu items */
/* FOOTER FOOTER FOOTER FOOTER FOOTER FOOTER */
.minerva-notifications ul li a,
 
.minerva-user-menu label {
/* Style the main footer container */
     padding: 5px 10px; /* Add padding for better clickability */
.post-content.footer-content {
     border-radius: 5px; /* Rounded corners */
     position: absolute; /* Make footer position absolute */
     background-color: rgba(42, 42, 42, 0.9); /* Consistent dark background */
    bottom: 0; /* Align the footer at the bottom of the viewport */
     color: white; /* White text */
     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;
}
}


.minerva-user-menu ul li a:hover {
/* Add the background image as a pseudo-element */
     background-color: rgba(60, 60, 60, 0.9); /* Lighter hover background */
.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;
}
}


/* SPECIFIC CHANGES TO PAGE HEADER (H1) */
/* 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;
}


/* Adjust the width and spacing of the page header */
.minerva-footer-logo::before {
#firstHeading,
     content: "";
.firstHeading,
    position: absolute;
.mw-first-heading {
    top: 0;
     max-width: 90%; /* Reduce the width to 90% of the container */
    left: 0;
     margin: 0 auto 20px auto; /* Center-align and add spacing below */
    width: 100%;
     text-align: center; /* Center-align the heading text */
    height: 100%;
     box-sizing: border-box; /* Include padding in width calculations */
     background: url('https://wiki.cosmicsky.net/images/6/62/CosmicLogo.png?20240913203127') no-repeat center center;
     background-size: contain;
     cursor: pointer;
}
}


/* Optional: Add padding for better spacing */
/* Privacy policy and misc info placement */
#firstHeading span.mw-page-title-main {
#footer-places {
     padding: 0 15px; /* Add padding inside the page title container */
    position: absolute;
    bottom: 15px;
    right: 15px;
    text-align: right;
    list-style: none;
    margin: 0;
     padding: 0;
}
}


/* PAGE WIDTH and MISC */
/* 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 */
}


/* Target the main content wrapper for Minerva */
/* Remove padding from elements inside the footer */
#mw-content-text {
footer.mw-footer.minerva-footer .post-content {
     width: 90%; /* Allow the content to stretch */
     padding: 0; /* Remove padding from post content inside footer */
    max-width: none; /* Remove any restrictions on maximum width */
    margin: 0 auto; /* Center the content */
    box-sizing: border-box; /* Include padding and border in width */
}
}


/* Adjust the Minerva page container */
/* Ensure there’s no unwanted border at the top of the footer */
.content {
footer.mw-footer.minerva-footer .minerva-footer-logo {
     width: 100%; /* Expand the width to fill the page */
     border: none; /* Remove any borders from the footer logo */
     padding: 0 20px; /* Add padding for spacing */
     margin-top: 0; /* Remove any margins to avoid unwanted spacing */
    box-sizing: border-box;
}
}


/* Adjust the bodyContent container */
/* Remove any top margins and paddings on the footer-info and footer-places elements */
#bodyContent {
#footer-info, #footer-places {
     width: 90%; /* Stretch the content area */
     margin-top: 0;
     max-width: none; /* Remove default restrictions */
     padding-top: 0;
     margin: 0 auto; /* Center align */
     border-top: none; /* Remove any borders */
}
}


/* Ensure the header bar adjusts for wider content */
/* Remove last-modified bar content that could be causing issues */
.minerva-header {
.last-modified-bar {
     max-width: 100%;
     margin: 0;
     width: 100%;
     padding: 0;
     box-sizing: border-box;
     border: none;
}
}


/* Ensure the table of contents (TOC) adjusts to the content width */
/* CANCEL BUTTON IN EDIT WINDOW */
#toc {
 
     max-width: 90%;
/* Add Cancel button in Minerva skin */
     margin: 0 auto;
#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 */
}


/* Mobile-specific adjustments for Minerva */
/* Hover effect for Cancel button */
@media (max-width: 768px) {
#mw-editform-cancel .oo-ui-buttonElement-button:hover {
    #mw-content-text,
    background-color: #c9302c; /* Darker red on hover */
    #bodyContent,
    border-color: #ac2925; /* Darker red border on hover */
    .content {
        width: 100%; /* Full width on smaller screens */
        padding: 0 10px; /* Add smaller padding for mobile */
    }
}
}


/* Optional: focus style */
#mw-editform-cancel .oo-ui-buttonElement-button:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}


/* FOOTER */
/* 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 main footer container */
.post-content.footer-content {
    position: relative; /* For pseudo-element positioning */
    width: 100vw; /* Full width of the viewport */
    max-width: 100%; /* Prevent any unintended clipping */
    height: 200px; /* Set height for the footer */
    display: flex; /* Use flexbox for layout */
    justify-content: space-between; /* Space out child elements */
    align-items: flex-start; /* Align items to the top */
    padding: 60px 0; /* Increase padding for inner content */
    color: white; /* Default text color */
    z-index: 1000; /* Ensure it appears above other elements */
    margin: 0 auto; /* Center align the footer if necessary */
    overflow: hidden; /* Ensure no overflow outside the footer */
}


/* Add the background image as a pseudo-element */
.post-content.footer-content::before {
    content: ""; /* Empty content for the pseudo-element */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Cover the full width of the container */
    height: 100%; /* Cover the full height of the container */
    background-image: url('https://wiki.cosmicsky.net/images/thumb/a/ad/FooterBackground2.png/1200px-FooterBackground2.png?20241208044913'); /* Custom background image */
    background-repeat: no-repeat; /* Prevent background tiling */
    background-position: center; /* Center the image */
    background-size: cover; /* Ensure the image covers the width */
    z-index: -1; /* Place the background behind other elements */
}


/* Branding box styles */
/* Style the page action menu container */
.minerva-footer-logo {
.page-actions-menu {
     position: relative;
     border: 5px solid rgba(255, 255, 255, 0.25); /* Thin, transparent white border */
     width: 300px; /* Adjust branding box width */
     border-radius: 8px; /* Rounded corners */
     height: 150px; /* Adjust branding box height */
     padding: 4px; /* Adjust padding to fit buttons inside */
     margin-left: 120px; /* Left-align the branding box */
     display: flex;
     margin-bottom: 10px; /* Add bottom padding */
    justify-content: space-between;
     overflow: hidden; /* Ensure no extra content shows */
    background-color: #333; /* Dark background for the menu */
     text-indent: -9999px; /* Hide the "MediaWiki" text */
     position: absolute; /* Position the menu absolutely */
     border: none; /* Remove the line under the branding box */
     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 */
}
}


.minerva-footer-logo::before {
/* Remove space from the right and make the border wrap the buttons */
    content: ""; /* Pseudo-element for the branding logo */
.page-actions-menu__list {
    position: absolute;
     display: flex;
     top: 0;
     gap: 0; /* No gap between buttons */
     left: 0;
     margin: 0; /* Remove any default margin */
    width: 100%; /* Cover the branding box */
     padding: 0; /* Remove any default padding */
     height: 100%;
    background: url('https://wiki.cosmicsky.net/images/6/62/CosmicLogo.png?20240913203127') no-repeat center center; /* Branding logo */
     background-size: contain; /* Ensure the image scales correctly */
    cursor: pointer; /* Indicate interactivity */
}
}


/* Privacy policy and misc info placement */
/* Style each button in the menu */
#footer-places {
.page-actions-menu__list-item {
    position: absolute; /* Position relative to the footer */
     list-style: none;
    bottom: 20px; /* Adjust bottom padding */
    right: 20px; /* Adjust right padding */
    text-align: right; /* Align text to the right */
     list-style: none; /* Remove list bullets */
     margin: 0; /* Remove default margin */
     margin: 0; /* Remove default margin */
     padding: 0; /* Remove default padding */
     padding: 0; /* Remove default padding */
}
}


#footer-places li {
/* Make the icon and text white */
     display: inline; /* Display list items inline */
.page-actions-menu__list-item a,
     margin: 0 5px; /* Add spacing between items */
.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);
}
}


#footer-places a {
/* Optional: Hover effect for better interaction */
    color: white; /* Ensure links are white */
.page-actions-menu__list-item:hover {
     text-decoration: none; /* Remove underline */
     background-color: #444; /* Slightly lighter background on hover */
     font-size: 14px; /* Adjust font size */
     cursor: pointer;
}
}


#footer-places a:hover {
/* Optional: Adjust the size of the icons */
     text-decoration: underline; /* Add underline on hover */
.page-actions-menu__list-item img {
    width: 16px; /* Set a uniform size for the icons */
     height: 16px; /* Set a uniform height for the icons */
}
}


/* Text box for 16 test items */
/* Fix the "More" button pop-up's background and text color */
.post-content.footer-content .footer-items {
#mw-ui-popups .mw-ui-popup {
     position: absolute; /* Absolute positioning for centering */
     background-color: rgba(50, 50, 50, 0.9); /* Darker background */
    top: 50%; /* Center vertically */
     color: white; /* White text */
    left: 50%; /* Center horizontally */
     border-radius: 8px; /* Rounded corners for the pop-up */
    transform: translate(-50%, -50%); /* Offset to ensure true centering */
     width: 60%; /* Set a fixed width for the text box */
    padding: 20px; /* Inner padding for spacing */
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent background for visibility */
     border-radius: 10px; /* Rounded corners */
    z-index: 2; /* Ensure it appears above the background */
    display: grid; /* Grid layout for the items */
    grid-template-columns: repeat(4, 1fr); /* 4 columns for the items */
    gap: 10px; /* Space between items */
    text-align: center; /* Center align items */
}
}


/* Generate the 16 test items dynamically using ::before */
/* Hide the Language button from the page action menu */
.post-content.footer-content .footer-items::before {
.language-selector {
     content: "Test Item 1\nTest Item 2\nTest Item 3\nTest Item 4\nTest Item 5\nTest Item 6\nTest Item 7\nTest Item 8\nTest Item 9\nTest Item 10\nTest Item 11\nTest Item 12\nTest Item 13\nTest Item 14\nTest Item 15\nTest Item 16";
     display: none !important; /* Hide the Language button */
    white-space: pre-wrap; /* Allow line breaks for content */
    font-size: 14px; /* Adjust font size */
    color: white; /* Ensure text is visible */
    background: rgba(255, 255, 255, 0.2); /* Add a background for better visibility */
    padding: 10px; /* Add inner padding */
    border-radius: 5px; /* Rounded corners */
}
}

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