Skip to content

Commit 7ce7d46

Browse files
committed
added sidebar icons
1 parent 2a1b256 commit 7ce7d46

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

resources/css/ocify-sidebar.css

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,14 @@
112112
margin-right: 10px;
113113
}
114114

115-
.sidebar-nav .sidebar-sublist .sub-item.active {
115+
.sidebar-nav .sidebar-sublist.in .sub-item.active {
116116
margin-left: -74px;
117117
padding-left: 74px;
118118
background-color: #2B3C61 !important;
119+
-webkit-transition: all 700ms ease;
120+
-moz-transition: all 700ms ease;
121+
-o-transition: all 700ms ease;
122+
transition: all 700ms ease;
119123
}
120124

121125
.sidebar-nav .sidebar-sublist .sub-item.active a{
@@ -147,6 +151,15 @@
147151
align-items: center;
148152
}
149153

154+
.sidebar-nav .sidebar-group .sidebar-group-link span:not(.icon){
155+
align-items: center;
156+
display: flex;
157+
}
158+
159+
.sidebar-nav .sidebar-group .sidebar-group-link span .icon{
160+
padding-top: 3px;
161+
}
162+
150163
.sidebar-nav .sidebar-group .sidebar-group-link .chevron {
151164
font-size: 13px;
152165
}

resources/views/partials/interactiveMenu.twig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@
3636
<a class="sidebar-group-link" title="{{ group.title }}" data-toggle="collapse" data-target="#{{ group_key }}M"
3737
aria-expanded="{{ group.active ? 'true' : 'false' }}">
3838
<span>
39-
<span class="icon"><i class="fa fa-dashboard"></i></span>
39+
<span class="icon">
40+
{{ img(group.icon).data|raw }}
41+
</span>
4042
<span class="title">{{ group.title }}</span>
4143
</span>
4244
<i class="fa fa-chevron-down chevron"></i>

0 commit comments

Comments
 (0)