Commit 02caaecd authored by julientaq's avatar julientaq
Browse files

initial commit

parents
{
"presets": [
"env"
]
}
\ No newline at end of file
node_modules
\ No newline at end of file
<!DOCTYPE html> <html lang=en> <head> <meta charset=utf-8> <title>webpack 4 quickstart</title> <link href="main.css" rel="stylesheet"></head> <body> <div id=app> <h1>lol </h1> </div> <script type="text/javascript" src="main.js"></script></body> </html>
\ No newline at end of file
/*
This is the layout for the ucp vivliostyle export
Define flow with specific updated layout on different pages
/* page size */
@page {
size: 6in 9in;
/* size: 576px 864px*/
}
/* Also an issue for printing—Chrome 52 ignores the (probably unknowable for it) printer pixels and uses 1px = 1/72in as the thinnest possible line. Tried fractional pixels, inches, ems—none would create a line thinner than 1/72in. Even in a print media query. Tempted to see if using an image works, but I suspect I'll just make my peace with the chubby rules – Roger Krueger Aug 30 '16 at 3:03 */
/* @import 'add-to-style.css'; */
.numbering {
-epubx-flow-into: lines;
-epubx-flow-options: exclusive static;
}
@-epubx-page-template {
/* @import './styles/layouts/page-elements.css'; */
/* Main partition used on all pages.
changed on each page.
*/
.page {
left: 72px; /* 0.75 in */
right: 72px; /* 0.75 in */
top: 82px; /* 9/16" to top of runninghead*/
bottom: 84px;
}
/* 1. Frontmatter1 (front-flow) */
section[data-type="subvention"],
section[data-type="half-title"],
section[data-type="seriePage"],
section[data-type="titlepage"],
section[data-type="copyright"],
section[data-type="dedication"],
section[data-type="epigraph"] {
-epubx-flow-into: front-flow;
}
@-epubx-flow front-flow {
-epubx-flow-consume: all;
}
/* front matter layout */
/* The partitions are set as section to change the dimension. */
.publisher {
-epubx-flow-into: publisher;
}
section[data-type="subvention"] {
page-break-before: right;
/* hack for change partition dimensions */
margin-top: 51px;
/* width in pc */
width: 20pc;
/* width in px */
width: 20pc;
margin: 0 auto;
margin-top: 51px;
}
section[data-type="half-title"] {
page-break-before: right;
/* hack for change partition dimensions */
margin-top: 45px;
margin-left: 63px;
margin-right: 63px;
}
section[data-type="titlepage"] {
page-break-before: right;
page-break-after: always;
/* hack to change partition dimensions */
margin-top: 35px;
}
section[data-type="dedication"] {
page-break-before: right;
page-break-after: always;
/* hack for change partition dimensions */
margin-top: 52px;
}
section[data-type="epigraph"] {
page-break-before: right;
page-break-after: always;
/* hack for change partition dimensions */
margin-top: 51px;
}
section[data-type="seriePage"] {
/*page-break-before: always;*/
/*page-break-after: always;*/
break-before: page;
break-after: page;
}
section[data-type="copyright"] {
page-break-before: always;
page-break-after: always;
/* hack to change partition position */
position:absolute;
bottom: 2px;
}
@-epubx-page-master front {
@-epubx-partition class(page) {
-epubx-flow-from: front-flow;
-epubx-required: true;
}
@-epubx-partition publisher {
/* partition just for title page */
-epubx-flow-from: publisher;
bottom: 85px;
left: 104px;
right: 104px;
}
/* @import "./styles/helpers/numbering.css"; */
/* @import "./styles/helpers/baseline.css"; */
/* tester : title page */
/* background: url(helpers/04-titlepage.png); */
/* background-size: cover; */
}
/* 2. Frontmatter2 (fmBody-flow) */
section[data-type="fmBody"] {
-epubx-flow-into: fmBody-flow;
}
@-epubx-flow fmBody-flow {
-epubx-flow-consume: all;
}
section[data-type="fmBody"] {
page-break-before: right;
page-break-after: always;
}
section[data-type="fmBody"] .fmh {
-epubx-flow-into: fmBody-start;
-epub-flow-option:
}
@-epubx-page-master fmBody-start {
@-epubx-partition {
-epubx-flow-from: fmBody-start;
-epubx-required: true;
-epubx-flow-options: exclusive;
left: 73px;
right: 73px;
top: 121px;
height: 206px;
}
@-epubx-partition {
-epubx-flow-from: fmBody-flow;
left: 73px;
right: 73px;
top: 371px;
bottom: 83px;
}
@-epubx-partition class(folio-partition) {
}
/* @import "./styles/helpers/baseline.css"; */
}
@-epubx-page-master fmBody-master {
@-epubx-partition class(page) {
-epubx-flow-from: fmBody-flow;
-epubx-required: true;
}
@-epubx-partition class(runtitle-left) {
-epubx-flow-from: header;
-epubx-enabled: -epubx-expr(page-number % 2==0);
}
@-epubx-partition class(runtitle-right) {
-epubx-flow-from: booktitle;
-epubx-enabled: -epubx-expr(page-number % 2==1);
}
/* @import "./styles/helpers/baseline.css"; */
}
/* 3. Body (main-flow)
-------------------------------------------------------------------------*/
.body {
-epubx-flow-into: main-flow;
}
@-epubx-flow main-flow {
-epubx-flow-consume: all;
}
.body {
page-break-before: right;
}
/* @import './styles/layouts/part.css'; */
/* @import './styles/layouts/chapter.css'; */
/* 4. Backmatter (back-flow) */
}
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=2)}([,function(e,t,r){},function(e,t,r){"use strict";var n,o=r(1);(n=o)&&n.__esModule}]);
\ No newline at end of file
This diff is collapsed.
{
"name": "bookStyler",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "webpack-dev-server --mode development --open",
"build": "webpack --mode production"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"babel-core": "^6.26.3",
"babel-loader": "^7.1.4",
"babel-preset-env": "^1.7.0",
"css-loader": "^0.28.11",
"file-loader": "^1.1.11",
"html-loader": "^0.5.5",
"html-webpack-plugin": "^3.2.0",
"mini-css-extract-plugin": "^0.4.0",
"node-sass": "^4.9.0",
"postcss-loader": "^2.1.5",
"pug-loader": "^2.4.0",
"sass-loader": "^7.0.3",
"style-loader": "^0.21.0",
"webpack": "^4.12.0",
"webpack-cli": "^3.0.3",
"webpack-dev-server": "^3.1.4"
}
}
// @font face import the font using only otf for now
@font-face {
font-family: "Minion Pro";
src: url(./MinionPro-Regular.otf);
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: "Minion Pro";
src: url(./MinionPro-It.otf);
font-weight: normal;
font-style: italic;
}
@font-face {
font-family: "Minion Pro";
src: url(./MinionPro-Bold.otf);
font-weight: bold;
font-style: normal;
}
@font-face {
font-family: "Minion Pro";
src: url(./MinionPro-BoldIt.otf);
font-weight: bold;
font-style: italic;
}
svg(width="35" height="35" viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg")
path(d="M6.14 8.22C7.24667 8.22 8.1 8.69333 8.7 9.64C9.31333 10.5733 9.62 11.9333 9.62 13.72C9.62 15.4267 9.28667 16.78 8.62 17.78C7.96667 18.7667 7.07333 19.26 5.94 19.26C5.40667 19.26 4.92 19.14 4.48 18.9C4.04 18.6467 3.66 18.2933 3.34 17.84L3.22 19H1.62V4.24L3.42 4.04V9.76C3.75333 9.28 4.14667 8.90667 4.6 8.64C5.06667 8.36 5.58 8.22 6.14 8.22ZM5.52 17.84C7 17.84 7.74 16.4667 7.74 13.72C7.74 12.24 7.56 11.1933 7.2 10.58C6.84 9.95333 6.32667 9.64 5.66 9.64C5.19333 9.64 4.78 9.78 4.42 10.06C4.07333 10.34 3.74 10.7333 3.42 11.24V16.46C3.67333 16.8733 3.98 17.2067 4.34 17.46C4.7 17.7133 5.09333 17.84 5.52 17.84Z" transform="translate(12 5)" fill="#4F4F4F")
svg(width="35" height="35" viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg")
path(fill-rule="evenodd" clip-rule="evenodd" d="M1 1H20V19H1V1ZM0 0H1H20H21V1V19V20H20H1H0V19V1V0ZM4.15002 3C3.59772 3 3.15002 3.44775 3.15002 4C3.15002 4.55225 3.59772 5 4.15002 5H7.40002C7.95233 5 8.40002 4.55225 8.40002 4C8.40002 3.44775 7.95233 3 7.40002 3H4.15002ZM6.25 7C5.69769 7 5.25 7.44775 5.25 8C5.25 8.55225 5.69769 9 6.25 9H13.7C14.2523 9 14.7 8.55225 14.7 8C14.7 7.44775 14.2523 7 13.7 7H6.25ZM5.25 12C5.25 11.4478 5.69769 11 6.25 11H14.75C15.3023 11 15.75 11.4478 15.75 12C15.75 12.5522 15.3023 13 14.75 13H6.25C5.69769 13 5.25 12.5522 5.25 12ZM4.15002 15C3.59772 15 3.15002 15.4478 3.15002 16C3.15002 16.5522 3.59772 17 4.15002 17H7.40002C7.95233 17 8.40002 16.5522 8.40002 16C8.40002 15.4478 7.95233 15 7.40002 15H4.15002Z" transform="translate(7 7)" fill="#4F4F4F")
\ No newline at end of file
svg(width="35" height="35" viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg")
path(d="M8.14 9.45L8.624 10.418L2.288 13.674L8.624 16.996L8.14 17.964L1.21 14.246V13.102L8.14 9.45ZM14.5913 3.356L15.6473 3.598L11.0273 23.178L9.97133 22.936L14.5913 3.356ZM17.4683 9.45L24.3763 13.102V14.246L17.4683 17.964L16.9623 16.996L23.3203 13.674L16.9623 10.418L17.4683 9.45Z" transform="translate(5 3)" fill="#4F4F4F")
svg(xmlns='http://www.w3.org/2000/svg' width='35' height='35' fill='none' viewBox="0 0 35 35")
path(id="disk" fill='#2F80ED' fill-rule='evenodd' d='M8.5 7.5H8v17h17V11.927l-.14-.146-4-4.129-.148-.152H8.5zm.5 16v-15h11.288L24 12.332V23.5h-3.07v-5.13H11.07v5.13H9zm2.931 0h8.138v-4.269h-8.138V23.5zm-.862-13.4v3.331H18.216V10.1h-.861v2.47H11.93V10.1h-.862z' clip-rule='evenodd')
Supports Markdown
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