From b43367cdcd3f31b649520a858ccfab710fe61421 Mon Sep 17 00:00:00 2001 From: Divlo Date: Wed, 11 Dec 2019 22:05:15 +0100 Subject: [PATCH] Hotfix : CSS/Variable/Footer --- css/style.css | 13 ++++--------- incl/footer.php | 6 ++++-- scripts/main.js | 2 +- scripts/variables.js | 1 + 4 files changed, 10 insertions(+), 12 deletions(-) diff --git a/css/style.css b/css/style.css index 80773e5..1bb5cb6 100644 --- a/css/style.css +++ b/css/style.css @@ -1,3 +1,4 @@ +/* GENERAL */ :root { --footer-height: 182px; --border-header-footer: 3px rgba(255,255,255,0.7) solid; @@ -5,8 +6,6 @@ --text-color: rgb(222, 222, 222); --important: #ffd800; } - -/* GENERAL */ html { position: relative; min-height: 100%; @@ -61,18 +60,15 @@ header { padding-bottom: 25px; } .selectInline { - display: inline !important; + display: inline-block !important; width: 80px !important; height: 40px !important; } pre code { color: #e83c8c !important; } -#currencyOfTheValue, #currencyAfter, #convertNumberType { - width: 270px !important; -} -#option { - width: 380px !important; +#currencyOfTheValue, #currencyAfter, #convertNumberType, #option { + width: auto !important; } #convertIn { width: 6.7em; @@ -101,7 +97,6 @@ pre code { vertical-align: middle !important; line-height: 2; } - .original-link-list { white-space: nowrap; overflow: hidden; diff --git a/incl/footer.php b/incl/footer.php index cca4c30..f35f0d0 100644 --- a/incl/footer.php +++ b/incl/footer.php @@ -1,7 +1,9 @@ diff --git a/scripts/main.js b/scripts/main.js index bb05c4f..a1720da 100644 --- a/scripts/main.js +++ b/scripts/main.js @@ -36,7 +36,7 @@ $(function () { /* Permet d'afficher la liste des citations/proverbes */ if(chemin === "/views/quote-list.php") { - window.onload = $('.totalLengthQuote').html('Total de ' + quotes.length + ' citations.'); + $('.totalLengthQuote').html('Total de ' + quotes.length + ' citations.'); let resultat = ""; for (index in quotes) { resultat = resultat + ` ${quotes[index]["source"]} ${quotes[index]["quote"]} `; diff --git a/scripts/variables.js b/scripts/variables.js index 4c8ba22..3a7de28 100644 --- a/scripts/variables.js +++ b/scripts/variables.js @@ -20,6 +20,7 @@ texteFonctionChange = [ `vérifier si un nombre fait partie des nombres d'Armstrong`, `génèrer toutes les permutations uniques possibles d'une chaîne de caractère`, 'convertir du Markdown en HTML', + 'raccourcir les liens trop longs', 'connaître la météo' ];