Support community for TTG plugins and products.
NOTICE
The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.
This forum is now closed, and exists here as a read-only archive.
You are not logged in.
Pages: 1
Hi there,
I installed backlight today for some testing and struggle with the custom CSS part. I already found a similar thread but the solution is not working properly for me.
The domain is: http://backlight.around-the-globe.info/
The custom CSS looks like:
html,
body,
main {
background-image: url("http://backlight.around-the-globe.info/backlight/designer/?c=page&a=image&p1=1");
background-position: top;
background-repeat: no-repeat;
}
nav ul,
nav li,
.page__tray ul.menu li {
background-color: transparent;
}
@media screen and ( min-width: 1025px ) {
.masthead,
nav,
.main, .page__main,
.page__tray[data-position="T1"],
.page__tray[data-position="T2"],
.copyright {
background-color: rgba( 255, 255, 255, 0.5 );
}
}
The background seems to be appear multiple times but I don't get it (I am not familiar with CSS). Despite this "Backlight" is a great update from the old CE4 Pages stuff!
Maybe someone can help me with this matter.
Thank you
Offline
Your background on the site looks pretty much like the image here:
http://backlight.around-the-globe.info/ … image&p1=1
I don't see any repeating.
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Made a printscreen: http://www.bilder-upload.eu/show.php?fi … 574541.jpg
"Have a go" starts in the middle and "od trip" is above this. It seems that there is more than one background pictures.
The opacity is different between the masthead and the body (and this shouldn't be like that)
Offline
I think you should not apply the background image to main. Maybe this works for you:
html,
body {
background-image: url("http://backlight.around-the-globe.info/backlight/designer/?c=page&a=image&p1=1");
background-position: top;
background-repeat: no-repeat;
}
main {
background-color: rgba(1,1,1,0);
}
Daniel Leu | Photography
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com
Offline
you were right Daniel, thank you!
the final CSS code
html,
body {
background-image: url("http://backlight.around-the-globe.info/backlight/designer/?c=page&a=image&p1=1");
background-position: top;
background-repeat: no-repeat;
}
main {
background-color: rgba(1,1,1,0);
}
nav ul,
nav li,
.page__tray ul.menu li {
background-color: transparent;
}
@media screen and ( min-width: 1025px ) {
.masthead,
nav,
.main, .page__main,
.page__tray[data-position="T1"],
.page__tray[data-position="T2"],
.copyright {
background-color: rgba( 255, 255, 255, 0.5 );
}
}
Offline
:-)
Daniel Leu | Photography
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com
Offline
additional question:
If you click --> http://backlight.around-the-globe.info/about/
and take a closer look on the navigation bar the menu items are a bit less transparent than the rest, how can I fix that?
Offline
Are you using a different page template for your About page?
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
It is a 1-column template and the one for the main page (2-column) is not up2date yet.
UPDATE
Decided to choose another way. I would like to use my background only "inside" my page container( masthead, nav, body, footer) but the nav part is still not transparent. This is my CSS file
main {
background-color: rgba(1,1,1,0);
}
nav ul,
nav li,
.page__tray ul.menu li {
background-color: rgba( 255, 255, 255, 0.5 );
}
@media screen and ( min-width: 1025px ) {
html, main, .masthead {
background-image: url("http://backlight.around-the-globe.info/backlight/designer/?c=page&a=image&p1=1");
background-position: top center;
background-attachment: fixed;
background-repeat: no-repeat;
}
.masthead,
nav,
.main, .page__main,
.page__tray[data-position="T1"],
.page__tray[data-position="T2"],
.copyright {
background-color: rgba( 255, 255, 255, 0.5 );
}
}
Using the CSS code above makes the nav bar transparent but the background is allover the site. What is the reason?
Last edited by MoritzCH (2016-09-01 21:13:25)
Offline
Maybe this is what you are looking for:
nav ul, nav li, .page__tray ul.menu li {
background-color: rgba( 255, 255, 255, 0 );
}
And to have the background only in the page container, then you might want to apply the background to .page__body:
.page__body {
background-image: url("http://backlight.around-the-globe.info/backlight/designer/?c=page&a=image&p1=1");
background-position: top;
background-attachment: fixed;
background-repeat: no-repeat;
}
Daniel Leu | Photography
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com
Offline
Site with fixes --> http://backlight.around-the-globe.info/about/
it is close but shouldn't the background image be invisible below the footer?
Offline
I think currently your foot is set as 'internal'. Did you try to use 'external'? Does this make a difference?
Daniel Leu | Photography
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com
Offline
Yeah, it looks better like that.
Daniel Leu | Photography
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com
Offline
and another question (think it is pointless to open a new thread for this). I would like to hide the magnifier button (Zoom in/out) while using Photoswipe fullscreen slideshow. The button is called "pswp__button pswp__button--zoom" so I tried
pswp__button pswp__button--zoom {
display: None;
}
in my custom css file but without success. What is the correct code for this? Wouldn't it be a useful thing to implement into the template configuration panel?
Offline
Those are classes, so you need "." before each.
.pswp__button .pswp__button--zoom {
display: None;
}
But why hide the button? It's functionality that harms nothing, so is only useful.
Offline
argh this damn "." ... thank you
Well my pictures are a little bit larger than FullHD so the magnifier function is not really necessary. You may be right and it's not harmful so there is no need to remove it.
Offline
Whether or not it's useful all depends on the size or your visitor's display. I'm on a 13" Macbook Air, so the zoom is probably a lot more useful for me than it would be for someone on a larger screen.
Offline
Pages: 1