Sha256: a2de97f303c81859138b36cb191d0ce055d0baaeefdc8baeea1868556beea996

Contents?: true

Size: 1.26 KB

Versions: 11

Compression:

Stored size: 1.26 KB

Contents

include_set Abstract::CodeFile

view :raw do |_args|
  bootstrap_path = File.join Cardio.gem_root, "mod",
                             card.file_content_mod_name, "lib",
                             "stylesheets", "bootstrap"

  # variables
  content = File.read("#{bootstrap_path}/_variables.scss")
  content += %(
      $bootstrap-sass-asset-helper: false;
      $icon-font-path: "#{card_url 'assets/fonts/'}";
    )
  # mixins
  content += Dir.glob("#{bootstrap_path}/mixins/*.scss").map do |name|
    File.read name
  end.join("\n")
  content += [
    # Reset and dependencies
    %w(normalize print glyphicons),
    # Core CSS
    %w(scaffolding type code grid tables forms buttons),
    # Components
    %w(component-animations dropdowns button-groups input-groups navs navbar
       breadcrumbs pagination pager labels badges jumbotron thumbnails alerts
       progress-bars media list-group panels responsive-embed wells close),
    # Components w/ JavaScript
    %w(modals tooltip popovers carousel),
    # Utility classes
    %w(utilities responsive-utilities)
  ].map do |names|
    names.map do |name|
      path = File.join(bootstrap_path, "_#{name}.scss")
      Rails.logger.info "reading file: #{path}"
      File.read path
    end.join "\n"
  end.join "\n"

  content
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
card-1.20.4 mod/bootstrap/set/self/bootswatch_shared.rb
card-1.20.3 mod/bootstrap/set/self/bootswatch_shared.rb
card-1.20.2 mod/bootstrap/set/self/bootswatch_shared.rb
card-1.20.1 mod/bootstrap/set/self/bootswatch_shared.rb
card-1.20.0 mod/bootstrap/set/self/bootswatch_shared.rb
card-1.19.6 mod/bootstrap/set/self/bootswatch_shared.rb
card-1.19.5 mod/bootstrap/set/self/bootswatch_shared.rb
card-1.19.4 mod/bootstrap/set/self/bootswatch_shared.rb
card-1.19.3 mod/bootstrap/set/self/bootswatch_shared.rb
card-1.19.2 mod/bootstrap/set/self/bootswatch_shared.rb
card-1.19.1 mod/bootstrap/set/self/bootswatch_shared.rb