Compare commits
No commits in common. "c5a130f9a5117ff8ee22d817fa9c37c9af0e675f" and "bb5d12cb36d64c784f320ae8aa6c30071a533998" have entirely different histories.
c5a130f9a5
...
bb5d12cb36
7 changed files with 5 additions and 54 deletions
|
|
@ -36,14 +36,6 @@ article h3 {
|
|||
margin-bottom: calc(1 * var(--unit--vertical));
|
||||
}
|
||||
|
||||
article li, article ol{
|
||||
margin-left: var(--unit--horizontal);
|
||||
}
|
||||
|
||||
article figure img{
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 640px) {
|
||||
article #main-content {
|
||||
max-width: auto;
|
||||
|
|
|
|||
|
|
@ -6,8 +6,7 @@ h3,
|
|||
h4,
|
||||
h5,
|
||||
p,
|
||||
ul,
|
||||
figure {
|
||||
ul {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,8 +28,7 @@ h4 *,
|
|||
h5,
|
||||
h5 *,
|
||||
p,
|
||||
p *:not(strong),
|
||||
figcaption {
|
||||
p *:not(strong) {
|
||||
font-weight: var(--font-weight-light);
|
||||
line-height: 1;
|
||||
}
|
||||
|
|
@ -169,7 +168,7 @@ a:not(.no-underline) {
|
|||
text-decoration-thickness: 0.5px;
|
||||
}
|
||||
|
||||
article p:not(:last-child), article ul:not(:last-child), article figure:not(:last-child){
|
||||
article p:not(:last-child) {
|
||||
margin-bottom: var(--unit--vertical);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -33,4 +33,4 @@
|
|||
text:
|
||||
extends: fields/body
|
||||
label: false
|
||||
image: true
|
||||
image: true
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ tabs:
|
|||
isArchiveMode: false
|
||||
body:
|
||||
extends: fields/body
|
||||
help: Anciens champs conservés pour archive (ne pas remplir pour les nouveaux articles). Ce champs ne sera utiliser en front que si le champs "corp" normal est vide.
|
||||
help: Anciens champs conservés pour archive (ne pas remplir pour les nouveaux articles)
|
||||
width: 3/4
|
||||
when:
|
||||
isHtmlMode: false
|
||||
|
|
|
|||
|
|
@ -1,37 +0,0 @@
|
|||
<?php
|
||||
|
||||
/** @var \Kirby\Cms\Block $block */
|
||||
$alt = $block->alt();
|
||||
$caption = $block->caption();
|
||||
$crop = $block->crop()->isTrue();
|
||||
$link = $block->link();
|
||||
$ratio = $block->ratio()->or('auto');
|
||||
$src = null;
|
||||
$srcset = null;
|
||||
|
||||
if ($block->location() == 'web') {
|
||||
$src = $block->src()->esc();
|
||||
} elseif ($image = $block->image()->toFile()) {
|
||||
$alt = $alt->or($image->alt());
|
||||
$src = $image->url();
|
||||
$srcset = $image->srcset([300, 600, 900, 1200, 1800]);
|
||||
}
|
||||
|
||||
?>
|
||||
<?php if ($src): ?>
|
||||
<figure<?= Html::attr(['data-ratio' => $ratio, 'data-crop' => $crop], null, ' ') ?>>
|
||||
<?php if ($link->isNotEmpty()): ?>
|
||||
<a href="<?= Str::esc($link->toUrl()) ?>">
|
||||
<img src="<?= $src ?>" alt="<?= $alt->esc() ?>"<?php if ($srcset): ?> srcset="<?= $srcset ?>" sizes="min(60vw, 45rem)"<?php endif ?> loading="lazy">
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<img src="<?= $src ?>" alt="<?= $alt->esc() ?>"<?php if ($srcset): ?> srcset="<?= $srcset ?>" sizes="min(60vw, 45rem)"<?php endif ?> loading="lazy">
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($caption->isNotEmpty()): ?>
|
||||
<figcaption>
|
||||
<?= $caption ?>
|
||||
</figcaption>
|
||||
<?php endif ?>
|
||||
</figure>
|
||||
<?php endif ?>
|
||||
|
|
@ -32,8 +32,6 @@
|
|||
<?php endif ?>
|
||||
<?php if ($page->isHtmlMode()->isTrue()): ?>
|
||||
<?= $page->htmlBody()->kt() ?>
|
||||
<?php elseif ($page->bodyBlocks()->isNotEmpty()): ?>
|
||||
<?= $page->bodyBlocks()->toBlocks() ?>
|
||||
<?php else: ?>
|
||||
<?= $page->body() ?>
|
||||
<?php endif ?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue