CSS customization doesn't produce expected output
In the customizer there are options to change some of the default less variables. For example if I change the @primaryButtonColor to @red or to something like #9d261d it doesn't compile in the css that is included with bootstrap.
No matter what color I specify the css still contains the blue variations. For example this css is produced when setting @primaryButtonColor to @red in the customize tool:
.btn-primary { background-color: #006dcc; background-image: -moz-linear-gradient(top, #0088cc, #0044cc); background-image: -ms-linear-gradient(top, #0088cc, #0044cc); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc)); background-image: -webkit-linear-gradient(top, #0088cc, #0044cc); background-image: -o-linear-gradient(top, #0088cc, #0044cc); background-image: linear-gradient(top, #0088cc, #0044cc); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0088cc', endColorstr='#0044cc', GradientType=0); border-color: #0044cc #0044cc #002a80; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); }
It appears that this may be similar to issue #1778
It looks like the actual buttons.less file uses the variables. Does the customizer actually compile new css based on the settings the user selects?
The ajax request is sending the JSON values when the variables are set:
vars {"@primaryButtonColor":"@red"}
These are sent to bootstrap.herokuapp.com. I'm not sure but I'm assuming the heroku site is supposed to compile the css and add it to the zip, but that doesn't look like it is working.
Let's ask @fat. Sounds like a problem with a builder.
I depend on the customizer. Pls. repair! Thank you.
I agree it would be awesome if fixed. @thomaswinterstetter for now you can download the .less files from the repository and compile them your self or alternatively use the less.js to process them. Just modify the variables.less file.
@spyderman4g63
thanks for your hints. what i do at the moment is this: i download compiled .css and .js through
http://markdotto.com/bs2/docs/download.html
this is how i use the .css files in my content management:
style/bootstrap rel=stylesheet style/bootstrap-skin rel=stylesheet style/bootstrap-responsive rel=stylesheet style/bootstrap-responsive-skin rel=stylesheet
where the -skin files contain a few modifications.
i haven't worked out how to use variables in this setup but would like to modify baseFontSize to make it slightly larger
part of my problem is that "The unofficial Mac app" throws errors on most .less files when i try to compile them. so i never did but am using a very limited implementation of bootstrap for now. i want to take full advantage of the product very much though!
can you help?
Wish I could help more. I also downloaded that mac app recently and get those same errors. I will try to instal the official compiler from lesscss.org later. Other than that the only thing I could tell you is to use the javascript that is provided on lesscss.org for now.
@spyderman4g63 all good, john. i hope that someone else will enlighten me on a best practice here. again, thanks!
This should be resolved—had no problem customizing.