Sha256: 5e4be00612a5994315504cc4ad78e973773cafd7254fe027074a3472d6500503

Contents?: true

Size: 815 Bytes

Versions: 18

Compression:

Stored size: 815 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,
    portrait: {
      layer: {
        transform: transform_layer.identity,
      },
      top: 10,
      left: 100,
      height: 20,
      width: 50
    },
    landscape_left: {
      layer: {
        transform: transform_layer.rotate(pi/6, 0.3, 0.3, 0.3)
      },
      top: 40,
      left: 100,
      height: 20,
      width: 75
    }

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

end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
teacup-2.1.13 samples/ios/Hai/app/styles/iphone.rb
teacup-2.1.12 samples/ios/Hai/app/styles/iphone.rb
teacup-2.1.11 samples/ios/Hai/app/styles/iphone.rb
teacup-2.1.10 samples/ios/Hai/app/styles/iphone.rb
teacup-2.1.9 samples/ios/Hai/app/styles/iphone.rb
teacup-2.1.8 samples/ios/Hai/app/styles/iphone.rb
teacup-2.1.7 samples/ios/Hai/app/styles/iphone.rb
teacup-2.1.6 samples/ios/Hai/app/styles/iphone.rb
teacup-2.1.5 samples/ios/Hai/app/styles/iphone.rb
teacup-2.1.4 samples/ios/Hai/app/styles/iphone.rb
teacup-2.1.3 samples/ios/Hai/app/styles/iphone.rb
teacup-2.1.2 samples/ios/Hai/app/styles/iphone.rb
teacup-2.1.1 samples/ios/Hai/app/styles/iphone.rb
teacup-2.1.0 samples/ios/Hai/app/styles/iphone.rb
teacup-2.0.6 samples/ios/Hai/app/styles/iphone.rb
teacup-2.0.5 samples/ios/Hai/app/styles/iphone.rb
teacup-2.0.4 samples/ios/Hai/app/styles/iphone.rb
teacup-2.0.3 samples/ios/Hai/app/styles/iphone.rb