Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
307 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
plugins/CoreHome/angularjs/menudropdown/menudropdown-directive.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/*! | ||
* Piwik - Web Analytics | ||
* | ||
* @link http://piwik.org | ||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later | ||
*/ | ||
|
||
/** | ||
* Usage: | ||
* <div piwik-menudropdown title="MyMenuItem"> | ||
* <a class="item" href="/url"></a> | ||
* <a class="item active">test</a> | ||
* <a class="item disabled">-------</a> | ||
* <a class="item" href="/url"></a> | ||
* </div> | ||
*/ | ||
angular.module('piwikApp').directive('piwikMenudropdown', function(){ | ||
|
||
return { | ||
transclude: true, | ||
replace: true, | ||
restrict: 'A', | ||
scope: { | ||
title: '@' | ||
}, | ||
templateUrl: 'plugins/CoreHome/angularjs/menudropdown/menudropdown.html?cb=' + piwik.cacheBuster | ||
}; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<div piwik-focus-anywhere-but-here="view.showItems=false" class="menuDropdown"> | ||
|
||
<span class="title" | ||
ng-click="view.showItems=!view.showItems" | ||
>{{ title }}</span> | ||
|
||
<div class="items" ng-show="view.showItems" ng-transclude></div> | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
|
||
.menuDropdown { | ||
display: inline-block; | ||
padding-right: 14px; | ||
color: @theme-color-link; | ||
|
||
.title { | ||
position: relative; | ||
cursor: pointer; | ||
|
||
&:after { | ||
content: ''; | ||
position: absolute; | ||
top: 5px; | ||
right: -15px; | ||
color: @theme-color-link; | ||
display: inline; | ||
content: " \25BC"; | ||
font-size: 1px; | ||
height: 0px; | ||
width: 0px; | ||
border-left: 4px solid transparent; | ||
border-right: 4px solid transparent; | ||
border-top: 5px solid #1E93D1; | ||
} | ||
} | ||
|
||
.items { | ||
z-index: 21; | ||
position: absolute; | ||
max-width: 200px; | ||
border: 1px solid @color-silver-l80 !important; | ||
background: @theme-color-background-base; | ||
max-height: 400px; | ||
overflow-y: auto; | ||
overflow-x: hidden; | ||
padding: 0 !important; | ||
|
||
.item { | ||
display: block; | ||
color: @theme-color-text !important; | ||
text-decoration: none !important; | ||
padding: 1px 25px 1px 3px !important; | ||
|
||
&:hover { | ||
background: @color-silver-l80; | ||
} | ||
|
||
&.active { | ||
background-color: @color-silver-l80; | ||
cursor: default; | ||
} | ||
|
||
&.disabled { | ||
opacity: 0.5; | ||
cursor: default; | ||
|
||
&:hover { | ||
background: @theme-color-background-base; | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.