File: normalize-scss.rb

package info (click to toggle)
compass-normalize-plugin 6.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 784 kB
  • sloc: makefile: 33; ruby: 15
file content (17 lines) | stat: -rw-r--r-- 524 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
project_path     = '/usr/share/compass/frameworks/toolkit'
stylesheets_path = File.join(project_path, 'stylesheets')

if (defined? Compass)
  Compass::Frameworks.register(
    'normalize-scss',
    :path => project_path,
    :stylesheets_directory => stylesheets_path
  )
else
  # Compass not defined, register the Sass path via an environment variable.
  if ENV.has_key?('SASS_PATH')
    ENV['SASS_PATH'] = ENV['SASS_PATH'] + File::PATH_SEPARATOR + stylesheets_path
  else
    ENV['SASS_PATH'] = stylesheets_path
  end
end