From a52ed816a823a712b2028892ddb98fde4501d7a1 Mon Sep 17 00:00:00 2001 From: Rajab Natshah <rajabn@gmail.com> Date: Wed, 14 Feb 2018 15:23:32 +0200 Subject: [PATCH] Issue #2944721: Added hidden-anonymous and visible-admin LESS/CSS classes as they have been moved to Vartheme base for features to use --- .../css/base/vartheme.base.css | 9 +++++++++ .../less/base/vartheme.base.less | 17 +++++++++++++++++ themes/vartheme/css/base/vartheme.base.css | 9 +++++++++ themes/vartheme/less/base/vartheme.base.less | 18 ++++++++++++++++++ 4 files changed, 53 insertions(+) diff --git a/themes/vartheme/VARTHEME_SUBTHEME/css/base/vartheme.base.css b/themes/vartheme/VARTHEME_SUBTHEME/css/base/vartheme.base.css index f3129f3c..5f368317 100644 --- a/themes/vartheme/VARTHEME_SUBTHEME/css/base/vartheme.base.css +++ b/themes/vartheme/VARTHEME_SUBTHEME/css/base/vartheme.base.css @@ -640,3 +640,12 @@ img { .maintenance-page #page { text-align: center; } +.hidden-anonymous { + display: none !important; +} +body.user-logged-in .visible-admin { + display: inline-block !important; +} +body.user-logged-in .btn.visible-admin { + display: inline-block !important; +} diff --git a/themes/vartheme/VARTHEME_SUBTHEME/less/base/vartheme.base.less b/themes/vartheme/VARTHEME_SUBTHEME/less/base/vartheme.base.less index 1121e6bc..658272c9 100644 --- a/themes/vartheme/VARTHEME_SUBTHEME/less/base/vartheme.base.less +++ b/themes/vartheme/VARTHEME_SUBTHEME/less/base/vartheme.base.less @@ -827,3 +827,20 @@ img { text-align: center; } } + +// Hide for anonymous users. +.hidden-anonymous { + display: none !important; +} + +// Show only for admin users. +body.user-logged-in { + + .visible-admin { + display: inline-block !important; + } + + .btn.visible-admin { + display: inline-block !important; + } +} diff --git a/themes/vartheme/css/base/vartheme.base.css b/themes/vartheme/css/base/vartheme.base.css index b47d5976..6f92c4fe 100644 --- a/themes/vartheme/css/base/vartheme.base.css +++ b/themes/vartheme/css/base/vartheme.base.css @@ -612,3 +612,12 @@ img { .maintenance-page #page { text-align: center; } +.hidden-anonymous { + display: none !important; +} +body.user-logged-in .visible-admin { + display: inline-block !important; +} +body.user-logged-in .btn.visible-admin { + display: inline-block !important; +} diff --git a/themes/vartheme/less/base/vartheme.base.less b/themes/vartheme/less/base/vartheme.base.less index 4449e2a4..c9029720 100644 --- a/themes/vartheme/less/base/vartheme.base.less +++ b/themes/vartheme/less/base/vartheme.base.less @@ -798,3 +798,21 @@ img { text-align: center; } } + +// Hide for anonymous users. +.hidden-anonymous { + display: none !important; +} + +// Show only for admin users. +body.user-logged-in { + + .visible-admin { + display: inline-block !important; + } + + .btn.visible-admin { + display: inline-block !important; + } +} + -- GitLab