fix #17
This commit is contained in:
parent
32b81867e5
commit
5d09b519c3
3 changed files with 19 additions and 9 deletions
|
|
@ -1,3 +1,13 @@
|
||||||
|
.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;
|
||||||
|
}
|
||||||
|
|
||||||
.hidden {
|
.hidden {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -141,13 +141,6 @@ button.search__icon {
|
||||||
margin-bottom: calc(var(--unit--vertical) / 2);
|
margin-bottom: calc(var(--unit--vertical) / 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel-item-content__edito.short {
|
|
||||||
display: -webkit-box;
|
|
||||||
-webkit-box-orient: vertical;
|
|
||||||
-webkit-line-clamp: 5;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
.panel-item-content__edito p:not(:last-child) {
|
.panel-item-content__edito p:not(:last-child) {
|
||||||
margin-bottom: var(--unit--vertical);
|
margin-bottom: var(--unit--vertical);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,18 @@
|
||||||
<?php snippet('header'); ?>
|
<?php snippet('header'); ?>
|
||||||
|
|
||||||
<main id="<?= $page->template() ?>">
|
<main id="<?= $page->template() ?>">
|
||||||
<article>
|
<article
|
||||||
|
x-data="{edito: false}"
|
||||||
|
>
|
||||||
<?php snippet('cover', slots: true) ?>
|
<?php snippet('cover', slots: true) ?>
|
||||||
<?php slot('text') ?>
|
<?php slot('text') ?>
|
||||||
<h2 class="main-title <?= setTitleFontSizeClass($page->title()) ?>"><?= $page->title() ?></h2>
|
<h2 class="main-title <?= setTitleFontSizeClass($page->title()) ?>"><?= $page->title() ?></h2>
|
||||||
<div class="edito"><?= $page->edito() ?></div>
|
<div class="edito" :class="edito ? '' : 'short'"><?= $page->edito() ?></div>
|
||||||
|
<button
|
||||||
|
:class="edito ? 'open' : 'close'"
|
||||||
|
class="see-more toggle-btn toggle-btn--left"
|
||||||
|
@click="edito = !edito"
|
||||||
|
>Lire</button>
|
||||||
<p class="h3">textes :</p>
|
<p class="h3">textes :</p>
|
||||||
<ul class="texts">
|
<ul class="texts">
|
||||||
<?php foreach($page->children() as $article): ?>
|
<?php foreach($page->children() as $article): ?>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue