Skip to content

Instantly share code, notes, and snippets.

@ruby0x1
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ruby0x1/3aff0b6e64b9c3fdbd8f to your computer and use it in GitHub Desktop.
Save ruby0x1/3aff0b6e64b9c3fdbd8f to your computer and use it in GitHub Desktop.
mint file markup and layout example
/*
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