1
0

Fix: Standards

This commit is contained in:
Richard Dern 2024-05-09 16:48:54 +02:00
parent 7d680adea7
commit 621e77e052
10 changed files with 70 additions and 14 deletions

View File

@ -0,0 +1,56 @@
/* TypoPRO Fantasque Sans Mono Bold */
@font-face {
font-family: 'TypoPRO Fantasque Sans Mono';
src: url('@typopro/web-fantasque-sans-mono/TypoPRO-FantasqueSansMono-Bold.eot');
src: local('*'),
url('@typopro/web-fantasque-sans-mono/TypoPRO-FantasqueSansMono-Bold.eot?#iefix') format('embedded-opentype'),
url('@typopro/web-fantasque-sans-mono/TypoPRO-FantasqueSansMono-Bold.woff') format('woff'),
url('@typopro/web-fantasque-sans-mono/TypoPRO-FantasqueSansMono-Bold.ttf') format('truetype');
font-style: normal;
font-weight: bold;
font-stretch: normal;
}
/* TypoPRO Fantasque Sans Mono Bold Italic */
@font-face {
font-family: 'TypoPRO Fantasque Sans Mono';
src: url('@typopro/web-fantasque-sans-mono/TypoPRO-FantasqueSansMono-BoldItalic.eot');
src: local('*'),
url('@typopro/web-fantasque-sans-mono/TypoPRO-FantasqueSansMono-BoldItalic.eot?#iefix') format('embedded-opentype'),
url('@typopro/web-fantasque-sans-mono/TypoPRO-FantasqueSansMono-BoldItalic.woff') format('woff'),
url('@typopro/web-fantasque-sans-mono/TypoPRO-FantasqueSansMono-BoldItalic.ttf') format('truetype');
font-style: italic;
font-weight: bold;
font-stretch: normal;
}
/* TypoPRO Fantasque Sans Mono Regular */
@font-face {
font-family: 'TypoPRO Fantasque Sans Mono';
src: url('@typopro/web-fantasque-sans-mono/TypoPRO-FantasqueSansMono-Regular.eot');
src: local('*'),
url('@typopro/web-fantasque-sans-mono/TypoPRO-FantasqueSansMono-Regular.eot?#iefix') format('embedded-opentype'),
url('@typopro/web-fantasque-sans-mono/TypoPRO-FantasqueSansMono-Regular.woff') format('woff'),
url('@typopro/web-fantasque-sans-mono/TypoPRO-FantasqueSansMono-Regular.ttf') format('truetype');
font-style: normal;
font-weight: normal;
font-stretch: normal;
}
/* TypoPRO Fantasque Sans Mono Regular Italic */
@font-face {
font-family: 'TypoPRO Fantasque Sans Mono';
src: url('@typopro/web-fantasque-sans-mono/TypoPRO-FantasqueSansMono-RegularItalic.eot');
src: local('*'),
url('@typopro/web-fantasque-sans-mono/TypoPRO-FantasqueSansMono-RegularItalic.eot?#iefix') format('embedded-opentype'),
url('@typopro/web-fantasque-sans-mono/TypoPRO-FantasqueSansMono-RegularItalic.woff') format('woff'),
url('@typopro/web-fantasque-sans-mono/TypoPRO-FantasqueSansMono-RegularItalic.ttf') format('truetype');
font-style: italic;
font-weight: normal;
font-stretch: normal;
}

View File

@ -1,5 +1,5 @@
@import "@fontsource/quicksand";
@import "@typopro/web-fantasque-sans-mono/TypoPRO-FantasqueSansMono-Regular";
@import "TypoPRO-FantasqueSansMono";
@import "reset";
@import "utilities";
@import "links";

View File

@ -14,13 +14,13 @@
@if (!empty($bundle->metadata()->get('subTitle')))
<small>{{ $bundle->metadata()->get('subTitle') }}</small>
@endif</h2>
<section class="article-card-body">
<div class="article-card-body">
@if (!empty($date))
<p><time datetime="{{ $date->toIso8601String() }}">{{ $date->isoFormat('LL') }}</time></p>
@endif
@if (!empty($section))
<p>{!! $section->getArticleTitle() !!}</p>
@endif
</section>
</div>
</article>
</a>

View File

@ -32,7 +32,7 @@ class="{!! $mainLink['classes'] !!}"
</header>
@if (!empty($body) || (isset($showToc) && $showToc))
<section id="article-body">
<div id="article-body">
@if(isset($showToc) && $showToc)
<details class="drop down">
<summary>Sommaire</summary>
@ -60,7 +60,7 @@ class="{!! $mainLink['classes'] !!}"
</nav>
</details>
@endif
</section>
</div>
@endif
@if(!empty($bundle->virtualMetadata()->all()))

View File

@ -5,10 +5,10 @@
</figcaption>
@endif
@if(!empty($options['nolink']))
<img src="{{ $variantUrl }}" @if (!empty($originalData['class'])) class="{{ $originalData['class'] }}" @endif />
<img src="{{ $variantUrl }}" @if (!empty($originalData['class'])) class="{{ $originalData['class'] }}" @endif alt="{{ $originalData['alt'] ?? 'Texte alternatif non fourni' }}" />
@else
<a href="{{ $originalUrl }}" title="Voir l'image à taille réelle">
<img src="{{ $variantUrl }}" @if (!empty($originalData['class'])) class="{{ $originalData['class'] }}" @endif />
<img src="{{ $variantUrl }}" @if (!empty($originalData['class'])) class="{{ $originalData['class'] }}" @endif alt="{{ $originalData['alt'] ?? 'Texte alternatif non fourni' }}" />
</a>
@endif
@if (empty($options['nolink']) && (!empty($originalData['title']) || !empty($originalData['attribution'])))

View File

@ -1,11 +1,11 @@
@if (!empty($data['items']))
<x-paginator :data="$data" orientation="down" />
<section class="article-list">
<div class="article-list">
@foreach ($data['items'] as $bundle)
{!! $bundle->renderCard() !!}
@endforeach
</section>
</div>
<x-paginator :data="$data" orientation="up" />
@endif

View File

@ -1 +1 @@
<section class="article-list">@foreach ($bundles as $bundle){!! $bundle->renderCard() !!}@endforeach</section>
<div class="article-list">@foreach ($bundles as $bundle){!! $bundle->renderCard() !!}@endforeach</div>

View File

@ -1,6 +1,6 @@
<figure>
<audio controls preload="metadata">
<source src="{{ $originalUrl }}" type="audio/mpeg">
<source src="{{ $originalUrl }}" type="audio/mpeg" />
</audio>
<figcaption class="markdown-body">
@if (!empty($originalData['title']))

View File

@ -1,6 +1,6 @@
<figure>
<video width="{{ $originalData['width'] }}" height="{{ $originalData['height'] }}" controls>
<source src="{{ $originalUrl }}" type="{{ $originalData['type'] }}">
<source src="{{ $originalUrl }}" type="{{ $originalData['type'] }}" />
Quelque chose ne fonctionne pas !
</video>
</figure>

View File

@ -1,13 +1,13 @@
<a class="article-card-link" href="{{ $bundle->getPath() }}">
<article class="article-card">
<h2>{!! $bundle->getArticleTitle() !!}</h2>
<section class="article-card-body">
<div class="article-card-body">
@if (!empty($date))
<p><time datetime="{{ $date->toIso8601String() }}">{{ $date->isoFormat('LL') }}</time></p>
@endif
@if (!empty($section))
<p>{!! $section->getArticleTitle() !!}</p>
@endif
</section>
</div>
</article>
</a>