Sha256: 8a9f3b853a3d1514c898abc3b98e635ac65a7f8d076c1e3f074edae123596401

Contents?: true

Size: 1.12 KB

Versions: 49

Compression:

Stored size: 1.12 KB

Contents

# -*- encoding : utf-8 -*-
class Card; module Set; class All; module AllCss; extend Card::Set
# ~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/basic_formats/set/all/all_css.rb ~~

format :css do
  def get_nest_defaults _nested_card
    { view: :raw }
  end

  def show view, args
    view ||= :content
    render view, args
  end

  view :titled do |args|
    major_comment(%( Style Card: "#{card.name}" )) + _render_core(args)
  end

  view :content do |args|
    _render_core args
  end

  view :missing do |_args|
    major_comment "MISSING Style Card: #{card.name}"
  end

  view :import do |_args|
    %{\n@import url("#{_render_url item: :import}");\n}
  end

  view :url, perms: :none do |args|
    page_path card.cardname, format: :css, item: args[:item]
    # card_url _render_linkname
  end

  def major_comment comment, char="-"
    edge = %(/* #{char * (comment.length + 4)} */)
    main = %(/* #{char} #{comment} #{char} */)
    "#{edge}\n#{main}\n#{edge}\n\n"
  end
end


# ~~ below autogenerated; above pulled from /Users/ethan/dev/wagn/gem/card/mod/basic_formats/set/all/all_css.rb ~~
end;end;end;end;

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
card-1.99.6 tmpsets/set/mod004-basic_formats/all/all_css.rb
card-1.99.5 tmpsets/set/mod004-basic_formats/all/all_css.rb
card-1.97.0.1 tmpsets/set/mod004-basic_formats/all/all_css.rb
card-1.97.0 tmpsets/set/mod004-basic_formats/all/all_css.rb
card-1.96.8 tmpsets/set/mod004-basic_formats/all/all_css.rb
card-1.96.7 tmpsets/set/mod004-basic_formats/all/all_css.rb
card-1.96.6 tmpsets/set/mod004-basic_formats/all/all_css.rb
card-1.96.5 tmpsets/set/mod004-basic_formats/all/all_css.rb
card-1.96.4 tmpsets/set/mod004-basic_formats/all/all_css.rb
card-1.96.3 tmpsets/set/mod004-basic_formats/all/all_css.rb
card-1.96.2 tmpsets/set/mod004-basic_formats/all/all_css.rb
card-1.96.1 tmpsets/set/mod004-basic_formats/all/all_css.rb
card-1.96.0 tmpsets/set/mod004-basic_formats/all/all_css.rb
card-1.95.3 tmpsets/set/mod004-basic_formats/all/all_css.rb
card-1.95.2 tmpsets/set/mod004-basic_formats/all/all_css.rb
card-1.95.1 tmpsets/set/mod004-basic_formats/all/all_css.rb
card-1.95.0 tmpsets/set/mod004-basic_formats/all/all_css.rb
card-1.94.1 tmpsets/set/mod004-basic_formats/all/all_css.rb
card-1.94.0 tmpsets/set/mod004-basic_formats/all/all_css.rb
card-1.93.13 tmpsets/set/mod004-basic_formats/all/all_css.rb