Commit 64025868 authored by julien's avatar julien

update chapter start using header

parent 046b7882
node_modules
dist
fonts/*
......@@ -61,6 +61,12 @@ module.exports = function(grunt) {
src: '**',
dest: 'dist/js/',
},
fonts: {
expand: true,
cwd: 'src/fonts',
src: '**',
dest: 'dist/fonts/',
},
img: {
expand: true,
cwd: 'src/img',
......
doctype html
html
html(lang='en-US')
head
meta(charset='UTF-8')
meta(lang='en-US')
link(rel='stylesheet', href='css/main.css')
link(href='css/main.css', rel='stylesheet')
//- hyphens are made here
script
|var Hyphenopoly = {
| require: {
| "en-us": "Supercalifragilisticexpialidocious"
| },
| paths: {
| patterndir: "./js/hyphens/patterns/",
| maindir: "./js/hyphens/"
| },
|};
script(src="js/hyphens/Hyphenopoly_Loader.js")
script(src="js/paged.polyfill.js")
body
//- script for pagedjs
script
| function pagedjs() {
| var script = document.createElement("script");
| script.type = "text/javascript";
| script.src = "js/paged.polyfill.js";
| document.getElementsByTagName("head")[0].appendChild(script);
| }
style
| #render {
| position: fixed;
| right: 3em;
| top: 3em;
| background: black;
| color: red;
| font-weight: bold;
| border: 3px solid red;
| padding: 0.45em 1em 0.5em;
| text-transform: uppercase;
| }
| #render:hover {
| box-shadow: 0 0 0 4px black;
| }
body(lang='en-US').hyphenate
button#render render
#cover
include sources/parts/subvention.pug
include sources/parts/halftitle.pug
.break
include sources/parts/title.pug
include sources/parts/copyright.pug
.break
include sources/parts/dedication.pug
.break
include sources/parts/toc.pug
include sources/parts/aknowledgment.pug
include sources/parts/introduction.pug
include sources/chapter-00-grid.pug
.break
//- include sources/parts/subvention.pug
//- include sources/parts/halftitle.pug
//- .break
//- include sources/parts/title.pug
//- include sources/parts/copyright.pug
//- .break
//- include sources/parts/dedication.pug
//- .break
//- include sources/parts/toc.pug
//- include sources/parts/aknowledgment.pug
//- include sources/parts/introduction.pug
//- include sources/chapter-00-grid.pug
//- .break
include sources/chapter-00-fullPage.pug
include sources/chapter-start.pug
//- include sources/parts/chapter-1.pug
......@@ -50,3 +96,12 @@ html
//- include sources/parts/chapter-10.pug
//- include sources/parts/chapter-11.pug
//- include sources/parts/notes.pug
script
| function show() {
| pagedjs();
| document.querySelector("#render").style.display = "none";
| }
| document.querySelector('#render').addEventListener('click', show);
/* import your fonts if you have some in the src/fonts folder */
/* @import "theme/font.css"; */
/* theming of the book */
@import "theme/book.css";
/* paged js specific css */
@import "layout/pagedjs/pagedjs.css";
/* specific for this book.css -- image size, etc. */
/* @import "theme/specific.css"; */
@import "./modules/vars.css";
@import "./modules/fonts.css";
@import "./modules/header.css";
@import "./modules/body.css";
@import "./modules/list.css";
......
......@@ -144,10 +144,8 @@ header :last-child.ct {
/* when the last element of the header is a chapter subtitle */
header :last-child.cst {
padding-bottom: 1px;
color: red;
}
header :last-child.cepsn {
padding-bottom: 1px;
/* // color: red; */
}
\ No newline at end of file
:root {
/* fonts for the book */
--font-body: "Minion Pro";
--font-body: "Minion Pro";
--font-head: "Minion Pro";
--font-title: "Minion Pro";
--font-body: "Minion Pro", sans-serif;
--font-body: "Minion Pro", sans-serif;
--font-head: "Minion Pro", sans-serif;
--font-title: "Minion Pro", sans-serif;
--font-code: "Courier New";
--font-toc: "Minion Pro";
--font-smallCaps: "Minion Pro";
--font-toc: "Minion Pro", sans-serif;
--font-smallCaps: "Minion Pro", sans-serif;
--font-bodyLink: var(--font-head);
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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