「テンプレート:Hlist/styles.css」の版間の差分

提供:TDR Wiki
削除された内容 追加された内容
日本語版の独自拡張
Takumiboo がページ テンプレート:Hlist/styles.css のコンテンツモデルを "プレーンテキスト" から "サニタイズCSS" に変更しました
タグ: コンテンツモデルの変更
 
(5人の利用者による、間の14版が非表示)
1行目: 1行目:
/* {{pp-template}} */
.mw-parser-output .hlist ul,
.mw-parser-output .hlist ol {
.hlist ul,
.hlist ol {
padding-left: 0;
padding-left: 0;
}
}
/* reset hlist margins of Minerva */
/* reset hlist margins of Minerva */
.mw-parser-output .hlist li,
.hlist li,
.mw-parser-output .hlist dd,
.hlist dd,
.mw-parser-output .hlist dt {
.hlist dt {
margin-right: 0;
margin-right: 0;
display: inline-block;
white-space: nowrap;
}
}
.mw-parser-output .hlist dt:after,
.hlist dt:after,
.mw-parser-output .hlist dd:after,
.hlist dd:after,
.mw-parser-output .hlist li:after {
.hlist li:after {
white-space: normal;
white-space: normal;
}
}
.mw-parser-output .hlist li:after,
.hlist li:after,
.mw-parser-output .hlist dd:after {
.hlist dd:after {
content: " · ";
content: " · ";
font-weight: bold;
font-weight: bold;
}
}
.mw-parser-output .hlist dt:after {
.hlist dt:after {
content: ": ";
content: ": ";
}
}
.mw-parser-output .hlist-pipe dd:after,
.hlist-pipe dd:after,
.mw-parser-output .hlist-pipe li:after {
.hlist-pipe li:after {
content: " | ";
content: " | ";
font-weight: normal;
}
}


.mw-parser-output .hlist-hyphen dd:after,
.hlist-hyphen dd:after,
.mw-parser-output .hlist-hyphen li:after {
.hlist-hyphen li:after {
content: " - ";
content: " - ";
font-weight: normal;
}
}


.mw-parser-output .hlist-comma dd:after,
.hlist-comma dd:after,
.mw-parser-output .hlist-comma li:after {
.hlist-comma li:after {
content: "、 ";
content: "、 ";
font-weight: normal;
}

.hlist-slash dd:after,
.hlist-slash li:after {
content: " / ";
font-weight: normal;
}
}
/* Should be removed and moved to templates once TemplateStyles is live */
/* Should be removed and moved to templates once TemplateStyles is live */
.mw-parser-output .hlist dd:last-child:after,
.hlist dd:last-child:after,
.mw-parser-output .hlist dt:last-child:after,
.hlist dt:last-child:after,
.mw-parser-output .hlist li:last-child:after {
.hlist li:last-child:after {
content: none;
content: none;
}
}
/* Add parentheses around nested lists */
/* Add parentheses around nested lists */
/* Should be removed and moved to templates once TemplateStyles is live */
/* Should be removed and moved to templates once TemplateStyles is live */
.mw-parser-output .hlist dd dd:first-child:before, .mw-parser-output .hlist dd dt:first-child:before, .mw-parser-output .hlist dd li:first-child:before,
.hlist dd dd:first-child:before, .hlist dd dt:first-child:before, .hlist dd li:first-child:before,
.mw-parser-output .hlist dt dd:first-child:before, .mw-parser-output .hlist dt dt:first-child:before, .mw-parser-output .hlist dt li:first-child:before,
.hlist dt dd:first-child:before, .hlist dt dt:first-child:before, .hlist dt li:first-child:before,
.mw-parser-output .hlist li dd:first-child:before, .mw-parser-output .hlist li dt:first-child:before, .mw-parser-output .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;
}
}
/* Should be removed and moved to templates once TemplateStyles is live */
/* Should be removed and moved to templates once TemplateStyles is live */
.mw-parser-output .hlist dd dd:last-child:after, .mw-parser-output .hlist dd dt:last-child:after, .mw-parser-output .hlist dd li:last-child:after,
.hlist dd dd:last-child:after, .hlist dd dt:last-child:after, .hlist dd li:last-child:after,
.mw-parser-output .hlist dt dd:last-child:after, .mw-parser-output .hlist dt dt:last-child:after, .mw-parser-output .hlist dt li:last-child:after,
.hlist dt dd:last-child:after, .hlist dt dt:last-child:after, .hlist dt li:last-child:after,
.mw-parser-output .hlist li dd:last-child:after, .mw-parser-output .hlist li dt:last-child:after, .mw-parser-output .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;
59行目: 71行目:
/* Put ordinals in front of ordered list items */
/* Put ordinals in front of ordered list items */
/* Should be removed and moved to templates once TemplateStyles is live */
/* Should be removed and moved to templates once TemplateStyles is live */
.mw-parser-output .hlist ol {
.hlist ol {
counter-reset: listitem;
counter-reset: listitem;
}
}
/* Should be removed and moved to templates once TemplateStyles is live */
/* Should be removed and moved to templates once TemplateStyles is live */
.mw-parser-output .hlist ol > li {
.hlist ol > li {
counter-increment: listitem;
counter-increment: listitem;
}
}
/* Should be removed and moved to templates once TemplateStyles is live */
/* Should be removed and moved to templates once TemplateStyles is live */
.mw-parser-output .hlist ol > li:before {
.hlist ol > li:before {
content: " " counter(listitem) " ";
content: " " counter(listitem) " ";
white-space: nowrap;
white-space: nowrap;
}
}
/* Should be removed and moved to templates once TemplateStyles is live */
/* Should be removed and moved to templates once TemplateStyles is live */
.mw-parser-output .hlist dd ol > li:first-child:before,
.hlist dd ol > li:first-child:before,
.mw-parser-output .hlist dt ol > li:first-child:before,
.hlist dt ol > li:first-child:before,
.mw-parser-output .hlist li ol > li:first-child:before {
.hlist li ol > li:first-child:before {
content: " (" counter(listitem) " ";
content: " (" counter(listitem) " ";
}
}

/* [[Category:テンプレートスタイル|Hlist]] */

2024年2月21日 (水) 18:06時点における最新版

/* {{pp-template}} */
.hlist ul,
.hlist ol {
	padding-left: 0;
}
/* reset hlist margins of Minerva */
.hlist li,
.hlist dd,
.hlist dt {
	margin-right: 0;
	display: inline-block;
	white-space: nowrap;
}
.hlist dt:after,
.hlist dd:after,
.hlist li:after {
	white-space: normal;
}
.hlist li:after,
.hlist dd:after {
	content: " · ";
	font-weight: bold;
}
.hlist dt:after {
	content: ": ";
}
.hlist-pipe dd:after,
.hlist-pipe li:after {
    content: " | ";
    font-weight: normal;
}

.hlist-hyphen dd:after,
.hlist-hyphen li:after {
    content: " - ";
    font-weight: normal;
}

.hlist-comma dd:after,
.hlist-comma li:after {
	content: "、 ";
	font-weight: normal;
}

.hlist-slash dd:after,
.hlist-slash li:after {
	content: " / ";
	font-weight: normal;
}
/* Should be removed and moved to templates once TemplateStyles is live */
.hlist dd:last-child:after,
.hlist dt:last-child:after,
.hlist li:last-child:after {
	content: none;
}
/* Add parentheses around nested lists */
/* Should be removed and moved to templates once TemplateStyles is live */
.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;
}
/* Should be removed and moved to templates once TemplateStyles is live */
.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 */
/* Should be removed and moved to templates once TemplateStyles is live */
.hlist ol {
	counter-reset: listitem;
}
/* Should be removed and moved to templates once TemplateStyles is live */
.hlist ol > li {
	counter-increment: listitem;
}
/* Should be removed and moved to templates once TemplateStyles is live */
.hlist ol > li:before {
	content: " " counter(listitem) " ";
	white-space: nowrap;
}
/* Should be removed and moved to templates once TemplateStyles is live */
.hlist dd ol > li:first-child:before,
.hlist dt ol > li:first-child:before,
.hlist li ol > li:first-child:before {
	content: " (" counter(listitem) " ";
}

/* [[Category:テンプレートスタイル|Hlist]] */