question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot make a division into a property

See original GitHub issue

The following code does not work.

$gutterWidth = 20px; // in another file

selector {
    margin-top: $gutterWidth / 2; //  expectation: "10px", result "20px/2"
}

I’d to do this to have my thing working

selector {
    $selectorMarginTop = $gutterWidth / 2;
    margin-top: $selectorMarginTop;
}

If it’s a normal behavior, is weird…

Issue Analytics

  • State:closed
  • Created 11 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
MoOxcommented, Sep 4, 2012

How can it’s possible I’ve this issue :

>> Error: public/css/template_mappings/wizard/step2.styl:32
>>    28| .conditionDetailsContainer {
>>    29|   @extend ._fill;
>>    30|   borderBoxSizing();
>>    31|   borderStyleAlt();
>>  > 32|   padding: ($gutterWidth/2);
>>    33| }
>>    34| 
>>    35| .conditionList {
>> 
>> cannot perform $gutterWidth / 2

$gutterWidth is completly valid (If I remove /2, it works). It’s declared like this $gutterWidth = 20px

0reactions
demskingcommented, Mar 19, 2016

Resolved by replacing sqrt() to math(x, 'sqrt')

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dividing Property and Debt During Divorce - Nolo
In most (but not all) states, only your marital property will be divided in divorce, while you and your spouse will each keep...
Read more >
Division Property Of Equality | Definition & Example - Tutors.com
The Division Property of Equality says that dividing both sides of an equation by the same number does not affect the equation. Another...
Read more >
Unequal Distribution - 6 Ways Property Gets Divided ...
Marital and Divisible Property are subject to Equitable Distribution. Separate Property is not. Debts are also considered property and will be ...
Read more >
Separating Property - American Bar Association
In a relatively small number of cases where the spouses cannot come to an agreement, the court will have to split the property....
Read more >
Real Estate Property Division in Divorce | LawInfo
If you cannot agree, then the divorce is considered "contested," and the family judge will decide how the property should be divided.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found