decor-6-expe/maquette-tests/assets/css/chapter-header.css

171 lines
3.3 KiB
CSS
Raw Normal View History

2026-03-04 10:52:07 +01:00
2026-03-16 21:28:54 +01:00
.chapter {
break-before: right;
page: chapter;
}
@page chapter:first {
/* background-color: var(--blue); */
/* color: white!important; */
@top-left-corner {
content: var(--symbol) var(--symbol) var(--symbol) var(--symbol) var(--symbol) var(--symbol) var(--symbol) var(--symbol) var(--symbol) var(--symbol) var(--symbol) var(--symbol) var(--symbol) var(--symbol) var(--symbol) var(--symbol) var(--symbol) var(--symbol) var(--symbol) var(--symbol) var(--symbol) var(--symbol) var(--symbol) var(--symbol) var(--symbol) var(--symbol) var(--symbol) var(--symbol) var(--symbol) var(--symbol) var(--symbol) var(--symbol) var(--symbol) var(--symbol) var(--symbol) var(--symbol) var(--symbol) var(--symbol) var(--symbol) var(--symbol) ;
/* color: white; */
}
@top-left {
content: none;
}
@top-center {
content: none;
}
@top-right {
content: none;
}
}
2026-03-04 10:52:07 +01:00
.chapter-header {
position: relative;
2026-03-16 21:28:54 +01:00
/* break-after: page; */
}
.chapter-header .hgroup{
/* font-family: 'Routed Gothic Wide'; */
font-size: 22px;
2026-03-15 11:09:25 +01:00
line-height: 1;
2026-03-16 21:28:54 +01:00
font-weight: normal;
/* text-align: center; */
margin-top: calc(var(--baseline)*2);
margin-bottom: calc(var(--baseline)*4);
margin-right: calc(var(--unit)*2);
}
.chapter-header .type{
color: var(--blue);
font-family: 'Teletext';
font-weight: 200;
/* font-size: 22px; */
line-height: 1;
font-weight: normal;
text-transform: uppercase;
/* text-decoration: underline;
text-underline-offset: 2px; */
}
2026-03-15 11:09:25 +01:00
2026-03-16 21:28:54 +01:00
.chapter-header .type::before{
display: none;
}
.chapter-header .hgroup h2{
font-weight: normal;
font-size: 1em;
display: inline;
line-height: 1.3;
box-sizing: border-box;
font-family: 'Teletext';
font-weight: 200;
text-align: center;
2026-03-15 11:09:25 +01:00
2026-03-16 21:28:54 +01:00
/* text-transform: uppercase; */
}
.chapter-header .hgroup h2 span{
color: white;
padding-left: 0.25ch;
padding-right: 0.25ch;
box-decoration-break: clone;
background-color: var(--blue);
padding: 2px 0.25ch;
/* background: linear-gradient(var(--blue), var(--blue)) center / 100% 70% no-repeat; */
text-transform: uppercase;
}
.chapter-header .author{
font-family: 'Teletext';
font-weight: 200;
color: var(--blue);
margin-top: calc(var(--baseline)*1);
text-transform: uppercase;
}
.chapter-header .hgroup h2::after{
/* content: "| | | | | ";
font-size: var(--sign-size);
color: var(--blue);
letter-spacing: var(--sign-spacing);
line-height: var(--sign-baseline);
display: block;
width: 1ch;
text-align: center;
margin-left: calc(var(--unit)*0.5); */
}
.chapter-header .author::before{
display: none;
2026-03-04 10:52:07 +01:00
}
2026-03-15 11:09:25 +01:00
.chapter-header .bio{
display: none;
}
2026-03-04 10:52:07 +01:00
2026-03-15 11:09:25 +01:00
/* .chapter-header p {
2026-03-04 10:52:07 +01:00
text-indent: 0px !important;
}
2026-03-10 11:49:12 +01:00
.chapter-header .type,
2026-03-04 10:52:07 +01:00
.chapter-header .h2-pattern {
display: none;
}
.chapter-header .hgroup{
2026-03-10 11:49:12 +01:00
margin-left: 15%;
2026-03-04 10:52:07 +01:00
}
.chapter-header h2 {
font-family: 'Routed Gothic Wide';
2026-03-10 11:49:12 +01:00
line-height: 1.1;
2026-03-04 10:52:07 +01:00
font-size: 36px;
font-weight: normal;
2026-03-10 11:49:12 +01:00
2026-03-04 10:52:07 +01:00
}
.chapter-header .author {
2026-03-10 11:49:12 +01:00
font-family: 'Routed Gothic Wide';
font-size: 36px;
margin-top: calc(var(--baseline)*6);
margin-bottom: calc(var(--baseline)*2);
2026-03-04 10:52:07 +01:00
}
.chapter-header .bio{
display: none;
}
.chapter-header{
margin-bottom: calc(var(--baseline)*1);
2026-03-15 11:09:25 +01:00
} */