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