rdv-info-markdown/style.css

154 lines
3.4 KiB
CSS
Raw Normal View History

@media print {
body {
font-family: TheSans, "Open Sans", Arial, Helvetica, sans-serif;
counter-reset: figureNumber;
}
/* Définit que string(date) contient la date */
.date {
string-set: date content(text);
display: none;
}
/* Définit que running(licenceBlock) contient le block licence */
#licence {
position: running(licenceBlock);
}
@page {
size: A4;
margin: 25mm 0;
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("./static/bibliotheque-logo.svg");
background-position: right;
background-repeat: no-repeat;
background-size: 25%;
}
@bottom-left{
content: element(licenceBlock);
font-size: small;
}
@bottom-center {
content: none;
}
@bottom-right {
content: string(date);
font-size: small;
}
}
@page:nth(11) {
@bottom-center {
content: none;
}
}
h2 {
color: #d80669;
text-decoration: underline;
}
#1st-section,
#bibliographie,
#ed,
.footnotes {
break-before: page;
}
#title-block-header {
text-align: center;
margin: 2em 0 6em 0;
}
.authors {
display: flex;
justify-content: center;
}
.author {
margin: 0;
padding: 0 1em;
}
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;
}
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;
}
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: flex;
justify-content: center;
width: 60%;
margin: 2em auto 1em auto;
}
.logo img {
max-width: 50%;
padding: .5em;
}
#TOC ul {
list-style: none;
counter-reset: tocCounter;
padding-left: 1.5em;
}
#TOC li {
counter-increment: tocCounter;
}
#TOC li::before {
content: counter(tocCounter) ". ";
}
}