decor-6-site/assets/css/chapter-header.css
2026-04-07 18:09:15 +02:00

125 lines
2.4 KiB
CSS

/* ---- ENTRÉE DE CHAPITRES ------ */
.chapter-header {
position: relative;
margin-top: calc(var(--baseline)*-2.5);
width: calc(100% + 4px);
/* width: 101%; */
}
.chapter-header .hgroup {
font-size: 22px;
line-height: 1;
font-weight: normal;
position: relative;
top: calc(var(--baseline)*-0.25 - 2px);
/* margin-bottom: calc(var(--baseline)*3 + 13px); */
/*padding-right: calc(var(--unit)*2);*/
position: relative;
/* padding-left: 15px; */
}
.chapter-header .hgroup h2 {
font-family: var(--fontTitle);
font-weight: normal;
font-size: 1em;
line-height: calc(var(--sign-baseline)*1.5);
/*display: inline;*/
box-sizing: border-box;
text-align: center;
margin-top: 1em;
color: var(--sign-color);
}
.chapter-header .hgroup h2 span {
padding-left: 0.25ch;
padding-right: 0.25ch;
box-decoration-break: clone;
padding: 1px 0.25ch;
text-transform: uppercase;
}
.chapter-header .author{
display: block;
text-align: center;
}
.chapter-header .author span {
font-family: var(--fontTitle);
color: var(--sign-color);
text-transform: uppercase;
display: inline-block;
}
.chapter-header .author::before { display: none; }
.chapter-header .bio { display: none; }
.chapter-header .icon-type{
text-align: center;
}
.chapter-header .title-between,
.chapter-header .title-after,
.chapter-header .icon-type,
.chapter-header .type-container,
.chapter-header .type-separator{
font-size: var(--sign-size);
color: var(--sign-color);
letter-spacing: var(--sign-spacing);
font-family: var(--sign-family);
line-height: calc(var(--sign-baseline)*1);
}
.chapter-header .type-container{
display: flex;
justify-content: space-between;
}
.chapter-header .type{
text-transform: uppercase;
}
/* .chapter-header .title-before, */
/* .chapter-header .title-after{
white-space: nowrap;
position: absolute;
left: 0px;
} */
.chapter-header .title-between,
.chapter-header .title-after{
text-align: center;
max-width: 1ch;
margin-inline: auto;
margin-top: 0.5rem;
margin-bottom: 0.5rem;
/* font-size: 1em; */
}
.chapter-header .title-after {
bottom: calc(var(--baseline)*-2.25 + 1px);
}
.hgroup-before{
position: absolute;
left: calc(var(--pagedjs-margin-left)*-1);
padding-left: 19px;
top: -47px;
}
.hgroup-after{
position: absolute;
bottom: calc(var(--baseline)*-5 - 1px);
right: calc(var(--pagedjs-margin-right)*-1);
text-align: right;
}