Method: Alchemy::ElementEditor#css_classes

Defined in:
app/decorators/alchemy/element_editor.rb

#css_classesObject

CSS classes for the element editor partial.



52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'app/decorators/alchemy/element_editor.rb', line 52

def css_classes
  [
    "element-editor",
    ingredient_definitions.present? ? "with-ingredients" : "without-ingredients",
    nestable_elements.any? ? "nestable" : "not-nestable",
    taggable? ? "taggable" : "not-taggable",
    folded ? "folded" : "expanded",
    compact? ? "compact" : nil,
    deprecated? ? "deprecated" : nil,
    fixed? ? "is-fixed" : "not-fixed",
    public? ? nil : "element-hidden"
  ]
end