Tree-Box Css Project
Tree-Box Css is a project written in Haskell.
In this project I combine the last projects developped.
I am using the inheritance and the boxcss project.
The project apply the css style rules for each element in
the tree. And each box is a window with margin, border and
padding properties.
I am applying the cascacading algorithm with the inheritance part.
Download and Install
- Download from Git (http://github.com/carliros/Tree-Box)
- In order to get installed, you will need:
- wxhaskell (http://hackage.haskell.org/package/wx)
- uulib (http://hackage.haskell.org/package/uulib)
- uuagc (http://hackage.haskell.org/package/uuagc)
- Use the Makefile to compile and install: make all
- To run, use the generated
file: ./tboxThere are some examples in the test directory.
Updates
- Nothing.
To Implement
- Implement for more properties.
Implemented
- Cascading style sheet for author, user, user agent.
- Specificity of a selector.
- Cascading algorithm and inheritance.
- Css Box Model
Html Tags implemented
The following tags are reconised by the parser: style, html, head,
body, h1, h2, …, h6, p, big, small
Style Properties implemented
- display; values: none, block, inherit
- margin-top, margin-right, margin-bottom, margin-left
- border-top-width, border-right-width ..
- border-top-style .., values: hidden, dotted, dashed, solidborder-top-color: red, yellow, darkgrey, grey, white, green, blue, cyan, magenta
- padding-top, padding-right, …
