I am not really fond of the blockquote styling, or lack thereof. Here is a simple patch that I have done to hopefully improve the look of it. Simply put the attached quote.png image in bartik/images, and apply the patch to see it. I attached screenshots of before and after the patch was applied.

Though I have assigned this to myself, feel free to share your ideas if you like. My patch doesn't really do all that much, just makes it a little more unique. I think it would be great to give this element a look that distinguishes it from the rest of the body content.

Tested in FF and IE6-8.

Comments

Jeff Burnz’s picture

Status: Needs review » Needs work

Looks fine by me but it needs RTL styles, including flipping the direction of the quotes (maybe a sprite if you can work it).

tlattimore’s picture

I totally forgot about RTL when I did this. I will re-roll a patch with RTL done and the image sprite asap.

kika’s picture

Do we really need an (sorry, but not too good) image for quotationmark? Couldn't we use CSS generated content? Doing so, IE6 and IE7 lose that big hanging quotationmark, but they are still totally functional. According to http://caniuse.com, almost all versions of modern browsers support generated content.

Jeff Burnz’s picture

Kika, yeah we could but we loose out in style, we have to use a font to style it, and that stylish quotemark would not be possible without cufon or webfonts - depends if we want a stylish mark or a standard font.

bleen’s picture

@kika ... also, doing that ends up adding a single quote mark when users hilite the page for the purposes of copy/paste ...

tlattimore’s picture

StatusFileSize
new50.9 KB

Hey guys, thanks for the feedback.

@kika - I really like your point. I do not enjoy using images in places I do not have to, when things are able to be done in CSS it's just better in my opinion. In #5, bleen makes a good point. If we are to go with a style that has a big single quote and the beginning, this would be selected with the text if we went the route of CSS. Which if we chose another style, like a before and after quote, the quotation marks being selected wouldn't be a bad thing.

Guess what, there is already some CSS in bartik's style.css for this (line 105-110), but, it doesn't seem that it's working as is. Pretty simple fix though to get it to "work". Just put some single quotes around the doubles like this, at least I think thats what this was going for?

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: '""';
}

The thing I do not like about this code is that it applies the quotes to the outer part of the blockquote, not the content within it (see attached screenshot).

You are right kika, the quotation image is not all that good. Ok, it's pretty bad. I didn't really do a lot of thinking into what quote would go good there (probably should), but a single image is pretty easy to switch out. Do you have any suggestions for what font would be good for the quotation there?

I am going to keep working on this using a background image as the quote as stated in #2. Creating RTL style for it, finding a better quotation, and using a sprite. I do not have any grandious ideas about what should be done for this element, I just think it needs at least a little styling. Gives the theme a more polished feel.

Please share your thoughts/ideas. I have no real agenda here for what I think it should look like, I am willing to work on whatever idea the majority thinks is best. Feel free to share.

tlattimore’s picture

StatusFileSize
new42.44 KB

I have moved away from the big quotation and the beginning look, it just doesn't flow well with the rest of the design I think.

What about something really simple like this?

Jeff Burnz’s picture

I think more often I expect quotes to be italicized, so I am sure they are a not some other type of call-out. The style looks nice to me, its a concept I use often.

tlattimore’s picture

StatusFileSize
new1.32 KB
new29.36 KB

I agree with the italicizing the quotes. It makes it look more distinguished from the rest of the content. Here is a patch that builds on the look of #7 and has italics. It applies blockquote styling to LTR and RTL, and removes some lines that are not necessary with this look. See attached screenshot.

tlattimore’s picture

Status: Needs work » Needs review
bleen’s picture

I like this (with ital) .... what happened to the rounded corners from #7? It was subtle but I think it tied in nicely

tlattimore’s picture

StatusFileSize
new2.07 KB

Thanks for the feedback bleen. I really think the rounded corners look better to, the reason I took them out was because of the extra amount of CSS it took to override the LTR borders in RTL. I didn't know if the would quite "kosher", but, CSS is pretty cheap as far as processing goes. Here is a patch that applies the borders for both LTR and RTL styles. It will be really nice when all browsers have a universal way of doing border radius, until then I guess we are stuck having to add in extra bits of CSS.

ao5357’s picture

How about a generated content solution that fixes its own line-height issues?
From CSS Tricks Snippets:

blockquote{background:#f9f9f9;border-left:10px solid #ccc;font-style:italic;margin:1.5em 10px;padding:.5em 10px;quotes:"\201C""\201D""\2018""\2019";}
        blockquote:before{color:#ccc;content:open-quote;font-size:4em;line-height:.1em;margin-right:.25em;vertical-align:-.4em;}
        blockquote p{display:inline;}

/* Internationalization */
body[dir="rtl"] blockquote:before{margin-left:.25em;}
tlattimore’s picture

Thanks ao5357. Something like that could definitely work well, it really just depends on what we want it too have. But as stated in #5 and 6, a quotation mark at the beginning the the quote means that it will be selected along with the text, resulting in a single quotation mark at the beginning of the quote if the text it copied. Not the worst thing in the world, but kind of quirky.

tlattimore’s picture

StatusFileSize
new1.65 KB
new17.88 KB

I stand corrected! The quotes generated by CSS are selected with the rest of the content of the blockquote. Here is a patch inspired by the code in #13 that creates a pull quote look. See screenshot attached.

ao5357’s picture

the dec for blockquote p is meant to position block-level elements next to the position-augmented pullquote. Perhaps you can generalize it further (since input filters like html sanitizer tend to put text elements inside blockquotes) for fewer bugs down the road.

How about

blockquote :first-child{display:inline;}

? Can you think of circumstances where that would backfire? Is it likely that browser support for :first-child and :before and :after are roughly equivalent, such that the CSS progressive enhancement isn't inconsistent?

Just some food for thought.

tlattimore’s picture

StatusFileSize
new1.69 KB

@ao5357 - Thanks for the idea. I really didn't like targeted the paragraph as there is always the chance that the elements inside it might not be within one. Don't know why I did not think about targeting :first-child.

Here is a re-rolled patch that makes the change suggested in #16.

vako’s picture

Is there a module or method to apply this to Drupal 6.x?

tlattimore’s picture

@vako - None of this work is version specific, or theme specific. It is just CSS.

vako’s picture

Thanks, can you please give me a quick guide as how I can apply the latest patch here to the "< blockquote >" option in ver. 6?

Jeff Burnz’s picture

@Vako, this patch is for the Bartik theme, you can have a the same style in your theme but you will need to add the CSS to your themes CSS file. You cannot simply "apply" this to Drupal and have it magically style your blockquotes.

Also, this is an issue for the Bartik theme, if you need general theming help please ask in the Theme Development Forum, that is the place you for assistance.

monjohn’s picture

Applied patch with no problem and confirmed the look in #15

jensimmons’s picture

StatusFileSize
new1.97 KB

Yummy.

I made a few tweaks to this. Increasing contrast, making the line thinner, and matching that line color to the line in the tabs.

Here's a patch.

jensimmons’s picture

Status: Needs review » Fixed

Committed!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

magnoman’s picture

Status: Closed (fixed) » Active

I am using version 6 of Drupal. I had installed the module blockquote but didn´t like very much the style it is...
I like the way it ended up in #15 comment. How can I do it to my site?
What does the patch means? Where should I go and what should I do to apply the patch?

Jeff Burnz’s picture

Status: Active » Closed (fixed)

@26 - Please post in the theme or general forum, this issue is for Drupal 7 core and in particular the Bartik theme - if you have a problem with a module please post your issue in that modules issue queue. Please do not re-open core issues unless it pertains to core and the original issue.