Template:Cslist/styles.css: Difference between revisions
From Vigyanwiki
(start with styles disabled) |
m (13 revisions imported from alpha:Template:Cslist/styles.css) |
||
(14 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
/* | /* {{pp-template}} */ | ||
.cslist ul { | /* make an inline list with either comma or semicolon separators */ | ||
ul.cslist, | |||
ul.sslist { | |||
margin: 0; | |||
padding: 0; | padding: 0; | ||
display: inline-block; | |||
list-style: none; | |||
} | |||
ul.cslist-embedded { | |||
display: inline; | |||
} | } | ||
.cslist li { | |||
.cslist li, .sslist li { | |||
margin: 0; | margin: 0; | ||
padding: 0 0.25em 0 0; | |||
display: inline-block; | display: inline-block; | ||
} | } | ||
.cslist li:after { | .cslist li:after { | ||
content: ", "; | content: ", "; | ||
} | } | ||
.cslist li:last-child:after { | |||
.sslist li:after { | |||
content: "; "; | |||
} | |||
.cslist li:last-child:after, | |||
.sslist li:last-child:after { | |||
content: none; | content: none; | ||
} | } | ||
Latest revision as of 11:46, 10 August 2023
/* {{pp-template}} */
/* make an inline list with either comma or semicolon separators */
ul.cslist,
ul.sslist {
margin: 0;
padding: 0;
display: inline-block;
list-style: none;
}
ul.cslist-embedded {
display: inline;
}
.cslist li, .sslist li {
margin: 0;
padding: 0 0.25em 0 0;
display: inline-block;
}
.cslist li:after {
content: ", ";
}
.sslist li:after {
content: "; ";
}
.cslist li:last-child:after,
.sslist li:last-child:after {
content: none;
}