default.css

Phoca Download - download manager
plamen
Phoca Professional
Phoca Professional
Posts: 100
Joined: 16 Mar 2014, 13:23

default.css

Post by plamen »

Hi,
What is the rationale for "default.css"?
I wrote some code inside, but the file was overwritten during the latest update by a new empty file.
Or maybe it is a bug?
PD 4.0.4

Now I will take the code from the backup and will make a new file "user.css", but what are you using "default.css" for?
Sorry I missed some documentation probably.

Tags:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: default.css

Post by Jan »

Hi,

first of all, if you do some changes to CSS, always use user.css or custom.css (depends on used template and Joomla version) as such CSSs are not overriden by update. Always do the changes into template CSS folder so such CSS i loaded as last and applied on whole website.

default.css in Phoca Download was used in history but default name was never used for custom css like custom.css or user.css.

Jan
If you find Phoca extensions useful, please support the project
plamen
Phoca Professional
Phoca Professional
Posts: 100
Joined: 16 Mar 2014, 13:23

Re: default.css

Post by plamen »

I'm trying to add a new style through the component's interface.
Under Windows/XAMPP it is not possible due to

Code: Select all

An error has occurred. 500 Error while saving the file. Source File is not writable. 
I'm creating manually a new CSS file in \media\com_phocadownload\css\custom\
Finally, all CSS code will go into the template's CSS for minimizing file requests during page load.
Are you considering some kind of optimization like combining and minifying all CSS-s in the component?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: default.css

Post by Jan »

Hi, for now, there is no minified version, added to feature request list.

https://github.com/PhocaCz/PhocaDownload/issues/17

Jan
If you find Phoca extensions useful, please support the project
plamen
Phoca Professional
Phoca Professional
Posts: 100
Joined: 16 Mar 2014, 13:23

Re: default.css

Post by plamen »

Hi Jan,
PD Plugin also has a separate style sheet. It is difficult to style this plugin since its style is loaded last during the page load.
I have to use

Code: Select all

!important
in order to overwrite some declarations.
Since this plugin is not usable without the component itself, it could be worth considering adding its CSS to the component's styling menu.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: default.css

Post by Jan »

Hi, the custom.css set by template should be loaded always as last :idea:

Jan
If you find Phoca extensions useful, please support the project
Jhorton
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 07 Oct 2022, 19:56

Re: default.css

Post by Jhorton »

I recommend you to use "custom css" of the templates, for example "astroid framework" or "helix3" you don't need to complicate the phoca download software, but do things yourself.
plamen
Phoca Professional
Phoca Professional
Posts: 100
Joined: 16 Mar 2014, 13:23

Re: default.css

Post by plamen »

Actually I can't see custom.css loaded, even it is published in Styles menu.
christine
Phoca Hero
Phoca Hero
Posts: 2725
Joined: 28 Nov 2010, 17:20

Re: default.css

Post by christine »

Hi,

why do you want to complicate it? :wink:

As Jan and Jhorton wrote, i.e:
... if you do some changes to CSS, always use user.css or custom.css (depends on used template and Joomla version) as such CSSs are not overriden by update. Always do the changes into template CSS folder so such CSS i loaded as last and applied on whole website ....
Example: Joomla 3 (Protostar) user.css, Joomla 4 (Cassiopeia) user.css, Helix etc. custom.css

Kind regards
Christine
Post Reply