caput_mortuum: (Default)
caput_mortuum ([personal profile] caput_mortuum) wrote in [community profile] style_system2013-05-27 12:24 am

thread collapsing in plain

 I'm adjusting the comment page for a plain theme.

Question: when the threads collapse, this style basically just displays a truncated comment header. However, in DW's site comment system collapsed comments have their own class (cmtpartial) and are displayed differently, with different font properties and such
I would like to have that, is there a way to keep that?
momijizukamori: Green icon with white text - 'I do believe in phosphorylation! I do!' with a string of DNA basepairs on the bottom (Default)

[personal profile] momijizukamori 2013-05-26 10:53 pm (UTC)(link)
And by way of example, the CSS for collapsed comments on the new site-scheme pages (which uses the same output as journal-style pages) is this:

/*Styling for collapsed comments*/
.partial h4.comment-title {font-size: 1em; display:inline; font-weight:normal;}
.partial h4.comment-title a {font-size: 1em; display:inline; font-weight:normal;}
.partial .poster {display:inline;}

momijizukamori: A sleeping dreamsheep with a '<3' sign. It says 'Momiji' above it, and 'Styles' below it. (dreamsheep volunteer)

[personal profile] momijizukamori 2013-05-26 10:58 pm (UTC)(link)
No prob! I was the one who wrote it, so I knew where I could go grab it fast *g*
momijizukamori: Grey tabby cat with paws on keyboard and mouse. The text reads 'code cat is on the job', lolcats-style (CODE CAT)

[personal profile] momijizukamori 2013-05-27 12:50 am (UTC)(link)
Hmmm. The 'display: inline' should take care of that, but there may be other CSS in Tabula Rasa that's messing with it. Have you tried adding '!important' to the display lines?
momijizukamori: Green icon with white text - 'I do believe in phosphorylation! I do!' with a string of DNA basepairs on the bottom (Default)

[personal profile] momijizukamori 2013-05-27 08:33 am (UTC)(link)
Hmm. For some reason it seems like the first line of CSS isn't making it in, but the second and third (confusingly) are.

Try


.partial h4.comment-title a, .partial h4.comment-title {
display: inline !important;
font-size: 1em;
font-weight: normal;
}

instead of the first and second lines, maybe? The h4 is the problem - it wants to be a block element, and it's pushing everything else to the next line because of it.
momijizukamori: Green icon with white text - 'I do believe in phosphorylation! I do!' with a string of DNA basepairs on the bottom (Default)

[personal profile] momijizukamori 2013-05-28 03:03 am (UTC)(link)

Off hand, I think most of the 'nice' ways to do it involve S2, not just pure CSS, unfortunately :(