sally_maria: (Default)
wrong but wromantic ([personal profile] sally_maria) wrote in [community profile] style_system2012-07-03 07:00 pm
Entry tags:

Annual problem with tag display

I'm sorry to bother you guys with this again, but I'm trying to have comma separated list of tags in my sidebar.

Last year changes in the code introduced an annoying extra space before the comma and [personal profile] marahmarie very kindly wrote me some CSS to fix the problem - see the entry here.

.module-tags_cloud .module-list-item { font-size: 12pt !important; }
.module-tags_cloud .module-list-item:after{content: ","!important; margin-left:-.2em!important;}
.module-tags_cloud .module-list-item:last-child:after { content: ""!important;}


I've recently switched layout to one of the new Strata themes and the code no longer works - there are no commas showing at all.

I tried reverting to the old version of the CSS

.module-tags_cloud .module-list-item { font-size: 12pt !important; }
.module-tags_cloud .module-list-item:after{content: ", "; }
.module-tags_cloud .module-list-item:last-child:after{content: " "; }


and the commas reappear, but still with the annoying extra space.

Does anyone have any idea what's going wrong and any suggestions about how to fix it? I tried changing the "margin-left" figure to .4 and it didn't seem to have any effect, but I don't really understand how that bit of the code is working, so it's hard to know how to change it.
foxfirefey: A fox colored like flame over an ornately framed globe (Default)

[personal profile] foxfirefey 2012-07-03 09:08 pm (UTC)(link)
Your new version is almost okay--I think it just has a couple wee syntax things that end up making it not work. Try this format for it:

foxfirefey: Fox stealing an egg. (mischief)

[personal profile] foxfirefey 2012-07-03 10:48 pm (UTC)(link)
If you do not mind messing around with S2 layers, I think it would not be too hard to add in actual commas, if you like.