MediaWiki:Common.css:修订间差异

来自The Ysmir Collective

无编辑摘要
Pie讨论 | 贡献
无编辑摘要
第43行: 第43行:


.mw-table th, .mw-table td {
.mw-table th, .mw-table td {
    border: 1px solid #000000; /* Black border for table cells */
    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 */
    padding: 8px; /* Space inside cells */
    text-align: left; /* Align text to the left */
    text-align: left; /* Align text to the left */

2025年1月4日 (六) 22:27的版本

/* 这里放置的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: 16px 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 */
}