83 lines
1.7 KiB
Text
83 lines
1.7 KiB
Text
<section webc:root="override">
|
|
<navigation label="Character" :collection="char"></navigation>
|
|
|
|
<slot></slot>
|
|
</section>
|
|
|
|
<style webc:scoped="page-content">
|
|
:host {
|
|
grid-area: content;
|
|
|
|
hyphens: auto;
|
|
|
|
width: 100%;
|
|
max-width: 65ch;
|
|
|
|
background-color: var(--clr-box-background);
|
|
border: var(--border-thin) solid var(--clr-box-border);
|
|
border-radius: var(--border-radius);
|
|
|
|
transform: translate(0);
|
|
transform-style: preserve-3d;
|
|
}
|
|
|
|
:host::before {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 0.5em -0.5em -0.5em 0.5em;
|
|
|
|
background: radial-gradient(
|
|
ellipse at top left,
|
|
oklch(from var(--clr-gradient-box-shadow) calc(l - 0.2) c h) 60%,
|
|
oklch(from var(--clr-gradient-box-shadow) calc(l + 0.1) c h)
|
|
);
|
|
|
|
border-radius: inherit;
|
|
|
|
transform: translate3d(0, 0, -1px);
|
|
}
|
|
|
|
:host > :not(.character-nav, .slider) {
|
|
margin-inline: var(--inbox-spacing);
|
|
}
|
|
|
|
:host > :last-child {
|
|
margin-block: 0 var(--inbox-spacing);
|
|
}
|
|
|
|
:host :where(h1, h2, h3, h4, h5, h6) {
|
|
--heading-spacing: 0.25em;
|
|
position: relative;
|
|
font-weight: bold;
|
|
margin-block: 0 var(--heading-spacing);
|
|
padding-block: 0 var(--heading-spacing);
|
|
}
|
|
|
|
:host :where(h1, h2, h3, h4, h5, h6)::after {
|
|
content: '';
|
|
position: absolute;
|
|
display: block;
|
|
left: 0;
|
|
bottom: 0;
|
|
height: 0.125em;
|
|
width: 2em;
|
|
border-radius: 1em;
|
|
background: linear-gradient(
|
|
to right,
|
|
oklch(from var(--clr-heading-underline) calc(l + 0.1) c h),
|
|
oklch(from var(--clr-heading-underline) calc(l - 0.2) c h)
|
|
);
|
|
}
|
|
|
|
:host h1 {
|
|
font-size: 3em;
|
|
}
|
|
|
|
:host h2 {
|
|
font-size: 2em;
|
|
}
|
|
|
|
:host p {
|
|
text-align: justify;
|
|
}
|
|
</style>
|