「MediaWiki:Common.css」:修訂間差異

增加 935 位元組 、​ 2025年1月5日 (星期日)
無編輯摘要
無編輯摘要
標籤已被回退
Pie對話 | 貢獻
無編輯摘要
標籤已被回退
第169行: 第169行:
    column-gap: 16px;     /* 列间距,标准写法 */
    column-gap: 16px;     /* 列间距,标准写法 */
    list-style-position: inside; /* 保持列表项缩进一致 */
    list-style-position: inside; /* 保持列表项缩进一致 */
}
/* Responsive design for mobile */
@media (max-width: 600px) {
   .mw-table {
     font-size: 14px; /* Slightly smaller font for better readability */
   }
   .mw-table th, .mw-table td {
     padding: 8px; /* Reduce padding for smaller screens */
     text-align: left; /* Ensure content is left-aligned */
     display: block; /* Stack cells vertically */
     width: 100%; /* Make cells full width */
   }
   .mw-table tr {
     display: flex;
     flex-direction: column; /* Stack each row as a column */
     margin-bottom: 8px; /* Add spacing between rows */
   }
   .mw-table th {
     background-color: #e0e0e0; /* Light gray background for headers */
     border-bottom: 2px solid #000000; /* Stronger header separation */
   }
   .mw-table td {
     border: none; /* Remove borders between cells */
     border-bottom: 1px solid #d0d0d0; /* Add subtle separation */
   }
}
}
2,025

次編輯