This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

ktiedt
ktiedt

As the subject states, I have made some minor CSS updates via one of the LESS files... and no amount of trying to force it to regenerate the CSS output has worked... It must be an odd problem since so far I havent found an exact match to this problem in the forums.

Thanks in advance!

Daniel81
Daniel81

Is this similar to your issue? Are they your own theme LESS files, or system LESS files?

ktiedt
ktiedt

Interesting, not sure how I missed that geez. I will test that shortly, it could very well be the case. As for the other question, specifically, its font.less which is from a modified version of the demo default theme.

Daniel81
Daniel81

Yeah, it's a frustrating bug I've found while working in themes that you have to save the "master" LESS file for any changes to be compiled in "child" LESS files - bit annoying - hope they get round to fixing it soon.

ktiedt
ktiedt

Hmm the demo theme actually imports a .css file that is compiled from the .less files... maybe that is the problem?

I have modified the base theme.less file just to see if that would do the trick and still a no-go. Maybe a shortcoming of the default demo theme using a .css file in the template instead of registering the .less file?

ktiedt
ktiedt

So I updated my default.htm to use the less file... recompiling did happen, however even though I have only added a few things... all of the asset paths come out as http://example.com/combine/fonts/lato-regular-webfont.svg (replaced domain name)

Daniel81
Daniel81

Yeah, if you use it like <link rel="stylesheet" href="{{ ["assets/less/theme.less"]|theme }}"> it will compile, but if you amend any child files like font.less you then have to re-save theme.less for the changes to be compiled.

Suppose we should really be pre-compiling the CSS beforehand, but I like to work in LESS so I just use the above - works for me apart from the annoying saving issue.

ktiedt
ktiedt

Right, however if this less was originally used to compile the theme.css file... why the hell are the paths wrong now? boggle

Daniel81
Daniel81

PS, I don't bother using fonts in my LESS assets, I'd rather just link direct to the Google Web Font like:

<link href='http://fonts.googleapis.com/css?family=Lato:300,400,700' rel='stylesheet' type='text/css'>

1-9 of 9

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.