Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8052165
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T07:28:46+00:00 2026-06-05T07:28:46+00:00

This might be a quick and easy question, but I was still unable to

  • 0

This might be a quick and easy question, but I was still unable to find the answer.

In less, is there any way of using a mixin (say .mixin(@a: 2, @b: 3) { /* css here */ }) and only supplying values for given parameters? I know I can use this as .mixin(5) which would be the same as .mixin(5, 3), but can I do something like .mixin(@b: 5)? Meaning the same as .mixin(2, 5) (however I wouldn’t have to know the value of a to use the default).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T07:28:47+00:00Added an answer on June 5, 2026 at 7:28 am

    In less using the dotless compiler you can do

    .mixin(@b:3);

    This will be in the original less.js in 1.3.1 (the next release)- see https://github.com/cloudhead/less.js/pull/268

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This might seem like a duplicate question, but I can't find any information on
I'm sure this might be quite common query but couldn't find good answer as
This might be a quick answer but I must not know what to search
This might be basic question but how do I create a list of lists
This might be a simple question, but i can't seem to grasp it. I
This might be a simple answer, but I am having some issues writing this
This might seam like a strange question but.... public string MyProperty { get {
This might be a simple question but I'm just picking this up so please
This might be a little bit odd question, but Im trying to figure out
This might be simple or impossible ;-) Is there a way to restrict the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.