Customizind the CSS of the modalbox/standard popup window

Phoca Gallery plugins - plugins for Phoca Gallery extension
satanas
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 14 Feb 2008, 11:08
Location: France

Hello,I&

Post by satanas »

Hello,

I'm searching how to customize the background color of the windows (standard popup and modal). As it's not included in the parameters of the phocagallery settings, I guess I have to work on a CSS called by the plugin or the component, but I don't find which one.
I want, at the end, to have a black background. I've already changed the icons ^^
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Change in:comp

Post by Jan »

Change in:
components\com_phocagallery\views\phocagalleryd\view.html.php

Row: + - 99

From:
$document->addCustomTag( "<style type=\"text/css\"> \n"
." html,body {overflow:hidden;} \n"
." </style> \n");


To:
$document->addCustomTag( "<style type=\"text/css\"> \n"
." html,body .contentpane{overflow:hidden;background:#000000;} \n"
." center, table {background:#000000;} \n"
." </style> \n");
If you find Phoca extensions useful, please support the project
satanas
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 14 Feb 2008, 11:08
Location: France

That works fine!

Post by satanas »

That works fine!
Thank you very much!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Post by Jan »

If you find Phoca extensions useful, please support the project
Foton
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 17 Apr 2009, 10:11

Re: Customizind the CSS of the modalbox/standard popup window

Post by Foton »

Dear Jan,
If the modal box opens the background is at first white, then aftera second it turns in to the color of the param I could set in the preferences, in my case black.
Is there a way to have the background blach when the modalbox opens?
Now its flickering from white to black each time a thumnails is clicked.
Thanks in advance.
Foton
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 17 Apr 2009, 10:11

Re: Customizind the CSS of the modalbox/standard popup window

Post by Foton »

Found it....in the documentation again.
I had to change the Detail Setting from Modal Popup Box to Modal Popup Box (image only) and it worked.
Fabulous plug-in!!!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Customizind the CSS of the modalbox/standard popup window

Post by Jan »

great to hear it, Jan
If you find Phoca extensions useful, please support the project
Post Reply