Sha256: a3662e46430207f272483089a5cd9d5b2d5f75e53c0c1cb6b71d3cc0299fe026

Contents?: true

Size: 1.29 KB

Versions: 18

Compression:

Stored size: 1.29 KB

Contents

# -*- encoding : utf-8 -*-
class Card; module Set; module Type; module Css; extend Card::Set
# ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/type/css.rb ~~~~~~~~~~~
# -*- encoding : utf-8 -*-
require 'sass'
include Machine
include MachineInput

store_machine_output filetype: "css"

machine_input do
  compress_css format(format: :css)._render_core
end

def compress_css input
  begin
    Sass.compile input, style: :compressed
  rescue => e
    raise Card::Oops, "Stylesheet Error:\n#{ e.message }"
  end
end

def clean_html?
  false
end

format do
  def chunk_list  #turn off autodetection of uri's
    :references
  end
end


format :html do
  def get_inclusion_defaults nested_card
    { view: :closed }
  end

  view :editor, mod: Html::HtmlFormat

  view :core do |args|
    # FIXME: scan must happen before process for inclusion interactions to work, but this will likely cause
    # problems with including other css?
    process_content ::CodeRay.scan( _render_raw, :css ).div, content_opts: {size: :icon}
  end

  view :content_changes, mod: CoffeeScript::HtmlFormat
end

def diff_args
   {format: :text}
end


# ~~~~~~~~~~~ below autogenerated; above pulled from /Users/ethan/dev/wagn/gem/card/mod/03_machines/set/type/css.rb ~~~~~~~~~~~
end;end;end;end;

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
card-1.18.6 tmpsets/set/mod004-03_machines/type/css.rb
card-1.18.5 tmpsets/set/mod004-03_machines/type/css.rb
card-1.18.4 tmpsets/set/mod004-03_machines/type/css.rb
card-1.18.3 tmpsets/set/mod004-03_machines/type/css.rb
card-1.18.2 tmpsets/set/mod004-03_machines/type/css.rb
card-1.18.1 tmpsets/set/mod004-03_machines/type/css.rb
card-1.18.0 tmpsets/set/mod004-03_machines/type/css.rb
card-1.17.4 tmpsets/set/mod004-03_machines/type/css.rb
card-1.17.3 tmpsets/set/mod004-03_machines/type/css.rb
card-1.17.2 tmpsets/set/mod004-03_machines/type/css.rb
card-1.17.1 tmpsets/set/mod004-03_machines/type/css.rb
card-1.17.0 tmpsets/set/mod004-03_machines/type/css.rb
card-1.16.15 tmpsets/set/mod004-03_machines/type/css.rb
card-1.16.14 tmpsets/set/mod004-03_machines/type/css.rb
card-1.16.13 tmpsets/set/mod004-03_machines/type/css.rb
card-1.16.12 tmpsets/set/mod004-03_machines/type/css.rb
card-1.16.11 tmpsets/set/mod004-03_machines/type/css.rb
card-1.16.10 tmpsets/set/mod004-03_machines/type/css.rb