From ac8c79ee638063054b31a843e62a9c43cdeaf785 Mon Sep 17 00:00:00 2001 From: Victor Losada Hernandez Date: Sat, 25 Feb 2023 22:39:25 +0100 Subject: [PATCH] unit change and has update --- themes/V3/5ePHB/style.less | 86 ++++++++++++++++++++++---------------- 1 file changed, 50 insertions(+), 36 deletions(-) diff --git a/themes/V3/5ePHB/style.less b/themes/V3/5ePHB/style.less index b07bb3a63..d70a24610 100644 --- a/themes/V3/5ePHB/style.less +++ b/themes/V3/5ePHB/style.less @@ -798,48 +798,62 @@ //***************************** // * PART COVER // *****************************/ - .page { + .page:has(.partCover) { + padding-top: 0; + + h1, h2 { + margin-inline: auto; + text-align: center; + column-span: all; + } .partCover { background-image: @partCoverHeader; background-repeat: no-repeat; position: absolute; background-size: 100%; - inset: 0; - - img { - position: absolute; - inset: 0; - height: 100%; - mask-image: @partCoverMaskOdd; - mask-size: 816px; - -webkit-mask-image: @partCoverMaskOdd; - -webkit-mask-size: 816px; - } - - h1 { - text-align: center; - text-transform: uppercase; - font-size: 80px; - font-family: NodestoCapsCondensed; - font-variant: small-caps; - max-width: 7ch; - text-overflow: clip; - white-space: nowrap; - overflow: hidden; - margin-inline: auto; - } - - h2 { - text-align: center; - font-family: MartelSansBlack; - font-size: 18px; - position: relative; - max-width: 18ch; - margin-inline: auto; - margin-top: -5px; - } + top: 0; + left: 0; + height: 6cm; + width:100%; + z-index:-1; } - &:nth-child(even) .partCover img { + + img { + position: absolute; + left: 0; + bottom: 0; + height: 100%; + mask-image: @partCoverMaskOdd; + mask-size: 215.9mm; + -webkit-mask-image: @partCoverMaskOdd; + -webkit-mask-size: 215.9mm; + z-index:-2; + } + + h1 { + text-align: center; + text-transform: uppercase; + font-size: 2.1cm; + font-family: NodestoCapsCondensed; + max-width: 6cm; + text-overflow: clip; + white-space: nowrap; + overflow: hidden; + margin-inline: auto; + } + + h2 { + text-align: center; + font-family: MartelSansBlack; + font-size: 0.48cm; + position: relative; + max-width: 5cm; + margin-inline: auto; + margin-top: -.4em; + line-height: 1.1em; + } + + &:nth-child(even) img { mask-image: @partCoverMaskEven; -webkit-mask-image: @partCoverMaskEven; }