biblatex-zotero/sources/polycopié/polycopié.css

156 lines
3.7 KiB
CSS
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

@media print {
body {
font-family: TheSans, "Open Sans", Arial, Helvetica, sans-serif;
/* Définit les deux variable de compteur nécessaires */
counter-reset: figureNumber toc;
}
/* Définit que string(date) contient la date indiquée dans le frontmatter
* de la source markdown */
.date {
string-set: date content(text)
}
@page {
size: A4;
margin-top: 25mm;
margin-bottom: 25mm;
bleed: 6mm;
@bottom-center {
content: counter(page)
}
}
@page:left {
margin-left: 25mm;
margin-right: 15mm;
}
@page:right {
margin-left: 15mm;
margin-right: 25mm;
}
@page:first {
@top-right {
content: "";
background-image: url("../medias/bibliotheque-logo.svg");
background-position: right;
background-repeat: no-repeat;
background-size: 25%;
}
@bottom-center {
content: none;
}
@bottom-right {
content: string(date);
}
}
/* Attention, il faut adapter au nombre effectif de pages! *
* Cette règle n'affiche pas de numré de page à la dernière page */
@page:nth(11) {
@bottom-center {
content: none;
}
}
h2 {
color: #d80669;
text-decoration: underline;
}
/* Ajouter ou supprimer les ID de titre pour un saut de page */
#principes-généraux,
#bibliographie,
.footnotes {
break-before: page;
}
#title-block-header {
text-align: center;
margin-bottom: 6em;
}
.authors {
display: flex;
justify-content: space-evenly;
}
.author {
margin: 0;
}
pre {
font-family:'Courier New', Courier, monospace;
font-size: 90%;
background-color: #f2f1f1;
border: 2px solid #d80669;
border-radius: .5em;
margin: 1em;
padding: .5em 1em;
break-inside: avoid;
}
code {
font-family:'Courier New', Courier, monospace;
font-size: 90%;
background-color: #f2f1f1;
padding: 2px;
border-radius: 5px;
}
.footnotes::before {
content: "Notes";
color: #d80669;
font-size: 120%;
font-weight: bold;
}
.footnote-ref {
text-decoration: none;
}
figure {
display: flex;
flex-direction: column;
border: 2px solid #d80669;
border-radius: .5em;
padding: .5em;
break-inside: avoid;
}
figure img {
max-width: 85%;
margin: 0 auto;
}
figcaption {
text-align: center;
font-size: 90%;
counter-increment: figureNumber;
padding-top: .5em;
}
figcaption::before {
content: "Figure " counter(figureNumber) ": ";
}
blockquote {
font-style: italic;
}
blockquote em {
font-style: normal;
}
div.csl-entry {
padding: .5em;
}
.logo {
display: inline-flex;
width: 60%;
margin: 0 auto;
}
.logo img {
max-width: 50%;
padding: .5em;
}
/* Les 4 règles suivantes mettent en forme la table des matières:*
* Suppression des liste à puce, numérotation des chapitres et affichage du
* numéro de page. */
#TOC ul {
list-style-type: none;
padding-left: 0;
}
#TOC li {
counter-increment: toc;
}
#TOC li::before {
content: counter(toc) ". ";
}
#TOC a::after {
content: target-counter(attr(href url), page);
position: absolute;
right: 0;
}
}