[SOLVED] Surcharge fichier CSS et poids des sélecteurs

More
9 years 5 months ago - 9 years 5 months ago #55026 by micker
non c'est toi qui voit ex si tu veus changer les aspect des listes déroulantes dans les catégories et que le style est le même partout => flexicontent.css
si pour tous tes templates tu as les même style flexicontent.css
si pour un item tu veus un champ d'un couleur rose item.css de ton champs
c'est toi qui voit et qui construit ton fichier css comme tu veus
il n'y a rien de compliqué lol
si tu modifie le flexi_frontend.css cela risque d'être perdu a la mise a jour
tout mettre dans le flexicontent.css de ton template est un système de surcharge qui évite cela

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]
Last edit: 9 years 5 months ago by micker.

Please Log in or Create an account to join the conversation.

More
9 years 5 months ago - 9 years 5 months ago #55027 by iorbita

tout mettre dans le flexicontent.css de ton template est un système de surcharge qui évite cela

... c'est à quoi je faisais allusion dans mes précédents messages, je suis plus favorable à centraliser tous les styles concernant FLEXIcontent dans un seul et unique fichier que éclater tous les styles dans différents fichiers.
Donc pour en finir, est-ce que centraliser tous les styles dans le fichier flexicontent.css n'est pas la meilleure solution au lieu d'aller tripoter aussi les fichiers item.css et category.css ?

Merci
Last edit: 9 years 5 months ago by iorbita.

Please Log in or Create an account to join the conversation.

More
9 years 5 months ago #55031 by ggppdk
Hello

you can add you custom CSS in any file that get's loaded on the desired pages

e.g. in the your FLEXIcontent template CSS
css/category.css
css/item.css

e.g. in the "custom.css" of your Joomla template
- just copy the FLEXIcontent CSS rule
e.g.
Code:
.classname .classname { ... }

and make it:
Code:
body .classname .classname { ... }


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
9 years 5 months ago - 9 years 5 months ago #55035 by iorbita
Hello,
as I wrote to Micker, I prefer to centralize my css rules into a single file. If I create a file eg flexi.css and I place it just before the closing </head> tag, I guess I should not override the rules with the <body> tag?

Thank you

Last edit: 9 years 5 months ago by iorbita.

Please Log in or Create an account to join the conversation.

More
9 years 5 months ago #55037 by ggppdk
Hello

any CSS file that is loaded is good


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
9 years 5 months ago #55040 by micker
des fois je ne comprend pas ... tu as une fonction toute prête flexicontent.css et tu inséres un autre code lol
le tout c'est que ce fichier soit en dernier
apres cela dépend des style tu aura besoins de body ou de !important

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.448 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline