From 32cc1decc23f09b7783762971e48d7eec4bae00c Mon Sep 17 00:00:00 2001 From: chankalan Date: Tue, 30 Jun 2020 11:14:32 +0200 Subject: [PATCH] nettoyage --- paquet.xml | 2 +- squelettes/content/mot.html | 46 +++++++++++ squelettes/content/sommaire.html | 10 +-- squelettes/head/mot.html | 2 +- squelettes/inclure/article-resume.html | 20 ----- squelettes/inclure/liste/articles-resume.html | 14 ++-- squelettes/inclure/resume/article.html | 29 ++++--- squelettes/javascript/script.js | 78 +++++++++---------- squelettes/scss/blocs/_content.scss | 7 +- 9 files changed, 119 insertions(+), 89 deletions(-) delete mode 100644 squelettes/inclure/article-resume.html diff --git a/paquet.xml b/paquet.xml index 3919bd0..72ad0f5 100644 --- a/paquet.xml +++ b/paquet.xml @@ -1,7 +1,7 @@ +
+ +
+

[(#LOGO_MOT|image_reduire)]#TITRE

+
+ +
+ [
(#TEXTE|image_reduire{700,*})
] +
+ + + [
+

(#NOTES)
+
] +
+ diff --git a/squelettes/content/sommaire.html b/squelettes/content/sommaire.html index afddb11..8597d02 100644 --- a/squelettes/content/sommaire.html +++ b/squelettes/content/sommaire.html @@ -1,10 +1,2 @@ -
- -#ANCRE_PAGINATION - - #INCLURE{fond=inclure/article-resume, id_article, longueur=480} - -[

(#PAGINATION{page_precedent_suivant})

] -
-
+ diff --git a/squelettes/head/mot.html b/squelettes/head/mot.html index f536ac7..51e58cf 100644 --- a/squelettes/head/mot.html +++ b/squelettes/head/mot.html @@ -2,4 +2,4 @@ [(#TITRE|textebrut)][ - (#NOM_SITE_SPIP|textebrut)] [] [] - \ No newline at end of file + diff --git a/squelettes/inclure/article-resume.html b/squelettes/inclure/article-resume.html deleted file mode 100644 index d3605ed..0000000 --- a/squelettes/inclure/article-resume.html +++ /dev/null @@ -1,20 +0,0 @@ - -
- -
-

#TITRE

-
- [(#INFO_TITRE{rubrique,#ID_RUBRIQUE})] - #SET{heure,#DATE|heures|concat{h}} - #SET{minutes,#DATE|minutes} - [(#GET{minutes}|=={00}|non)#SET{heure,#GET{heure}|concat{#GET{minutes}}}] - [(#DATE|nom_jour|ucfirst) [(#DATE|affdate)] [(#ENV{class}|=={vertical}|non)à #GET{heure}]] -
-
- [(#INTRODUCTION{#ENV{longueur,180}}|PtoBR)] -
-
-
- \ No newline at end of file diff --git a/squelettes/inclure/liste/articles-resume.html b/squelettes/inclure/liste/articles-resume.html index bcba3a1..0f8ac49 100755 --- a/squelettes/inclure/liste/articles-resume.html +++ b/squelettes/inclure/liste/articles-resume.html @@ -1,10 +1,10 @@ +
#ANCRE_PAGINATION -

[(#ENV{titre,<:derniers_articles:>})]

-
    - -
  • #INCLURE{fond=inclure/resume/article,id_article,env}
  • - -
- [] + [

(#ENV{titre})

] + + #INCLURE{fond=inclure/resume/article, id_article, env, couper=#ENV{couper}} + + [] +
diff --git a/squelettes/inclure/resume/article.html b/squelettes/inclure/resume/article.html index cbcc244..7520c4a 100644 --- a/squelettes/inclure/resume/article.html +++ b/squelettes/inclure/resume/article.html @@ -1,13 +1,20 @@ -[(#REM) - - Squelette Presentation resumee d'un article dans une liste - Distribue sous licence GPL - -] - -
-

[]

-

[(#ENV{logo_rubrique,' '}|?{#LOGO_ARTICLE_RUBRIQUE,#LOGO_ARTICLE}|image_reduire{#ENV{largeur_logo,-1},#ENV{hauteur_logo,-1}}|responsive_logo)]#TITRE

- [
(#INTRODUCTION{#ENV{coupe,300}})
] + +
+ +
+

#TITRE

+
+ [(#INFO_TITRE{rubrique,#ID_RUBRIQUE})] + #SET{heure,#DATE|heures|concat{h}} + #SET{minutes,#DATE|minutes} + [(#GET{minutes}|=={00}|non)#SET{heure,#GET{heure}|concat{#GET{minutes}}}] + [(#DATE|nom_jour|ucfirst) [(#DATE|affdate)] [(#ENV{class}|=={vertical}|non)à #GET{heure}]] +
+
+ [(#INTRODUCTION{#ENV{longueur,180}}|PtoBR)] +
+
diff --git a/squelettes/javascript/script.js b/squelettes/javascript/script.js index fe89dfb..bda8726 100644 --- a/squelettes/javascript/script.js +++ b/squelettes/javascript/script.js @@ -30,45 +30,45 @@ $(function() { $('.header_initiatives .nav').removeClass('ouvert'); }); - /// styler les boutons radios et checkboxes - $('.formulaire_spip .choix label').each(function() { - $(this).prepend('').parent().addClass('custom-radios'); - }); - - // liens sortant et PDF en target _blank + ajout d'une mention dans le title ou alt des images - $('a.spip_out, a.spip_url, a.spip_glossaire, a.external, a[href$=".pdf"], a[href$=".doc"]').each(function() { - $(this).attr('target', '_blank').attr('rel', 'noreferrer noopener'); - if($(this).attr('title') && $(this).attr('title').length) { - $(this).attr('title', $(this).attr('title') + ' - Nouvelle fenêtre'); - } else if($(this).text().trim().length) { - $(this).attr('title', $(this).text().trim() + ' - Nouvelle fenêtre'); - } else { - $(this).children('img').each(function() { - $(this).attr('alt', $(this).attr('alt') + ' - Nouvelle fenêtre'); - }); - } - }); + /// styler les boutons radios et checkboxes + $('.formulaire_spip .choix label').each(function() { + $(this).prepend('').parent().addClass('custom-radios'); + }); + + // liens sortant et PDF en target _blank + ajout d'une mention dans le title ou alt des images + $('a.spip_out, a.spip_url, a.spip_glossaire, a.external, a[href$=".pdf"], a[href$=".doc"]').each(function() { + $(this).attr('target', '_blank').attr('rel', 'noreferrer noopener'); + if($(this).attr('title') && $(this).attr('title').length) { + $(this).attr('title', $(this).attr('title') + ' - Nouvelle fenêtre'); + } else if($(this).text().trim().length) { + $(this).attr('title', $(this).text().trim() + ' - Nouvelle fenêtre'); + } else { + $(this).children('img').each(function() { + $(this).attr('alt', $(this).attr('alt') + ' - Nouvelle fenêtre'); + }); + } + }); - // smooth scroll - $('a[href^="#"], .js-scrollTo').on('click', function(e) { - if($(this).hasClass('js-noscroll')) { - return; - } - var hash = this.hash; - var $target = $(hash); - var offset = $target.offset(); - if(!offset) { - $target = $('a[name='+hash.replace(/#/,'')+']'); - offset = $target.offset(); - } - if(offset) { - e.preventDefault(); - var newPos = offset.top - 10; - $('html, body').stop().animate( - {'scrollTop': newPos}, 750, 'swing', function() { - window.location.hash = hash; - }); - } - }); + // smooth scroll + $('a[href^="#"], .js-scrollTo').on('click', function(e) { + if($(this).hasClass('js-noscroll')) { + return; + } + var hash = this.hash; + var $target = $(hash); + var offset = $target.offset(); + if(!offset) { + $target = $('a[name='+hash.replace(/#/,'')+']'); + offset = $target.offset(); + } + if(offset) { + e.preventDefault(); + var newPos = offset.top - 10; + $('html, body').stop().animate( + {'scrollTop': newPos}, 750, 'swing', function() { + window.location.hash = hash; + }); + } + }); }); diff --git a/squelettes/scss/blocs/_content.scss b/squelettes/scss/blocs/_content.scss index cf990f4..86f569c 100644 --- a/squelettes/scss/blocs/_content.scss +++ b/squelettes/scss/blocs/_content.scss @@ -101,6 +101,11 @@ .mots { ul { - @include list-separator; + li { + width:20%; + } + li:nth-child(10n) { + float:left; + } } }