diff --git a/CHANGES.md b/CHANGES.md index 939382ab..34ea941d 100755 --- a/CHANGES.md +++ b/CHANGES.md @@ -4,8 +4,9 @@ Corrections : - Champs de formulaire, uniformisation de la hauteur (select, input, etc) identique à celle des boutons à 9px. - Module search : texte d'aide dans la zone de saisie non pris en compte. -Modification : - - Ajout au sélecteur de date d'un bouton d'effacement identique à celui du sélecteur de fichiers. +Modifications : + - News 3.2 : ajout au sélecteur de date d'un bouton d'effacement identique à celui du sélecteur de fichiers. + - News 3.2 : décoloration du texte, modification de l'effet blur. ## version 10.6.00 Cette version apporte aux modules une autonomie complète par rapport au noyau. diff --git a/module/news/news.php b/module/news/news.php index 087acea3..ad9d3ffa 100755 --- a/module/news/news.php +++ b/module/news/news.php @@ -15,7 +15,7 @@ class news extends common { - const VERSION = '3.1'; + const VERSION = '3.2'; const REALNAME = 'Actualités'; const DELETE = true; const UPDATE = '0.0'; @@ -68,10 +68,10 @@ class news extends common { ]; public static $itemsBlur = [ - '100%' => 'Aucun', - '90%' => 'Faible', - '75%' => 'Modéré', - '60%' => 'Important', + '0%' => 'Aucun', + '15%' => 'Faible', + '30%' => 'Modéré', + '45%' => 'Important', ]; // Signature de l'article @@ -188,8 +188,9 @@ class news extends common { // Générer la feuille de CSS $style = '.newsContent {height:' . $this->getInput('newsConfigItemsHeight',helper::FILTER_STRING_SHORT) . ';}'; if ($this->getInput('newsConfigItemsBlur',helper::FILTER_STRING_SHORT) !== '100%') { - $style .= '.newsBlur {background: linear-gradient(' . $this->getData(['theme', 'text', 'textColor']) . ' ' . $this->getInput('newsConfigItemsBlur',helper::FILTER_STRING_SHORT) . ',rgba(255,255,255,0) );'; - $style .= ' background-clip: text;-webkit-background-clip: text;-webkit-text-fill-color: transparent;}'; + $style .= '.newsBlur {height: ' . $this->getInput('newsConfigItemsBlur',helper::FILTER_STRING_SHORT) . ';}'; + //$style .= '.newsBlur {background: linear-gradient(' . $this->getData(['theme', 'text', 'textColor']) . ' ' . $this->getInput('newsConfigItemsBlur',helper::FILTER_STRING_SHORT) . ',rgba(255,255,255,0) );'; + //$style .= ' background-clip: text;-webkit-background-clip: text;-webkit-text-fill-color: transparent;}'; } // Dossier de l'instance diff --git a/module/news/ressource/defaultdata.php b/module/news/ressource/defaultdata.php index 4bb863a4..7058fd54 100644 --- a/module/news/ressource/defaultdata.php +++ b/module/news/ressource/defaultdata.php @@ -9,6 +9,6 @@ class init extends search { ]; public static $defaultTheme = [ 'itemsHeight' => 'auto', - 'itemsBlur' => '100%' + 'itemsBlur' => '0%' ]; } \ No newline at end of file diff --git a/module/news/view/index/index.css b/module/news/view/index/index.css index c9190d33..4ebf01a3 100755 --- a/module/news/view/index/index.css +++ b/module/news/view/index/index.css @@ -29,6 +29,17 @@ margin-bottom: 30px; } +.newsBlur { + width: 100%; + height: 50%; + position: absolute; + bottom: 0; + left: -20px; + z-index: 10; + backdrop-filter: blur(1px); +} + + .newsSignature { margin-right: 10px; float: right; diff --git a/module/news/view/index/index.php b/module/news/view/index/index.php index 545ab702..4a09c865 100755 --- a/module/news/view/index/index.php +++ b/module/news/view/index/index.php @@ -5,8 +5,10 @@

getUrl(0) . '/' . $newsId . '">' . $news['title'] . ''; ?>

-
+
+
+
@@ -36,7 +38,7 @@