Update and fix Titanium Style Sheets tests

This commit is contained in:
Glavin Wiechert 2015-05-20 12:19:12 -03:00
parent f78fa314cd
commit 25b1d5b1f5
4 changed files with 33 additions and 45 deletions

View File

@ -1,28 +1,24 @@
"Window": {
exitOnClose: true,
"Window" :
{ exitOnClose: true,
backgroundColor: "#fff",
title: "Kochgut"
}
"Label": {
width: Ti.UI.SIZE,
"Label" :
{ width: Ti.UI.SIZE,
height: Ti.UI.SIZE,
color: "#555",
touchEnabled: false
}
"Button": {
backgroundColor: "#03a9f4",
"Button" :
{ backgroundColor: "#03a9f4",
color: "#fff",
borderRadius: 2
}
"#menu": {
backgroundImage: "/images/bg.png"
"#menu" :
{ backgroundImage: "/images/bg.png"
}
".button": {
backgroundColor: "#03a9f4",
".button" :
{ backgroundColor: "#03a9f4",
color: "#fff",
borderRadius: 2,
width: Ti.UI.SIZE,
@ -30,68 +26,60 @@
top: 16,
bottom: 16
}
".lbl_button": {
left: 20,
".lbl_button" :
{ left: 20,
right: 20,
color: "#fff"
}
".headline": {
color: "#aaa",
".headline" :
{ color: "#aaa",
left: 16,
height: 48,
font: {
fontWeight: "bold"
}
}
".grid": {
left: 2,
".grid" :
{ left: 2,
right: 2,
layout: "horizontal",
height: Ti.UI.SIZE
}
".card [platform=tablet]": {
width: "33%",
".card [platform=tablet]" :
{ width: "33%",
height: 150,
bottom: 2
}
".card": {
width: "50%",
".card" :
{ width: "50%",
height: 150,
bottom: 2
}
".padding": {
right: 2,
".padding" :
{ right: 2,
left: 0,
top: 0,
bottom: 0,
backgroundImage: "/images/essen.jpg"
}
".card_overlay": {
bottom: 0,
".card_overlay" :
{ bottom: 0,
left: 0,
right: 0,
height: 48
}
".card_overlay_bg": {
left: 0,
".card_overlay_bg" :
{ left: 0,
right: 0,
bottom: 0,
top: 0,
backgroundColor: "#000",
opacity: 0.3
}
".card_lbl": {
color: "#fff",
".card_lbl" :
{ color: "#fff",
left: 16,
font: {
fontSize: 16
}
}
}

View File

@ -1,12 +1,12 @@
".container": {
backgroundImage: 'images/bgbg-builder.png',
".container" :
{ backgroundImage: 'images/bgbg-builder.png',
width: 1024,
height: 752,
top: 0,
left: 0
},
"#blackArrow": {
touchEnabled: false,
"#blackArrow" :
{ touchEnabled: false,
backgroundImage: 'images/arrow-builder.png',
width: 15,
height: 10,