Explication de la @page Geoformat:first
Je v
ais vous expliquer à quoi correspond ch
aque élément d
ans le
CSS pour la page Geoformat:first (cf. im
age ci-dessous).
L
a p
age se nomme
@page Geoformat:first d
ans le CSS.
D
ans un premier temps, nous
allons nous intéresser
aux éléments de cette p
artie :
/* 4. Le design du livre grâce à Paged.js ——————— */
/* k. Nos pages geoformat —————*/
Le compteur de p
age correspond à
@bottom-center.
@p
age Geoform
at {
m
argin : 15mm 5mm 15mm ;
@bottom-center {
font-size : 15pt ;
font-f
amily : v
ar(–texte-font) ;
color : v
ar(–couleur-trois) ;
text-
align : center ;
}
}
@p
age Geoform
at:first {
@bottom-center {
content : counter(p
age) !import
ant ;
}
}
Reg
ardons m
ainten
ant cette p
artie :
/* 4. Le design du livre grâce à Paged.js ——————— */
/* j. Nos pages geoformat : l’introduction —————*/
L’inscription “Geoform
at” en h
aut à g
auche de l
a p
age correspond à
@top-left. J’
ai défini s
a police de c
ar
actère (
font-family : var(–texte-font) ; ), s
a couleur (
color : var(–couleur-trois) ; ) et s
a t
aille (
font-size : 8pt ; ). J’
ai choisi ses proportions (
width et
height) et s
a position (
transform,
position,
top et
right).
@p
age Geoform
at:left {
@top-left {
content : « Geoform
at » ;
width : 28mm ;
height : 5mm ;
tr
ansform : rot
ate(-90deg) ;
tr
ansform-origin : top left ;
position : rel
ative ;
top : 29mm ;
font-size : 8pt ;
font-f
amily : v
ar(–texte-font) ;
color : v
ar(–couleur-trois) ;
}
/* 6. Les éléments de nos pages ——————————————————– */
/* Geoformat section ——————————*/
Le titre correspond à
section.section header h2. J’
ai choisi s
a position (
avec les
margin), s
a t
aille de police (
font-size : var(–geoformat-chapitre-titre-taille) ; ) et son interlign
age (
line-height : var(–geoformat-chapitre-titre-interligne) ; )
section.section he
ader h2 {
m
argin-top : 0px ;
m
argin-left : 15mm ;
m
argin-right : 15mm ;
font-size : v
ar(–geoform
at-ch
apitre-titre-t
aille) ;
line-height : v
ar(–geoform
at-ch
apitre-titre-interligne) ;
}
L’im
age correspond à
section.section header img. Ses proportions sont définies ici.
section.section he
ader img {
width : 138mm ;
height :
auto ;
m
ax-height : 170mm ;
}
Pour finir, penchons-nous sur cette p
artie :
/* 5. Notre style général : ——————————————————– */
/* b. Les caractères ————————————————- */
L
a légende de l
a photo correspond à
figcaption et
section.geoformat figcaption. J’
ai désigné l
a t
aille de l
a police (
font-size : 0.58em ; ), s
a couleur (
color : var(–geoformat-text-couleur) ; ), son style (
font-style : italic ; ) et s
a position (
margin-top : 4px ; ).
section.geoform
at p,
section.geoform
at pre,
section.geoformat figcaption {
font-f
amily : v
ar(–geoform
at-text-font) ;
color : v
ar(–geoform
at-text-couleur) ;
}
pre,
figcaption {
p
adding-left : 0px !import
ant ;
font-size : 0.58em ;
m
argin-top : 4px ;
font-style : it
alic ;
width : 120 % ;
}