class Playbook::PbAvatar::Avatar
def placement_styles(offset)
def placement_styles(offset) top_bottom_offset = if offset == "xs" "xs" elsif offset == { value: "xxs", inset: true } { value: "xxs", inset: true } else "0" end { "top-right" => { top: top_bottom_offset, right: offset }, "bottom-left" => { bottom: top_bottom_offset, left: offset }, "top-left" => { top: top_bottom_offset, left: offset }, "bottom-right" => { bottom: top_bottom_offset, right: offset }, "bottom-center" => { bottom: "xs", classname: "overlay_bottom_center" }, "top-center" => { top: "xs", classname: "overlay_top_center" }, "left-center" => { left: "sm", classname: "overlay_left_center" }, "right-center" => { right: "sm", classname: "overlay_right_center" }, } end