Sha256: acfa03337ef6ef757bc37be2b67a45549d83d3b6c61267830583eaa5110e36bb
Contents?: true
Size: 613 Bytes
Versions: 299
Compression:
Stored size: 613 Bytes
Contents
# frozen_string_literal: true module Playbook module ZIndex def self.included(base) base.prop :z_index end private def z_index_props selected_index_props = z_index_options.keys.select { |sk| try(sk) } return nil unless selected_index_props.present? selected_index_props.map do |k| index_value = send(k) "z_index_#{index_value}" if z_index_values.include? index_value end.compact.join(" ") end def z_index_options { z_index: "z-index", } end def z_index_values %w[1 2 3 4 5 6 7 8 9 10] end end end
Version data entries
299 entries across 299 versions & 1 rubygems