Sha256: 18988dade4a4e9f18428037f878c237681527451067d7c154a44eb6f9919c765

Contents?: true

Size: 686 Bytes

Versions: 3

Compression:

Stored size: 686 Bytes

Contents

# card, that lists all styles that belong to one mod, for example:
# "mod: bootstrap+*style"

include_set Abstract::AssetInputter, input_format: :scss
include_set Abstract::ModAssets

def subpath
  "style"
end

def folder_group_type_id
  ::Card::LocalStyleFolderGroupID
end

def local_manifest_group_type_id
  ::Card::LocalStyleManifestGroupID
end

format :html do
  view :stylesheet_include_tag do
    card.item_cards.map do |icard|
      nest icard, view: :stylesheet_include_tag
    end.join("\n")
  end
end

def asset_input_needs_refresh?
  !asset_input_updated_at || source_changed?(since: asset_input_updated_at)
end

def asset_input_updated_at
  asset_input_card&.updated_at
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
card-mod-style-0.14.2 set/type_plus_right/mod/style.rb
card-mod-style-0.14.1 set/type_plus_right/mod/style.rb
card-mod-style-0.14.0 set/type_plus_right/mod/style.rb