29-01-2024

This commit is contained in:
2024-01-29 10:44:49 +07:00
parent 545c404fdf
commit ff274416dd
5 changed files with 15 additions and 12 deletions

View File

@@ -320,10 +320,10 @@ a {
transition: 0.3s all;
position: relative;
}
.admin-menu .item:hover {
.admin-menu .item:hover, .admin-menu .item.current {
background: #81b5e4;
}
.admin-menu .item:hover .icons {
.admin-menu .item:hover .icons, .admin-menu .item.current .icons {
filter: brightness(100);
}
.admin-menu .item:hover .sub-menu {

File diff suppressed because one or more lines are too long

View File

@@ -301,11 +301,13 @@ a {
align-items: center;
transition: 0.3s all;
position: relative;
&:hover {
&:hover, &.current{
background: #81b5e4;
.icons {
filter: brightness(100);
}
}
&:hover {
.sub-menu {
left: calc(100% + 8px);
opacity: 1;

View File

@@ -6,7 +6,7 @@ return array(
"url" => "",
"menu" => array(
array(
'enable' => false ,
'enable' => true ,
'module' => 'marketing',
'view' => 'promotion',
'id' => 'marketing/promotion',
@@ -15,7 +15,7 @@ return array(
),
array(
'enable' => false ,
'enable' => true ,
'module' => 'marketing',
'view' => 'coupon',
'id' => 'marketing/coupon',

View File

@@ -24,8 +24,9 @@
</head>
<body>
<!--
{{ page | show_var }}-->
{{ global | show_var }}
{{ page | show_var }}
<div class="admin-global-container">
@@ -75,7 +76,7 @@
<div class="sub-menu">
{% for _item in _menuArray %}
<a href="{{_item.url }}" {% if _item.view == global.view and
<a href="?module={{ _item.module }}&view={{ _item.view }}" {% if _item.view == global.view and
_type == global.module %} class="current" {% endif %}> {{ _item.name }} </a>
{% endfor %}
</div>
@@ -134,7 +135,7 @@
{% assign _menuArray = _category[1].menu %}
{% if _category[1].enable == 1 %}
<div class="item {% if _type == 'system' %} border-[rgba(255,255,255,0.15)] border-b{% endif %}">
<div class="item {% if _type == 'system' %} border-[rgba(255,255,255,0.15)] border-b{% endif %} {% if _type == global.module %}current{% endif %}">
{% if _type == 'order' %} <a href="" class="icons icon-sell"> </a>
{% elsif _type == 'product' %} <a href="" class="icons icon-product"> </a>
{% elsif _type == 'customer' %}<a href="" class="icons icon-user"> </a>
@@ -154,7 +155,7 @@
<div class="menu-list">
{% for _item in _menuArray %}
<a href="{{ _item.url }}" {% if _item.view == global.view and
<a href="?module={{ _item.module }}&view={{ _item.view }}" {% if _item.view == global.view and
_type == global.module %} class="current" {% endif %}> {{ _item.name }} </a>
{% endfor %}
</div>
@@ -173,7 +174,7 @@
<div class="menu-list">
{% for _item in global.main_menu.system.menu %}
<a href="{{_item.url }}"> {{_item.name }} </a>
<a href="?module={{ _item.module }}&view={{ _item.view}}"> {{_item.name }} </a>
{% endfor %}
</div>
</div>