MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary Tag: Reverted |
||
Line 94: | Line 94: | ||
width: 75%; /* Ensures submenus match main menu width */ | width: 75%; /* Ensures submenus match main menu width */ | ||
max-width: 600px; | max-width: 600px; | ||
} | |||
#custom-footer { | |||
background-color: #222; /* Dark footer bar */ | |||
color: #fff; /* White text */ | |||
text-align: center; | |||
padding: 10px; | |||
font-size: 14px; | |||
width: 100%; | |||
position: fixed; | |||
bottom: 0; | |||
left: 0; | |||
z-index: 999; | |||
} | |||
#custom-footer a { | |||
color: #00bfff; /* Light blue links */ | |||
text-decoration: none; | |||
padding: 0 10px; | |||
} | |||
#custom-footer a:hover { | |||
text-decoration: underline; | |||
} | } |
Revision as of 22:03, 5 February 2025
/* CSS placed here will be applied to all skins */ img { filter: none !important; } /* Ensure text in ConfirmAccount fields is visible */ textarea { color: black !important; background-color: white !important; } .collapsible-header { cursor: pointer; font-weight: bold; padding: 8px; background-color: #e6e6e6; border-radius: 5px; margin-bottom: 5px; } .collapsible-header::before { content: "▶ "; } .collapsible-header.active::before { content: "▼ "; } .collapsible-content { display: none; padding-left: 15px; } .collapsible-subheader { cursor: pointer; font-weight: bold; padding-left: 10px; } .collapsible-subheader::before { content: "▶ "; } .collapsible-subheader.active::before { content: "▼ "; } .collapsible-subcontent { display: none; padding-left: 20px; } /* Make main menu sections collapsible */ .collapsible-header { cursor: pointer; font-weight: bold; padding: 5px; border-bottom: 1px solid #ddd; } .collapsible-content { display: none; padding-left: 10px; } /* Make submenus collapsible */ .collapsible-subheader { cursor: pointer; font-weight: bold; padding: 5px; margin-left: 10px; border-bottom: 1px solid #ccc; } .collapsible-subcontent { display: none; padding-left: 20px; } /* Ensure collapsible headers are readable in dark mode */ .collapsible-header, .collapsible-subheader { color: var(--theme-text-color, white) !important; /* Dynamic text color */ background-color: var(--theme-background-color, #831f82) !important; /* Slight contrast */ border-radius: 5px; /* Slightly rounded corners for a clean look */ padding: 5px 10px; font-weight: bold; } /* Dark mode adjustments */ .skin-dark .collapsible-header, .skin-dark .collapsible-subheader { color: white !important; /* Make text white in dark mode */ background-color: #222 !important; /* Dark background */ border: 1px solid #444; /* Subtle border */ } .collapsible-header { width: 75%; /* Change this to any percentage or pixel value */ max-width: 600px; /* Prevents bars from getting too wide on large screens */ } .collapsible-subheader { width: 75%; /* Ensures submenus match main menu width */ max-width: 600px; } .collapsible-subcontent { width: 75%; /* Ensures submenus match main menu width */ max-width: 600px; } #custom-footer { background-color: #222; /* Dark footer bar */ color: #fff; /* White text */ text-align: center; padding: 10px; font-size: 14px; width: 100%; position: fixed; bottom: 0; left: 0; z-index: 999; } #custom-footer a { color: #00bfff; /* Light blue links */ text-decoration: none; padding: 0 10px; } #custom-footer a:hover { text-decoration: underline; }