[personal profile] caput_mortuum posting in [community profile] style_system
 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?

Date: 2013-05-26 10:50 pm (UTC)
momijizukamori: Green icon with white text - 'I do believe in phosphorylation! I do!' with a string of DNA basepairs on the bottom (Default)
From: [personal profile] momijizukamori
Assuming you're playing with a core2 theme, you'll want to target .comment .partial for CSS - all comments get .comment, and then collapsed ones get .partial.

Date: 2013-05-26 10:55 pm (UTC)
momijizukamori: Green icon with white text - 'I do believe in phosphorylation! I do!' with a string of DNA basepairs on the bottom (Default)
From: [personal profile] momijizukamori
Yes, it is! All DW default themes save Zesty are core2 - but sometimes people import old themes from LJ which are based on core1, and don't have the same CSS.

Tabula Rasa is actually our 'basic' core2 journal style - it's got all of the 'default' styling for core2 built in :)

Date: 2013-05-26 10:53 pm (UTC)
momijizukamori: Green icon with white text - 'I do believe in phosphorylation! I do!' with a string of DNA basepairs on the bottom (Default)
From: [personal profile] momijizukamori
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;}

Date: 2013-05-26 10:58 pm (UTC)
momijizukamori: A sleeping dreamsheep with a '<3' sign. It says 'Momiji' above it, and 'Styles' below it. (dreamsheep volunteer)
From: [personal profile] momijizukamori
No prob! I was the one who wrote it, so I knew where I could go grab it fast *g*

Date: 2013-05-27 12:50 am (UTC)
momijizukamori: Grey tabby cat with paws on keyboard and mouse. The text reads 'code cat is on the job', lolcats-style (CODE CAT)
From: [personal profile] momijizukamori
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?

Date: 2013-05-27 08:33 am (UTC)
momijizukamori: Green icon with white text - 'I do believe in phosphorylation! I do!' with a string of DNA basepairs on the bottom (Default)
From: [personal profile] momijizukamori
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.

Date: 2013-05-28 03:03 am (UTC)
momijizukamori: Green icon with white text - 'I do believe in phosphorylation! I do!' with a string of DNA basepairs on the bottom (Default)
From: [personal profile] momijizukamori

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

Profile

Dreamwidth style system discussion

October 2025

S M T W T F S
   1 234
567891011
12131415161718
19202122232425
262728293031 

Style Credit

Expand Cut Tags

No cut tags
Page generated Nov. 1st, 2025 09:30 am
Powered by Dreamwidth Studios