MediaWiki:Common.css:修订间差异
跳转到导航
跳转到搜索
第57行: | 第57行: | ||
.nl-hp-content { | .nl-hp-content { | ||
padding: 10px; | padding: 10px; | ||
} | |||
.nl-tb-container { | |||
max-width: 100%; | |||
margin: 0 5px; | |||
text-align: center; | |||
} | |||
.nl-tb-header { | |||
display: flex; | |||
cursor: pointer; | |||
} | |||
.nl-tb-header div { | |||
flex: 1; | |||
padding: 10px; | |||
background-color: #f0f0f0; | |||
border: 1px solid #ccc; | |||
} | |||
.nl-tb-header div:hover { | |||
background-color: #e0e0e0; | |||
} | |||
.nl-tb-content { | |||
padding: 20px; | |||
border: 1px solid #ccc; | |||
border-top: none; | |||
} | |||
.nl-tb-content div { | |||
display: none; | |||
} | |||
.nl-tb-content .active { | |||
display: block; | |||
} | } |
2024年10月29日 (二) 20:08的版本
/* 这里放置的CSS将应用于所有皮肤 */ #nl-hp { display: flex; flex-wrap: wrap; } .nl-hp-sidebar { flex: 1; min-width: 300px; padding: 0 20px; background-color: #f0f0f0; } #nl-hp-main { flex: 2; min-width: 300px; margin: 0 auto; } #nl-banner { background:linear-gradient(to bottom right, #a3bfdc, #3475c0); box-shadow:grey 0px 0px 5px; border-radius:10px; color: #000; font-size:1em; text-shadow:white 0px 0px 10px,white 0px 0px 10px; width: 100%; box-sizing: border-box; margin:5px auto 5px; padding:10px; } .nl-hp-container { display: flex; flex-flow: row wrap; justify-content: space-between; align-items: stretch; width: 100%; } .nl-hp-item { background-color:#f5faff; box-shadow:grey 0px 0px 5px; margin:5px auto 5px; padding-bottom: 10px; border:1px solid #999; border-radius:10px; flex-grow: 1; flex-shrink: 0; flex-basis: 300px; } .nl-hp-title { background-color:#3475c0; color:#FFFFFF; font-weight: bold; margin:3px; padding:6px 3px; border-radius:10px; font-size:110%; text-align:left; } .nl-hp-content { padding: 10px; } .nl-tb-container { max-width: 100%; margin: 0 5px; text-align: center; } .nl-tb-header { display: flex; cursor: pointer; } .nl-tb-header div { flex: 1; padding: 10px; background-color: #f0f0f0; border: 1px solid #ccc; } .nl-tb-header div:hover { background-color: #e0e0e0; } .nl-tb-content { padding: 20px; border: 1px solid #ccc; border-top: none; } .nl-tb-content div { display: none; } .nl-tb-content .active { display: block; }