MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
Line 101: | Line 101: | ||
.tooltip-cell .tooltip-text { | .tooltip-cell .tooltip-text { | ||
visibility: hidden; | visibility: hidden; | ||
width: | width: 375px; /* Larger width for tooltip */ | ||
padding: | max-width: 100%; | ||
padding: 10px; /* Provides space inside tooltip */ | |||
margin: 0; | margin: 0; | ||
background: rgba(0, 0, 0, 0.9); /* Semi-transparent background */ | background: rgba(0, 0, 0, 0.9); /* Semi-transparent background */ | ||
Line 109: | Line 110: | ||
position: absolute; | position: absolute; | ||
z-index: 1000; | z-index: 1000; | ||
top: | top: 0; | ||
left: 105%; /* Positions tooltip close to cell edge */ | left: 105%; /* Positions tooltip close to cell edge */ | ||
opacity: 1; | opacity: 1; | ||
white-space: | white-space: normal; | ||
box-sizing: border-box; | |||
} | } | ||
Revision as of 23:33, 27 October 2024
/* 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; } #ca-nstab-main, body.mw-anonuser #ca-history, body.mw-anonuser #ca-view, body.mw-anonuser #ca-viewsource, body.mw-anonuser #ca-login { display: none !important; } /* General Wikitable Styling */ table.wikitable { border-collapse: separate; border-spacing: 0; border: 4px solid #2b2b2b; border-radius: 8px; overflow: visible; font-family: "Georgia", serif; color: #c1c1c1; background-color: #4c4c4c; } /* Styling for table cells */ table.wikitable th, table.wikitable td { padding: 12px 16px; border: 1px solid #666666; color: #c1c1c1; font-size: 1.15em; } /* Alternating row colors */ table.wikitable tr:nth-child(even) { background-color: #333333; } table.wikitable tr:nth-child(odd) { background-color: #4d4d4d; } /* Table header styling */ table.wikitable th { background-color: #595959; color: #ffffff; font-weight: bold; font-size: 1.3em; font-family: "Georgia", serif; border: 1px solid #666666; } /* Rounded corners for specific cells */ table.wikitable tr:first-child th:first-child { border-top-left-radius: 8px; } table.wikitable tr:first-child th:last-child { border-top-right-radius: 8px; } table.wikitable tr:last-child td:first-child { border-bottom-left-radius: 8px; } table.wikitable tr:last-child td:last-child { border-bottom-right-radius: 8px; } /* Tooltip table styling */ .tooltip-table, .wikitable { border-collapse: separate; width: auto; overflow: visible; border-radius: 8px; } /* Table cell styling for tooltip table */ .tooltip-table td, .wikitable td { position: relative; text-align: center; vertical-align: middle; padding: 0; width: 48px; /* Updated for larger cell size */ height: 48px; /* Updated for larger cell size */ border: 1px solid black; overflow: visible; box-sizing: border-box; } /* Tooltip styling */ .tooltip-cell .tooltip-text { visibility: hidden; width: 375px; /* Larger width for tooltip */ max-width: 100%; padding: 10px; /* Provides space inside tooltip */ margin: 0; background: rgba(0, 0, 0, 0.9); /* Semi-transparent background */ border-radius: 5px; border: 1px solid #666; position: absolute; z-index: 1000; top: 0; left: 105%; /* Positions tooltip close to cell edge */ opacity: 1; white-space: normal; box-sizing: border-box; } /* Tooltip images */ .tooltip-cell .tooltip-text img { width: 100%; /* Ensures image fills tooltip container */ height: auto; display: block; border-radius: 3px; border: 1px solid #444; background: none; } /* Show tooltip on hover without animation */ .tooltip-cell:hover .tooltip-text { visibility: visible; } /* Image styling for main table cell */ .tooltip-cell img, .tooltip-cell .custom-icon { display: inline-block; margin: 0 auto; padding: 0; width: 48px; /* Matches larger cell size */ height: 48px; border: none; background: none; } /* Styling for custom icons to handle different icon types */ .custom-icon { width: 48px; height: 48px; display: inline-block; background-size: cover; background-position: center; border-radius: 5px; }