lat9 / ZCA-Bootstrap-Template

A Bootstrap-4 template for Zen Cart versions 1.5.8 through 2.1.0. Forked from https://github.com/zcadditions/ZCA-Bootstrap-Template-for-1.5.6-v2.0.0c. See the demo site, below, for additional information.
https://zc158.vinosdefrutastropicales.com/zc158/index.php?main_page=index
GNU General Public License v3.0
4 stars 15 forks source link

Exporting ZCA Bootstrap Colors #133

Open scottcwilson opened 2 years ago

scottcwilson commented 2 years ago

Do you want a PR that allows you to do things in stylesheets like this:

.foo { background-color: var(--ZCA_SIDEBOX_HEADER_BACKGROUND_COLOR); }

which dynamically sets the color of class foo to whatever the sidebox header background color is set to in Admin > Tools > ZCA Bootstrap Colors?

lat9 commented 2 years ago

That depends on whether there's going to be some additional supporting documentation.

scottcwilson commented 2 years ago

Your wish is my command!

lat9 commented 2 years ago

This would be a great tool if it can take a .css template, apply the coloring changes and then output a date-stamped .css file with the consolidated changes. That way, the template's coloring styling can also be cached (it takes up a fair amount of bandwidth when it's provided in-line, as it is today).

scottcwilson commented 2 years ago

It's not really a tool, just the ability to reference values from the admin page.

lat9 commented 2 years ago

One of my pet peeves about the template is that in-line CSS. Let me mull on this a bit, as I'd prefer to have a means to produce a color-customized stylesheet that could be separately loaded and cached.