adjust sectioned style

This commit is contained in:
isUnknown 2024-09-03 16:16:06 +02:00
parent fe7f31a112
commit 4aeeb3a4e4
5 changed files with 18 additions and 8 deletions

View file

@ -1,5 +1,14 @@
[data-template="sectioned"] main p { [data-template="sectioned"] section {
scroll-margin-top: 7rem;
}
[data-template="sectioned"] .section__row {
margin-bottom: 1rem;
}
[data-template="sectioned"] main p:not(:last-child) {
font-size: var(--font-size-s); font-size: var(--font-size-s);
margin-bottom: 1rem;
} }
[data-template="sectioned"] main .big p { [data-template="sectioned"] main .big p {
@ -8,6 +17,10 @@
[data-template="sectioned"] main h2 { [data-template="sectioned"] main h2 {
font-weight: bold; font-weight: bold;
}
[data-template="sectioned"] main h2,
[data-template="sectioned"] main h3 {
margin-bottom: calc(var(--padding-vertical) / 1.5); margin-bottom: calc(var(--padding-vertical) / 1.5);
} }

View file

@ -20,9 +20,6 @@ fields:
default: "h2" default: "h2"
labels: false labels: false
options: options:
- value: h2
icon: h2
text: H2
- value: h3 - value: h3
icon: h3 icon: h3
text: H3 text: H3

View file

@ -60,7 +60,7 @@
</li> </li>
</template> </template>
</ul> </ul>
<button class="calendar-strip__calendar-btn">calendrier</button> <a href="<?= page('programme')->url() ?>" class="calendar-strip__calendar-btn">calendrier</a>
<div class="calendar-strip__date" :class="open ? 'open' : ''"> <div class="calendar-strip__date" :class="open ? 'open' : ''">
<ul class="sessions sessions--detailed"> <ul class="sessions sessions--detailed">
<template x-for="session in targetSessions"> <template x-for="session in targetSessions">

View file

@ -54,7 +54,7 @@
<ul> <ul>
<?php foreach($category->children() as $subcategory): ?> <?php foreach($category->children() as $subcategory): ?>
<?php if ($subcategory->isIndexed() == 'true'): ?> <?php if ($subcategory->isIndexed() == 'true'): ?>
<li><a class="expanded-nav__subcategory" href="<?= $subcategory->url() ?>"><?= $subcategory->title() ?></a></li> <li><a class="expanded-nav__subcategory" href="<?= $category->url() . '/#' . $subcategory->slug() ?>"><?= $subcategory->title() ?></a></li>
<?php endif ?> <?php endif ?>
<?php endforeach ?> <?php endforeach ?>
</ul> </ul>

View file

@ -5,12 +5,12 @@
</section> </section>
<?php foreach($page->children() as $sectionPage): ?> <?php foreach($page->children() as $sectionPage): ?>
<section> <section id="<?= $sectionPage->slug() ?>">
<?php if ($sectionPage->isIndexed() != 'false'): ?> <?php if ($sectionPage->isIndexed() != 'false'): ?>
<h2 class="h3"><?= $sectionPage->title() ?></h2> <h2 class="h3"><?= $sectionPage->title() ?></h2>
<?php endif ?> <?php endif ?>
<?php foreach ($sectionPage->section()->toLayouts() as $layout): ?> <?php foreach ($sectionPage->section()->toLayouts() as $layout): ?>
<div class="grid" id="<?= $layout->id() ?>"> <div class="section__row grid" id="<?= $layout->id() ?>">
<?php foreach ($layout->columns() as $column): ?> <?php foreach ($layout->columns() as $column): ?>
<div class="grid__item" style="--span:<?= $column->span() ?>"> <div class="grid__item" style="--span:<?= $column->span() ?>">
<div class="blocks"> <div class="blocks">