MediaWiki:Common.css:修订间差异

来自23世纪百科
无编辑摘要
无编辑摘要
标签已被回退
第13行: 第13行:
.latest-entries-box ul,
.latest-entries-box ul,
.latest-entries-box li {
.latest-entries-box li {
   list-style-type: disc;
   list-style-type: disc; /* 保留圆点 */
   margin-left: 1.4em;
   margin-left: 1.4em;
  background: none !important;
  font-weight: 600;
}
}


/* 只保留标题链接 */
/* 保留标题链接 */
.latest-entries-box li {
.latest-entries-box .mw-newpages-pagename {
   background: none !important;
   font-size: 1rem;
   font-weight: 600;
   font-weight: 600;
  /* 把 li 内的所有内容清空 */
  font-size: 0;
}
}
.latest-entries-box li .mw-newpages-pagename {
 
   font-size: 1rem;  /* 恢复标题文字大小 */
/* 把非标题的内容全部隐藏 */
  font-weight: 600;
.latest-entries-box li > :not(.mw-newpages-pagename) {
   display: none !important;
}
}

2025年9月9日 (二) 21:21的版本

/* 这里放置的CSS将应用于所有皮肤 */

/* 外框样式 */
.latest-entries-box {
  border: 2px solid #aaa;
  background: #f9f9f9;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 1em 0;
}

/* 列表样式 */
.latest-entries-box ul,
.latest-entries-box li {
  list-style-type: disc;  /* 保留圆点 */
  margin-left: 1.4em;
  background: none !important;
  font-weight: 600;
}

/* 保留标题链接 */
.latest-entries-box .mw-newpages-pagename {
  font-size: 1rem;
  font-weight: 600;
}

/* 把非标题的内容全部隐藏 */
.latest-entries-box li > :not(.mw-newpages-pagename) {
  display: none !important;
}