diff --git a/core/core.php b/core/core.php index 1af4f098..8e08d200 100644 --- a/core/core.php +++ b/core/core.php @@ -400,7 +400,8 @@ class common { 'position' => 'site-second', 'textAlign' => 'left', 'textColor' => 'rgba(255, 255, 255, 1)', - 'textTransform' => 'none' + 'textTransform' => 'none', + 'fixed' => false ], 'site' => [ 'backgroundColor' => 'rgba(255, 255, 255, 1)', @@ -1056,6 +1057,7 @@ class common { // Version 9.0.0 if($this->getData(['core', 'dataVersion']) < 900) { $this->setData(['theme', 'site', 'blocks','100']); + $this->setData(['theme', 'menu','fixed',false]); $this->setData(['core', 'dataVersion', 900]); $this->SaveData(); } diff --git a/core/layout/common.css b/core/layout/common.css index 87ad5fb5..8166ef54 100755 --- a/core/layout/common.css +++ b/core/layout/common.css @@ -223,6 +223,12 @@ td > .col12 { width: 100%; } +.container-large-fixed { + width: 100%; + position:fixed; + z-index: 100; + } + /* Barre de membre */ #bar { background: #212223; @@ -316,6 +322,14 @@ body > nav { margin: 0 -10px; } /* Items du menu */ + +/* Barre de navigation fixe quand le menu est en-dehors du site */ +#navfixed { + position: fixed; + top:0; + width:100%; + z-index:100; +} nav a > img { margin: -4px 0; vertical-align: middle; diff --git a/core/layout/main.php b/core/layout/main.php index 63859b1a..97ad5953 100755 --- a/core/layout/main.php +++ b/core/layout/main.php @@ -20,7 +20,15 @@ showNotification(); ?> getData(['theme', 'menu', 'position']) === 'body-first' || $this->getData(['theme', 'menu', 'position']) === 'top' ): ?> -