Difference between revisions of "Template:Cslist/styles.css"
Jump to navigation
Jump to search
imported>RexxS (enable) |
m (1 revision imported) |
||
(8 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | /* make an inline list with comma | + | /* make an inline list with either comma or semicolon separators */ |
− | .cslist ul { | + | ul.cslist, ul.sslist { |
− | + | margin: 0; | |
padding: 0; | padding: 0; | ||
+ | display: inline-block; | ||
+ | list-style: none; | ||
} | } | ||
− | .cslist li { | + | .cslist li, .sslist li { |
margin: 0; | margin: 0; | ||
+ | padding: 0 0.25em 0 0; | ||
display: inline-block; | display: inline-block; | ||
} | } | ||
Line 11: | Line 14: | ||
content: ", "; | content: ", "; | ||
} | } | ||
− | .cslist li:last-child:after { | + | .sslist li:after { |
+ | content: "; "; | ||
+ | } | ||
+ | .cslist li:last-child:after, .sslist li:last-child:after { | ||
content: none; | content: none; | ||
} | } |
Latest revision as of 17:55, 9 March 2020
/* 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; }