-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vaev-render, vaev-style: Initial support for page and page margin rules.
- Loading branch information
1 parent
279781b
commit e08c96d
Showing
20 changed files
with
881 additions
and
96 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
|
||
<style> | ||
@page { | ||
margin: 3cm; | ||
|
||
/* MARK: Top ------------------------------------------------------------ */ | ||
|
||
@top-left-corner { | ||
content: "Corner"; | ||
background-color: red; | ||
} | ||
|
||
@top-left { | ||
content: "Left"; | ||
background-color: green; | ||
} | ||
|
||
@top-center { | ||
content: "Center"; | ||
background-color: blue; | ||
} | ||
|
||
@top-right { | ||
content: "Right"; | ||
background-color: green; | ||
} | ||
|
||
@top-right-corner { | ||
content: "Corner"; | ||
background-color: red; | ||
} | ||
|
||
/* MARK: Bottom --------------------------------------------------------- */ | ||
|
||
@bottom-left-corner { | ||
content: "Corner"; | ||
background-color: red; | ||
} | ||
|
||
@bottom-left { | ||
content: "Left"; | ||
background-color: green; | ||
} | ||
|
||
@bottom-center { | ||
content: "Center"; | ||
background-color: blue; | ||
} | ||
|
||
@bottom-right { | ||
content: "Right"; | ||
background-color: green; | ||
} | ||
|
||
@bottom-right-corner { | ||
content: "Corner"; | ||
background-color: red; | ||
} | ||
|
||
/* MARK: Left ----------------------------------------------------------- */ | ||
|
||
@left-top { | ||
content: "Top"; | ||
background-color: green; | ||
} | ||
|
||
@left-middle { | ||
content: "Middle"; | ||
background-color: blue; | ||
} | ||
|
||
@left-bottom { | ||
content: "Bottom"; | ||
background-color: green; | ||
} | ||
|
||
/* MARK: Right ---------------------------------------------------------- */ | ||
|
||
@right-top { | ||
content: "Top"; | ||
background-color: green; | ||
} | ||
|
||
@right-middle { | ||
content: "Middle"; | ||
background-color: blue; | ||
} | ||
|
||
@right-bottom { | ||
content: "Bottom"; | ||
background-color: green; | ||
} | ||
} | ||
</style> | ||
|
||
<body> | ||
<h1>Lorem ipsum dolor, sit amet...</h1> | ||
<p> | ||
...consectetur adipisicing elit. Ab sunt aliquid voluptates fuga, autem earum minus | ||
debitis temporibus ut facilis reprehenderit voluptatum maiores ipsum quis totam esse nemo sint minima. | ||
</p> | ||
</body> | ||
|
||
</html> |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#pragma once | ||
|
||
namespace Vaev { | ||
|
||
} // namespace Vaev |
Oops, something went wrong.