Page 1 of 1

custom frame for folders AND/OR images.

Posted: 29 Mar 2023, 04:11
by petri71
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

Re: custom frame for folders AND/OR images.

Posted: 29 Mar 2023, 05:25
by mjau-mjau
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;
}

Re: custom frame for folders AND/OR images.

Posted: 29 Mar 2023, 06:39
by petri71
oh that simple ?

:-)

great ! thank you !

Re: custom frame for folders AND/OR images.

Posted: 29 Mar 2023, 14:08
by petri71
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/

Re: custom frame for folders AND/OR images.

Posted: 30 Mar 2023, 00:13
by mjau-mjau
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;
}

Re: custom frame for folders AND/OR images.

Posted: 30 Mar 2023, 05:47
by petri71
yes it works ! thanks !