Commit 59576207 authored by Julie Blanc's avatar Julie Blanc

add baseline color (readme)

parent 294c6b99
......@@ -29,7 +29,8 @@ After, add this code in the `head` of you html document
baseline: 40,
strict: true,
showBaseline: true,
element: 'body'
element: 'body',
baselineColor: '#bfbfbf'
});
}
</script>
......@@ -41,6 +42,7 @@ After, add this code in the `head` of you html document
`strict`: with `true`, all the text strictly snap on the baseline. It's happend you dosen't want that the text exactly snap on the baseline and keep the proportion padding you define, so if you declare `false`, the text will not be strictly snap to the baseline but will keep the vertical rhythm related to the baseline (the difference in calculation between the two possibilities is explained below).
`showBaseline`: define the visibility of the baseline, with `true` the baseline is visible and with `false` the baseline is hidden.
`element`: define the element where the baseline applies.
`baselineColor`: obviously, the color of you baseline
### Use the script with paged.js
......
......@@ -2,7 +2,7 @@
@page{
size: A5;
margin-top: 80px;
margin-top: 0px;
margin-bottom: 80px;
margin-left: 20mm;
margin-right: 20mm;
......
......@@ -9,9 +9,9 @@
</title>
<!-- fonts -->
<!-- <link rel="stylesheet" type="text/css" href="fonts/ibm-plex-sans/stylesheet.css" />
<link rel="stylesheet" type="text/css" href="fonts/ibm-plex-sans/stylesheet.css" />
<link rel="stylesheet" type="text/css" href="fonts/gap-sans/stylesheet.css" />
<link rel="stylesheet" type="text/css" href="fonts/muli/stylesheet.css" /> -->
<link rel="stylesheet" type="text/css" href="fonts/muli/stylesheet.css" />
<!-- styles -->
<link rel="stylesheet" type="text/css" href="css/interface.css" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment