Sha256: a6a6bb0f0b30ff823c3e471ae37f9e415d3b3e1ebfc6e96af24c1b30e62b8281
Contents?: true
Size: 734 Bytes
Versions: 26
Compression:
Stored size: 734 Bytes
Contents
Teacup::Stylesheet.new :root do import :base v_padding = 10 style :label, extends: :custom_label, constraints: [ :full_width, constrain_top(50) ], backgroundColor: UIColor.clearColor style :button, extends: :custom_button, constraints: [ constrain_below(:label).plus(v_padding), # Position at half of middle (q1) constrain(:center_x).equals(:superview, :center_x).times(0.5), constrain(:left).equals(:superview, :left).plus(10) ] style :switch, extends: :custom_switch, constraints: [ constrain_below(:label).plus(v_padding * 2), # Position at Middle + half (75%) constrain(:center_x).equals(:superview, :center_x).times(1.5) ] end
Version data entries
26 entries across 26 versions & 1 rubygems