Cslist/styles.css: Difference between revisions

From IxWiki
Jump to navigation Jump to search
No edit summary
 
Heku (talk | contribs)
m 1 revision imported
 
(No difference)

Latest revision as of 03:03, 1 April 2025

/* {{pp-template}} */
/* make an inline list with either comma or semicolon separators */
ul.cslist, ul.sslist, ul.andlist, ul.andlistoxford {
	margin: 0;
    padding: 0;
    display: inline-block;
    list-style: none;
}

ul.cslist-embedded {
    display: inline;
}

.cslist li, .sslist li, .andlist li, .andlistoxford li {
    margin: 0;
    padding: 0 0.25em 0 0;
    display: inline-block;
}

.cslist li:after, .andlistoxford li:after {
    content: ", ";
}

.sslist li:after {
    content: "; ";
}

.cslist li:last-child:after,
.sslist li:last-child:after,
.andlist li:last-child:after, .andlistoxford li:last-child:after {
    content: none;
}

.andlist li:nth-last-child(2):after {
	content: " and ";
}

.andlistoxford li:nth-last-child(2):after {
	content: ", and ";
}