Tagged: x
-
AuthorPosts
-
September 30, 2016 at 10:01 am #1197367
ZerotoOneParticipanthey there,
as the title says I got this problem with my navbar changing its color to red http://prntscr.com/co79p8 in the safari browser. on chrome it looks as it should.my page is http://www.zerotoone.de
September 30, 2016 at 10:02 am #1197372
ZerotoOneParticipantThis reply has been marked as private.September 30, 2016 at 6:43 pm #1197893
RadModeratorHi there,
Thanks for writing in.
What version of Safari you’re testing it on? I just checked it on my safari and I didn’t get the same view as your screenshot.
Thanks!
October 1, 2016 at 8:47 am #1198490
ZerotoOneParticipantVersion 10.0 (11602.1.50.0.10) on mac os x el capitan
October 1, 2016 at 6:18 pm #1198822
RadModeratorHi there,
I updated from 9.0 to 10.0 and yes, I’m able to see it now. Looks like it’s now implementing CSS even if they are invalid.
Example, this is invalid and ignored by all browser including Safari 9
background-color: #cc2e2e2e !importantIt’s invalid because it has 8 hex character instead of just 6. But Safari 10 is now interpreting it differently. Example,
#cc2e2e 6 char is equal to red, adding 2e makes it transparent. Which makes it looks like pink. Looks like there will be the new standard in Safari 10.
Let’s fix it, please change this javascript (replacing
background-color: #cc2e2e2e !importantwith valid RGBA)jQuery(document).ready(function($){ $('.x-navbar-fixed-top, .x-navbar').css("background-color", "transparent"); var rev_height = $("#inici").height(); $(window).scroll(function(){ if ($(this).scrollTop() > rev_height) { $('.x-navbar, .x-navbar-fixed-top').attr('style','background-color: #cc2e2e2e !important'); } else { $('.x-navbar, .x-navbar-fixed-top').attr('style','background-color: transparent !important'); } }); });to this
jQuery(document).ready(function($){ $('.x-navbar-fixed-top, .x-navbar').css("background-color", "transparent"); var rev_height = $("#inici").height(); $(window).scroll(function(){ if ($(this).scrollTop() > rev_height) { $('.x-navbar, .x-navbar-fixed-top').attr('style','background-color: rgba(46,46,46,0.8) !important'); } else { $('.x-navbar, .x-navbar-fixed-top').attr('style','background-color: transparent !important'); } }); });Hope this helps.
October 2, 2016 at 8:41 am #1199292
ZerotoOneParticipantthank you a lot, thats it 🙂
October 2, 2016 at 9:05 am #1199302
ThaiModeratorYou’re most welcome 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1197367 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
