Template:Cslist/styles.css: Difference between revisions
From Vigyanwiki
(Adding protection template) |
(add embedded option) |
||
Line 1: | Line 1: | ||
/* {{pp-template}} */ | /* {{pp-template}} */ | ||
/* make an inline list with either comma or semicolon separators */ | /* make an inline list with either comma or semicolon separators */ | ||
ul.cslist, ul.sslist { | ul.cslist, | ||
ul.sslist { | |||
margin: 0; | margin: 0; | ||
padding: 0; | padding: 0; | ||
Line 7: | Line 8: | ||
list-style: none; | list-style: none; | ||
} | } | ||
ul.cslist-embedded { | |||
display: inline; | |||
} | |||
.cslist li, .sslist li { | .cslist li, .sslist li { | ||
margin: 0; | margin: 0; | ||
Line 12: | Line 18: | ||
display: inline-block; | display: inline-block; | ||
} | } | ||
.cslist li:after { | .cslist li:after { | ||
content: ", "; | content: ", "; | ||
} | } | ||
.sslist li:after { | .sslist li:after { | ||
content: "; "; | content: "; "; | ||
} | } | ||
.cslist li:last-child:after, .sslist li:last-child:after { | |||
.cslist li:last-child:after, | |||
.sslist li:last-child:after { | |||
content: none; | content: none; | ||
} | } |
Revision as of 21:11, 18 September 2020
/* {{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;
}