Thread Locked This thread is locked - replies are not allowed.


This question is answered.


Permlink Replies: 25 - Pages: 2 [ 1 2 | Next ] - Last Post: 9 Jan 24, 01:40 Last Post By: JeffTucker
jimberry

Posts: 493
Registered: 30-Aug-2004
Neptune: Changing opacity for folder overlay
Posted: 21 Dec 23, 07:42
 
I am preparing a family collaborative album using Neptune skin.

I have replaced the skins folder.svg with my own version and added ".ja-folderoverlay {opacity: 0.7} !important;" in Settings>Neptune>Code.

However, the HTML style opacity setting of "0.4" seems to be taking precedence (checked in Developer Tools - my "important" rule is crossed out with no explanation).

Is there any way of changing the opacity without editing the skin's HTT code?

Problem album - - https://vacunym.com/Albums/Xmas2023/index.html
JeffTucker

Posts: 8,297
Registered: 31-Jan-2006
Re: Neptune: Changing opacity for folder overlay
Posted: 21 Dec 23, 15:04   in response to: jimberry in response to: jimberry
Helpful
You've got the CSS syntax wrong. What you need is:
.ja-folderoverlay {opacity: 0.7 !important}
BTW, the reason that's an inline style, rather than in the CSS, is that otherwise, the overlay starts off with opacity 1.0, then dials down to 0.4. Visually, that's really annoying on page load.

Totally off-topic, but any place you're using that RechtmanPlain WOFF font, you need to de-bold it, and increase the font size. That often happens with cursive fonts - if you bold them, they get tough to read, and they're usually intrinsically smaller than other fonts.

ETA: I see you're trying to use custom CSS to deal with things like the slide comment fonts. No need - the skin has all the settings you need. Head for Neptune > Fonts > Slides and Info Page > Slides Font Styles > Comment and tell it to use Font family instead of the WOFF font. That's the place to set the font size, too. For folder titles, Neptune > Fonts > Thumbnails > Font Styles > Folder thumbnail title.
JeffTucker

Posts: 8,297
Registered: 31-Jan-2006
Re: Neptune: Changing opacity for folder overlay
Posted: 21 Dec 23, 15:24   in response to: jimberry in response to: jimberry
Correct
Oh, and Happy Birthday! :)
jimberry

Posts: 493
Registered: 30-Aug-2004
Re: Neptune: Changing opacity for folder overlay
Posted: 21 Dec 23, 16:05   in response to: JeffTucker in response to: JeffTucker
 
Thanks :) I am starting to feel like an old man!
jimberry

Posts: 493
Registered: 30-Aug-2004
Re: Neptune: Changing opacity for folder overlay
Posted: 21 Dec 23, 16:13   in response to: JeffTucker in response to: JeffTucker
 
That did the trick!! How did I miss that obvious errror?
Thanks for the other tips as well - I'll look at them tomorrow.
jimberry

Posts: 493
Registered: 30-Aug-2004
Re: Neptune: Changing opacity for folder overlay
Posted: 22 Dec 23, 06:10   in response to: JeffTucker in response to: JeffTucker
 
JeffTucker wrote:
Totally off-topic, but any place you're using that RechtmanPlain WOFF font, you need to de-bold it, and increase the font size. That often happens with cursive fonts - if you bold them, they get tough to read, and they're usually intrinsically smaller than other fonts.
Setting the RechtmanPlain font to bold was an experiment, but it didn't seem to make any difference at all and I never got around to resetting to normal. I have now changed it back to normal.
ETA: I see you're trying to use custom CSS to deal with things like the slide comment fonts. No need - the skin has all the settings you need. Head for Neptune > Fonts > Slides and Info Page > Slides Font Styles > Comment and tell it to use Font family instead of the WOFF font. That's the place to set the font size, too. For folder titles, Neptune > Fonts > Thumbnails > Font Styles > Folder thumbnail title.
I don't see Neptune > Fonts > Thumbnails > Font Styles > Folder thumbnail title.

The only elements set to use WOFF are now Theme image title and Banner title.
I have removed some of the added CSS code, my added CSS code now looks like
#ja-banner {
	background-size: contain;
	position:relative;
	}
.ja-pagetitleTI {
	color: #f11717; 
	font-size:8vw; 
	position:absolute; bottom:0; 
	text-align: center;
	}
.ja-pagetitle {
	color: #f11717; }
.ja-folderoverlay {opacity: 0.7 !important}

I don't see a way to set the title on folder index pages to folder title instead of album title. If this can't be done, can the title bar be removed from all but the album front page?
JeffTucker

Posts: 8,297
Registered: 31-Jan-2006
Re: Neptune: Changing opacity for folder overlay
Posted: 22 Dec 23, 07:52   in response to: jimberry in response to: jimberry
 
Attachment folderThumbFonts.png (32.4 KB)
Attachment pageTitle.png (37.7 KB)
jimberry wrote:
I don't see Neptune > Fonts > Thumbnails > Font Styles > Folder thumbnail title.

See folderThumbFonts.png.

... my added CSS code now looks like....

Trying to absolutely-position the page title is just going to lead to heartache. I'm not sure what you're trying to achieve by doing that. You seem to be trying to force the entire theme image to be shown at all times, regardless of viewport size. But it's a background image, so that's just going to cause other problems. Try making your browser window narrower, and you'll see what I mean.

But if you want to center some absolutely-positioned text, using text-align won't do a thing. You would need:
position: absolute;
bottom: 0;
left: 0;
right: 0;


I don't see a way to set the title on folder index pages to folder title instead of album title.

See pageTitle.png.

In the current version of the album that I'm seeing, you've also made the folder thumbnails much too small. They can't even contain their own titles. The default skin settings for image bounds are a better place to start.
JeffTucker

Posts: 8,297
Registered: 31-Jan-2006
Re: Neptune: Changing opacity for folder overlay
Posted: 22 Dec 23, 08:04   in response to: JeffTucker in response to: JeffTucker
 
Attachment step1.png (11.5 KB)
Attachment step2.png (30.9 KB)
Attachment step3.png (44.5 KB)
You should just get rid of all the custom CSS for #ja-banner, .ja-pagetitleTI, and .ja-pagetitle. None of it is needed, and it's taking you down a rabbit hole.

Use the Fonts tab settings to set the font size of the titles. Any time you find yourself entering custom CSS to alter any of the font characteristics, you're doing it the hard way. There are simple JSpinners and JComboBoxes for all of that in the skin settings. No need for any hand-coding.

And to do custom colors, use the Custom style of the skin. See step1.png, step2.png, and step3.png.
jimberry

Posts: 493
Registered: 30-Aug-2004
Re: Neptune: Changing opacity for folder overlay
Posted: 22 Dec 23, 14:59   in response to: JeffTucker in response to: JeffTucker
 
JeffTucker wrote:
jimberry wrote:
I don't see Neptune > Fonts > Thumbnails > Font Styles > Folder thumbnail title.

See folderThumbFonts.png.

I was using an earlier version of Neptune. Having now obtained the latest version, that option is now there.
Trying to absolutely-position the page title is just going to lead to heartache. I'm not sure what you're trying to achieve by doing that.
I want the page title positioned so that it does not obscure any faces on the background image. Bottom centre seemed ideal. I didn't understand that setting left and right to 0 is equivalent to centering.
I am leaving "font-size:8vw; " in the Code section because it seems that "vw" is not selectable in the custom section and I want the text size to adjust to the view width along with the background image. The text now gets pushed down below the background image on a phone, but phones are not ideal for viewing albums anyway.
JeffTucker

Posts: 8,297
Registered: 31-Jan-2006
Re: Neptune: Changing opacity for folder overlay
Posted: 22 Dec 23, 15:22   in response to: jimberry in response to: jimberry
 
Attachment version1.png (23.0 KB)
jimberry wrote:
I was using an earlier version of Neptune. Having now obtained the latest version, that option is now there.

That's been there since version 1. Screenshot.

I want the page title positioned so that it does not obscure any faces on the background image.

You're trying to treat the theme image as something other than a background image. Tears before bedtime. ;)

But rather than using absolute positioning, you'd probably be better off just putting some margin-top on #ja-themedim. Try about 60px. It will still be unhappy on a phone, but.... Oh, and get rid of the extra <br> characters in the album title - I think those just confuse the issue.

I am leaving "font-size:8vw; " in the Code section because it seems that "vw" is not selectable in the custom section and I want the text size to adjust to the view width along with the background image.

But that means that the text will get smaller on smaller devices. Less than an ideal user experience.

I'm tinkering with a new option for Neptune (as well as Mercury, Opus 16, and Venus ) that will offer a somewhat different approach to handling the theme image. But it won't be ready by Xmas. :)
jimberry

Posts: 493
Registered: 30-Aug-2004
Re: Neptune: Changing opacity for folder overlay
Posted: 24 Dec 23, 15:02   in response to: JeffTucker in response to: JeffTucker
 
JeffTucker wrote:
jimberry wrote:
I want the page title positioned so that it does not obscure any faces on the background image.

You're trying to treat the theme image as something other than a background image. Tears before bedtime. ;)

I am not sure what you are getting at here. The background image is a background image and I dont want it to be something else. What I am trying to do is position the text at bottom centre of the banner so that it does not cover any of the faces in the background image.
Using "left:0; right:0;" seems to work on the local machine, but after it is uploaded it goes to the left and the Developers tool shows "right: 0;" underlined. Individual elements are individuals but they are part of a whole and should work together, not against each other.
I am leaving "font-size:8vw; " in the Code section because it seems that "vw" is not selectable in the custom section and I want the text size to adjust to the view width along with the background image.

But that means that the text will get smaller on smaller devices. Less than an ideal user experience.

Looks OK to me, it only affects the album title ;)

I will be away for some weeks without access to my computer, so I will try to sort this and other issues out when I return.
JeffTucker

Posts: 8,297
Registered: 31-Jan-2006
Re: Neptune: Changing opacity for folder overlay
Posted: 24 Dec 23, 15:30   in response to: jimberry in response to: jimberry
 
jimberry wrote:
I am not sure what you are getting at here.

I thought you were trying to make sure that all of the faces were visible in the theme image, even on a small display. As a background image, it gets cropped on the sides on a small display, so that's problematic. That's not, in fact, what you were aiming at, so I simply misunderstood. (I've got some upcoming skin releases that will address the "cropped theme image" issue).

Using "left:0; right:0;" seems to work on the local machine, but after it is uploaded it goes to the left and the Developers tool shows "right: 0;" underlined.

Tiny syntax error. You've entered it as right-semicolon-0-semicolon, but it has to be right-colon-0-semicolon.
jimberry

Posts: 493
Registered: 30-Aug-2004
Re: Neptune: Changing opacity for folder overlay
Posted: 25 Dec 23, 00:31   in response to: JeffTucker in response to: JeffTucker
 
There is no syntax error in my code ;) . It seems OK when previewed from jAlbum, but gets mangled when viewed from the file manager and when uploaded.

I do make sure that all of the faces are visible in the theme image, using
background-size:contain;

but that should not affect the way the title is positioned.
position: absolute;
    bottom: 0;
    left: 0;
    right: 0;

If I preview the album from within jAlbum, the URL is - http://127.0.0.1:8080/Xmas2023/index.html and everything is OK.

But if I click on the index file from the file manager the URL is different -
file:///media/jim/Elements%20SE/vacunym/Albums/Xmas2023/index.html and the result is the same as displaying the uploaded album.

I will have another look at it when I get back home.
JeffTucker

Posts: 8,297
Registered: 31-Jan-2006
Re: Neptune: Changing opacity for folder overlay
Posted: 25 Dec 23, 00:36   in response to: jimberry in response to: jimberry
 
Attachment ss012154.png (20.1 KB)
Here's what I'm seeing in your project settings. See that semicolon?
JeffTucker

Posts: 8,297
Registered: 31-Jan-2006
Re: Neptune: Changing opacity for folder overlay
Posted: 25 Dec 23, 00:44   in response to: jimberry in response to: jimberry
 
Attachment laptop.png (1.0 MB)
Attachment ipad.png (4.1 MB)
jimberry wrote:
I do make sure that all of the faces are visible in the theme image....

Well yes, that will accomplish that. But odd things happen with the title and the fullscreen icon on smaller displays, and I'm not talking about just phones. They start to "bust out" of the theme image. See screenshots, simulating an iPad Air and an old small laptop.

Next skin release will have a better solution to that problem, but it's still in beta, and I'm still wrestling with some odd difficulties.
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums