Search…

X3 Photo Gallery Support Forums

Search…
 
rdch
Topic Author
Posts: 23
Joined: 31 Oct 2008, 08:42

CSS files and upgrading

31 Oct 2008, 10:05

If I make changes to the CSS, will this get overwritten by upgrading the software?

If it does, could you add a custom CSS file that remains even when upgrading?
 
rdch
Topic Author
Posts: 23
Joined: 31 Oct 2008, 08:42

31 Oct 2008, 12:06

Sorry, ignore this. I've just seen viewtopic.php?p=11716
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: CSS files and upgrading

02 Nov 2008, 00:35

rdch wrote:If I make changes to the CSS, will this get overwritten by upgrading the software?

If it does, could you add a custom CSS file that remains even when upgrading?
I still believe this deserves an answer -

When editing theme or config, separate user files are created so that you keep your customizations even after upgrading. However, when editing the CSS files, you are in fact editing the original theme CSS files, which may be overwritten(reset) when upgrading. Therefore we recommend the following:

# Create a new theme from the theme you want to use, and apply any changes to the new theme. You will always keep any customizations in your separate theme, both for configs and CSS stylesheet after upgrading.
 
rdch
Topic Author
Posts: 23
Joined: 31 Oct 2008, 08:42

03 Nov 2008, 10:01

Is your reply about the HTML gallery or the Flash gallery?
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

05 Nov 2008, 00:54

rdch wrote:Is your reply about the HTML gallery or the Flash gallery?
Oh, it was for the flash gallery - You perhaps mean the HTML gallery I guess? Then you simply should backup your CSS file before upgrading. This CSS file is manual -
 
rdch
Topic Author
Posts: 23
Joined: 31 Oct 2008, 08:42

11 Nov 2008, 10:08

Yes my question was about the HTML gallery.

Perhaps it would be a good idea to link the html and flash versions in future versions so they remain visually similar - even when you switch themes.

The html gallery could share the CSS of the flash one, then your advice about creating a new theme would work for both html and flash.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

24 Nov 2008, 01:21

rdch wrote:Perhaps it would be a good idea to link the html and flash versions in future versions so they remain visually similar - even when you switch themes
Although it might have some benefits, I think this is not feasible. CSS in flash is ONLY targeted at text formatting, while CSS in html controls the entire layout. They won't be able to share the same classes, and styles also work differently.