forked from HeapsIO/heaps
-
Notifications
You must be signed in to change notification settings - Fork 1
h2d.css
David "Blackmagic" Elahee edited this page Jan 9, 2015
·
13 revisions
This is a startup documentation for h2d.css.
h2d.css is similar to html markup language. However it is turned toward efficient rendering than being able to cover every possible aspect of HTML.
Hence less possibilities but very efficient rendering speed.
- div
- label
- button
- scroll
- itemlist
- input
- slider
- hscroll
- horizontal
- vertical
- dock
- inline
- absolute
- overflow : [hidden|visible]
- width
- height
- spacing : ???
- horizontal-spacing
- vertical-spacing
- increment
- max-increment
- tick-[color|spacing]
- layout : [vertical|inline|absolute|dock]
- background-color
- background-tile : [ tile( assets(path/to/asset) x y w h [dx| dy | dx dy|]) | youCustomResolver ]
- background-size : [cover|contain| x% y% ]
- font-[size|family]
- color
- offset
- offset-[x|y]
- dock : [top|bottom|left|right|full|none]
default is Full
- cursor-color
- selection-color
- icon
- icon-[color|left|top]
- position : [absolute|relative]
- text-align : [left|center|right]
- display : [none|block|inline-block]
Box Model attributes
- margin
- margin-[left|right|top|bottom]
- padding
- padding-[left|right|top|bottom]
- border
- border-[left|right|top|bottom]