Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Just wondering...why is the CSS in the embedded the default.php file instead of a .css file?
Avatar
saki
Member
Free Members
sp_UserOfflineSmall Offline
Aug 22, 2011 - 11:42 pm

Just wondering...why is the CSS embedded in the default.php file instead of a .css file?

 

It makes it much harder to find the culprits when you want to change a style and impossible to use my pure css editor....

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 22, 2011 - 11:45 pm

because it contains php code in it…  so it must have the proper extension to be processed as such…

but if you are working your own theme and it does not contain any php, you can name it with a .css extension…

if its not your own theme you are editing, you really should make it so or  you risk losing all your changes if you upgrade the forum in the future...

Avatar
saki
Member
Free Members
sp_UserOfflineSmall Offline
Aug 23, 2011 - 8:50 pm

I'd like to modify the default theme and contribute it back under another option, but I'd like to separate the css so it's easier to modify.

 

Possible?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 24, 2011 - 4:17 am

It is always best to create a new version of something like a theme rather than edit an existing one. I realise that during an alpha or beta stage like this that can be difficult as things are changing, including CSS styling, but as a general principle it is the best approach and ensures that changes do not get overwritten during future upgrades.

So - as Steve pointed out above - on any theme it is quite possible to have the main file as a .css rather than a .php.

The reason we went down this route is the lack of support for CSS variables. One day CSS will allow for these but not yet. There are a few options available to achieve this but only the php option (as far as I am currently aware) does not require special code to be added to the web server. And forcing users to add code to the web server is not possible. So we chose to use php instead. using the php overlay files allows us to create a single theme and then offer an infinite number of different display overlays that can change colours, fonts, borders, text etc.

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 649
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 618
Members: 17348
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10120
Posts: 79607