Template:Cslist/styles.css: Difference between revisions

From Stiles Wiki
Jump to navigation Jump to search
en>Izno
(add embedded option)
 
(Created page with "→‎{{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 {...")

Revision as of 19:37, 23 May 2022

/* {{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;
}