Sha256: b9647d59b0d6de538b08f479f1074000446a5843c046ebb845c33f364543a1be

Contents?: true

Size: 679 Bytes

Versions: 31

Compression:

Stored size: 679 Bytes

Contents

Teacup::Stylesheet.new(:iphone) do
  label_color = UIColor.blueColor

  style :hai,
    landscape: true

  style UILabel,
    textColor: label_color

  style :label,
    text: 'Hai!',
    backgroundColor: UIColor.whiteColor,
    top: 10,
    left: 100,
    width: 50,
    height: 20,
    layer: {
      transform: identity,
    },
    landscape_left: {
      layer: {
        transform: rotate(identity, pi/6, 0.3, 0.3, 0.3)
      },
      width: 75
    }

  style :footer,
    text: 'brought to you by teacup',
    backgroundColor: UIColor.lightGrayColor,
    top: 440,
    left: 120,
    width: 200,
    height: 20,
    landscape: {
      left: 280,
      top: 280
    }

end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
teacup-2.0.2 samples/Hai/app/styles/iphone.rb
teacup-2.0.0 samples/Hai/app/styles/iphone.rb
teacup-1.3.4 samples/Hai/app/styles/iphone.rb
teacup-1.3.3 samples/Hai/app/styles/iphone.rb
teacup-1.3.2 samples/Hai/styles/iphone.rb
teacup-1.3.1 samples/Hai/styles/iphone.rb
teacup-1.3.0 samples/Hai/styles/iphone.rb
teacup-1.2.9 samples/Hai/styles/iphone.rb
teacup-1.2.8 samples/Hai/styles/iphone.rb
teacup-1.2.7 samples/Hai/styles/iphone.rb
teacup-1.2.5 samples/Hai/styles/iphone.rb
teacup-1.2.4 samples/Hai/styles/iphone.rb
teacup-1.2.3 samples/Hai/styles/iphone.rb
teacup-1.2.2 samples/Hai/styles/iphone.rb
teacup-1.0.4 samples/Hai/styles/iphone.rb
teacup-1.0.3 samples/Hai/styles/iphone.rb
teacup-1.0.2 samples/Hai/styles/iphone.rb
teacup-1.0.1 samples/Hai/styles/iphone.rb
teacup-1.0.0 samples/Hai/styles/iphone.rb
teacup-0.3.12 samples/Hai/styles/iphone.rb