Quote Post - {Length}

147 views
Skip to first unread message

syndex

unread,
Apr 8, 2012, 5:13:49 PM4/8/12
to Tumblr Themes
{Length} "short", "medium", or "long", depending on the length of the
quote.
Does anyone know what this is used for? There's no examples, and
googling it (or anything to do with Tumblr Theme Creation) throws
blanks.
Thanks,
Marc

Justin Cox

unread,
Apr 8, 2012, 8:50:30 PM4/8/12
to Tumblr Themes
You could use it for styling different quotes based on length.

marckre...@gmail.com

unread,
Apr 10, 2012, 12:45:20 PM4/10/12
to tumblr...@googlegroups.com
I know, but i'm not sure how that syntax works in the real world? 
And who defines the length? And how is the developer supposed to sniff what constitutes according to tumblr a long or short quote?

An example would be greatly appreciated. Many thanks.

Sean Zhu

unread,
Apr 10, 2012, 11:10:38 PM4/10/12
to tumblr...@googlegroups.com
You can use it for CSS classes:

<style>
  .quote.short {font-size: 16px}
  .quote.medium {font-size: 13px}
  .quote.long {font-size: 10px}
</style>
<div class="quote {Length}">…</div>
Reply all
Reply to author
Forward
0 new messages