Demande de features

Replied by micker on topic Demande de features

Posted 2 years 3 months ago #63132
ok tanks, its small thing but for better workflow
by micker

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

Replied by Brendanh on topic Demande de features

Posted 2 years 3 months ago #63150
Evening Ced,

I have an idea for PB and TC.

Would it be a good idea to introduce the ability to use CSS variables for the color options?

that way we can set:

:root {
--color: red;
}

In a custom CSS file

and then just enter:
var(--color)

as a color option in the various settings.

This way if we ever need to replace colors in the website, we only have to reference one option in the custom css file.

What do you think?

Regards, Brendan

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

Replied by ced1870 on topic Demande de features

Posted 2 years 3 months ago #63180
Hi
thank you for your suggestion
this is not so easy to implement in the interface ...
may be that I can do a color replacement like in template creator, but this is page per page, article per article, and module per module
there is no replacement for all the items

CEd

Joomlack Webmaster and Developer

by ced1870

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

Replied by ced1870 on topic Demande de features

Posted 2 years 3 months ago #63181

micker wrote: hello desoler je le fait en fr
dans le panneau avec les blocks blog image etc ... cela ne filtre que si tu valides
se serait hyper pratique que ca filtre au fur et a mesure, genre "tex" => affiche le block texte sans attendre une validation

c'est noté :)

Joomlack Webmaster and Developer

by ced1870

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

Replied by Brendanh on topic Demande de features

Posted 2 years 3 months ago #63188
" this is not so easy to implement in the interface ... "

I know you like a challenge! lol

I know I'm probably missing the point here, but surely this is only the same as making the entry in the options css field, just as it would be for % or em values etc. on the css sizes? Just as it was when you updated the entries from only being in px.

So, I enter var(--main-bg-color) in the color field, instead of #222222. Then your js grabs it and places it in the css code for that page/template/article etc. that PB/TC automatically generates.

#row1mod2 {
color: white;
background-color: var(--main-bg-color);
margin: 10px;
}

Instead of:

#row1mod2 {
color: white;
background-color: #222222;
margin: 10px;
}

Then I only need to reference the variable once in my custom css:

:root {
--main-bg-color: brown;
}

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

Replied by ced1870 on topic Demande de features

Posted 2 years 3 months ago #63192
ok, this shall be possible
have you tested it ? you can write the value you want in the color field
CEd

Joomlack Webmaster and Developer

by ced1870

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

Time to create page: 0.858 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 502 guests and no members online