Commit dcec951f authored by julientaq's avatar julientaq

update for the ordered list and headers

parent bae7cc88
......@@ -26,8 +26,8 @@ module.exports = function(grunt) {
postcss: {
options: {
map: {
// inline: false,
// annotation: 'dist/css/maps/'
inline: false,
annotation: 'dist/css/maps/'
},
processors: [
// require('postcss-font-pack')({packs: require('./font-packs.json')}),
......@@ -61,6 +61,12 @@ module.exports = function(grunt) {
src: '**',
dest: 'dist/js/',
},
html: {
expand: true,
cwd: 'src/content',
src: '*.html',
dest: 'dist/'
},
fonts: {
expand: true,
cwd: 'src/fonts',
......@@ -106,6 +112,13 @@ module.exports = function(grunt) {
livereload: true
},
},
js: {
files: 'src/js/*',
tasks: ['copy'],
options: {
livereload: true
},
},
pug: {
files: 'src/content/**/*',
tasks: ['pug'],
......
This diff is collapsed.
......@@ -25,6 +25,7 @@
@import './modules/code.css';
@import './modules/endnotes.css';
@import './modules/list.css';
@import './modules/numbering.css';
@import './modules/page-copyright.css';
@import './modules/page-dedication.css';
@import './modules/page-epigraph.css';
......
......@@ -66,25 +66,6 @@ var {
}
}
blockquote {
display: block;
margin-top: 13pt;
margin-bottom: 12.8pt;
margin-left: 1pc;
p {
font-style: normal;
font-size: 12px;
line-height: 12.80pt;
text-indent: 0;
text-align: justify;
margin-top: 0;
}
p+p {
margin-top: 0
}
p:last-of-type {
}
}
sup {
font-size: var(--font-size) * 0.5;
......@@ -123,12 +104,34 @@ hr {
}
}
.small-caps {
font-feature-settings: "smcp", "c2sc";
font-variant-caps: all-small-caps;
:not(header) {
blockquote {
margin-top: var(--font-lineHeight);
margin-bottom: 0;
font-size: calc(var(--font-size) * 0.8);
line-height: var(--font-lineHeight);
font-style: italic;
margin-right: 1pc;
margin-left: 1pc;
& + cite + blockquote {
margin-top: calc(var(--font-lineHeight));
}
cite {
font-size: calc(var(--font-size) * 0.8);
line-height: var(--font-lineHeight);
}
}
}
.old-style-figures {
font-variant-numeric: oldstyle-nums;
font-feature-settings: "onum";
}
\ No newline at end of file
header blockquote, header + blockquote {
& cite::before {
content: "— ";
font-variant: all-small-caps;
text-transform: lowercase;
margin-left: 1pc;
margin-right: 1pc;
font-style: normal;
}
}
\ No newline at end of file
......@@ -3,14 +3,10 @@
section {
/* h1 are very different from one section to another,
they are declared separately in the dedicated sections,
without common style */
/* // as known as h1 in the word doc */
h1 {
/* // when font stuff will be used: font-variant-caps: all-small-caps; */
font-family: var(--font-body);
font-size: 12px;
margin: 0 auto;
......@@ -37,10 +33,8 @@ section {
header + h1 {
margin-top: 0;
}
/* // as known as h2 in the word document */
h2 {
font-size: 12px;
line-height: var(--font-lineHeight);
......@@ -60,12 +54,10 @@ section {
& + p {
text-indent: 0;
/* // margin-top: 13pt; */
}
}
/* // as known as h3 in the word document */
h3 {
font-size: 13px;
line-height: var(--font-lineHeight);
......
......@@ -54,35 +54,38 @@ ul {
/* ordered list */
ol {
ol, ul {
counter-reset: list;
list-style-type: none;
margin-top: calc(var(--font-lineHeight) * 0.5);
margin-bottom: calc(var(--font-lineHeight) * 0.5);
}
ol li {
margin-left: 6ch;
ol
{
margin-left: .8ch;
li {
position: relative;
counter-increment: list;
&::before {
position: absolute;
content: counter(list) ".";
/* margin-right: 1.5ch; */
width: 2ch;
width: 2.4ch;
text-align: right;
padding-right: 1em;
background: white;
top: 0;
left: -4ch;
}
&:last-of-type {
margin-bottom: calc(var(--font-lineHeight) * 0.5);
}
}
ol li:first-of-type {
&:first-of-type {
margin-top: calc(var(--font-lineHeight) * 0.5);
}
}
}
/* question and answers */
......@@ -106,3 +109,12 @@ ol li {
li:first-of-type { break-after: avoid;}
[listname="insert-unordered-list"] {
margin-left: 0;
margin-left: 1pc;
li {
margin-left: 0;
}
}
\ No newline at end of file
body {
counter-reset: part chapter;
}
.body-part {
counter-increment: part;
}
.body-chapter {
counter-increment: chapter;
}
.titlepage {
text-indent: 0;
string-set: booktitle content(text);
header {
width: 20pc;
margin: 0 auto;
......@@ -13,6 +12,12 @@
font-weight: 400;
margin-top: 30px;
margin-bottom: 0;
text-decoration: none;
font-variant: none;
text-transform: initial;
letter-spacing: 0;
string-set: booktitle content(text);
/* // background: var(--tester); */
}
/* book subtitle */
......
......@@ -3,8 +3,8 @@
/* // minimum height to get the starter */
min-height: calc(var(--font-lineHeight) * 16);
/* // minimum padding bottom, set to start the beginning of the chapter */
padding-bottom: calc(var(--font-lineHeight) * 4);
/* box-shadow: 0 0 0 1px red; */
/* padding-bottom: calc(var(--font-lineHeight) * 4); */
box-shadow: 0 0 0 1px red;
padding-top: 42px;
}
......@@ -26,30 +26,30 @@
position: relative;
}
.cn::after {
border-bottom: 1px solid black;
width: 100%;
height: 0;
position: absolute;
display: block;
content: ' ';
bottom: 7px;
}
.cn+.ct {
margin-top: 7px;
}
.body-chapter .ct {
padding: 0 45px;
font-size: 20px;
line-height: calc(var(--font-lineHeight) * 2);
font-size: 24px;
line-height: calc(var(--font-lineHeight) * 1.8);
/* font-size: var(--); */
text-transform: none;
font-weight: 400;
text-align: center;
letter-spacing: 0;
/* text-align: center; */
font-variant: none;
text-transform: capitalize;
text-align: center;
&::before {
content: counter(chapter);
display: block;
color: red;
font-variant: oldstyle-nums;
margin: 0 auto;
margin-top: -19px;
margin-bottom: calc(var(--font-lineHeight) * 1.3);
font-size: 16px;
width: 2pc;
border-bottom: 1px solid black;
}
}
.ct+.cst {
......@@ -80,12 +80,6 @@
margin-top: 35px;
}
blockquote {
margin: 0 auto;
&+blockquote {
margin-top: calc(var(--font-lineHeight) * 2);
}
}
.cep, .sep {
width: 352px;
......@@ -114,8 +108,7 @@ blockquote {
font-style: normal;
}
}
.cepsn, .sepsn , .cepo + cite , .sepo + cite ,{
.cepsn, .sepsn , .cepo + cite , .sepo + cite {
font-size: 11px;
line-height: var(--font-lineHeight);
font-style: normal;
......
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