Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
laxina
Experienced
Topic Author
Posts: 48
Joined: 16 Mar 2017, 21:41

menu back

05 Jun 2017, 06:36

Hi Karl, the gallery use as intro is very cool, but I found the slide mix to the logo and menu sometimes, even I set the menu style to 25% black. 


--is it possible that I can set the transparency to 50% or 75%? 

thanks a lot

Leon
Last edited by laxina on 05 Jun 2017, 07:08, edited 2 times in total.
 
User avatar
laxina
Experienced
Topic Author
Posts: 48
Joined: 16 Mar 2017, 21:41

Re: menu back

05 Jun 2017, 10:15

I use the code:
Code
header.header {
  background: rgba(0, 0, 0, 0.9);
}
but the line under menu is white, can I remove it please?

also, seems many user want have a darker fixed header(menu bar) , like this forum, has a fixed dark top menu.

is there a good solution for X3 please.

thanks
Attachments
header.jpg
header.jpg (27.59 KiB) Viewed 2473 times
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: menu back

05 Jun 2017, 10:28

Problem is, you don't want to set that header opacity for ALL pages. In your example, the text color even looks wrong. Let's start from scratch:
  • Please remove the custom code.
  • Set menu transparency to 25% from the slideshow intro plugin.
  • Send me a link to the page, and I will write a little snippet that gives a higher transparency level (more black).
 
User avatar
laxina
Experienced
Topic Author
Posts: 48
Joined: 16 Mar 2017, 21:41

Re: menu back

05 Jun 2017, 10:55

Hi Karl, thanks a lot.

I am still testing the website on my local computer, but please use my temp website at internet . 

http://laxina.net/test2/
http://laxina.net/test2/panel/

admin
admin
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: menu back

05 Jun 2017, 11:49

So, you basically want the header background area DARKER than this?
Image

Just for reference, that background opacity is ONLY applicable when using INTRO, as the menu is overlaying the slideshow. It makes no sense to set a background color with opacity when you are NOT using an intro.
 
User avatar
laxina
Experienced
Topic Author
Posts: 48
Joined: 16 Mar 2017, 21:41

Re: menu back

06 Jun 2017, 08:42

yes, darker than this, I attached two image 

--25% black, you can see the slide mix to the logo, and I have more complex image slide, that make the logo look worse. ( i am sorry, not all my  image is simple and plain as the X3 demo photos)

-- the darker one( I made it in photoshop), logo looks more direct. 
Attachments
2.jpg
75% black
2.jpg (103.31 KiB) Viewed 2456 times
1.jpg
25% black
1.jpg (113.6 KiB) Viewed 2456 times
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: menu back

07 Jun 2017, 00:14

OK, I have a solution for you. Go to settings > custom > custom CSS, and add this:
Code
.my-header-background .nav-wrapper {
  background: rgba(0,0,0,0.7) !important;
}
Then, for any page where you want to apply this background, go to page Settings > Details > Body Classes, and add (type in) the class my-header-background:
Image

You can of course adjust the opacity value 0.7 up or down.

Also, I am not sure if you want to use the FIXED TOPBAR setting, but that will be affected. The reason this is a bit more complicated than you might think, is because the topbar background needs to be conditional and change based on your settings and when it's fixed/unfixed (attached). The default code therefore looks like this:
Code
[class*='menu-a'][class*='topbar']:not(.menu-absolute-default).menu-absolute-50 .nav-wrapper:not(.topbar-sticky-pos) {
  background: rgba(0,0,0,0.25);
}
 
User avatar
laxina
Experienced
Topic Author
Posts: 48
Joined: 16 Mar 2017, 21:41

Re: menu back

07 Jun 2017, 10:40

thanks you a lot, let me try and test :)

Best

Leon
 
User avatar
laxina
Experienced
Topic Author
Posts: 48
Joined: 16 Mar 2017, 21:41

Re: menu back

15 Jun 2017, 07:51

Hi Karl, the header background code works good, but when I scroll down the page, the text color changed to darker, please let me know what code I should add to change the color of the text on menu.

thanks 

Leon
Attachments
white.jpg
white.jpg (36.27 KiB) Viewed 2368 times
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: menu back

15 Jun 2017, 13:34

I already noted this in a previous post. If you are going to edit the header, you are causing a waterfall of changes across "FIXED" and other menu styles. X3 styles are complex, because they need to interact with a variety of conditions. You can try this:
Code
.my-header-background .nav-wrapper:not(.topbar-sticky-pos) {
  background: rgba(0,0,0,0.7) !important;
}
That will NOT set the style on the sticky/fixed menu. You can't expect some short code that will magically make the menu look as you expect for 1. intro, 2.normal (top), and 3. fixed layout.