123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- /**
- * Macro-structure
- * ===============
- */
- .body,
- .body:before,
- .body:after { position: absolute; }
- .body:before,
- .body:after { z-index: 500; }
- /**
- * Zone de composition principale
- * ------------------------------
- */
- .body {
- top: $page-margin-top;
- bottom: $page-margin-bottom;
- }
- /* TODO: move into grid.less? */
- .bloc { position: absolute; z-index: 500; }
- .debug .header,
- .debug .footer,
- .debug .body,
- .debug .bloc { outline: 1px solid purple; }
- /**
- * Pieds de page
- * -------------
- */
- .body:before,
- .body:after {
- display: block;
- font-family: "Belgika8th", sans-serif;
- font-size: 6pt;
- line-height: $line-height;
- letter-spacing: 0.25pt;
- z-index: 500;
- }
- .body:before,
- .body:after { bottom: $line-height * -3; }
- /*gauche*/
- /*.body:before { content: "Type d'article — Titre de l'article"; } */
- /*droite*/
- /*.body:before { content: "Médor n°1 — printemps 2015"; }*/
- .paper:nth-child(even) .body:before { content: "Médor — hiver 2016-2017"; }
- .body:after { content: counter(folio); z-index: 499;}
- /**
- * Miroir
- * -------
- */
- /**
- * Placement en miroir des éléments en fonction de si ils se trouvent sur une
- * page paire ou une page impaire, en utilisant le pseudo-sélecteur `nth-child`
- */
- html:not(.facing) .paper:nth-child(odd) .body,
- html.facing .paper:nth-child(even) .body {
- right: $page-margin-outside;
- left: $page-margin-inside;
- }
- html:not(.facing) .paper:nth-child(even) .body,
- html.facing .paper:nth-child(odd) .body {
- left: $page-margin-outside;
- right: $page-margin-inside;
- }
- html:not(.facing) .paper:nth-child(odd) .body:before,
- html.facing .paper:nth-child(even) .body:before {
- @extend .x1;
- @extend .w4;
- }
- html:not(.facing) .paper:nth-child(even) .body:before,
- html.facing .paper:nth-child(odd) .body:before {
- @extend .x5;
- @extend .w4;
- }
- html:not(.facing) .paper:nth-child(odd) .body:after,
- html.facing .paper:nth-child(even) .body:after {
- @extend .x5;
- @extend .w1;
- text-align: left;
- }
- html:not(.facing) .paper:nth-child(even) .body:after,
- html.facing .paper:nth-child(odd) .body:after {
- @extend .x1;
- @extend .w1;
- text-align: left;
- }
- #flow-main {
- -webkit-flow-into: flow-main;
- flow-into: flow-main;
- }
- .flow-main {
- -webkit-flow-from: flow-main;
- flow-from: flow-main;
- }
|