Page 1 of 1
default.css
Posted: 29 Sep 2022, 16:16
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.
Re: default.css
Posted: 29 Sep 2022, 17:18
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
Re: default.css
Posted: 29 Sep 2022, 20:57
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?
Re: default.css
Posted: 03 Oct 2022, 23:38
by Jan
Hi, for now, there is no minified version, added to feature request list.
https://github.com/PhocaCz/PhocaDownload/issues/17
Jan
Re: default.css
Posted: 06 Oct 2022, 08:26
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
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.
Re: default.css
Posted: 08 Oct 2022, 00:48
by Jan
Hi, the custom.css set by template should be loaded always as last
Jan
Re: default.css
Posted: 24 Oct 2022, 14:02
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.
Re: default.css
Posted: 30 Oct 2022, 11:14
by plamen
Actually I can't see custom.css loaded, even it is published in Styles menu.
Re: default.css
Posted: 30 Oct 2022, 18:16
by christine
Hi,
why do you want to complicate it?
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