From ca34921cdf8db4075906b3531390aa1b1ae9216c Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Thu, 16 Jul 2015 15:28:45 +0200 Subject: Implement file actions dropdown File actions now have two types "inline" and "dropdown". The default is "dropdown". The file actions will now be shown in a dropdown menu. --- apps/files/css/files.css | 45 ++++++++++++++++++++++++++++++++++++--------- 1 file changed, 36 insertions(+), 9 deletions(-) (limited to 'apps/files/css') diff --git a/apps/files/css/files.css b/apps/files/css/files.css index 7e3318a962b..e93993affa8 100644 --- a/apps/files/css/files.css +++ b/apps/files/css/files.css @@ -517,6 +517,9 @@ table td.filename .uploadtext { font-size: 11px; } +.busy .fileactions, .busy .action { + visibility: hidden; +} /* force show the loading icon, not only on hover */ #fileList .icon-loading-small { @@ -527,11 +530,6 @@ table td.filename .uploadtext { } #fileList img.move2trash { display:inline; margin:-8px 0; padding:16px 8px 16px 8px !important; float:right; } -#fileList a.action.delete { - position: absolute; - right: 15px; - padding: 17px 14px; -} #fileList .action.action-share-notification span, #fileList a.name { cursor: default !important; @@ -578,10 +576,6 @@ a.action>img { display:none; } -#fileList a.action[data-action="Rename"] { - padding: 16px 14px 17px !important; -} - .ie8 #fileList a.action img, #fileList tr:hover a.action, #fileList a.action.permanent, @@ -693,3 +687,36 @@ table.dragshadow td.size { .mask.transparent{ opacity: 0; } + +.fileActionsMenu { + /* FIXME: should be variable width, but default one is too big */ + width: 100px; +} + +.fileActionsMenu.hidden { + display: none; +} + +#fileList .fileActionsMenu .action { + display: block; + line-height: 30px; + padding-left: 5px; + color: #000; + padding: 0; +} + +.fileActionsMenu .action img, +.fileActionsMenu .action .no-icon { + display: inline-block; + width: 16px; + margin-right: 5px; +} + +.fileActionsMenu .action { + opacity: 0.5; +} + +.fileActionsMenu li:hover .action { + opacity: 1; +} + -- cgit v1.2.3