Code, Quotes, Attachments, CSS max-height

  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13503
  • Loc: Florida

Post 3+ Months Ago

The code bbcode has a max-height, quotes and attachments don't.
It is nice having a max-height applied to quote blocks, attachments, not so much.

I've added a max-height for quotes in my user.css

CSS Code: [ Select ]
.quoteBody
{
   max-height:12em;
}
  1. .quoteBody
  2. {
  3.    max-height:12em;
  4. }


But this is also being applied to attachments since they share the same "quoteBody" CSS class. So if I shrink quote blocks I end up shrinking attachment blocks too.

I've looked at the two codes for a bit, and I can't find anything I can use to differentiate between the two CSS-wise. I can however target only quoteBody classed elements that do not have an <img> childNode with Javascript.

Since I imagine I'm not the only one who likes short quote blocks, I figured I'd bring this up before I modify user.js and forget about it. :D
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8411
  • Loc: USA

Post 3+ Months Ago

Where is the user.css and user.js in Firefox? Or does it even have one?
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13503
  • Loc: Florida

Post 3+ Months Ago

For Firefox, you'll want to look into the Greasemonkey addon to do user scripts (javascript) and when it comes to CSS you'll want to look into the stylish addon.
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8411
  • Loc: USA

Post 3+ Months Ago

Thank you sir.

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 1 guest
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.