From 4486ce65139d058abc50d521067e704caa92d510 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Sat, 15 May 2021 12:17:53 +0200 Subject: [PATCH] =?UTF-8?q?news=20d=C3=A9sactivation=20de=20l'effet=20flou?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/news/news.php | 11 +++++++---- module/news/view/index/index.css | 8 -------- 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/module/news/news.php b/module/news/news.php index f03767ef..087acea3 100755 --- a/module/news/news.php +++ b/module/news/news.php @@ -187,8 +187,10 @@ class news extends common { // Générer la feuille de CSS $style = '.newsContent {height:' . $this->getInput('newsConfigItemsHeight',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;}'; + 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;}'; + } // Dossier de l'instance if (!is_dir(self::DATADIRECTORY . 'pages/' . $this->getUrl(0))) { @@ -510,8 +512,9 @@ class news extends common { if ( !file_exists(self::DATADIRECTORY . 'pages/' . $this->getUrl(0) . '/theme.css')) { // Générer la feuille de CSS $style = '.newsContent {height: ' . $this->getData([ 'module', $this->getUrl(0), 'theme', 'itemsHeight' ]) .';}'; - $style .= '.newsBlur {background: linear-gradient(' . $this->getData(['theme', 'text', 'textColor']) . ' ' . $this->getData([ 'module', $this->getUrl(0), 'theme', 'itemsBlur' ]) . ',rgba(255,255,255,0) );'; - $style .= ' background-clip: text;-webkit-background-clip: text;-webkit-text-fill-color: transparent;}'; + // Pas d'effet flou à l'initialisation + //$style .= '.newsBlur {background: linear-gradient(' . $this->getData(['theme', 'text', 'textColor']) . ' ' . $this->getData([ 'module', $this->getUrl(0), 'theme', 'itemsBlur' ]) . ',rgba(255,255,255,0) );'; + //$style .= ' background-clip: text;-webkit-background-clip: text;-webkit-text-fill-color: transparent;}'; // Sauver la feuille de style file_put_contents(self::DATADIRECTORY . 'pages/' . $this->getUrl(0) . '/theme.css' , $style ); // Stocker le nom de la feuille de style diff --git a/module/news/view/index/index.css b/module/news/view/index/index.css index 1b57571c..c9190d33 100755 --- a/module/news/view/index/index.css +++ b/module/news/view/index/index.css @@ -28,14 +28,6 @@ margin-left: 10px; margin-bottom: 30px; } -/* -.newsBlur { - background: linear-gradient(#333 90%,#FFF ); - background-clip: text; - -webkit-background-clip: text; - -webkit-text-fill-color: transparent; -}*/ - .newsSignature { margin-right: 10px;