feat(core): change menu icon color

This commit is contained in:
OldHawk
2018-03-19 17:30:36 +08:00
parent f4166ff530
commit 9f2b294b9d
14 changed files with 25 additions and 43 deletions

View File

@@ -591,7 +591,7 @@ module.exports = {
title: 'MENU_TORRENTS_SUB.MUSIC',
role: 'user',
faIcon: 'fa-music',
faClass: 'text-success',
faClass: 'text-mt',
divider: true,
position: 3,
state: 'torrents.music',
@@ -607,7 +607,7 @@ module.exports = {
title: 'MENU_TORRENTS_SUB.SPORTS',
role: 'user',
faIcon: 'fa-futbol-o',
faClass: 'text-danger',
faClass: 'text-mt',
divider: false,
position: 4,
state: 'torrents.sports',
@@ -623,7 +623,7 @@ module.exports = {
title: 'MENU_TORRENTS_SUB.VARIETY',
role: 'user',
faIcon: 'fa-video-camera',
faClass: 'text-primary',
faClass: 'text-mt',
divider: false,
position: 5,
state: 'torrents.variety',
@@ -639,7 +639,7 @@ module.exports = {
title: 'MENU_TORRENTS_SUB.PICTURE',
role: 'user',
faIcon: 'fa-photo',
faClass: 'text-info',
faClass: 'text-mt',
divider: false,
position: 6,
state: 'torrents.picture',
@@ -655,7 +655,7 @@ module.exports = {
title: 'MENU_TORRENTS_SUB.GAME',
role: 'user',
faIcon: 'fa-gamepad',
faClass: 'text-danger',
faClass: 'text-mt',
divider: true,
position: 7,
state: 'torrents.game',
@@ -671,7 +671,7 @@ module.exports = {
title: 'MENU_TORRENTS_SUB.SOFTWARE',
role: 'user',
faIcon: 'fa-hdd-o',
faClass: 'text-success',
faClass: 'text-mt',
divider: false,
position: 8,
state: 'torrents.software',
@@ -687,7 +687,7 @@ module.exports = {
title: 'MENU_TORRENTS_SUB.EBOOK',
role: 'user',
faIcon: 'fa-book',
faClass: 'text-info',
faClass: 'text-mt',
divider: false,
position: 9,
state: 'torrents.ebook',

View File

@@ -20,7 +20,7 @@
title: 'MENU_ABOUT_MANUAL',
state: 'about.manual.userRules',
faIcon: 'fa-question-circle',
faClass: 'fa-class-user-manual',
faClass: 'text-mt',
position: 1
});
// 2 is item of Users Ranking configure in module ranking
@@ -33,14 +33,14 @@
title: 'MENU_ABOUT_OPERLIST',
state: 'about.operlist',
faIcon: 'fa-user-secret',
faClass: 'fa-class-operlist',
faClass: 'text-mt',
position: 4
});
menuService.addSubMenuItem('topbar', 'about', {
title: 'MENU_ABOUT_BLACKLIST',
state: 'about.black',
faIcon: 'fa-ban',
faClass: 'text-danger',
faClass: 'text-mt',
position: 5,
divider: true
});

View File

@@ -23,14 +23,14 @@
title: 'EDIT_PROFILE',
state: 'settings.profile',
faIcon: 'fa-vcard',
faClass: 'text-primary'
faClass: 'text-mt'
});
menuService.addSubMenuItem('account', 'settings', {
title: 'EDIT_PROFILE_PIC',
state: 'settings.picture',
faIcon: 'fa-photo',
faClass: 'text-warning'
faClass: 'text-mt'
});
menuService.addSubMenuItem('account', 'settings', {
@@ -42,14 +42,14 @@
title: 'CHANGE_PASSWORD',
state: 'settings.password',
faIcon: 'fa-lock',
faClass: 'text-danger'
faClass: 'text-mt'
});
menuService.addSubMenuItem('account', 'settings', {
title: 'RESET_PASSKEY',
state: 'settings.passkey',
faIcon: 'fa-key',
faClass: 'text-success'
faClass: 'text-mt'
});
}
}());

View File

@@ -1,24 +1,6 @@
@import (reference) "../../../core/client/less/mt-var.less";
.navbar-nav {
.fa-class-user-manual, .fa-class-admin-users {
color: @brand-primary;
}
.fa-class-user-ranking, .fa-class-operlist, .fa-class-admin-official {
color: @mt-base-color;
}
.fa-class-admin-torrents {
color: @brand-info;
}
.fa-class-admin-upload {
color: @brand-success;
}
.fa-class-admin-messages {
color: @state-danger-text;
}
.fa-class-user-message {
color: @brand-info;
}
.fa-class-revers {
.fa-fw {
color: #fafbfc;

View File

@@ -107,7 +107,7 @@
<li class="divider"></li>
<li>
<a href="/api/auth/signout" target="_self">
<i class="fa fa-fw fa-sign-out text-danger"></i><span>{{'SIGNOUT' | translate}}</span>
<i class="fa fa-fw fa-sign-out text-mt"></i><span>{{'SIGNOUT' | translate}}</span>
</a>
</li>
</ul>

View File

@@ -13,7 +13,7 @@
title: 'MENU_ADMIN_OFFICIAL_INVITATION',
state: 'admin.invitations.official',
faIcon: 'fa-user-plus',
faClass: 'fa-class-admin-official',
faClass: 'text-mt',
position: 40
});
}

View File

@@ -13,7 +13,7 @@
title: 'MENU_ADMIN_MESSAGES',
state: 'admin.messages',
faIcon: 'fa-podcast',
faClass: 'fa-class-admin-messages',
faClass: 'text-mt',
position: 10,
divider: true
});

View File

@@ -23,7 +23,7 @@
title: 'MENU_MESSAGE_BOX',
state: 'messages.box',
faIcon: 'fa-comments',
faClass: 'fa-class-user-message'
faClass: 'text-mt'
});
}
}());

View File

@@ -12,7 +12,7 @@
title: 'MENU_ABOUT_RANKING',
state: 'ranking',
faIcon: 'fa-user-circle-o',
faClass: 'fa-class-user-ranking',
faClass: 'text-mt',
position: 2,
divider: true
});

View File

@@ -14,7 +14,7 @@
state: 'admin.systems.env',
roles: ['admin'],
faIcon: 'fa-cog',
faClass: 'text-danger',
faClass: 'text-mt',
position: 1000,
divider: true
});

View File

@@ -13,7 +13,7 @@
title: 'MENU_TORRENTS_ADMIN',
state: 'admin.torrents',
faIcon: 'fa-indent',
faClass: 'fa-class-admin-torrents',
faClass: 'text-mt',
position: 1
});
menuService.addSubMenuItem('topbar', 'admin', {
@@ -21,7 +21,7 @@
state: 'admin.uploader',
roles: ['admin'],
faIcon: 'fa-cloud-upload',
faClass: 'fa-class-admin-upload',
faClass: 'text-mt',
position: 2
});

View File

@@ -13,7 +13,7 @@
title: 'MENU_ADMIN_TRACE',
state: 'admin.traces',
faIcon: 'fa-table',
faClass: 'text-warning',
faClass: 'text-mt',
position: 20
});
}

View File

@@ -13,7 +13,7 @@
title: 'MENU_USERS_ADMIN',
state: 'admin.users',
faIcon: 'fa-users',
faClass: 'fa-class-admin-users'
faClass: 'text-mt'
});
}
}());

View File

@@ -37,7 +37,7 @@
title: 'MENU_ACCOUNT_STATUS',
state: 'status.account',
faIcon: 'fa-eye',
faClass: 'text-success'
faClass: 'text-mt'
});
menuService.addSubMenuItem('mt-user', 'score', {