greenscript icon indicating copy to clipboard operation
greenscript copied to clipboard

Twitter Bootstrap 2

Open jamesward opened this issue 13 years ago • 14 comments

I'm trying to get Twitter Bootstrap 2 working with GreenScript and getting Less compile errors like:

error compile less file: /public/stylesheets/bootstrap.less, error: Parse Error: Syntax Error on line 15 (line 15, column 210)

I'm just doing:

#{greenscript.css "bootstrap.less", output:'all' /}

Strange thing is that there isn't a column 210 on line 15 of the bootstrap.less file.

jamesward avatar Jan 30 '12 23:01 jamesward

please report your play version and greenscript version. thx

On Tue, Jan 31, 2012 at 10:59 AM, James Ward < [email protected]

wrote:

I'm trying to get Twitter Bootstrap working with GreenScript and getting Less compile errors like:

error compile less file: /public/stylesheets/bootstrap.less, error: Parse Error: Syntax Error on line 15 (line 15, column 210)

I'm just doing:

#{greenscript.css "bootstrap.less", output:'all' /}

Strange thing was there there wasn't a column 210 on line 15 of the bootstrap.less file.


Reply to this email directly or view it on GitHub: https://github.com/greenlaw110/greenscript/issues/34

greenlaw110 avatar Jan 31 '12 00:01 greenlaw110

play-1.2.4 greenscript-1.2.6m

Thanks for the quick response.

jamesward avatar Jan 31 '12 00:01 jamesward

I cannot reproduce this issue. Here is a simple app I've created and it works fine: http://ge.tt/90zM8yC?c

On Tue, Jan 31, 2012 at 11:18 AM, James Ward < [email protected]

wrote:

play-1.2.4 greenscript-1.2.6m

Thanks for the quick response.


Reply to this email directly or view it on GitHub: https://github.com/greenlaw110/greenscript/issues/34#issuecomment-3730954

greenlaw110 avatar Jan 31 '12 01:01 greenlaw110

That looks like Bootstrap 1 not 2. I'll try to put together a little example.

jamesward avatar Jan 31 '12 01:01 jamesward

Here is a little sample app with the Bootstrap 2 less files: https://github.com/jamesward/bootstrap2test

jamesward avatar Feb 01 '12 12:02 jamesward

This one should be fixed in the 1.2.7, could you please give it a try?

greenlaw110 avatar Feb 21 '12 01:02 greenlaw110

The problem have been fixed (from my point of view), at least for the version 2.0.0 of Bootstrap. But the version 2.0.2 (released these days) need the 1.3 version of the less compiler, as stated here : http://www.markdotto.com/2012/03/12/bootstrap-2-0-2-released/

lrobinot avatar Mar 14 '12 13:03 lrobinot

We will need to wait for lesscss-engine updates if v1.1.5 is not using less 1.3

On Thu, Mar 15, 2012 at 12:15 AM, Ludovic ROBINOT < [email protected]

wrote:

The problem have been fixed (from my point of view), at least for the version 2.0.0 of Bootstrap. But the version 2.0.2 (released these days) need the 1.3 version of the less compiler, as stated here : http://www.markdotto.com/2012/03/12/bootstrap-2-0-2-released/


Reply to this email directly or view it on GitHub: https://github.com/greenlaw110/greenscript/issues/34#issuecomment-4497718

greenlaw110 avatar Mar 14 '12 19:03 greenlaw110

Just curious, is there an update to this issue? I use Play 1.2.4 with Greenscript 1.2.8b and Bootstrap 2.0.4 and get the following error:

error compile less file: /public/stylesheets/bootstrap/less/bootstrap.less, error: Parse Error: Syntax Error on line 550 (line 550, column 17902)

Thanks,

Mike

mikenikles avatar Jul 01 '12 18:07 mikenikles

Replacing lesscss-engine-1.1.5.jar with lesscss-engine-1.3.0.jar in %PLAY_HOME%\modules\greenscript-1.2.8b\lib seems to fix the issue for me.

jonathonadler avatar Jul 16 '12 13:07 jonathonadler

That's ok for a workaround until Greenscript updates the dependency. Thanks

mikenikles avatar Jul 16 '12 21:07 mikenikles

Hi,

any update on integrating version 1.3.0 of lesscss-engine? A new release of greenscript would be really appreciated!

I am using the ZURB Foundation framework and had a similar problem caused by this CSS rule:

@-moz-document url-prefix("http://") {
  // ...
}

At least that one was fixed by temporarily replacing lesscss-engine-1.1.5.jar by lesscss-engine-1.3.0.jar. Now it still complains about that CSS rule (resp the "filter" line):

div.caption { 
  background:transparent;
  filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000,endColorstr=#99000000);
  zoom: 1;
}

I also tried to escape that rule, but that did not change anything. However, I can circumvent that problem by commenting out that rule, as I currently don't need it. Should this be reported to the lesscss-engine maintainer?

Greets, Jan.

jtammen avatar Oct 23 '12 13:10 jtammen

Yes I think you need to report that issue to lesscss-engine maintainer. And yes I will try to release an new version with 1.3.0 less engine integrated. thanks a lot for reporting this

On Wed, Oct 24, 2012 at 12:01 AM, Jan Tammen [email protected]:

Hi,

any update on integrating version 1.3.0 of lesscss-enginehttp://asual/lesscss-engine? A new release of greenscript would be really appreciated!

I am using the ZURB Foundation framework and had a similar problem caused by this CSS rule:

@-moz-document url-prefix("http://") { // ...}

At least that one was fixed by temporarily replacing lesscss-engine-1.1.5.jar by lesscss-engine-1.3.0.jar. Now it still complains about that CSS rule (resp the "filter" line):

div.caption { background:transparent; filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000,endColorstr=#99000000); zoom: 1;}

I also tried to escape that rule http://lesscss.org/#-escaping, but that did not change anything. However, I can circumvent that problem by commenting out that rule, as I currently don't need it. Should this be reported to the lesscss-engine maintainer?

Greets, Jan.

— Reply to this email directly or view it on GitHubhttps://github.com/greenlaw110/greenscript/issues/34#issuecomment-9700720.

greenlaw110 avatar Oct 23 '12 18:10 greenlaw110

Cool!

Just for the record: found out that actually escaping the rule correctly did solve the problem. Using this works:

filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=~\"#99000000\",endColorstr=~\"#99000000\"); 

Greets, Jan.

jtammen avatar Oct 25 '12 10:10 jtammen