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

  • Home
  • SEARCH
  • 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 8914763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T04:48:28+00:00 2026-06-15T04:48:28+00:00

[ ANSWERED: the carto.css compiler does not support this feature of less.css] I’m making

  • 0

[ ANSWERED: the carto.css compiler does not support this feature of less.css]

I’m making a stylesheet for TileMill that will be processed with Carto (an extension of less.css). In other words, I’m making a stylesheet with LESS that uses some custom syntax.

I have a lists of selectors assigned to variables as strings, like so:

@water: "[natural='water'], [waterway='river'], [waterway='stream'], [waterway='waterfall'], [waterway='canal'], [landuse='reservoir'], [landuse='basin'], [amenity='pool'], [amenity='swimming_pool'], [amenity='fountain']"; 

@dirt: "[natural='beach'], [natural='sand'], [natural='scree'], [landuse='bedrock outcrop'], [landuse='quarry'], [natural='land'], [amenity='track']";

I want to be able to use these as selectors in my style sheet, more or less like this (which doesn’t work):


(~'@{water}') {
polygon-fill: #bbb;
}

What I want to end up in my stylesheet is this:


[natural='water'], [waterway='river'], [waterway='stream'], [waterway='waterfall'], [waterway='canal'], [landuse='reservoir'], [landuse='basin'], [amenity='pool'], [amenity='swimming_pool'], [amenity='fountain']{
polygon-fill: #bbb;
}

And I’m hoping there’s a way to join selector groups, like this:


@water, @dirt {
polygon-fill: #bbb;
}

Thanks for any advice.

  • 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-15T04:48:29+00:00Added an answer on June 15, 2026 at 4:48 am

    the carto.css compiler does not support this feature of less.css

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

Sidebar

Related Questions

As answered in this post, SVN does not offer an option for checking out
I had a question answered which raised another one, why following does not work?
Previously answered questions here said that this was the fastest way: //nl is a
This may have been answered elsewhere but I could not find a suitable response.
Update: This has been answered. It was my own stupidity, possibly not worth reading
This might have been answered here before and I'm just not searching for the
unutbu answered my previous question nicely here 2 , but there does not appear
EDIT: Answered by a comment, thank you! Does < form > not work within
this must be answered some time in the past, however I could not a
ANSWERED: set_primary_key QTLID in the model to tell model that pirmary ID is not

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.