Results 1 to 2 of 2

Thread: SASS error in _functions.scss (Line 1: Invalid CSS after "@function min( ... ))

  1. #1
    Sencha User
    Join Date
    Feb 2011
    Vote Rating

    Default SASS error in _functions.scss (Line 1: Invalid CSS after "@function min( ... ))

    We're trying to integrate the Ext4 CSS into the existing SASS/COMPASS code for our project by modifying the ruby config with the lines to register the Ext4 framework as seen in the "resources/themes/compass_init.rb" config. For example, here is our config:

    # Require any additional compass plugins here.
    # Set this to the root of your project when deployed:
    http_path = "/static/"
    css_dir = "css"
    sass_dir = "sass"
    images_dir = "img"
    javascripts_dir = "js"
    # To enable relative paths to assets via compass helper functions. Uncomment:
    # relative_assets = true
    # Add SASS from ExtJS
    dir = File.join(File.dirname(__FILE__), 'ext4', 'resources', 'themes')
    require File.join(dir, 'lib', 'theme_images.rb')
    require File.join(dir, 'lib', 'utils.rb')
    Compass::Frameworks.register 'ext4', dir
    Then, in our _base.scss we try to @import "compass" and 'ext4/default/all'. However, we are presented with the following error when the scss is compiled:

    Syntax error: Invalid CSS after "@function min(": expected ")", was "$value1, $value..."
    on line 1 of [redacted]/static/ext4/resources/themes/stylesheets/ext4/default/./_functions.scss
    from line 6 of [redacted]/static/ext4/resources/themes/stylesheets/ext4/default/_all.scss
    from line 7 of [redacted]/static/sass/partials/_base.scss
    from line 6 of [redacted]/static/sass/screen.scss
    I am particularly confused because I can't find information about the "@function" directive in the SASS reference, so I don't know where that comes from.

    Any help would be greatly appreciated. Mike

  2. #2
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Redwood City, California
    Vote Rating


    You will be required to use the very latest builds of compass and it's plugins.

    This thread should give you the information you need:

Similar Threads

  1. [3.1] Errors only in IE, Line: 3988 Error: Invalid argument.
    By asyura in forum Ext 3.x: Help & Discussion
    Replies: 7
    Last Post: 19 Feb 2010, 3:17 AM
  2. [RESOLVED][2.2.1] Calling defined function throws a "is not a function" error
    By sam_mooball in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 19 Apr 2009, 11:08 PM
  3. Combo dropdown list gives "invalid argument" error in IE7
    By HemantPagare in forum Ext 2.x: Help & Discussion
    Replies: 13
    Last Post: 10 Apr 2009, 6:12 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts