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.
default.css
-
- Phoca Professional
- Posts: 100
- Joined: 16 Mar 2014, 13:23
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: default.css
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
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
-
- Phoca Professional
- Posts: 100
- Joined: 16 Mar 2014, 13:23
Re: default.css
I'm trying to add a new style through the component's interface.
Under Windows/XAMPP it is not possible due to
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?
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.
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?
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: default.css
Hi, for now, there is no minified version, added to feature request list.
https://github.com/PhocaCz/PhocaDownload/issues/17
Jan
https://github.com/PhocaCz/PhocaDownload/issues/17
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Professional
- Posts: 100
- Joined: 16 Mar 2014, 13:23
Re: default.css
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.
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
Since this plugin is not usable without the component itself, it could be worth considering adding its CSS to the component's styling menu.
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: default.css
Hi, the custom.css set by template should be loaded always as last
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 5
- Joined: 07 Oct 2022, 19:56
Re: default.css
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.
-
- Phoca Professional
- Posts: 100
- Joined: 16 Mar 2014, 13:23
Re: default.css
Actually I can't see custom.css loaded, even it is published in Styles menu.
-
- Phoca Hero
- Posts: 2819
- Joined: 28 Nov 2010, 17:20
Re: default.css
Hi,
why do you want to complicate it?
As Jan and Jhorton wrote, i.e:
Kind regards
Christine
why do you want to complicate it?
As Jan and Jhorton wrote, i.e:
Example: Joomla 3 (Protostar) user.css, Joomla 4 (Cassiopeia) user.css, Helix etc. custom.css... 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 ....
Kind regards
Christine