accessibilité 2

This commit is contained in:
chankalan 2020-12-16 10:54:59 +01:00
parent 70cb6af298
commit 5e85c76646
7 changed files with 15 additions and 11 deletions

View File

@ -1,9 +1,9 @@
<div class="formulaire_spip formulaire_recherche[ (#ENV{class})]">
<form action="[(#ENV{action})]" method="get" role="search" aria-label="site">
<form action="[(#ENV{action})]" method="get" role="search" aria-label="[(#ENV{class}|sinon{recherche})]">
[(#ENV{action}|form_hidden)]
[<input type="hidden" name="lang" value="(#ENV{lang})" />]
<label for="#ENV{_id_champ}"><:info_rechercher_02:/></label>
<input type="[(#HTML5|?{search,text})]" class="search text" size="10" name="recherche" placeholder="<:baz_april:rechercher_transcriptions:/>"[ value="(#ENV{recherche})"] accesskey="4" autocapitalize="off" autocorrect="off"/>
<label for="recherche#ENV{_id_champ}"><:info_rechercher_02:/></label>
<input type="[(#HTML5|?{search,text})]" class="search text" size="10" name="recherche" placeholder="<:baz_april:rechercher_transcriptions:/>"[ value="(#ENV{recherche})"] accesskey="4" autocapitalize="off" autocorrect="off" id="recherche#ENV{_id_champ}" />
<button type="submit" class="submit"><:info_rechercher:/></button>
</form>
</div>

View File

@ -38,6 +38,6 @@ function formulaires_recherche_charger_dist($lien = '', $class = '') {
'recherche' => _request('recherche'),
'lang' => $lang,
'class' => $class,
'_id_champ' => $class ? substr(md5($action . $class), 0, 4) : 'recherche',
'_id_champ' => $class ? substr(md5($action . $class), 0, 4) : '',
);
}

View File

@ -7,7 +7,7 @@
#INCLURE{fond=inclure/menu, env, identifiant=pied5}
</div>
#FORMULAIRE_RECHERCHE
#FORMULAIRE_RECHERCHE{'',recherche_footer}
<div class="colophon">

View File

@ -1,6 +1,6 @@
<B_articles>
<div class="liste_articles">
#ANCRE_PAGINATION
<div class="liste_articles">[(#ENV{nb}|=={#ENV{parpage}}|oui)[(#ANCRE_PAGINATION|vide)]]
[(#ENV{nb}|=={#ENV{parpage}}|non)#ANCRE_PAGINATION]
[<h2 class="h2">(#ENV{titre})</h2>]
<div>
<BOUCLE_articles(ARTICLES){id_rubrique!=-1}{id_rubrique?}{id_secteur?}{id_mot?}{lang}{tri_rubrique}{!par date}{0,#ENV{nb,1001}}{pagination #ENV{parpage,10}}>

View File

@ -5,7 +5,7 @@
<li class="nav-item[ (#EXPOSE)][ (#COMPTEUR_BOUCLE|=={1}|oui)first]"><a href="#URL_RUBRIQUE" class="[ (#EXPOSE)]">#TITRE</a></li>
</BOUCLE_nav>
<li class="nav-item loupe last"><a href="#URL_PAGE{recherche}"><span>rechercher</span><i class="fas fa-search"></i></a>
#FORMULAIRE_RECHERCHE
#FORMULAIRE_RECHERCHE{'',recherche_nav}
</li>
</ul>
</nav>

View File

@ -1,10 +1,10 @@
<BOUCLE_articles(ARTICLES) {id_article}>
<article class="article-resume[ article-resume--(#ENV{class})] block-link-parent[(#ENV{compteur}|=={1}|et{#ENV{hero}|=={oui}}|oui) hero]">
<div class="article-resume__logo">[(#ENV{compteur}|=={1}|et{#ENV{hero}|=={oui}}|oui)<a href="#URL_ARTICLE">]
<div class="article-resume__logo">[(#ENV{compteur}|=={1}|et{#ENV{hero}|=={oui}}|oui)<a href="#URL_ARTICLE" title="#TITRE">]
[(#ENV{compteur}|=={1}|et{#ENV{hero}|=={oui}}|oui)
[(#LOGO_ARTICLE_NORMAL|sinon{#CHEMIN{images/nologo.png}}|adaptive_images{#CONST{_CONTENT_WIDTH}|div{3}} )]
[(#LOGO_ARTICLE_NORMAL|sinon{#CHEMIN{images/nologo.png}}|adaptive_images{#CONST{_CONTENT_WIDTH}|div{3}})]
][(#ENV{compteur}|=={1}|et{#ENV{hero}|=={oui}}|non)
[(#LOGO_ARTICLE_NORMAL|sinon{#CHEMIN{images/nologo.png}}|image_recadre{#CONST{_IMAGE_RATIO}, -, focus}|image_reduire{140} )]
[(#LOGO_ARTICLE_NORMAL|sinon{#CHEMIN{images/nologo.png}}|image_recadre{#CONST{_IMAGE_RATIO}, -, focus}|image_reduire{140})]
]
[(#ENV{compteur}|=={1}|et{#ENV{hero}|=={oui}}|oui)</a>]</div>
<div class="article-resume__texte">

View File

@ -71,6 +71,10 @@
.socicon {
background:transparent;
}
.name {
display:inline;
@include visuallyhidden;
}
}
}
.colophon {