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.
@TODO: Testing on other browsers, currently tested on Firefox, Chrome, Safari on XP, and IE8
I'm using Colorbox together with Gallery formatter and it's working great in Opera. Only the CSS for the Greenarrow Design needed a bit rework to work probably in Opera. The following changes had to be made:
.galleryformatter-greenarrows .gallery-slides .gallery-slide{height:312px}
.galleryformatter-greenarrows .gallery-slides .panel-overlay{bottom:0}
.galleryformatter .overlay-inner{width:100%}
.galleryformatter h3{color:#fff}
Giving the .gallery-slide
a fixed height within the CSS is possible for me, but not for the module. You would have to apply the style-attribute as an element-style (dynamically). If I find other CSS bugs I'll report them here.
Comment | File | Size | Author |
---|---|---|---|
#3 | galleryformatter-806296.patch | 2.4 KB | Manuel Garcia |
Comments
Comment #1
Manuel Garcia CreditAttribution: Manuel Garcia commentedHi Fleshgrinder, thanks for testing the module!
I have just tested it with the default presets, on Opera/9.80 (X11; Linux i686; U; en) Presto/2.2.15 Version/10.10, and it looks fine.
That said, the module provides the height of the slides as a variable to the tpl file, so you can use it to set the height dynamicaly using element-style if you need to do so for your case.
In the tpl file we are seting it for the gallery-slides container, not to each .gallery-slide:
line 27 of galleryformatter.tpl.php
<div class="gallery-slides" style="width: <?php print $gallery_slide_width; ?>px; height: <?php print $gallery_slide_height; ?>px;">
Please do let us know if you are making other changes for opera, and we'll prepare a proper patch so that everyone can test it, and make sure it doesnt break in other browsers, but well, as far as I can tell, using the presets provided by this module, it works... anyone else seeing a problem in opera?
Comment #2
Fleshgrinder CreditAttribution: Fleshgrinder commentedI'm using Opera 10.54 build 3394 on Windows 7.
Applying the height dynamically as you mentioned it works perfectly. So the only thing that should be changed afterwards is in the
greenarrows.css
file:Also tested with Mozilla Firefox 3.6.3 (Win), Internet Explorer 8 (Win) and Google Chrome 6.0.401.1 (Win) works flawlessly.
Let me shortly explain why these changes are necessary. The title/description is in front of the gray overlay PNG, in Opera this graphic is invisible. To fix this problem we apply the
width:100%
to theoverlay-inner
element. Then the next problem pops-up the overlay and text is not at the bottom of the gallery - as it is in Firefox etc.. To fix this we apply the height to thegallery-slide
element and change thebottom
value so it displays correctly again on all browsers.PS: The
color:#fff
is not necessary - this is only in my personal theme necessary. ;)PPS: Minified CSS version with changes applied and RGBA instead of an image:
Comment #3
Manuel Garcia CreditAttribution: Manuel Garcia commentedI've prepared a patch so that people can test this properly.
For now I'm keeping the transparent png for the overlay background, I feel we'd be swamped with bug reports if we don't support IE out of the box, as much as we all hate it. I only wish one day all browsers will support CSS3. I guess we could use rgba() along with http://kimili.com/journal/rgba-css-generator-for-internet-explorer to get a transparent bg without an image, but we have enough proprietary CSS declarations in the module already.
I'm taking your word for it on Opera on W7, since I cant test on that platform, many thanks Fleshgrinder for the work here!
Comment #4
Fleshgrinder CreditAttribution: Fleshgrinder commentedYou're welcome and thanks to you for that interesting link. I directly tested it and it works like a charm on the browser I have installed:
Or minified:
I'll use that code because compatibility for old browsers isn't from interest to me.
Comment #5
Manuel Garcia CreditAttribution: Manuel Garcia commentedThe above patch doesnt apply properly any more, but it simple enough to make the modifications yourselves.
Also as it was reported here #1094882: Not well supported for Opera Browser, the js seems to be broken also.
Comment #6
Manuel Garcia CreditAttribution: Manuel Garcia as a volunteer and at Appnovation for Pfizer, Inc. commented6.x-1.x branch no longer supported