PublishingCSS:HD Bulletin 1

From H&D Publishing Wiki
Revision as of 12:48, 6 June 2023 by Heerko (talk | contribs)
/* 

- Pagedjs
- - Variables
- - Pagebreaks
- Fonts
- Layouts
- General styling

*/


/*
*** PAGEDJS ***

Pagedjs/paged media specific styles 
*/

@page {
  size: 105mm 297mm;
  margin: 15mm 10mm 25mm 10mm;
  bleed: 0;
  background-color: white;
}

@page:left {
  @top-center { 
    content: string(pubTitle);
  }
}

@page:right {
  @top-center {
    content: string(articleTitle);
  }
}

@page {
  @bottom-center {
    content: counter(page);
  }
}

/* Setting variables */

h1 {
  string-set: pubTitle content(text);
}

h2 {
  counter-increment: countChapter;
  string-set: articleTitle content(text);
  counter-set: footnote-marker 0 footnote 0;
  string-set: author "";
}

/* Move the footnotes to the footer */
span.footnote {
  float: footnote;
}

/* Page breaks */

h1 {
	page-break-before: left;
}

h2 {
	page-break-before: right;
}

.empty-left-page {
	page-break-before: left;
}

.full-spread-image-section {
	page-break-before: left;
}

/*.full-page-image {*/
/*	page-break-before: always;*/
/*}*/

/*.full-page-image.full-page-image-left {*/
/*	page-break-before: left;*/
/*}*/

/*.full-page-image.full-page-image-right {*/
/*	page-break-after: always;*/
/*}*/


/*
*** FONTS ***
*/

.font-authentic {
	font-family: Authentic, sans-serif;
	font-weight: 400;
}

.font-le-murmure {
	font-family: le-murmure, sans-serif;
}

.font-notcouriersans {
	font-family: Authentic, sans-serif;
	font-weight: 400;
}

.font-solide-mirage-etroit {
	font-family: SolideMirageEtroit, sans-serif
}

.font-solide-mirage-mono {
	font-family: SolideMirageMono, sans-serif
}

.font-louise-regular {
	font-family: Louise-Regular, sans-serif
}

.font-sligoil-micro {
	font-family: Sligoil-Micro, sans-serif
}

.font-notoserif {
	font-family: NotoSerifItalic-Micro, serif
}

/*
*** LAYOUTS ***
*/



/* General styling */