Skip to content

Commit f60fa58

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 5bf0bb8 + ecfb007 commit f60fa58

File tree

8 files changed

+15
-11
lines changed

8 files changed

+15
-11
lines changed

src/app/theme/components/baContentTop/baContentTop.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ h1.al-title {
3232
}
3333

3434
&.breadcrumb-item.active {
35-
color: $default;
35+
color: $default-text;
3636
}
3737
}
3838
}

src/app/theme/components/baMenu/baMenu.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export class BaMenuService {
8080
item.route.paths = item.route.path;
8181
} else {
8282
item.route.paths = parent && parent.route && parent.route.paths ? parent.route.paths.slice(0) : ['/'];
83-
item.route.paths.push(item.route.path);
83+
if (!!item.route.path) item.route.paths.push(item.route.path);
8484
}
8585

8686
if (object.children && object.children.length > 0) {

src/app/theme/components/baMenu/components/baMenuItem/baMenuItem.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<i *ngIf="menuItem.icon" class="{{ menuItem.icon }}"></i><span>{{ menuItem.title }}</span>
99
</a>
1010

11-
<a *ngIf="menuItem.children" (mouseenter)="onHoverItem($event, item)" (click)="onToggleSubMenu($event, menuItem)" class="al-sidebar-list-link">
11+
<a *ngIf="menuItem.children" (mouseenter)="onHoverItem($event, item)" href (click)="onToggleSubMenu($event, menuItem)" class="al-sidebar-list-link">
1212
<i *ngIf="menuItem.icon" class="{{ menuItem.icon }}"></i><span>{{ menuItem.title }}</span>
1313
<b class="fa fa-angle-down" [ngClass]="{'fa-angle-up': menuItem.expanded}"></b>
1414
</a>

src/app/theme/components/baPageTop/baPageTop.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export class BaPageTop {
2222
public toggleMenu() {
2323
this.isMenuCollapsed = !this.isMenuCollapsed;
2424
this._state.notifyDataChanged('menu.isCollapsed', this.isMenuCollapsed);
25+
return false;
2526
}
2627

2728
public scrolledChanged(isScrolled) {

src/app/theme/components/baPageTop/baPageTop.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="page-top clearfix" baScrollPosition maxHeight="50" (scrollChange)="scrolledChanged($event)"
22
[ngClass]="{scrolled: isScrolled}">
33
<a routerLink="/pages/dashboard" class="al-logo clearfix"><span>ng2-</span>admin</a>
4-
<a (click)="toggleMenu()" class="collapse-menu-link ion-navicon"></a>
4+
<a href (click)="toggleMenu()" class="collapse-menu-link ion-navicon"></a>
55

66
<div class="search">
77
<i class="ion-ios-search-strong" ng-click="startSearch()"></i>

src/app/theme/components/baSidebar/baSidebar.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@import '../../sass/conf/conf';
22

3-
$sidebar-width: 180px;
3+
$sidebar-scroll-width: 4px;
44
$angle-left: "\f100";
55
$angle-right: "\f101";
66

@@ -113,8 +113,8 @@ a.al-sidebar-list-link {
113113

114114
.slimScrollBar, .slimScrollRail {
115115
border-radius: 0px !important;
116-
width: 4px !important;
117-
left: 176px;
116+
width: $sidebar-scroll-width !important;
117+
left: $sidebar-width - $sidebar-scroll-width;
118118
}
119119

120120
@mixin layout-collapsed() {
@@ -170,11 +170,11 @@ a.al-sidebar-list-link {
170170
}
171171

172172
.sidebar-hover-elem{
173-
width: 4px;
173+
width: $sidebar-scroll-width;
174174
background: $primary;
175175
position: absolute;
176176
top: -150px;
177-
left: 176px;
177+
left: $sidebar-width - $sidebar-scroll-width;
178178
transition: all 0.5s ease;
179179
transition-property: top, height;
180180
height: 42px;

src/app/theme/sass/_layout.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
$left-space: 180px;
1+
@import 'conf/conf';
2+
3+
$left-space: $sidebar-width;
24

35
@include scrollbars(.5em, #d9d9d9, rgba(0, 0, 0, 0));
46

@@ -66,7 +68,7 @@ a {
6668

6769
.al-footer {
6870
height: 34px;
69-
padding: 0 18px 0 200px;
71+
padding: 0 18px 0 ($left-space + 20px);
7072
width: 100%;
7173
position: absolute;
7274
display: block;

src/app/theme/sass/conf/_variables.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ $resXXS: 435px;
1010
$resMin: 320px;
1111

1212
$top-height: 66px;
13+
$sidebar-width: 180px;
1314

1415
$small-card-height: 114px;
1516
$xsmall-card-height: 187px;

0 commit comments

Comments
 (0)