Demande de features
2 years 10 months ago #63132
by micker
Replied by micker on topic Demande de features
ok tanks, its small thing but for better workflow
Please Log in or Create an account to join the conversation.
2 years 10 months ago #63150
by Brendanh
Replied by Brendanh on topic Demande de features
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
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.
2 years 10 months ago #63180
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Demande de features
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
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
Please Log in or Create an account to join the conversation.
2 years 10 months ago #63181
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Demande de features
c'est noté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
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
2 years 10 months ago #63188
by Brendanh
Replied by Brendanh on topic Demande de features
" 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;
}
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.
2 years 10 months ago #63192
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Demande de features
ok, this shall be possible
have you tested it ? you can write the value you want in the color field
CEd
have you tested it ? you can write the value you want in the color field
CEd
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
Time to create page: 0.263 seconds