Dropdown User Plugins styles

stable
Xavier Julián 2016-02-22 08:36:09 +01:00
parent 52009415c0
commit 758a13b739
4 changed files with 18 additions and 1 deletions

1
.gitignore vendored
View File

@ -14,3 +14,4 @@ tmp/
app/config/main.coffee app/config/main.coffee
scss-lint.log scss-lint.log
e2e/screenshots/ e2e/screenshots/
app/modules/compile-modules/

View File

@ -777,6 +777,7 @@
"CHANGE_PASSWORD": "Change password", "CHANGE_PASSWORD": "Change password",
"DASHBOARD_TITLE": "Dashboard", "DASHBOARD_TITLE": "Dashboard",
"DISCOVER_TITLE": "Discover trending projects", "DISCOVER_TITLE": "Discover trending projects",
"NEW_ITEM": "New",
"DISCOVER": "Discover", "DISCOVER": "Discover",
"ACTION_REORDER": "Drag & drop to reorder" "ACTION_REORDER": "Drag & drop to reorder"
}, },

View File

@ -23,13 +23,14 @@ div.navbar-dropdown.dropdown-user
title="{{'PROJECT.NAVIGATION.EDIT_PROFILE_TITLE' | translate}}", title="{{'PROJECT.NAVIGATION.EDIT_PROFILE_TITLE' | translate}}",
translate="PROJECT.NAVIGATION.EDIT_PROFILE") translate="PROJECT.NAVIGATION.EDIT_PROFILE")
li(ng-repeat="plugin in vm.userSettingsPlugins") li.plugin(ng-repeat="plugin in vm.userSettingsPlugins")
a( a(
href="" href=""
tg-nav="user-settings-contrib:plugin=plugin.slug" tg-nav="user-settings-contrib:plugin=plugin.slug"
ng-class="{active: plugin.slug == currentPlugin.slug}" ng-class="{active: plugin.slug == currentPlugin.slug}"
) )
span.title {{ plugin.name }} span.title {{ plugin.name }}
span.new(translate="PROJECT.NAVIGATION.NEW_ITEM")
li li
a( a(

View File

@ -133,6 +133,20 @@ $dropdown-width: 350px;
margin-bottom: .5rem; margin-bottom: .5rem;
padding: 0; padding: 0;
} }
.plugin {
&:hover {
.new {
color: $white;
}
}
.new {
@extend %small;
background: $red-light;
float: right;
margin-left: auto;
padding: .1rem .25rem;
}
}
a { a {
color: $gray-light; color: $gray-light;
display: block; display: block;