MediaWiki:Common.css
来自The Ysmir Collective
注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。
- Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
- Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
- Internet Explorer或Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5
- Opera:按 Ctrl-F5。
/* 这里放置的CSS将应用于所有皮肤 */
.wikitable img {
height: auto;
width:100%;
}
.titlepic img {
height: auto;
width:100%;
}
.character-info img {
height: auto;
width:100%;
}
div.thumbinner {
border:solid 1px #aaaaaa;
box-shadow:0 1px 6px rgba(0,0,0,.25);
}
li.gallerybox div.thumb {
border:solid 1px #aaaaaa;
box-shadow:0 1px 6px rgba(0,0,0,.25);
}
div.center-text {
text-align:center;
}
div.right-text {
text-align:right;
}
/* Basic table styling */
.mw-table {
border-collapse: collapse; /* Ensure borders don't double */
margin: 20px auto; /* Add margin for proper placement */
background-color: #ffffff; /* Set white background */
width: 100%; /* Table spans container width */
max-width: 90%; /* Limit table width for better readability */
}
.mw-table th, .mw-table td {
border-top: 1px solid #000000; /* Black border for table rows */
border-bottom: 1px solid #000000; /* Black border for table rows */
padding: 8px; /* Space inside cells */
text-align: left; /* Align text to the left */
vertical-align: middle; /* Vertically center text */
}
.mw-table th {
font-weight: bold; /* Bold headers */
background-color: #f9f9f9; /* Light gray background for headers */
text-align: center;
}
.mw-table td.centered, .mw-table th.centered {
text-align: center;
}