bdkjones / CodeKit-1-Old

146 stars 1 forks source link

LESS and strict math #661

Closed pustovalov closed 11 years ago

pustovalov commented 11 years ago

I turned on the option "Strict math", but it does not work.

input:

.oval {
  -webkit-border-radius: 20px / 10px;
  -moz-border-radius: 20px / 10px;
  border-radius: 20px / 10px;
}

or

.oval {
  @radius: (20px / 10px);
  -webkit-border-radius: @radius;
  -moz-border-radius: @radius;
  border-radius: @radius;
}

output:

.oval {
  -webkit-border-radius: 2px;
  -moz-border-radius: 2px;
  border-radius: 2px;
}
bdkjones commented 11 years ago

Oh, it works.

You likely flipped the option on in the preferences window, right? That is the default setting for new Less files that you add to CodeKit from then on. It does NOT affect existing files in the app. To change those files' settings, select them in the list and use the right-hand inspector pane that pops in.