MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
| Line 53: | Line 53: | ||
table.wikitable tr:nth-child(odd) { | table.wikitable tr:nth-child(odd) { | ||
background-color: #4d4d4d; /* Dark gray for odd rows */ | background-color: #4d4d4d; /* Dark gray for odd rows */ | ||
} | } | ||
| Line 111: | Line 72: | ||
.tooltip-cell .tooltip-text { | .tooltip-cell .tooltip-text { | ||
visibility: hidden; | visibility: hidden; | ||
width: | width: 375px; /* Fixed width to ensure consistent tooltip size */ | ||
max-width: none; | max-width: none; | ||
padding: 0; | padding: 0; | ||
background: none; | background: none; | ||
border: none; | border: none; | ||
position: absolute; | position: absolute; | ||
z-index: 1; | z-index: 1; | ||
| Line 122: | Line 83: | ||
opacity: 0; | opacity: 0; | ||
transition: opacity 0.3s; | transition: opacity 0.3s; | ||
box-sizing: border-box; /* Ensures padding does not expand container size */ | |||
} | } | ||
/* Ensure images display properly within tooltip */ | /* Ensure images display properly within tooltip */ | ||
.tooltip-cell .tooltip-text img { | .tooltip-cell .tooltip-text img { | ||
width: | width: 100%; /* Makes the image take up the full width of the tooltip container */ | ||
height: auto; /* Maintains natural aspect ratio */ | height: auto; /* Maintains natural aspect ratio */ | ||
display: block; | display: block; | ||
margin: 0 auto; | margin: 0 auto; | ||
border: none; | border: none; | ||
background: none; | background: none; | ||
} | } | ||
| Line 146: | Line 108: | ||
padding: 0; | padding: 0; | ||
width: 50px; | width: 50px; | ||
border: none; | border: none; | ||
background: none; | background: none; | ||
} | } | ||
Revision as of 19:05, 27 October 2024
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 { display: none !important; }
body.mw-anonuser #ca-history {
display: none !important;
}
body.mw-anonuser #ca-view {
display: none !important;
}
body.mw-anonuser #ca-viewsource {
display: none !important;
}
body.mw-anonuser #ca-login {
display: none !important;
}
/* Apply alternating colors, padding, rounded corners, and Georgia font to all tables */
table.wikitable {
border-collapse: separate; /* Allows border-radius to work */
border: 4px solid #2b2b2b; /* Darker gray border */
border-radius: 8px; /* Rounded corners for the entire table */
overflow: hidden; /* Ensures content respects rounded corners */
font-family: "Georgia", serif; /* Georgia font for the entire table */
color: #c1c1c1; /* Default text color for table */
background-color: #4c4c4c; /* Default background color for table */
border-spacing: 0; /* Ensures no gaps between cells */
}
/* Add extra padding to all table cells (header and data) */
table.wikitable th, table.wikitable td {
padding: 12px 16px; /* 12px headroom (top/bottom), 16px side room (left/right) */
border: 1px solid #666666; /* Slightly darker gray border for cells */
color: #c1c1c1; /* Text color for table data cells */
font-size: 1.15em; /* Increased font size for table content */
}
/* Apply alternating row colors */
table.wikitable tr:nth-child(even) {
background-color: #333333; /* Darker gray for even rows */
}
table.wikitable tr:nth-child(odd) {
background-color: #4d4d4d; /* Dark gray for odd rows */
}
/* Tooltip table styling */
.tooltip-table {
border-collapse: collapse;
width: auto;
}
.tooltip-table td {
position: relative;
text-align: center;
vertical-align: middle;
padding: 0;
border: 1px solid black;
}
/* Tooltip styling */
.tooltip-cell .tooltip-text {
visibility: hidden;
width: 375px; /* Fixed width to ensure consistent tooltip size */
max-width: none;
padding: 0;
background: none;
border: none;
position: absolute;
z-index: 1;
top: -10px; /* Position a few pixels above the top of the image */
left: 105%; /* Position to the right side of the hovered image */
opacity: 0;
transition: opacity 0.3s;
box-sizing: border-box; /* Ensures padding does not expand container size */
}
/* Ensure images display properly within tooltip */
.tooltip-cell .tooltip-text img {
width: 100%; /* Makes the image take up the full width of the tooltip container */
height: auto; /* Maintains natural aspect ratio */
display: block;
margin: 0 auto;
border: none;
background: none;
}
/* Show tooltip on hover */
.tooltip-cell:hover .tooltip-text {
visibility: visible;
opacity: 1;
}
/* Image styling for main table cell */
.tooltip-cell img {
display: inline-block;
margin: 0 auto;
padding: 0;
width: 50px;
border: none;
background: none;
}