nouveaux tests
This commit is contained in:
parent
87eb528e7b
commit
00edad1729
117 changed files with 5757 additions and 141 deletions
|
|
@ -125,6 +125,23 @@ figure[data-crop="false"] img {
|
|||
object-fit: contain;
|
||||
}
|
||||
|
||||
blockquote{
|
||||
/*background: red;*/
|
||||
margin-left: 2cm;
|
||||
margin-top: 0;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
blockquote:before{
|
||||
content: ":::::::::";
|
||||
display: block;
|
||||
position: absolute;
|
||||
left: -2cm;
|
||||
/*border-top: 1px solid #000;*/
|
||||
width: 2cm;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
/* Classes pour le responsive */
|
||||
.show-for-small-only{ display: block;}
|
||||
.hide-for-small-only{ display: none;}
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
@bottom-left{
|
||||
font-family: var(--fontFamily);
|
||||
content: counter(page);
|
||||
font-size: 11pt;
|
||||
font-size: 20pt;
|
||||
color: var(--vert);
|
||||
margin-top:-5mm;
|
||||
margin-left: 0mm;
|
||||
|
|
@ -60,7 +60,7 @@
|
|||
@bottom-right{
|
||||
font-family: var(--fontFamily);
|
||||
content: counter(page);
|
||||
font-size: 11pt;
|
||||
font-size: 20pt;
|
||||
color: var(--vert);
|
||||
margin-top:-5mm;
|
||||
margin-right: 0mm;
|
||||
|
|
@ -159,13 +159,13 @@
|
|||
|
||||
/* ---- PAGE DE TITRE ------ */
|
||||
/* --- test 1 font 1 taille typo */
|
||||
.chapter-title{
|
||||
.test .chapter-title{
|
||||
page-break-before: always;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.chapter-title h2,
|
||||
.chapter-title h3{
|
||||
.test .chapter-title h2,
|
||||
.test .chapter-title h3{
|
||||
margin: 0;
|
||||
font-size: var(--textSize);
|
||||
/*text-align: center;*/
|
||||
|
|
@ -173,50 +173,51 @@
|
|||
text-align: left;
|
||||
}
|
||||
|
||||
.chapter-title h2:before{
|
||||
.test .chapter-title h2:before{
|
||||
content: "# # # # # # # # # # # # # # # # # # # # # # # # # # # # #";
|
||||
display: block;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.chapter-title h2:after{
|
||||
.test .chapter-title h2:after{
|
||||
content: "+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ";
|
||||
display: block;
|
||||
margin-top: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.chapter-title h3{
|
||||
.test .chapter-title h3{
|
||||
font-size: var(--fontSize);
|
||||
text-transform: none;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.chapter-title h3:after{
|
||||
.test .chapter-title h3:after{
|
||||
content: "⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ⋱ ";
|
||||
display: block;
|
||||
margin-top: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.chapter-title .type{
|
||||
.test .chapter-title .type{
|
||||
position: absolute;
|
||||
left: -2.2cm;
|
||||
top: -1mm;
|
||||
top: 0mm;
|
||||
font-family: var(--fontTitle);
|
||||
font-size: 8pt;
|
||||
/*color: var(--bleu);*/
|
||||
}
|
||||
|
||||
.chapter-title .type:before{
|
||||
.test .chapter-title .type:before{
|
||||
content: "[";
|
||||
}
|
||||
|
||||
.chapter-title .type:after{
|
||||
.test .chapter-title .type:after{
|
||||
content: "]";
|
||||
}
|
||||
|
||||
/* -- test mix ocr / jetbrains --- */
|
||||
.test .chapter-title{
|
||||
.chapter-title{
|
||||
page-break-before: always;
|
||||
margin-bottom: 2cm;
|
||||
position: relative;
|
||||
|
|
@ -248,40 +249,69 @@
|
|||
@bottom-right-corner {content: none;}
|
||||
}*/
|
||||
|
||||
.test .chapter-title h2,
|
||||
.test .chapter-title h3{
|
||||
.chapter-title h2,
|
||||
.chapter-title h3{
|
||||
/* display: inline-block;
|
||||
position: relative;*/
|
||||
margin: 0;
|
||||
font-size: 22pt;
|
||||
font-size: 24pt;
|
||||
/*text-align: center;*/
|
||||
font-family: var(--fontTitle);
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.test .chapter-title h3{
|
||||
font-size: var(--fontSize);
|
||||
.chapter-title h3{
|
||||
font-size: 10.5pt;
|
||||
margin-top: 2cm;
|
||||
text-transform: none;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.test .chapter-title .type{
|
||||
.chapter-title .type{
|
||||
position: absolute;
|
||||
left: -2.2cm;
|
||||
top: 1.5mm;
|
||||
font-family: var(--fontTitle);
|
||||
color: var(--bleu);
|
||||
/*color: var(--bleu);*/
|
||||
font-size: 8pt;
|
||||
|
||||
}
|
||||
|
||||
.test .chapter-title .type:before{
|
||||
.chapter-title .type:before{
|
||||
content: "[";
|
||||
}
|
||||
|
||||
.test .chapter-title .type:after{
|
||||
.chapter-title .type:after{
|
||||
content: "]";
|
||||
}
|
||||
|
||||
.interview-block strong{
|
||||
font-weight: normal;
|
||||
margin-right: 0mm;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.interview-block strong:before{
|
||||
content: "[";
|
||||
}
|
||||
.interview-block strong:after{
|
||||
content: "]";
|
||||
}
|
||||
|
||||
.interview-block p{
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
text-align-last: left;
|
||||
}
|
||||
|
||||
.interview-block p:nth-of-type(odd) {
|
||||
/*color: var(--rouge);*/
|
||||
}
|
||||
|
||||
.interview-block p:nth-of-type(2n) {
|
||||
margin-left: 2cm;
|
||||
}
|
||||
|
||||
/* ascii-fill : pas de flex:1, hauteur fixée par JS */
|
||||
.ascii-fill {
|
||||
white-space: pre;
|
||||
|
|
@ -312,18 +342,32 @@
|
|||
}
|
||||
|
||||
/* ------- TITLES ------- */
|
||||
|
||||
/* test titres couleurs */
|
||||
.chapter-content h3{
|
||||
/*text-align: center;*/
|
||||
/*background: var(--vert);*/
|
||||
/*display: inline-block;*/
|
||||
font-size: 12pt;
|
||||
color: var(--bleu);
|
||||
font-family: var(--fontTitle);
|
||||
margin-left: 1cm;
|
||||
letter-spacing: 0.1px;
|
||||
}
|
||||
|
||||
/* test titres ascii */
|
||||
.test .chapter-content h3{
|
||||
/*width: calc(var(--pagedjs-width) - 12mm);*/
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.chapter-content h3:before{
|
||||
.test .chapter-content h3:before{
|
||||
content: "+------------------------------------------------+";
|
||||
display: block;
|
||||
margin-bottom: 2mm;
|
||||
}
|
||||
|
||||
.chapter-content h3:after{
|
||||
.test .chapter-content h3:after{
|
||||
content: "+------------------------------------------------+";
|
||||
display: block;
|
||||
margin-top: 1mm;
|
||||
|
|
@ -335,11 +379,14 @@
|
|||
}
|
||||
|
||||
.chapter-content h4{
|
||||
text-align: center;
|
||||
/*text-align: center;*/
|
||||
font-family: var(--fontTitle);
|
||||
color: var(--rouge);
|
||||
font-size: 12pt;
|
||||
}
|
||||
|
||||
|
||||
.chapter-content h4:before{
|
||||
/* .chapter-content h4:before{
|
||||
content: "> > > > > > < < < < < < \a > > > > ";
|
||||
white-space: pre;
|
||||
}
|
||||
|
|
@ -347,8 +394,142 @@
|
|||
.chapter-content h4:after{
|
||||
content: " < < < < \a > > > > > > < < < < < <";
|
||||
white-space: pre;
|
||||
}*/
|
||||
|
||||
/* ----- PORTFOLIO ----- */
|
||||
.portfolio .block-type-gallery{
|
||||
page-break-before: always;
|
||||
}
|
||||
|
||||
.portfolio .block-type-gallery{
|
||||
page: portfolio;
|
||||
}
|
||||
|
||||
@page portfolio{
|
||||
margin: 12mm 14mm 18mm;
|
||||
@bottom-left{
|
||||
content: none;
|
||||
}
|
||||
@bottom-right{
|
||||
content: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* portfolio, grande image pleine page */
|
||||
.portfolio .block-type-gallery li.landscape{
|
||||
page-break-after: always;
|
||||
width: var(--pagedjs-height);
|
||||
height: var(--pagedjs-width);
|
||||
transform: rotate(90deg);
|
||||
transform-origin: center center;
|
||||
position: absolute;
|
||||
top: 2.5cm;
|
||||
left: -38%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.portfolio .block-type-gallery li.landscape img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.portfolio[data-id="jose-fa-ntjam-portfolio"] .block-type-gallery li.landscape img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
object-fit: none;
|
||||
}
|
||||
|
||||
/*.portfolio .block-type-gallery li{
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.portfolio .block-type-gallery .small{
|
||||
width: 40%;
|
||||
}
|
||||
|
||||
.portfolio .block-type-gallery .medium{
|
||||
width: 70%;
|
||||
}
|
||||
|
||||
.portfolio .block-type-gallery .big{
|
||||
width: 100%;
|
||||
}*/
|
||||
|
||||
/* portfolio removed borders */
|
||||
.pagedjs_portfolio_page .pagedjs_margin-top-left-corner-holder:before,
|
||||
.pagedjs_portfolio_page .pagedjs_margin-left:before,
|
||||
.pagedjs_portfolio_page .pagedjs_margin-right:after,
|
||||
.pagedjs_portfolio_page .pagedjs_margin-bottom:after{
|
||||
content: none;
|
||||
}
|
||||
|
||||
/* portfolio test version image sens de lecture, texte en bas */
|
||||
.portfolio[data-id="jose-fa-ntjam-portfolio-copier"],
|
||||
.portfolio[data-id="everything-is-real-copier"]{
|
||||
page: portfoliosans;
|
||||
}
|
||||
|
||||
@page portfoliosans{
|
||||
margin: 0;
|
||||
@bottom-left{
|
||||
content: none;
|
||||
}
|
||||
@bottom-right{
|
||||
content: none;
|
||||
}
|
||||
}
|
||||
|
||||
.pagedjs_portfoliosans_page .pagedjs_margin-top-left-corner-holder:before,
|
||||
.pagedjs_portfoliosans_page .pagedjs_margin-left:before,
|
||||
.pagedjs_portfoliosans_page .pagedjs_margin-right:after,
|
||||
.pagedjs_portfoliosans_page .pagedjs_margin-bottom:after{
|
||||
content: none;
|
||||
}
|
||||
|
||||
.portfolio .chapter-title .type{
|
||||
right: 0;
|
||||
left: auto;
|
||||
}
|
||||
|
||||
.portfolio .web-image{
|
||||
display: block;
|
||||
}
|
||||
|
||||
.portfolio .print-image{
|
||||
display: none;
|
||||
}
|
||||
|
||||
.pagedjs_portfoliosans_page {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.pagedjs_portfoliosans_page .chapter-title{
|
||||
display: none;
|
||||
}
|
||||
|
||||
.portfolio .block-type-image + .block-type-text{
|
||||
page-break-after: always;
|
||||
}
|
||||
|
||||
.pagedjs_portfoliosans_page .block-type-text{
|
||||
position: absolute;
|
||||
width: calc(100% - (36mm + 8mm));
|
||||
bottom: 0mm;
|
||||
}
|
||||
|
||||
.pagedjs_portfoliosans_page .block-type-text p{
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.pagedjs_portfoliosans_page.pagedjs_left_page .block-type-text{
|
||||
right: 36mm;
|
||||
}
|
||||
|
||||
.pagedjs_portfoliosans_page.pagedjs_right_page .block-type-text{
|
||||
left: 36mm;
|
||||
}
|
||||
|
||||
/* -------- IMAGES ------- */
|
||||
.float-image{
|
||||
position: relative !important;
|
||||
|
|
@ -378,23 +559,24 @@
|
|||
.float-image figcaption{
|
||||
position: relative;
|
||||
color: var(--bleu);
|
||||
font-size: 8.5pt;
|
||||
font-family: "Bilzig Trial";
|
||||
font-size: 7pt;
|
||||
font-family: var(--fontNotes);
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.float-image figcaption p{
|
||||
color: var(--bleu);
|
||||
font-size: 8.5pt;
|
||||
font-family: "Bilzig Trial";
|
||||
font-size: 7pt;
|
||||
font-family: var(--fontNotes);
|
||||
text-align: left;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
/* ------- NOTES ------- */
|
||||
|
||||
.margin-note{
|
||||
font-size: 8pt;
|
||||
line-height: 1.41;
|
||||
font-size: 7pt;
|
||||
line-height: 1.3;
|
||||
font-family: var(--fontNotes);
|
||||
/*font-weight: 400;*/
|
||||
/*font-family: "Bilzig Trial";*/
|
||||
|
|
@ -431,6 +613,10 @@
|
|||
padding: 1mm 3mm 0mm 0mm;
|
||||
}
|
||||
|
||||
.note-call{
|
||||
font-size: 0.7em;
|
||||
}
|
||||
|
||||
.note-call_margin-note::before{
|
||||
content: "{";
|
||||
margin-right: 0.5mm;
|
||||
|
|
@ -468,10 +654,10 @@
|
|||
vertical-align: top;
|
||||
}
|
||||
|
||||
.print-image figcaption{
|
||||
/* .print-image figcaption{
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
}
|
||||
}*/
|
||||
|
||||
.print-image .print-red{
|
||||
position: relative;
|
||||
|
|
|
|||
|
|
@ -4,8 +4,9 @@
|
|||
--fontFamily: "JetBrains Mono NL";
|
||||
/*--fontFamily: "Hershey-Noailles-Futura";*/
|
||||
--fontNotes: "Hershey-Noailles-Times";
|
||||
--fontTitle: "OCR-X Trial";
|
||||
--textSize: 9.5pt;
|
||||
/*--fontTitle: "OCR-X Trial";*/
|
||||
--fontTitle: "Hershey-Noailles-Times";
|
||||
--textSize: 8.5pt;
|
||||
--ratio : auto;
|
||||
|
||||
--rouge: #ff665e;
|
||||
|
|
|
|||
|
|
@ -183,4 +183,25 @@ class asciiTextFill extends Paged.Handler {
|
|||
}
|
||||
}
|
||||
|
||||
// Paged.registerHandlers(asciiTextFill);
|
||||
// Paged.registerHandlers(asciiTextFill);
|
||||
|
||||
class removeFullPageClass extends Paged.Handler {
|
||||
constructor(chunker, polisher, caller) {
|
||||
super(chunker, polisher, caller);
|
||||
}
|
||||
|
||||
beforeParsed(content) {
|
||||
const portfolios = content.querySelectorAll(".portfolio");
|
||||
portfolios.forEach(function(portfolio){
|
||||
const images = portfolio.querySelectorAll(".full-page");
|
||||
images.forEach(function(image){
|
||||
image.classList.remove('full-page');
|
||||
});
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Paged.registerHandlers(removeFullPageClass);
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue