diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-08-26 16:28:40 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-08-26 16:28:40 +0200 |
commit | 062fd37f7425d803c270878d0e2c7d89d50518f7 (patch) | |
tree | 75d89ec6fbe770ca208257e1aabd6a89f7fb03db /core | |
parent | 2d0d79296b1b90e96a6042e8a29a49e1802b917d (diff) | |
parent | 202af1e3229278abde5dd4597917ff3c390d5f6f (diff) | |
download | nextcloud-server-062fd37f7425d803c270878d0e2c7d89d50518f7.tar.gz nextcloud-server-062fd37f7425d803c270878d0e2c7d89d50518f7.zip |
Merge pull request #18577 from owncloud/action-details
file action detail style fixes
Diffstat (limited to 'core')
-rw-r--r-- | core/css/apps.css | 39 | ||||
-rw-r--r-- | core/js/share.js | 4 | ||||
-rw-r--r-- | core/js/tests/specs/shareSpec.js | 4 |
3 files changed, 23 insertions, 24 deletions
diff --git a/core/css/apps.css b/core/css/apps.css index 620c3013829..17595479ae2 100644 --- a/core/css/apps.css +++ b/core/css/apps.css @@ -292,6 +292,7 @@ list-style-type: none; } +/* menu bubble / popover */ .bubble, #app-navigation .app-navigation-entry-menu { position: absolute; @@ -302,27 +303,15 @@ z-index: 110; margin: -5px 14px 5px 10px; right: 0; - border: 1px solid #bbb; -webkit-filter: drop-shadow(0 0 5px rgba(150, 150, 150, 0.75)); -moz-filter: drop-shadow(0 0 5px rgba(150, 150, 150, 0.75)); -ms-filter: drop-shadow(0 0 5px rgba(150, 150, 150, 0.75)); -o-filter: drop-shadow(0 0 5px rgba(150, 150, 150, 0.75)); filter: drop-shadow(0 0 5px rgba(150, 150, 150, 0.75)); } - -#app-navigation .app-navigation-entry-menu { - display: none; -} - -#app-navigation .app-navigation-entry-menu.open { - display: block; -} - /* miraculous border arrow stuff */ .bubble:after, -.bubble:before, -#app-navigation .app-navigation-entry-menu:after, -#app-navigation .app-navigation-entry-menu:before { +#app-navigation .app-navigation-entry-menu:after { bottom: 100%; right: 0; /* change this to adjust the arrow position */ border: solid transparent; @@ -332,7 +321,6 @@ position: absolute; pointer-events: none; } - .bubble:after, #app-navigation .app-navigation-entry-menu:after { border-color: rgba(238, 238, 238, 0); @@ -340,13 +328,24 @@ border-width: 10px; margin-left: -10px; } +.bubble .action { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)" !important; + filter: alpha(opacity=50) !important; + opacity: .5 !important; +} +.bubble .action:hover, +.bubble .action:focus { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)" !important; + filter: alpha(opacity=100) !important; + opacity: 1 !important; +} -.bubble:before, -#app-navigation .app-navigation-entry-menu:before { - border-color: rgba(187, 187, 187, 0); - border-bottom-color: #bbb; - border-width: 11px; - margin-left: -11px; +#app-navigation .app-navigation-entry-menu { + display: none; +} + +#app-navigation .app-navigation-entry-menu.open { + display: block; } /* list of options for an entry */ diff --git a/core/js/share.js b/core/js/share.js index 7e0d0b7a2d3..cd4a614e9d1 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -127,7 +127,7 @@ OC.Share={ if (img.attr('src') !== OC.imagePath('core', 'actions/public')) { img.attr('src', image); $(actions[i]).addClass('permanent'); - $(actions[i]).html(' <span>'+t('core', 'Shared')+'</span>').prepend(img); + $(actions[i]).html('<span> '+t('core', 'Shared')+'</span>').prepend(img); } } for(i = 0; i < files.length; i++) { @@ -276,7 +276,7 @@ OC.Share={ else if (recipients) { message = t('core', 'Shared with {recipients}', {recipients: this._formatShareList(recipients.split(", ")).join(", ")}, 0, {escape: false}); } - action.html(' <span>' + message + '</span>').prepend(img); + action.html('<span> ' + message + '</span>').prepend(img); if (owner || recipients) { action.find('.remoteAddress').tipsy({gravity: 's'}); } diff --git a/core/js/tests/specs/shareSpec.js b/core/js/tests/specs/shareSpec.js index 3dc25134f59..5a59a117d77 100644 --- a/core/js/tests/specs/shareSpec.js +++ b/core/js/tests/specs/shareSpec.js @@ -1132,7 +1132,7 @@ describe('OC.Share tests', function() { OC.Share.markFileAsShared($file); $action = $file.find('.action-share>span'); - expect($action.text()).toEqual(output); + expect($action.text().trim()).toEqual(output); if (_.isString(title)) { expect($action.find('.remoteAddress').attr('title')).toEqual(title); } else { @@ -1236,7 +1236,7 @@ describe('OC.Share tests', function() { OC.Share.markFileAsShared($file, true); $action = $file.find('.action-share>span'); - expect($action.text()).toEqual(output); + expect($action.text().trim()).toEqual(output); if (_.isString(title)) { expect($action.find('.remoteAddress').attr('title')).toEqual(title); } else if (_.isArray(title)) { |