Skip to content
Snippets Groups Projects
Commit e7f7c484 authored by Grigor Malo's avatar Grigor Malo
Browse files

Merge branch 'june-28' into 'main'

Part/chapter numbering fixed

See merge request ketty-templates/significa!6
parents 6fbe0711 3b20f65f
No related branches found
No related tags found
1 merge request!6Part/chapter numbering fixed
......@@ -438,8 +438,6 @@ h1, h2, h3 {
.part header, .chapter header {
margin: 0 calc(var(--page-margin-left) * -1);
padding: var(--page-margin-left) var(--page-margin-left);
break-after: page;
break-before: page;
border-top: .5px solid var(--color-une);
border-bottom: .5px solid var(--color-une);
background: var(--color-paper);
......@@ -778,55 +776,33 @@ h1 + p, h2 + p, h3 + p, h4 + p, h5 + p, h6 + p figure + p {
}
}
.chapter header {
page: chapitre-ouverture;
.chapter {
page: chapitre;
break-before: right;
}
.chapter header {
break-after: page;
}
@page chapitre-ouverture {
@page chapitre:first {
background-color: var(--color-paper);
background-size: 22px 22px;
background-image: repeating-linear-gradient(45deg, var(--color-gris) 0, var(--color-gris) 1px, var(--color-paper) 0, var(--color-paper) 50%);
@bottom-right-corner {
content: none;
}
@bottom-left-corner {
content: none;
}
@bottom-center {
content: none;
border: none;
}
}
.chapter {
page: chapitre;
}
@page chapitre:first {
@bottom-right-corner {
content: none;
}
@bottom-left-corner {
content: none;
}
@bottom-center {
content: none;
border: none;
}
background-image: repeating-linear-gradient(
45deg,
var(--color-gris) 0,
var(--color-gris) 1px,
var(--color-paper) 0,
var(--color-paper) 50%
);
@bottom-right-corner {content: none;}
@bottom-left-corner {content: none;}
@bottom-center {content: none; border: none;}
}
section.part header {
section.part {
page: part ;
break-before: right;
page: part
}
@page part {
@page part:first {
background-color: var(--color-paper);
background-size: 22px 22px;
background-image: repeating-linear-gradient(
......@@ -836,14 +812,7 @@ section.part header {
var(--color-paper) 0,
var(--color-paper) 50%
);
@bottom-right-corner {
content: none;
}
@bottom-left-corner {
content: none;
}
@bottom-center {
content: none;
border: none;
}
@bottom-right-corner {content: none;}
@bottom-left-corner {content: none;}
@bottom-center {content: none; border: none;}
}
\ No newline at end of file
......@@ -432,8 +432,6 @@ h1, h2, h3 {
.chapter header, .part header {
margin: 0 calc(var(--page-margin-left) * -1);
padding: var(--page-margin-left) var(--page-margin-left);
break-after: page;
break-before: page;
border-top: .5px solid var(--color-une);
border-bottom: .5px solid var(--color-une);
background: var(--color-paper);
......@@ -775,55 +773,34 @@ h1 + p, h2 + p, h3 + p, h4 + p, h5 + p, h6 + p figure + p {
}
}
.chapter header {
page: chapitre-ouverture;
break-before: right;
break-after: page;
}
@page chapitre-ouverture {
background-color: var(--color-paper);
background-size: 22px 22px;
background-image: repeating-linear-gradient(45deg, var(--color-gris) 0, var(--color-gris) 1px, var(--color-paper) 0, var(--color-paper) 50%);
@bottom-right-corner {
content: none;
}
@bottom-left-corner {
content: none;
}
@bottom-center {
content: none;
border: none;
}
}
.chapter {
page: chapitre;
break-before: right;
}
.chapter header {
break-after: page;
}
@page chapitre:first {
@bottom-right-corner {
content: none;
}
@bottom-left-corner {
content: none;
}
@bottom-center {
content: none;
border: none;
}
background-color: var(--color-paper);
background-size: 22px 22px;
background-image: repeating-linear-gradient(
45deg,
var(--color-gris) 0,
var(--color-gris) 1px,
var(--color-paper) 0,
var(--color-paper) 50%
);
@bottom-right-corner {content: none;}
@bottom-left-corner {content: none;}
@bottom-center {content: none; border: none;}
}
section.part header {
section.part {
page: part ;
break-before: right;
page: part
}
@page part {
@page part:first {
background-color: var(--color-paper);
background-size: 22px 22px;
background-image: repeating-linear-gradient(
......@@ -833,14 +810,7 @@ section.part header {
var(--color-paper) 0,
var(--color-paper) 50%
);
@bottom-right-corner {
content: none;
}
@bottom-left-corner {
content: none;
}
@bottom-center {
content: none;
border: none;
}
@bottom-right-corner {content: none;}
@bottom-left-corner {content: none;}
@bottom-center {content: none; border: none;}
}
\ No newline at end of file
......@@ -436,8 +436,6 @@ h1, h2, h3 {
.part header, .chapter header {
margin: 0 calc(var(--page-margin-left) * -1);
padding: var(--page-margin-left) var(--page-margin-left);
break-after: page;
break-before: page;
border-top: .5px solid var(--color-une);
border-bottom: .5px solid var(--color-une);
background: var(--color-paper);
......@@ -776,55 +774,33 @@ h1 + p, h2 + p, h3 + p, h4 + p, h5 + p, h6 + p figure + p {
}
}
.chapter header {
page: chapitre-ouverture;
.chapter {
page: chapitre;
break-before: right;
}
.chapter header {
break-after: page;
}
@page chapitre-ouverture {
@page chapitre:first {
background-color: var(--color-paper);
background-size: 22px 22px;
background-image: repeating-linear-gradient(45deg, var(--color-gris) 0, var(--color-gris) 1px, var(--color-paper) 0, var(--color-paper) 50%);
@bottom-right-corner {
content: none;
}
@bottom-left-corner {
content: none;
}
@bottom-center {
content: none;
border: none;
}
}
.chapter {
page: chapitre;
}
@page chapitre:first {
@bottom-right-corner {
content: none;
}
@bottom-left-corner {
content: none;
}
@bottom-center {
content: none;
border: none;
}
background-image: repeating-linear-gradient(
45deg,
var(--color-gris) 0,
var(--color-gris) 1px,
var(--color-paper) 0,
var(--color-paper) 50%
);
@bottom-right-corner {content: none;}
@bottom-left-corner {content: none;}
@bottom-center {content: none; border: none;}
}
section.part header {
section.part {
page: part ;
break-before: right;
page: part
}
@page part {
@page part:first {
background-color: var(--color-paper);
background-size: 22px 22px;
background-image: repeating-linear-gradient(
......@@ -834,14 +810,7 @@ section.part header {
var(--color-paper) 0,
var(--color-paper) 50%
);
@bottom-right-corner {
content: none;
}
@bottom-left-corner {
content: none;
}
@bottom-center {
content: none;
border: none;
}
@bottom-right-corner {content: none;}
@bottom-left-corner {content: none;}
@bottom-center {content: none; border: none;}
}
\ No newline at end of file
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