打开/关闭菜单
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

目前wiki关闭了自行注册账号的功能,如需注册账号,请查阅Help:注册账号

模板:Flatlist/styles.css:修订间差异

来自RIA | Wiki
Aunst留言 | 贡献
建立内容为“/* Style for horizontal lists (separator following item). 水平列表样式 @source mediawiki.org/wiki/Snippets/Horizontal_lists @revision 9 - branch 1…”的新页面
 
Aunst留言 | 贡献
西文标点改为中文
 
(未显示同一用户的3个中间版本)
第1行: 第1行:
/* Style for horizontal lists (separator following item).
/* Style for horizontal lists (separator following item).
  水平列表样式
* 水平列表样式
  @source mediawiki.org/wiki/Snippets/Horizontal_lists
* @source mediawiki.org/wiki/Snippets/Horizontal_lists
  @revision 9 - branch 1 (2020-08-14)
* @revision 10 - branch 1 (2025-02-24)
  @author [[mw:User:Edokter]] and [[User:Aunst]]
* @author [[mw:User:Edokter]] and [[User:Aunst]]
*/
*/
 
.hlist dl,
.hlist dl,
.hlist ol,
.hlist ol,
.hlist ul {
.hlist ul {
    margin: 0;
  margin: 0;
    padding: 0;
  padding: 0;
}
}
/* Display list items inline  
/* Display list items inline  
  以内联形式显示列表项 */
* 以内联形式显示列表项 */
.hlist dd,
.hlist dd,
.hlist dt,
.hlist dt,
.hlist li {
.hlist li {
    margin: 0;
  margin: 0;
    display: inline;
  display: inline;
}
}
/* Display nested lists inline  
/* Display nested lists inline  
  以内联形式显示嵌套列表 */
* 以内联形式显示嵌套列表 */
.hlist.inline,
.hlist.inline,
.hlist.inline dl,
.hlist.inline dl,
第28行: 第31行:
.hlist ol dl, .hlist ol ol, .hlist ol ul,
.hlist ol dl, .hlist ol ol, .hlist ol ul,
.hlist ul dl, .hlist ul ol, .hlist ul ul {
.hlist ul dl, .hlist ul ol, .hlist ul ul {
    display: inline;
  display: inline;
}
}
/* Hide empty list items  
/* Hide empty list items  
  隐藏空列表项 */
* 隐藏空列表项 */
.hlist .mw-empty-li,
.hlist .mw-empty-li,
.hlist .mw-empty-elt {
.hlist .mw-empty-elt {
    display: none;
  display: none;
}
}
/* Generate interpuncts  
/* Generate interpuncts  
  生成冒号 */
* 生成冒号 */
.hlist dt:after {
.hlist dt:after {
    content: ": ";
  content: "";
}
}
.hlist dd:before,
.hlist dd:before,
.hlist li:before {
.hlist li:before {
    content: " • ";
  content: " • ";
    /* font-weight: bold; */
}
}
.hlist dd:first-of-type:before,
.hlist dd:first-of-type:before,
.hlist dt:last-child:after,
.hlist dt:last-child:after,
.hlist li:first-child:before {
.hlist li:first-child:before {
    content: none;
  content: none;
}
}
/* Add parentheses around nested lists  
/* Add parentheses around nested lists  
  在嵌套列表周围添加括号 */
* 在嵌套列表周围添加括号 */
.hlist dd dd:first-child:before, .hlist dd dt:first-child:before, .hlist dd li:first-child:before,
.hlist dd dd:first-child:before, .hlist dd dt:first-child:before, .hlist dd li:first-child:before,
.hlist dt dd:first-child:before, .hlist dt dt:first-child:before, .hlist dt li:first-child:before,
.hlist dt dd:first-child:before, .hlist dt dt:first-child:before, .hlist dt li:first-child:before,
.hlist li dd:first-child:before, .hlist li dt:first-child:before, .hlist li li:first-child:before {
.hlist li dd:first-child:before, .hlist li dt:first-child:before, .hlist li li:first-child:before {
    content: " (";
  content: "";
    font-weight: normal;
  font-weight: normal;
}
}
.hlist dd dd:last-child:after, .hlist dd dt:last-child:after, .hlist dd li:last-child:after,
.hlist dd dd:last-child:after, .hlist dd dt:last-child:after, .hlist dd li:last-child:after,
.hlist dt dd:last-child:after, .hlist dt dt:last-child:after, .hlist dt li:last-child:after,
.hlist dt dd:last-child:after, .hlist dt dt:last-child:after, .hlist dt li:last-child:after,
.hlist li dd:last-child:after, .hlist li dt:last-child:after, .hlist li li:last-child:after {
.hlist li dd:last-child:after, .hlist li dt:last-child:after, .hlist li li:last-child:after {
    content: ")";
  content: "";
    font-weight: normal;
  font-weight: normal;
}
}
/* Put ordinals in front of ordered list items
/* Put ordinals in front of ordered list items
  在有序列表项前生成序号 */
* 在有序列表项前生成序号 */
 
.hlist ol {
.hlist ol {
    counter-reset: listitem;
  counter-reset: listitem;
}
}
.hlist ol > li {
.hlist ol > li {
    counter-increment: listitem;
  counter-increment: listitem;
}
}
.hlist ol > li:before {
.hlist ol > li:before {
    content: " " counter(listitem) "\a0";
  content: " " counter(listitem) "\a0";
}
}
.hlist dd ol > li:first-child:before,
.hlist dd ol > li:first-child:before,
.hlist dt ol > li:first-child:before,
.hlist dt ol > li:first-child:before,
.hlist li ol > li:first-child:before {
.hlist li ol > li:first-child:before {
    content: " (" counter(listitem) "\a0";
  content: "" counter(listitem) "\a0";
}
}


/* reset padding for Minerva skin */
/* reset padding for Minerva Neue skin
* 重设 Minerva Neue 皮肤中列表的边距 */
body.skin-minerva .hlist.hlist-separate ul li:after {
body.skin-minerva .hlist.hlist-separate ul li:after {
padding: 0 0.5em;
  padding: 0 0.5em;
}
}

2025年2月24日 (一) 19:32的最新版本

/* Style for horizontal lists (separator following item).
 * 水平列表样式
 * @source mediawiki.org/wiki/Snippets/Horizontal_lists
 * @revision 10 - branch 1 (2025-02-24)
 * @author [[mw:User:Edokter]] and [[User:Aunst]]
*/

.hlist dl,
.hlist ol,
.hlist ul {
  margin: 0;
  padding: 0;
}

/* Display list items inline 
 * 以内联形式显示列表项 */
.hlist dd,
.hlist dt,
.hlist li {
  margin: 0;
  display: inline;
}

/* Display nested lists inline 
 * 以内联形式显示嵌套列表 */
.hlist.inline,
.hlist.inline dl,
.hlist.inline ol,
.hlist.inline ul,
.hlist dl dl, .hlist dl ol, .hlist dl ul,
.hlist ol dl, .hlist ol ol, .hlist ol ul,
.hlist ul dl, .hlist ul ol, .hlist ul ul {
  display: inline;
}

/* Hide empty list items 
 * 隐藏空列表项 */
.hlist .mw-empty-li,
.hlist .mw-empty-elt {
  display: none;
}

/* Generate interpuncts 
 * 生成冒号 */
.hlist dt:after {
  content: ":";
}

.hlist dd:before,
.hlist li:before {
  content: " • ";
}

.hlist dd:first-of-type:before,
.hlist dt:last-child:after,
.hlist li:first-child:before {
  content: none;
}

/* Add parentheses around nested lists 
 * 在嵌套列表周围添加括号 */
.hlist dd dd:first-child:before, .hlist dd dt:first-child:before, .hlist dd li:first-child:before,
.hlist dt dd:first-child:before, .hlist dt dt:first-child:before, .hlist dt li:first-child:before,
.hlist li dd:first-child:before, .hlist li dt:first-child:before, .hlist li li:first-child:before {
  content: "(";
  font-weight: normal;
}
.hlist dd dd:last-child:after, .hlist dd dt:last-child:after, .hlist dd li:last-child:after,
.hlist dt dd:last-child:after, .hlist dt dt:last-child:after, .hlist dt li:last-child:after,
.hlist li dd:last-child:after, .hlist li dt:last-child:after, .hlist li li:last-child:after {
  content: ")";
  font-weight: normal;
}

/* Put ordinals in front of ordered list items
 * 在有序列表项前生成序号 */

.hlist ol {
  counter-reset: listitem;
}
.hlist ol > li {
  counter-increment: listitem;
}
.hlist ol > li:before {
  content: " " counter(listitem) "\a0";
}
.hlist dd ol > li:first-child:before,
.hlist dt ol > li:first-child:before,
.hlist li ol > li:first-child:before {
  content: "(" counter(listitem) "\a0";
}

/* reset padding for Minerva Neue skin
 * 重设 Minerva Neue 皮肤中列表的边距 */
body.skin-minerva .hlist.hlist-separate ul li:after {
  padding: 0 0.5em;
}