From 80f448eb0000fd5de3cd6322a53e024769441ad4 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Wed, 6 Feb 2019 20:40:19 +0100 Subject: [PATCH] Suppression modif barre membre + menu sticky --- core/core.php | 8 ++------ core/layout/common.css | 9 ++++++++- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/core/core.php b/core/core.php index af891d42..3c44f4be 100644 --- a/core/core.php +++ b/core/core.php @@ -2288,12 +2288,8 @@ class layout extends common { } $rightItems .= '
  • ' . template::ico('user', 'right') . $this->getUser('firstname') . ' ' . $this->getUser('lastname') . '
  • '; $rightItems .= '
  • ' . template::ico('logout') . '
  • '; - // Barre de membre pleine ou limitée selon les droits de l'utilisateur - if($this->getUser('group') === self::GROUP_MEMBER) { - echo '
    '; - } else { - echo '
      ' . $leftItems . '
      ' . $rightItems . '
    '; - } + // Barre de membre + echo '
      ' . $leftItems . '
      ' . $rightItems . '
    '; } } diff --git a/core/layout/common.css b/core/layout/common.css index 682aa49d..5ed2694a 100755 --- a/core/layout/common.css +++ b/core/layout/common.css @@ -235,13 +235,20 @@ td > .col12 { padding-left: 5px; /* Pour éviter que le select touche le bord lorsque la fenêtre est redimensionnée */ margin: 0 -10px; text-align: right; + position: -webkit-sticky; /* Safari */ + position: sticky; + top: 0; + z-index: 19; } /* Barre pour les membres */ #bar #barMember { float: right; font-size: .8em; position: fixed; - z-index: 60; + position: -webkit-sticky; /* Safari */ + position: sticky; + top: 0; + z-index: 19; right: 10px; top: 10px;; padding: 5px;