From 3f560a77fa18ef2622c9bcfec304662cc0d58ff7 Mon Sep 17 00:00:00 2001 From: "chankalan@choc0.net" <> Date: Fri, 15 Mar 2019 11:25:58 +0000 Subject: [PATCH] styles et configuration --- css/spip.css | 64 +++++++++++++++++++++++++-- formulaires/configurer_html5up.html | 22 +++++---- html5up_massively_administrations.php | 17 +++++++ inclure/footer.html | 8 ++-- inclure/resume/article.html | 2 +- lang/html5up_de.php | 2 +- lang/html5up_en.php | 2 +- lang/html5up_fr.php | 15 ++++++- lang/massively_fr.php | 28 +++++------- paquet.xml | 4 +- styles_config.css.html | 6 ++- 11 files changed, 130 insertions(+), 40 deletions(-) diff --git a/css/spip.css b/css/spip.css index 1886477..33fa10c 100644 --- a/css/spip.css +++ b/css/spip.css @@ -8,9 +8,6 @@ label, table th, .pagination a, .pagination span, #navPanelToggle, #sousnavToggle, #navPanel .links li a { font-family: "Open Sans", Helvetica, sans-serif; } -html, body { height:100%; } -#wrapper { min-height:100%; } - img { height: auto; } #intro.hidden .button { opacity:0 !important; visibility:hidden !important; } @@ -131,4 +128,65 @@ img { height: auto; } #contact_texte { height:150px; } +/* de squelettes-dist/css/spip.css */ +/* Citations, code et poesie */ +blockquote.spip { min-height: 40px; background: url(img/quote.png) no-repeat; } +.spip_poesie { border-left: 1px solid; } +.spip_poesie div { margin-left: 50px; text-indent: -50px; } +.spip_code, +.spip_cadre { + font-family: 'Courier New', Courier, monospace; + font-size: 1em; + margin:0 .2em; +} + +.spip_code { + border: 1px solid #dfdfcd; + background-color: rgba(227,227,211,0.5); + color: #3b3b25; + text-shadow: 0 1px 0 #fdfdfc; +} + +.spip_cadre { + background:#333; + color:#fff; + border-radius:0.5em; + border:0; +} + +textarea.spip_code, +textarea.spip_cadre { + padding: 1em; + width:98%; +} + +/* Logos, documents et images */ +.spip_logo { float:right; margin: 0 0 10px 10px; padding:0; border: none; } + +.spip_logo { margin: 0 0 10px 10px; padding: 0; border: none; } +.spip_logo_center { clear: both; display: block; margin: 0 auto 1.5em auto; } +.spip_logo_left { float: left; margin-right: 1.5em; margin-bottom: 1.5em; } +.spip_logo_right { float: right; margin-left: 1.5em; margin-bottom: 1.5em; } + +.spip_documents { margin-bottom: 1.5em; padding: 0; background: none; max-width: 100%;} +.spip_documents, +.spip_documents_center, +.spip_doc_titre, +.spip_doc_descriptif { margin-right: auto; margin-left: auto; text-align: center; } +.spip_documents_center { clear: both; display: block; width: 100%; } +.spip_documents_left { float: left; margin-right: 1.5em; } +.spip_documents_right { float: right; margin-left: 1.5em; } +.spip_doc_titre {} +.spip_doc_descriptif { clear: both; } +.spip_doc_credits { font-size:x-small; clear: both; } +/* fixer une largeur maximale de 100 % aux elements potentiellement problematiques */ +@media (max-width: 640px) { + .spip_documents,.spip_doc_titre,.spip_doc_descriptif { max-width: 100% !important; } +} + + +/* remettre d'aplomb la boite modale */ +/* boite modale de SPIP */ +button#cboxPrevious, button#cboxPrevious:hover, button#cboxNext, button#cboxNext:hover, button#cboxSlideshow, button#cboxSlideshow:hover, +button#cboxClose, button#cboxClose:hover{ border:0; box-shadow:none; } diff --git a/formulaires/configurer_html5up.html b/formulaires/configurer_html5up.html index 24964dc..5684b70 100644 --- a/formulaires/configurer_html5up.html +++ b/formulaires/configurer_html5up.html @@ -42,23 +42,29 @@ class=palette, type=color, defaut=#717981})] + [(#SAISIE{input,couleur_typo_copyright, + label=<:html5up:couleur_typo_copyright:>, + explication=<:html5up:couleur_typo_copyright_explications:>, + class=palette, + type=color, + defaut=#717981})]
<:zcore:accueil:>
[(#SAISIE{input, titre_sommaire, - label=<:html5up:titre_sommaire_accueil:>, - explication=<:html5up:titre_sommaire_accueil_explications:>})] + label=<:massively:titre_sommaire_accueil:>, + explication=<:massively:titre_sommaire_accueil_explications:>})] [(#SAISIE{case, slogan_accueil, - label=<:html5up:slogan_accueil:>, - explication=<:html5up:slogan_accueil_explications:>})] + label=<:massively:slogan_accueil:>, + explication=<:massively:slogan_accueil_explications:>})] [(#SAISIE{case, descriptif_accueil, - label=<:html5up:descriptif_accueil:>, - explication=<:html5up:descriptif_accueil_explications:>})] + label=<:massively:descriptif_accueil:>, + explication=<:massively:descriptif_accueil_explications:>})] [(#SAISIE{selecteur_article, major, - label=<:html5up:major:>, - explication=<:html5up:major_explications:>})] + label=<:massively:major:>, + explication=<:massively:major_explications:>})]
diff --git a/html5up_massively_administrations.php b/html5up_massively_administrations.php index 981248c..c98b079 100644 --- a/html5up_massively_administrations.php +++ b/html5up_massively_administrations.php @@ -33,6 +33,23 @@ function html5up_massively_upgrade($nom_meta_base_version, $version_cible) { 'couleur_bkg_footer' => '#F5F5F5', )) ); + + $config_enluminures = array( + 'titraille1open' => '

', + 'titraille1close' => '

', + 'titraille2open' => '

', + 'titraille2close' => '

', + 'titraille3open' => '

', + 'titraille3close' => '

', + 'titraille4open' => '
', + 'titraille4close' => '
', + 'titraille5open' => '
', + 'titraille5close' => '
' + ); + $maj['0.1.3'] = array( + array('ecrire_config', 'bte', $config_enluminures) + ); + include_spip('base/upgrade'); maj_plugin($nom_meta_base_version, $version_cible, $maj); } diff --git a/inclure/footer.html b/inclure/footer.html index 5de155d..fbb9cc9 100644 --- a/inclure/footer.html +++ b/inclure/footer.html @@ -6,21 +6,21 @@ ]
[
-

<:massively:adresse:>

+

<:html5up:adresse:>

(#CONFIG{html5up/contact_adresse}|propre|ptobr)

][
-

<:massively:phone:>

+

<:html5up:phone:>

(#CONFIG{html5up/contact_telephone})

][
-

<:massively:courriel:>

+

<:html5up:courriel:>

(#CONFIG{sociaux/mail})

][(#PLUGIN{sociaux}|oui)
-

<:massively:sociaux:>

+

<:html5up:reseaux_sociaux:>

]
diff --git a/inclure/resume/article.html b/inclure/resume/article.html index d22ee68..fe60c2d 100644 --- a/inclure/resume/article.html +++ b/inclure/resume/article.html @@ -6,6 +6,6 @@ [(#LOGO_ARTICLE|image_reduire{1200,*}|vider_attribut{class})] [
(#INTRODUCTION|couper{160})
] - <:massively:lire_la_suite:> + <:html5up:lire_la_suite:> \ No newline at end of file diff --git a/lang/html5up_de.php b/lang/html5up_de.php index 35fc57d..64e8857 100755 --- a/lang/html5up_de.php +++ b/lang/html5up_de.php @@ -46,7 +46,7 @@ $GLOBALS[$GLOBALS['idx_lang']] = array( // R 'rechercher' => 'Suchen', - 'reseaux_sociaux' => 'Soziale Netzwerke', + 'reseaux_sociaux' => 'Netzwerke', 'reseaux_sociaux_activer' => 'Aktivieren sie das Plugin «Links zu sozialen Netzwerken» um diese Links anzuzeigen.', 'reseaux_sociaux_configurer' => 'Plugin konfigurieren: Links zu sozialen Netzwerken', diff --git a/lang/html5up_en.php b/lang/html5up_en.php index 874a893..0d2463f 100644 --- a/lang/html5up_en.php +++ b/lang/html5up_en.php @@ -39,7 +39,7 @@ $GLOBALS[$GLOBALS['idx_lang']] = array( // R 'rechercher' => 'Search', - 'reseaux_sociaux' => 'Social networks', + 'reseaux_sociaux' => 'Networks', 'reseaux_sociaux_activer' => 'Activate the plugin "Links towards the social networks" to show such links.', 'reseaux_sociaux_configurer' => 'Configure the plugin: social Links', diff --git a/lang/html5up_fr.php b/lang/html5up_fr.php index 5d9aa6d..b829b7e 100644 --- a/lang/html5up_fr.php +++ b/lang/html5up_fr.php @@ -7,6 +7,9 @@ if (!defined('_ECRIRE_INC_VERSION')) { $GLOBALS[$GLOBALS['idx_lang']] = array( + // A + 'adresse' => 'Adresse', + // C 'cfg_titre_parametrages' => 'Paramétrages', 'contact' => 'Restez en contact', @@ -20,7 +23,12 @@ $GLOBALS[$GLOBALS['idx_lang']] = array( 'couleur_bkg' => 'Couleur d’arrière plan de la page', 'couleur_bkg_explications' => 'Par défaut #FFFFFF', 'couleur_bkg_footer' => 'Couleur d’arrière plan du pied de page', - 'couleur_bkg_footer_explications' => 'Par défaut #F5F5F5', + 'couleur_bkg_footer_explications' => 'Par défaut #f6f7ea', + 'couleur_typo_footer' => 'Couleur de la typographie du pied de page', + 'couleur_typo_footer_explications' => 'Par défaut #717981', + 'couleur_typo_copyright' => 'Couleur de la typographie à la fin du pied de page.', + 'couleur_typo_copyright_explications' => 'Couleur de la typographie de la dernière ligne en bas de page (copyright).', + 'courriel' => 'Courriel', // D "design" => 'Design', @@ -35,9 +43,12 @@ $GLOBALS[$GLOBALS['idx_lang']] = array( 'largeur_page' => 'Largeur de la page', 'largeur_page_explications' => 'Si les lignes de texte vous parraissent trop longues à la lecture, vous pouvez choisir la largeur maximum du contenu des pages (max-width). Exprimez ici la valeur et son unité (%,px,vw...).', + // P + 'phone' => 'Téléphone', + // R 'rechercher' => 'Chercher', - 'reseaux_sociaux' => 'Réseaux sociaux', + 'reseaux_sociaux' => 'Réseaux', 'reseaux_sociaux_activer' => 'Activer le plugin «Liens vers les réseaux sociaux» pour afficher de tels liens.', 'reseaux_sociaux_configurer' => 'Configurer le plugin : Liens sociaux', diff --git a/lang/massively_fr.php b/lang/massively_fr.php index 27f7f71..4495b93 100644 --- a/lang/massively_fr.php +++ b/lang/massively_fr.php @@ -8,27 +8,23 @@ if (!defined('_ECRIRE_INC_VERSION')) { $GLOBALS[$GLOBALS['idx_lang']] = array( // A - 'aide' => 'Aide : lire la documentation sur contrib.spip.net', - - // E - 'extras_accueil_label' => 'Sur l’accueil du site', - 'extras_accueil_explications' => 'Cochez cette case pour que cet article apparaisse sur la page d’accueil du site.', - 'extras_ordre_accueil_label' => 'Ordre sur la page accueil', - 'extras_ordre_accueil_explications' => 'Associez un chiffre qui permettra de trier entre eux et dans l’ordre croissant les articles choisis pour la page d’accueil.', + 'aide' => 'Aide : lire la documentation sur contrib.spip.net', // H - 'html5up_phantom_titre' => 'Html5up Phantom ', - - // L - 'largeur_page' => 'Largeur de la page', - 'largeur_page_explications' => 'Si les lignes de texte vous parraissent trop longues à la lecture, vous pouvez choisir la largeur maximum du contenu des pages (max-width). Exprimez ici la valeur et son unité (%,px,vw...).', + 'html5up_massively_titre' => 'Html5up Massively ', - // P - 'phantom_label' => 'Page accueil du site', + // M + 'major' => 'Un article sur la page accueil', + 'major_explications' => 'Choisissez un article pour le mettre en évidence sur la page d’accueil', // S - 'suivre' => 'Suivre', + 'slogan_accueil' => 'Le slogan du site', + 'slogan_accueil_explications' => 'Oui, afficher le slogan du site sur la page accueil.', + 'descriptif_accueil' => 'Le descriptif du site', + 'descriptif_accueil_explications' => 'Oui, afficher le descriptif du site sur la page accueil.', // T - 'titre_page_configurer_html5up_phantom' => 'Configurer le squelette Phantom', + 'titre_page_configurer_html5up_massively' => 'Configurer le squelette Massively', + 'titre_sommaire_accueil' => 'Titre sur la page d’accueil', + 'titre_sommaire_accueil_explications' => 'Ce titre est utilisé sur la page d’accueil et dans le premier item du menu. Si ce champ n’est pas renseigné, c’est le titre du site qui est utilisé.', ); diff --git a/paquet.xml b/paquet.xml index d454ebe..bcf6595 100644 --- a/paquet.xml +++ b/paquet.xml @@ -1,8 +1,8 @@ .bg {[ background-color:(#CONFIG{html5up/couleur_bkg});][ color:(#CONFIG{html5up/couleur_typo});] } a, #footer input[type="submit"], h1, h2, h3, h4, h5, h6, #nav ul.links li.active a {[ color:(#CONFIG{html5up/couleur_typo}); ]} @@ -23,7 +23,7 @@ a:hover, a:active, a:focus, a.on, .formulaire_contact form > fieldset.previsu > button:hover, .button:hover, #footer input[type="submit"]:hover, #footer input[type="reset"]:hover, #footer input[type="button"]:hover, #footer button:hover, #footer .button:hover, #footer a:hover, .pagination a:hover, #footer ul.icons li a.icon:hover:before, #nav ul.icons li a.icon:hover:before, #nav a:hover, #header .logo:hover, -#copyright a:hover, ul.icons li a.icon:hover::before {[ color:(#CONFIG{html5up/couleur_accent}) !important; ]} +#copyright a:hover, ul.icons li a.icon:hover::before, .reponse_formulaire_erreur, .erreur_message {[ color:(#CONFIG{html5up/couleur_accent}) !important; ]} /* box-shadow */ #intro input[type="submit"]:hover, #intro input[type="reset"]:hover, #intro input[type="button"]:hover, #intro button:hover, #intro .button:hover, @@ -38,6 +38,8 @@ ul.icons.alt li a.icon:hover::before {[ box-shadow:inset 0 0 0 2px (#CONFIG{html #footer, #footer h1, #footer h2, #footer h3, #footer h4, #footer h5, #footer h6, #footer input, #footer select, #footer textarea, #footer label, #footer strong, #footer b {[ color:(#CONFIG{html5up/couleur_typo_footer}); ]} +#copyright, #copyright a {[ color:(#CONFIG{html5up/couleur_typo_copyright});] } + #wrapper .bg { background-image:url("#CHEMIN{images/overlay.png}"), linear-gradient(0deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url("#FICHIER"); }