Skip to content

Commit

Permalink
refs matomo-org#4987 some bugfixes especially for small windows, fixe…
Browse files Browse the repository at this point in the history
…d a test, enabled plugin
  • Loading branch information
tsteur committed May 1, 2014
1 parent fa94d28 commit e4342df
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 5 deletions.
8 changes: 8 additions & 0 deletions LEGALNOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,14 @@ THIRD-PARTY COMPONENTS AND LIBRARIES
Link: https://github.com/symfony/Console
License: MIT

Name: AngularJS
Link: https://github.com/angular/angular.js
License: MIT

Name: Mousetrap
Link: https://github.com/ccampbell/mousetrap
License: Apache 2.0


THIRD-PARTY CONTENT

Expand Down
1 change: 1 addition & 0 deletions config/global.ini.php
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,7 @@
Plugins[] = Insights

Plugins[] = Morpheus
Plugins[] = ZenMode

[PluginsInstalled]
PluginsInstalled[] = Login
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion plugins/Morpheus/stylesheets/theme.less
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ table.dataTable {
padding-bottom: 12px;
border-bottom: 1px solid @silver-85;
&.columnSorted {
background: @silver-95 !important;
background: @theme-color-background-base !important;
.sortIcon {
margin-top: -1px;
}
Expand Down
6 changes: 6 additions & 0 deletions plugins/MultiSites/angularjs/dashboard/dashboard.less
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,14 @@
height: 10px;
}

th:first-child {
text-align:left;
}

th {
cursor: pointer;
border-left: 0px;
text-align: center;
}

.site_search input {
Expand Down
1 change: 0 additions & 1 deletion plugins/ZenMode/ZenMode.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ public function getClientSideTranslationKeys(&$translations)

public function getJsFiles(&$jsFiles)
{
$jsFiles[] = "plugins/ZenMode/javascripts/mousetrap.min.js";
$jsFiles[] = "plugins/ZenMode/javascripts/zen-mode.js";
$jsFiles[] = "plugins/ZenMode/angularjs/quick-access/quick-access-directive.js";
$jsFiles[] = "plugins/ZenMode/angularjs/zen-mode/zen-mode-switcher-directive.js";
Expand Down
3 changes: 3 additions & 0 deletions plugins/ZenMode/angularjs/quick-access/quick-access.less
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@
.quick-access-category:hover {
background: none !important;
}
.no-result {
padding-left: 27px;
}
}
14 changes: 11 additions & 3 deletions plugins/ZenMode/javascripts/zen-mode.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,18 +98,26 @@ $(document).ready(function () {

$('#Searchmenu').off('keydown focus', '.quick-access input', showQuickAccessMenu);
$('#Searchmenu').off('blur', '.quick-access input', hideQuickAccessMenu);
menu.prototype.adaptSubMenuHeight();
}

function overMainLI () {
var $this = $(this);
var position = $this.position();
var width = $this.width();

$this.find('ul').css({left: position.left + 'px', display: 'block', minWidth: width+'px'});
var height = $this.height();

$this.find('ul').css({
left: position.left + 'px',
display: 'block',
minWidth: width + 'px',
position: 'absolute',
top: (position.top + height) + 'px'
});
}

function outMainLI () {
$(this).find('ul').css({left: '', display: '', minWidth: ''});
$(this).find('ul').css({left: '', display: '', minWidth: '', position: '', top: ''});
}

function resetSubmenu()
Expand Down

0 comments on commit e4342df

Please sign in to comment.