Skip to content

LESS Reference Manual— I think there are two mistakes need correction #404

Open
@golegen

Description

@golegen

I think there are two mistakes need correction on the Less manual website.

Please visit Less manual website

I have run the test code such as the following( by webstorm and less 2.6.1),
I have some questions and would like to share.

the page—— # Language Features

1.Click the left column:Passing Rulesets to Mixins
Look at right column code:
I think it should be after the Number 1200 , need to add "px"
Reads as follows

Here the desktop-and-old-ie mixin defines the media query and root class so that you can use a mixin to wrap a piece of code. This will output

.desktop-and-old-ie(@rules) {
      @media screen and (min-width: 1200) { @rules(); }
      html.lt-ie9 &                       { @rules(); }
}
header {
      background-color: blue;
      .desktop-and-old-ie({
            background-color: red;
      });
}

2.Click the left column:Passing Rulesets to Mixins
Look at right column code:
I think it should be in front of the word "detached-ruleset" to add a symbol "@" .
Reads as follows

Private variables:

detached-ruleset: { 
    @color:blue; // this variable is private
};
.caller {
    color: @color; // syntax error
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions