decor-6-expe/maquette-tests/assets/css/modules/_chapter-header.scss

89 lines
1.6 KiB
SCSS
Raw Normal View History

2026-02-23 11:35:07 +01:00
.chapter-header{
// break-after: page;
2026-03-04 08:33:34 +01:00
position:relative;
2026-02-24 12:40:59 +01:00
margin-top: calc(var(--baseline)*2);
2026-02-24 14:09:50 +01:00
margin-bottom: calc(var(--baseline)*3);
2026-02-24 12:40:59 +01:00
--color: black;
2026-03-04 08:33:34 +01:00
p{ text-indent: 0px!important; }
2026-02-23 11:35:07 +01:00
}
.chapter-header h2 {
string-set: title content(text);
}
.chapter-header .author {
string-set: author content(text);
}
.chapter-header .type {
string-set: type content(text);
}
2026-03-04 08:33:34 +01:00
.chapter-header .h2-pattern{
font-size: 58px;
line-height: 0.8;
// font-family: var(--font);
// font-family: var(--mono);
2026-02-23 22:28:14 +01:00
color: var(--blue);
margin-bottom: calc(var(--baseline)*1);
2026-02-23 23:30:33 +01:00
text-align: left;
2026-02-24 12:40:59 +01:00
font-weight: normal;
2026-02-24 14:09:50 +01:00
2026-02-24 12:40:59 +01:00
color: var(--color);
2026-02-24 14:09:50 +01:00
text-align: center;
2026-03-04 08:33:34 +01:00
font-family: var(--font-decor);
transform: scale(2);
z-index: 0;
position: absolute;
top: 0;
}
.chapter-header h2{
font-family: 'Routed Gothic Wide';
margin-top: calc(var(--baseline)*4);
text-align: center;
line-height: 1.2;
font-size: 36px;
font-weight: normal;
2026-02-23 11:35:07 +01:00
2026-03-04 08:33:34 +01:00
span{
background-color: white;
border: 1px solid red;
box-shadow: 0px 1px 23px 8px rgba(255,0,0,1);
border-radius:10px;
padding-inline: 0.5ch;
box-decoration-break: clone;
-webkit-box-decoration-break: clone; /* pour Safari */
}
z-index: 10;
2026-02-23 11:35:07 +01:00
}
.chapter-header .type{
margin-bottom: calc(var(--baseline)*1);
2026-02-24 09:11:23 +01:00
display: none;
2026-02-23 23:30:33 +01:00
// text-align: center;
2026-02-23 11:35:07 +01:00
}
2026-02-23 23:30:33 +01:00
.chapter-header .type{
}
2026-02-24 09:11:23 +01:00
2026-02-23 11:35:07 +01:00
.chapter-header .author{
2026-03-04 08:33:34 +01:00
font-family: 'Routed Gothic Wide';
margin-top: calc(var(--baseline)*1);
text-align: center;
font-size: 28px;
font-weight: normal;
// margin-top: calc(var(--baseline)*2)
2026-02-23 11:35:07 +01:00
}