I have added a custom layout for my comments display. It seems that the css file for the layout is not being added to the page. For example I have setup my comments to be a 2 column layout. After viewing source the template is working fine, but the ds_2col.css file is no where to be found.

Comments

swentel’s picture

Status: Active » Closed (works as designed)

If you add a custom layout, then you need to add your css file as well, it's not going to include a css file from another layout.
Also, the .comment selector in core has a 'display: table' in its style.css which does some annoying stuff sometimes disabling the floats.
The default 2 column works perfectly fine here.

tom friedhof’s picture

I misspoke, I wasn't adding a custom layout, I was adding the 2 column layout that comes with display suite. On node displays the ds_2col.css file is included perfectly fine, but for comments it is not.

In my specific use case I had to write my own css for .group-left and .group-right because I didn't want the default 50% / 50%, so I did add my own css, but upon initially creating a 2 column comment layout I thought it should behave the same as creating a 2 column view mode for nodes, where it includes the css file for the layout plugin that was chosen. In this case it didn't.