finish year page

This commit is contained in:
isUnknown 2025-02-21 14:44:43 +01:00
parent 9d3800690d
commit bb924bed7b
5 changed files with 22 additions and 29 deletions

View file

@ -12,6 +12,10 @@ article #main-content {
margin-top: calc(var(--unit--vertical) * 0.5); margin-top: calc(var(--unit--vertical) * 0.5);
} }
[data-template="year"] article > h1 {
margin-bottom: 0;
}
article #main-content #chapo::after { article #main-content #chapo::after {
content: ""; content: "";
display: block; display: block;

View file

@ -1,14 +1,3 @@
.panel-item-content__edito.short {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 5;
overflow: hidden;
/* Do not remove : required not to crop letters descenders */
padding-bottom: 0.16rem;
height: 8.5rem;
}
.hidden { .hidden {
display: none; display: none;
} }
@ -133,3 +122,19 @@ button.less::after {
.transition { .transition {
transition: all 0.5s var(--curve-sine); transition: all 0.5s var(--curve-sine);
} }
.short {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 5;
overflow: hidden;
/* Do not remove : required not to crop letters descenders */
padding-bottom: 0.16rem;
/* height: 8.5rem; */
}
.see-more {
width: 100%;
margin-top: calc(var(--unit--vertical) / 2);
}

View file

@ -132,10 +132,11 @@ button.toggle.right::before {
padding-right: 1vw; padding-right: 1vw;
} }
body:not([data-template="home"]) #logo * { body:not([data-template="home"]) #logo * {
font-size: 6vw; font-size: 5.6vw;
} }
body:not([data-template="home"]) #logo span { body:not([data-template="home"]) #logo span {
height: 5vw; height: 5vw;
padding-right: calc(var(--unit--horizontal) - 0.3vw);
} }
body:not([data-template="home"]) #main-header.minimized #inactuel { body:not([data-template="home"]) #main-header.minimized #inactuel {
margin-top: -4.9vw; margin-top: -4.9vw;

View file

@ -76,18 +76,6 @@ button.toggle.right.open::before {
border: none; border: none;
} }
.texts__year.short .year__edito {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 5;
overflow: hidden;
}
.texts__year .see-more {
width: 100%;
margin-top: calc(var(--unit--vertical) / 2);
}
@media screen and (min-width: 640px) { @media screen and (min-width: 640px) {
[data-template="home"] #tabs { [data-template="home"] #tabs {
margin-top: calc(0px - (10 * var(--unit--vertical))); margin-top: calc(0px - (10 * var(--unit--vertical)));

View file

@ -1,8 +1,6 @@
<?php snippet('header') ?> <?php snippet('header') ?>
<main id="<?= $page->template() ?>"> <main id="<?= $page->template() ?>">
<article> <article>
<?php snippet('cover', array('isOpen' => true), slots: true) ?>
<?php slot('title') ?>
<h1 class="main-title">année <?= $page->title() ?></h1> <h1 class="main-title">année <?= $page->title() ?></h1>
<?php if ($page->openDate()->isNotEmpty()): ?> <?php if ($page->openDate()->isNotEmpty()): ?>
@ -11,9 +9,6 @@
</p> </p>
<?php endif ?> <?php endif ?>
<?php endslot() ?>
<?php endsnippet() ?>
<div id="main-content" <div id="main-content"
x-data="{ x-data="{
edito: false edito: false