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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T22:16:25+00:00 2026-06-17T22:16:25+00:00

test_app/app/assets/stylesheets/application.css.scss @import ‘compass’; @import ‘variables’; @media only screen and (min-width: $breakpoint-medium-additional-width) { @import ‘partials/medium-additional’;

  • 0

test_app/app/assets/stylesheets/application.css.scss

@import 'compass';
@import 'variables';
@media only screen and (min-width: $breakpoint-medium-additional-width) {
  @import 'partials/medium-additional';
}

test_app/app/assets/stylesheets/_variables.scss

$breakpoint-medium-additional-width: 28em;

When I try to visit a page (in development), this Rails error occurs:

Sass::SyntaxError at /
Invalid CSS after "...nd (min-width: ": expected expression (e.g. 1px, bold), was "$breakpoint-med..." (in /Users/ben/rails_projects/test_app/app/assets/stylesheets/application.css.scss)

Why is $breakpoint-medium-additional-width not being set correctly?

I’m using

  • Rails 3.2.11
  • ruby 1.9.3
  • compass 0.12.2
  • compass-rails 1.0.3
  • 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-17T22:16:26+00:00Added an answer on June 17, 2026 at 10:16 pm

    I think you have a typo in your code. I created a new rails project, and it works fine for me.

    app/assets/stylesheets/_variables.scss

    $breakpoint-medium-additonal-width: 28em;
    

    app/assets/stylesheets/application.scss

    @import 'compass';
    @import 'variables';
    @media only screen and (min-width: $breakpoint-medium-additonal-width) {
      font-size: 120%;
    }
    

    The output application.css

    @media only screen and (min-width: 28em) {
      font-size: 120%;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In our Intranet environment we have a decree that common assets (stylesheets, images, etc)
I have a rails app that is combining javascript assets using Jammit , and
I'm using phonegap/cordova 2.1 and my app has locally stored assets (on the device)
I am using assetic to manage my assets in a Symfony2 application. I am
I am working on an Android app. It has corresponding spec/test application. As part
I'm trying to set up a rails 3.2 app with the new compass-rails gem
I'm trying to precompile my app assets locally. When I run bundle exec rake
Writing a test app to emulate PIO lines, I have a very simple Python/Tk
A simple test app: cout << new int[0] << endl; outputs: 0x876c0b8 So it
My WPF test app (very simple, just one window) is using a 3rd party

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.