emmetio / livestyle-sublime-old

Live bi-directional CSS edit of new generation
http://livestyle.emmet.io
260 stars 23 forks source link

SCSS color bug #139

Closed iv-retriever closed 9 years ago

iv-retriever commented 9 years ago

Hi, Im Korean Dev

Above all, proudly thx to make your really awesome livestyle 0.6 alpha.

I successed set SCSS <---> CSS and I tested. Almost good, But if I change 'color:red' to 'color:rgb(x, x, x)' css property in chrome devtool, It incorrectly change my .scss file in sublime like 'color:rgb'. So I cant change colors in chrome devtool.

How can I fix it.

Have a nice day :)

Thx!!

sergeche commented 9 years ago

Did you tried LiveStyle Alpha? http://livestyle.emmet.io/alpha/

iv-retriever commented 9 years ago

Ok, I succeeded the installation. But the problem happened.

sergeche commented 9 years ago

Did you removed old extension? Can you post a screenshot of both Chrome and ST with opened console?

iv-retriever commented 9 years ago

2015-01-21 9 46 41 2015-01-21 9 47 09

I installed with your instruction. I think the procedure was perfect.

Chrome: color:black -> ST: color:black (nop)

Chrome: color:rgb(100, 100, 100) -> ST: color: rgb; (bug)

iv-retriever commented 9 years ago

2015-01-21 9 53 56

This is my LS version.

sergeche commented 9 years ago

It’s a bug indeed. Please re-install Chrome extension, should be fixed

iv-retriever commented 9 years ago

OMG. It is solved!!!

Thanks :+1:

Hmmm...

But I found other bug..

That is variable bug.

If I make var in .scss like this $a: 100px; and change the css in chrome devtool, So first change is good to work. But second, third, ... change make wrong value. This case is appeared only when I change value sequentially in chrome devtool.

ex)

$a: 100px; body{ margin-top:$a; }

  1. First change Chrome: body{ margin-top:100px} --> body{ margin-top:50px} / ST: margin-top:$a - 50px; (good work)
  2. Second change Chrome: body{ margin-top:50px} --> body{ margin-top:10px} / ST: margin-top:$a + 10px; (wrong calc, correct calc is $a - 90px)

I'm really sorry to bothering you.

sergeche commented 9 years ago

OK, thanks, I’ll check it out. You are not bothering me, I’d like to receive more reports like that :)

Please report more issues at https://github.com/livestyle/issues/issues

sergeche commented 9 years ago

Thanks! Closing this issue for now