diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..62c8935 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea/ \ No newline at end of file diff --git a/css/styles.css b/css/styles.css index 8b7719b..7be9043 100644 --- a/css/styles.css +++ b/css/styles.css @@ -13,7 +13,7 @@ div, header, footer, article { header, footer, article { width: 930px; margin: auto; - background-color: #0D9F69; + background-color: #3299af; padding: 20px; } @@ -55,10 +55,15 @@ article { vertical-align: middle; background-color: #fff; font-weight: 100; - color: #0D9F69; + color: #2E6571; line-height: 120%; } +pre.white-block { + padding-left: 0; + padding-bottom: 0; +} + p { margin: 10px 0; line-height: 120%; @@ -66,6 +71,11 @@ p { h2 { font-size: 30px; + padding-top: 40px; +} + +h2:first-of-type { + padding-top: 10px; } h6 { @@ -83,6 +93,10 @@ h6 { margin-bottom: 15px; } +.syntax p { + margin-bottom: 0; +} + .values li { text-indent: 20px; list-style: inside circle; @@ -98,20 +112,20 @@ section > div { position: relative; width: 450px; margin: 15px; - border: 1px solid #0D9F69; + border: 1px solid #3299af; overflow: hidden; } section h2 { - color: #0D9F69; + color: #3299af; text-indent: 30px; margin-bottom: 20px; } section > div div { width: 100%; - height: 200px; - background-color: #0D9F69; + height: 240px; + background-color: #3299af; margin-top: 250px; padding: 20px; } @@ -139,7 +153,7 @@ span, .emph { strong { background: #fff; - color: #0D9F69; + color: #3299af; font-weight: bold; padding: 0 5px; -} +} \ No newline at end of file diff --git a/img/bg.jpg b/img/bg.jpg index 697e9c3..9bd75c3 100644 Binary files a/img/bg.jpg and b/img/bg.jpg differ diff --git a/index.html b/index.html index 82fad33..b0a31ae 100644 --- a/index.html +++ b/index.html @@ -8,35 +8,44 @@ - CanvasTextWrapper.js + CanvasTextWrapper
-

CanvasTextWrapper.js

+

CanvasTextWrapper

- JavaScript canvas text wrapper that automatically splits a string into lines on specified rule with - optional alignments and padding. + Pure JavaScript canvas text wrapper that automatically splits a string into lines on specified rule with + alignment and padding.

Syntax


-

new CanvasTextWrapper(HTMLCanvasElement, String [, Options]);


+

CanvasTextWrapper(HTMLCanvasElement, String [, Options]);


-
OPTIONS
- - is a JavaScript object with the following available properties and values: +
Options
+ - is an object with the following available properties and values: