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.93.12 tmpsets/set/mod004-basic_formats/all/all_css.rb
card-1.93.11 tmpsets/set/mod004-basic_formats/all/all_css.rb
card-1.93.10 tmpsets/set/mod004-basic_formats/all/all_css.rb
card-1.93.9 tmpsets/set/mod004-basic_formats/all/all_css.rb
card-1.93.8 tmpsets/set/mod004-basic_formats/all/all_css.rb
card-1.93.7 tmpsets/set/mod004-basic_formats/all/all_css.rb
card-1.93.6 tmpsets/set/mod004-basic_formats/all/all_css.rb
card-1.93.5 tmpsets/set/mod004-basic_formats/all/all_css.rb
card-1.93.4 tmpsets/set/mod004-basic_formats/all/all_css.rb
card-1.93.3 tmpsets/set/mod004-basic_formats/all/all_css.rb
card-1.93.2 tmpsets/set/mod004-basic_formats/all/all_css.rb
card-1.93.1 tmpsets/set/mod004-basic_formats/all/all_css.rb
card-1.93.0 tmpsets/set/mod004-basic_formats/all/all_css.rb
card-1.92.2 tmpsets/set/mod004-basic_formats/all/all_css.rb
card-1.92.1 tmpsets/set/mod004-basic_formats/all/all_css.rb
card-1.92 tmpsets/set/mod004-basic_formats/all/all_css.rb
card-1.21.0 tmpsets/set/mod003-basic_formats/all/all_css.rb
card-1.20.4 tmpsets/set/mod003-basic_formats/all/all_css.rb
card-1.20.3 tmpsets/set/mod003-basic_formats/all/all_css.rb
card-1.20.2 tmpsets/set/mod003-basic_formats/all/all_css.rb