MediaWiki:Common.css:修订间差异
来自翻译笔记
创建页面,内容为“→这里放置的CSS将应用于所有皮肤: →编辑器文字保持与正文一致: #wpTextbox1 { font-size: 100%; } →禁止目录自动换行: #toc { white-space: nowrap; } →首页不显示标题: body.page-首页 h1.firstHeading { display: none; } →页面宽度对齐: .mw-body { padding: 0; } h2 { border-bottom: 1px solid #E5E5E5; } .img-avatar { width: 120px; height: 120px; object-fit: cover; } .img-poster { width:…” |
无编辑摘要 |
||
第19行: | 第19行: | ||
.mw-body { | .mw-body { | ||
padding: 0; | padding: 0; | ||
} | |||
tbody { | |||
counter-reset:sectioncounter; | |||
} | |||
.SortCLASS:before { | |||
content:counter(sectioncounter); | |||
counter-increment:sectioncounter; | |||
} | } | ||
h2 { | h2 { | ||
border-bottom: 1px solid #E5E5E5; | border-bottom: 1px solid #E5E5E5; | ||
} | |||
@media (max-width: 576px) { | |||
.mw-body { | |||
font-size: .875rem; | |||
} | |||
.table { | |||
font-size: .844rem; | |||
} | |||
.btn { | |||
font-size: .844rem; | |||
} | |||
h1 { | |||
font-size: 1.5rem; | |||
} | |||
h2 { | |||
font-size: 1.4rem; | |||
} | |||
h3 { | |||
font-size: 1.2rem; | |||
} | |||
} | |||
@media (max-width: 768px) { | |||
.mw-body { | |||
font-size: .875rem; | |||
} | |||
.table { | |||
font-size: .844rem; | |||
} | |||
.btn { | |||
font-size: .844rem; | |||
} | |||
h1 { | |||
font-size: 1.5rem; | |||
} | |||
h2 { | |||
font-size: 1.4rem; | |||
} | |||
h3 { | |||
font-size: 1.2rem; | |||
} | |||
} | |||
.card-columns { | |||
column-gap: .8rem; | |||
column-count: 3; | |||
} | |||
.card-img { | |||
border-radius: 0; | |||
} | |||
.contentSub { | |||
margin-bottom: 10px; | |||
} | } | ||
第28行: | 第93行: | ||
width: 120px; | width: 120px; | ||
height: 120px; | height: 120px; | ||
object-fit: cover; | |||
} | |||
.img-square { | |||
width: 170px; | |||
height: 170px; | |||
object-fit: cover; | object-fit: cover; | ||
} | } | ||
第34行: | 第105行: | ||
width: 170px; | width: 170px; | ||
height: 255px; | height: 255px; | ||
object-fit: cover; | |||
} | |||
.img-poster2 { | |||
width: 260px; | |||
height: 390px; | |||
object-fit: cover; | object-fit: cover; | ||
} | } |
2025年4月4日 (五) 20:31的最新版本
/* 这里放置的CSS将应用于所有皮肤 */ /* 编辑器文字保持与正文一致 */ #wpTextbox1 { font-size: 100%; } /* 禁止目录自动换行*/ #toc { white-space: nowrap; } /* 首页不显示标题 */ body.page-首页 h1.firstHeading { display: none; } /* 页面宽度对齐 */ .mw-body { padding: 0; } tbody { counter-reset:sectioncounter; } .SortCLASS:before { content:counter(sectioncounter); counter-increment:sectioncounter; } h2 { border-bottom: 1px solid #E5E5E5; } @media (max-width: 576px) { .mw-body { font-size: .875rem; } .table { font-size: .844rem; } .btn { font-size: .844rem; } h1 { font-size: 1.5rem; } h2 { font-size: 1.4rem; } h3 { font-size: 1.2rem; } } @media (max-width: 768px) { .mw-body { font-size: .875rem; } .table { font-size: .844rem; } .btn { font-size: .844rem; } h1 { font-size: 1.5rem; } h2 { font-size: 1.4rem; } h3 { font-size: 1.2rem; } } .card-columns { column-gap: .8rem; column-count: 3; } .card-img { border-radius: 0; } .contentSub { margin-bottom: 10px; } .img-avatar { width: 120px; height: 120px; object-fit: cover; } .img-square { width: 170px; height: 170px; object-fit: cover; } .img-poster { width: 170px; height: 255px; object-fit: cover; } .img-poster2 { width: 260px; height: 390px; object-fit: cover; } .circle-img { border-radius: 50%; /* 将图片转换为圆形 */ object-fit: cover; /* 确保图片内容填充整个容器,超出的部分会被裁剪 */ }