diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2017-11-08 12:47:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-08 12:47:58 +0100 |
commit | 497cd7fa4e629d6bb4a279e62b45debb3f47e6b2 (patch) | |
tree | d2ec41c92650520a8ed3d4f1b0ec51f71cea087f /apps | |
parent | 79c9439c50729ab2880c21876ed0a775a6b85a5d (diff) | |
parent | b44581e15d198e91c9bf947cd05afdbd559a7b30 (diff) | |
download | nextcloud-server-497cd7fa4e629d6bb4a279e62b45debb3f47e6b2.tar.gz nextcloud-server-497cd7fa4e629d6bb4a279e62b45debb3f47e6b2.zip |
Merge pull request #7064 from nextcloud/popover-fix
Fix popover layout
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/css/files.scss | 85 | ||||
-rw-r--r-- | apps/files_sharing/css/sharetabview.scss | 13 |
2 files changed, 46 insertions, 52 deletions
diff --git a/apps/files/css/files.scss b/apps/files/css/files.scss index a3beac152ce..d1405517f13 100644 --- a/apps/files/css/files.scss +++ b/apps/files/css/files.scss @@ -547,46 +547,49 @@ a.action > img { margin-bottom: -1px; } -#fileList a.action { - display: inline; - padding: 17px 8px; - line-height: 50px; - opacity: 0; -} -#fileList a.action.action-share { - padding: 17px 14px; -} -#fileList a.action.action-share .avatar { - display: inline-block; - vertical-align: middle; -} - -#fileList a.action.action-menu { - padding-top: 17px; - padding-bottom: 17px; - padding-left: 14px; - padding-right: 14px; -} - -#fileList a.action, -#fileList a.action.no-permission:hover, -#fileList a.action.no-permission:focus, -/* also enforce the low opacity for disabled links that are hovered/focused */ -#fileList a.action.disabled:hover, -#fileList a.action.disabled:focus, -#fileList a.action.disabled img { - opacity: .3; -} - -#fileList a.action.disabled.action-download, -#fileList a.action.disabled.action-download:hover, -#fileList a.action.disabled.action-download:focus, -#fileList a.action:hover, -#fileList a.action:focus, -#fileList .fileActionsMenu a.action, -/* show share action of shared items darker to distinguish from non-shared */ -#fileList a.action.action-share.shared-style { - opacity: .7; +#fileList td a { + a.action { + display: inline; + padding: 17px 8px; + line-height: 50px; + opacity: .3; + &.action-share { + padding: 17px 14px; + .avatar { + display: inline-block; + vertical-align: middle; + } + } + &.action-menu { + padding-top: 17px; + padding-bottom: 17px; + padding-left: 14px; + padding-right: 14px; + } + &.no-permission { + &:hover, &:focus { + opacity: .3; + } + } + &.disabled { + &:hover, &:focus, + img { + opacity: .3; + } + &.action-download { + opacity: .7; + &:hover, &:focus { + opacity: .7; + } + } + } + &:hover, &:focus { + opacity: .7; + } + } + .fileActionsMenu a.action, a.action.action-share.shared-style { + opacity: .7; + } } // Ellipsize long sharer names @@ -739,7 +742,7 @@ table.dragshadow td.size { .canDrop, #filestable tbody tr.canDrop { - background-color: rgba(255, 255, 140, 1); + background-color: rgba(255, 255, 140, 1); } diff --git a/apps/files_sharing/css/sharetabview.scss b/apps/files_sharing/css/sharetabview.scss index 880226e7d14..4d07e547e86 100644 --- a/apps/files_sharing/css/sharetabview.scss +++ b/apps/files_sharing/css/sharetabview.scss @@ -79,24 +79,16 @@ align-items: center; } -#shareWithList .unshare img, #shareWithList .showCruds img { +#shareWithList .unshare img { vertical-align: text-bottom; /* properly align icons */ } -#shareWithList .sharingOptionsGroup .icon-more { +#shareWithList .sharingOptionsGroup > a .icon { padding: 7px; vertical-align: middle; opacity: .5; } -#shareWithList .unshare { - padding: 1px 6px; - vertical-align: text-bottom; -} -#shareWithList .unshare .icon { - vertical-align: text-top; -} - #shareWithList .sharingOptionsGroup .popovermenu:after { right: 3px; } @@ -122,7 +114,6 @@ .shareTabView .icon-loading-small { display: inline-block; z-index: 1; - margin-right: 4px; vertical-align: text-top; } |