Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in Less mixins #844

Closed
lelinhtinh opened this issue Jan 19, 2016 · 3 comments
Closed

Bug in Less mixins #844

lelinhtinh opened this issue Jan 19, 2016 · 3 comments
Milestone

Comments

@lelinhtinh
Copy link

I'm using package HTML-CSS-JS Prettify in Sublime Text 3.

Before:

.mixin(@abc, @xyz) {
    @{abc}: @xyz;
}

After:

.mixin(@abc, @xyz) {
    @ {
        abc
    }
    : @xyz;
}
@bitwiseman
Copy link
Member

Cool thanks.

@agulado
Copy link

agulado commented Feb 4, 2016

+1
less

Before:

    .loop_section_top_ul_li(@i) when (@i>0) {
        section.top ul li.l@{i} a{
            background-position: ((@i)-1)*-100px -20px;
            &.now{
                background-position: ((@i)-1)*-100px 0;
            }
        }
        .loop_section_top_ul_li((@i)-1);
    }

After:

    .loop_section_top_ul_li(@i) when (@i>0) {
        section.top ul li.l@ {
            i
        }
        a {
            background-position: ((@i)-1)*-100px -20px;
            &.now {
                background-position: ((@i)-1)*-100px 0;
            }
        }
        .loop_section_top_ul_li((@i)-1);
    }

@agulado
Copy link

agulado commented Feb 16, 2016

3ks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants