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.
| Comment | File | Size | Author |
|---|---|---|---|
| #23 | bartik_blockquote_v4.patch | 1.97 KB | jensimmons |
| #17 | bartik_blockquotev3-1.patch | 1.69 KB | tlattimore |
| #15 | bartik_blockquotev3.png | 17.88 KB | tlattimore |
| #15 | bartik_blockquotev3.patch | 1.65 KB | tlattimore |
| #12 | bartik_blockquotev2-2.patch | 2.07 KB | tlattimore |
Comments
Comment #1
Jeff Burnz commentedLooks fine by me but it needs RTL styles, including flipping the direction of the quotes (maybe a sprite if you can work it).
Comment #2
tlattimore commentedI totally forgot about RTL when I did this. I will re-roll a patch with RTL done and the image sprite asap.
Comment #3
kika commentedDo 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.
Comment #4
Jeff Burnz commentedKika, 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.
Comment #5
bleen commented@kika ... also, doing that ends up adding a single quote mark when users hilite the page for the purposes of copy/paste ...
Comment #6
tlattimore commentedHey 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.cssfor 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?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.
Comment #7
tlattimore commentedI 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?
Comment #8
Jeff Burnz commentedI 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.
Comment #9
tlattimore commentedI 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.
Comment #10
tlattimore commentedComment #11
bleen commentedI like this (with ital) .... what happened to the rounded corners from #7? It was subtle but I think it tied in nicely
Comment #12
tlattimore commentedThanks 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.
Comment #13
ao5357 commentedHow about a generated content solution that fixes its own line-height issues?
From CSS Tricks Snippets:
Comment #14
tlattimore commentedThanks 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.
Comment #15
tlattimore commentedI 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.
Comment #16
ao5357 commentedthe 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
? 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.
Comment #17
tlattimore commented@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.
Comment #18
vako commentedIs there a module or method to apply this to Drupal 6.x?
Comment #19
tlattimore commented@vako - None of this work is version specific, or theme specific. It is just CSS.
Comment #20
vako commentedThanks, can you please give me a quick guide as how I can apply the latest patch here to the "< blockquote >" option in ver. 6?
Comment #21
Jeff Burnz commented@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.
Comment #22
monjohn commentedApplied patch with no problem and confirmed the look in #15
Comment #23
jensimmons commentedYummy.
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.
Comment #24
jensimmons commentedCommitted!
Comment #26
magnoman commentedI 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?
Comment #27
Jeff Burnz commented@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.