MediaWiki:Common.css

MediaWiki界面页面
Brucekomike讨论 | 贡献2025年1月29日 (三) 00:18的版本 (创建页面,内容为“→‎这里放置的CSS将应用于所有皮肤:​ →‎首页dpl列表相关样式:​ .mini-block { width: 100%; min-width: 20%; padding: 16px; margin-top: 8px; box-shadow: 0 3px 6px rgba(0,0,0,0.04); border: 1px solid; border-color: rgba(0,0,0,0.05); border-radius: 8px; word-break: break-all; box-sizing: border-box; } .mini-block p { margin: 0 0 1em 0; } .mini-block p:last-child { margin: 0; } .mini-block-container { widt…”
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。

  • Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5Ctrl-R(Mac为⌘-R
  • Google Chrome:Ctrl-Shift-R(Mac为⌘-Shift-R
  • Internet Explorer或Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5
  • Opera:Ctrl-F5
/* 这里放置的CSS将应用于所有皮肤 */
/* 首页dpl列表相关样式 */
.mini-block {
    width: 100%;
    min-width: 20%;
    padding: 16px;
    margin-top: 8px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.04);
    border: 1px solid; border-color: rgba(0,0,0,0.05);
    border-radius: 8px;
    word-break: break-all;
    box-sizing: border-box;
}
.mini-block p {
	margin: 0 0 1em 0;
}
.mini-block p:last-child {
	margin: 0;
}
.mini-block-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    box-sizing: border-box;
}
.mini-block-list a{
	color: #212121;
}
.mini-block-list a.new{
	color: #212121;
}
.mini-block-list a:hover{
	color: #00aeec;
}
.mini-block-list li a:hover {
    color: #212121;
}
.mini-block-container li{
    border-radius: 4px;
    margin: 0;
    list-style: none;
    cursor: pointer;
    transition: background cubic-bezier(0.22,0.58,0.12,0.98) 0.4s;
}
.mini-block-title {
	font-size: 24px;
	font-weight: 500;
}
@media screen and (min-width: 851px) {
	.mini-block-container li:hover {
    	background: #0000000d;
	}
	.mini-block-container li:hover a {
		transform: translateX(5px);
	}
}
.mini-block-container ul {
    margin: 0;
    padding: 0;
}
.mini-block-container li a {
    padding: .5em .4em;
    display: inline-block;
    width: 100%;
    transition: transform cubic-bezier(0.22,0.58,0.12,0.98) 0.4s;
}
@media screen and (max-width: 850px) {
    .mini-block {
        align-self: stretch;
        width: auto;
    }
    .mini-block-container {
    	flex-direction: column;
    }
}