Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
petri71
Experienced
Topic Author
Posts: 24
Joined: 29 Mar 2023, 03:28

custom frame for folders AND/OR images.

29 Mar 2023, 04:11

Hello,

I read that I could custom the frame by using .frame figure
Code
.frame figure {
  border: 6px solid #fff !important;
}
in the custom CSS section, but if I understand well it would change the frame of folders AND images at the same time.

What if I want a different settings for folders and images. Is there a class for each of them ?

thank you in advance for your answer
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: custom frame for folders AND/OR images.

29 Mar 2023, 05:25

petri71 wrote:What if I want a different settings for folders and images. Is there a class for each of them ?
You could use something like this, gallery images only:
Code
.gallery .frame figure {
  border: 6px solid #fff !important;
}
Or only folders:
Code
.folders .frame figure {
  border: 6px solid #fff !important;
}
 
User avatar
petri71
Experienced
Topic Author
Posts: 24
Joined: 29 Mar 2023, 03:28

Re: custom frame for folders AND/OR images.

29 Mar 2023, 06:39

oh that simple ?

:-)

great ! thank you !
 
User avatar
petri71
Experienced
Topic Author
Posts: 24
Joined: 29 Mar 2023, 03:28

Re: custom frame for folders AND/OR images.

29 Mar 2023, 14:08

Hello, it's me again.

I have been to the Custom Panel in Settings and set your code in the Custom CSS board but it doesn't work, the folders are still the same.

I am getting a !important warning in the board though

http://www.coquille.org/x3/
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: custom frame for folders AND/OR images.

30 Mar 2023, 00:13

Sorry, "gallery" and "frame" is on same element, so use this instead:
Code
.gallery.frame figure {
  border: 6px solid #fff !important;
}
.folders.frame figure {
  border: 6px solid #fff !important;
}
 
User avatar
petri71
Experienced
Topic Author
Posts: 24
Joined: 29 Mar 2023, 03:28

Re: custom frame for folders AND/OR images.

30 Mar 2023, 05:47

yes it works ! thanks !