class Playbook::PbLayout::Layout
def classname
def classname case layout when "collection" generate_classname("pb_layout_kit", layout) when "kanban" generate_classname("pb_layout_kit", layout, responsive_class) when "collection_detail" generate_classname("pb_layout_kit", layout) when "content" generate_classname("pb_layout_kit", layout) when "masonry" generate_classname("pb_layout_kit", layout) else first_class = generate_classname("pb_layout_kit_sidebar", "size_#{size}", position, variant, transparent_class) [first_class, full_class, collapse_class].reject(&:empty?).join(" ") end end
def collapse_class
def collapse_class "layout_#{position}_collapse_#{collapse}" end
def full_class
def full_class full ? "full" : "" end
def responsive_class
def responsive_class responsive ? "responsive" : "" end
def transparent_class
def transparent_class transparent ? "transparent" : nil end