Last active
August 29, 2015 14:14
-
-
Save ruby0x1/3aff0b6e64b9c3fdbd8f to your computer and use it in GitHub Desktop.
mint file markup and layout example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
notes : | |
- set to css for highlighting only, does not equate to css. | |
- wip, etc | |
---- | |
control markup | |
---- | |
*/ | |
>canvas main { | |
>panel login { | |
>entry user {} | |
>entry pass { password:true; } | |
>button done { text:'done'; } | |
}, | |
>panel info { | |
>label forgot { | |
text:'forgot?'; | |
link:true; | |
src:'/login/forgot'; | |
} | |
>image help { | |
img:'/img/help.png'; | |
click:'clicked-help'; | |
} | |
} | |
} | |
/* | |
----- | |
layout constraints | |
---- | |
*/ | |
:main { | |
width: 512; | |
height: 512; | |
center-y: screen.h/2; | |
center-x: screen.w/2; | |
} | |
:login { | |
width: main.width * 0.8; | |
height: main.height * 0.6; | |
center-x: main.center-x; | |
top: height / 10; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment