Template:Cslist/styles.css: Difference between revisions
Jump to navigation
Jump to search
imported>Izno add embedded option |
m 1 revision imported |
||
| (One intermediate revision by one other user not shown) | |||
| 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.cslist, ul.sslist, ul.andlist, ul.andlistoxford { | ||
ul.sslist { | |||
margin: 0; | margin: 0; | ||
padding: 0; | padding: 0; | ||
| Line 13: | Line 12: | ||
} | } | ||
.cslist li, .sslist li { | .cslist li, .sslist li, .andlist li, .andlistoxford li { | ||
margin: 0; | margin: 0; | ||
padding: 0 0.25em 0 0; | padding: 0 0.25em 0 0; | ||
| Line 19: | Line 18: | ||
} | } | ||
.cslist li:after { | .cslist li:after, .andlistoxford li:after { | ||
content: ", "; | content: ", "; | ||
} | } | ||
| Line 28: | Line 27: | ||
.cslist li:last-child:after, | .cslist li:last-child:after, | ||
.sslist li:last-child:after { | .sslist li:last-child:after, | ||
.andlist li:last-child:after, .andlistoxford li:last-child:after { | |||
content: none; | content: none; | ||
} | |||
.andlist li:nth-last-child(2):after { | |||
content: " and "; | |||
} | |||
.andlistoxford li:nth-last-child(2):after { | |||
content: ", and "; | |||
} | } | ||
Latest revision as of 22:19, 9 October 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 ";
}