Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This patch makes the previous, up and next arrows look more sophisticated in the Pushbutton template. Includes new arrow images and adjusted positioning in stylesheet patch.
Comment | File | Size | Author |
---|---|---|---|
#10 | arrows_1.zip | 5.11 KB | Robert Castelo |
#9 | arrows_0.zip | 4.58 KB | Robert Castelo |
#7 | arrows.zip | 3.69 KB | Robert Castelo |
pushbutton-prev-up-next.zip | 2.6 KB | Robert Castelo |
Comments
Comment #1
JonBob CreditAttribution: JonBob commentedNot a bug, and should be set to "patch."
Comment #2
TDobes CreditAttribution: TDobes commentedCould you provide some PNG versions, please? Other than that, I like this style of arrow better, so +1.
Comment #3
Steven CreditAttribution: Steven commentedApplied pngcrush'ed versions to CVS.
Comment #4
Robert Castelo CreditAttribution: Robert Castelo commentedMany thanks Steven, one less thing on my to do list!
(My ADSL line cut out after a thunderstorm on Tuesday, so I'm stuck on dial-up. Everything takes forever to do this week....)
Comment #5
Robert Castelo CreditAttribution: Robert Castelo commentedMany thanks Steven, one less thing on my to do list!
(My ADSL line cut out after a thunderstorm on Tuesday, so I'm stuck on dial-up. Everything takes forever to do this week....)
Comment #6
(not verified) CreditAttribution: commentedComment #7
Robert Castelo CreditAttribution: Robert Castelo commentedSomehow Pushbutton slipped back to using the old arrows!
Attached is a patch which restores the new arrows.
It also adds CSS for the 'visited' link state, fixing a bug where the arrow would disapear on visted links.
Visited state arrows are also included, to match the colour of the links.
Comment #8
Robert Castelo CreditAttribution: Robert Castelo commentedExample here:
http://www.cortexttranslation.com/culture
You will have to move around on the book a bit to see the 'visited' links ;-)
Comment #9
Robert Castelo CreditAttribution: Robert Castelo commentedThis patch contains code and all necessary images (sorry - forgot to include replacement arrows in preveious post).
Comment #10
Robert Castelo CreditAttribution: Robert Castelo commentedDoh!
OK, this time with the images as png instead of gif.
This patch contains all neccessary files.
Comment #11
Steven CreditAttribution: Steven commentedApplied to CVS, after pngcrush'ing them (strip-out gamma information to avoid png gamma browser inconsistencies).
Comment #12
Steven CreditAttribution: Steven commentedBy the way, you should consider using CSS sprites for these arrows: you put all states in the same file stacked vertically (with some space in between), and use background-position: 0px -20px; or something to switch to another sprite.
This avoids the problem where the alternate state arrows are only loaded when you hover over them (resulting in a short time without arrow). I've used it on several sites already, it works marvelous except for one bug. In Safari/Konqueror the background is sometimes repeated even if no-repeat is set. To avoid problems, just add some extra padding at the bottom (if you stack vertically).
I use this trick for the tabs in bluebeach:
http://www.drupal.org/themes/bluebeach/main-tab1.png
Comment #13
Robert Castelo CreditAttribution: Robert Castelo commentedThanks.
I saw that on A List Apart, it's a clever solution, which I've been meaning to explore ;-)
Comment #14
(not verified) CreditAttribution: commented