Sha256: 356d9198c3024b92ca47a04f45e5b9c36d4892bbd8a39ef8c610b80f0f59790e

Contents?: true

Size: 852 Bytes

Versions: 15

Compression:

Stored size: 852 Bytes

Contents

    
format :css do

  def get_inclusion_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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
card-1.16.6 mod/02_basic_types/set/all/all_css.rb
card-1.16.5 mod/02_basic_types/set/all/all_css.rb
card-1.16.4 mod/02_basic_types/set/all/all_css.rb
card-1.16.3 mod/02_basic_types/set/all/all_css.rb
card-1.16.2 mod/02_basic_types/set/all/all_css.rb
card-1.16.1 mod/02_basic_types/set/all/all_css.rb
card-1.16.0 mod/02_basic_types/set/all/all_css.rb
card-1.15.7 mod/02_basic_types/set/all/all_css.rb
card-1.15.6 mod/02_basic_types/set/all/all_css.rb
card-1.15.5 mod/02_basic_types/set/all/all_css.rb
card-1.15.4 mod/02_basic_types/set/all/all_css.rb
card-1.15.3 mod/02_basic_types/set/all/all_css.rb
card-1.15.2 mod/02_basic_types/set/all/all_css.rb
card-1.15.1 mod/02_basic_types/set/all/all_css.rb
card-1.15.0 mod/02_basic_types/set/all/all_css.rb