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 575187
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:54:47+00:00 2026-05-13T13:54:47+00:00

=rounded(!rad) :-moz-border-radius = !rad :-webkit-border-radius = !rad :border-radius = !rad I have this mixin

  • 0
=rounded(!rad)
  :-moz-border-radius = !rad
  :-webkit-border-radius = !rad
  :border-radius = !rad

I have this mixin defined in a .sass file. When I try to compile it with sass style.sass style2.css, I get this error:

Syntax error on line 2: Undefined constant: "!rad".

I’ve looked through the docs and can’t find what I am doing wrong. If I reduce the sass file to just this section, the error still happens. I am not using it with Ruby/

  • 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-05-13T13:54:48+00:00Added an answer on May 13, 2026 at 1:54 pm

    That mixin looks absolutely correct to me. Is that in style.sass or style2.sass? I’m guessing you’re defining it in one, and using it in the other.The first thing to check would be that when you’re mixing it in, you’re not forgetting to pass an argument. For instance:

    .round_div
      +round // will not work
    

    Instead of

    .round_div
      +round(1em) // should work
    

    If that’s not the case, try updating Sass. The ability to pass arguments to mixins was added in 2.2.0.

    I’ve got a gist a put up a few days ago for a slightly more complex version of the same mixin. It’s working fine for me as long as I mix it in with an argument, and have a new enough version of Sass.

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

Sidebar

Related Questions

I have a border element with rounded corners containing a 3x3 grid. The corners
I have created some rounded navigation tabs using CSS and am having trouble when
We are creating an XBAP application that we need to have rounded corners in
How can I create rounded corners using CSS?
I wanted some of those spiffy rounded corners for a web project that I'm
The MediaElement doesn't support rounded corners (radiusx, radiusy). Should I use a VideoBrush on
i want the result of an equation rounded to the nearest integer. e.g. 137
My site is full of rounded corners on every box and picture, except for
What is the best way to create fluid width/height rounded corners with jQuery? That
I was looking at how some site implemented rounded corners, and the CSS had

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.