Template:Cslist/styles.css: Difference between revisions

From Wiki.sg
Jump to navigation Jump to search
Template>RexxS
(implement sslist class for semicolon separated list)
 
m (1 revision imported)
 
(No difference)

Latest revision as of 15:28, 1 March 2019

/* make an inline list with either comma or semicolon separators */
ul.cslist, ul.sslist {
	margin: 0;
    padding: 0;
    display: inline-block;
    list-style: none;
}
.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;
}