module Fomantic::Ui::Sass
Constants
- SEMANTIC_UI_SHA
- VERSION
Public Class Methods
assets_path()
click to toggle source
# File lib/fomantic-ui-sass.rb, line 33 def assets_path @assets_path ||= File.join(gem_path, 'app', 'assets') end
configure_sass()
click to toggle source
# File lib/fomantic-ui-sass.rb, line 53 def configure_sass require 'sassc' ::SassC.load_paths << stylesheets_path end
fonts_path()
click to toggle source
# File lib/fomantic-ui-sass.rb, line 37 def fonts_path File.join(assets_path, 'fonts') end
gem_path()
click to toggle source
Paths
# File lib/fomantic-ui-sass.rb, line 25 def gem_path @gem_path ||= File.expand_path('..', File.dirname(__FILE__)) end
images_path()
click to toggle source
# File lib/fomantic-ui-sass.rb, line 41 def images_path File.join(assets_path, 'images') end
javascripts_path()
click to toggle source
# File lib/fomantic-ui-sass.rb, line 45 def javascripts_path File.join(assets_path, 'javascripts') end
load!()
click to toggle source
# File lib/fomantic-ui-sass.rb, line 6 def load! if defined?(::Rails) require 'fomantic/ui/sass/engine' elsif defined?(::Compass) ::Compass::Frameworks.register('fomantic-ui', path: base, stylesheets_directory: stylesheets_path, templates_directory: templates_path) elsif defined?(::Sprockets) Sprockets.append_path(stylesheets_path) Sprockets.append_path(fonts_path) Sprockets.append_path(images_path) Sprockets.append_path(javascripts_path) end configure_sass unless defined?(::Rails) || defined?(::Compass) || defined?(::Sprockets) raise Fomantic::Ui::Sass::FrameworkNotFound, 'fomantic-ui-sass requires either Rails > 3.1 or Compass, or Sprockets, none of which are loaded' end end
stylesheets_path()
click to toggle source
# File lib/fomantic-ui-sass.rb, line 49 def stylesheets_path File.join(assets_path, 'stylesheets') end
templates_path()
click to toggle source
# File lib/fomantic-ui-sass.rb, line 29 def templates_path File.join(gem_path, 'templates') end