2019-11-18 19:14:45 +03:00
|
|
|
/**
|
|
|
|
* Copyright (c) 2011, Jan-Christoph Borchardt, http://jancborchardt.net
|
|
|
|
* @copyright Copyright (c) 2019, Fabian Dreßler <nudelsalat@clouz.de>
|
|
|
|
*
|
|
|
|
* This file is licensed under the Affero General Public License version 3 or later.
|
2019-12-18 17:55:56 +03:00
|
|
|
* See the COPYING-README file.
|
2019-11-18 19:14:45 +03:00
|
|
|
*/
|
2011-08-10 22:48:56 +04:00
|
|
|
|
2016-04-12 18:10:09 +03:00
|
|
|
/* SETTINGS */
|
|
|
|
#files-setting-showhidden {
|
|
|
|
padding-bottom: 8px;
|
|
|
|
}
|
|
|
|
|
2011-03-03 01:06:23 +03:00
|
|
|
/* FILE MENU */
|
2018-10-31 13:20:02 +03:00
|
|
|
.actions {
|
|
|
|
padding: 5px;
|
|
|
|
height: 100%;
|
|
|
|
display: inline-block;
|
|
|
|
float: left;
|
|
|
|
}
|
2012-12-06 19:37:23 +04:00
|
|
|
.actions input, .actions button, .actions .button { margin:0; float:left; }
|
2013-05-13 21:42:05 +04:00
|
|
|
.actions .button a { color: #555; }
|
2014-11-06 18:22:57 +03:00
|
|
|
.actions .button a:hover,
|
|
|
|
.actions .button a:focus,
|
|
|
|
.actions .button a:active {
|
|
|
|
color: #333;
|
|
|
|
}
|
2013-10-04 18:08:34 +04:00
|
|
|
|
2015-01-28 20:24:12 +03:00
|
|
|
.actions.creatable {
|
|
|
|
position: relative;
|
2017-12-13 13:51:54 +03:00
|
|
|
display: flex;
|
|
|
|
flex: 1 1;
|
|
|
|
.button:not(:last-child) {
|
|
|
|
margin-right: 3px;
|
|
|
|
}
|
2015-01-28 20:24:12 +03:00
|
|
|
}
|
|
|
|
|
2018-02-16 14:00:07 +03:00
|
|
|
.actions.hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2013-10-04 09:41:16 +04:00
|
|
|
#trash {
|
2013-11-29 00:36:43 +04:00
|
|
|
margin-right: 8px;
|
2013-10-04 09:41:16 +04:00
|
|
|
float: right;
|
2013-10-07 20:15:23 +04:00
|
|
|
z-index: 1010;
|
|
|
|
padding: 10px;
|
2013-11-18 18:06:38 +04:00
|
|
|
font-weight: normal;
|
2013-10-04 09:41:16 +04:00
|
|
|
}
|
2011-07-28 03:26:26 +04:00
|
|
|
|
2018-03-05 19:37:05 +03:00
|
|
|
.newFileMenu .error,
|
|
|
|
.newFileMenu .error + .icon-confirm,
|
|
|
|
#fileList .error {
|
2018-06-03 22:06:36 +03:00
|
|
|
color: var(--color-error);
|
|
|
|
border-color: var(--color-error);
|
2013-10-22 20:11:03 +04:00
|
|
|
}
|
2011-08-11 22:59:17 +04:00
|
|
|
|
2011-03-03 01:06:23 +03:00
|
|
|
/* FILE TABLE */
|
2014-05-12 21:54:20 +04:00
|
|
|
#filestable {
|
2013-10-04 09:41:16 +04:00
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
2018-10-01 13:33:13 +03:00
|
|
|
min-width: 250px;
|
2019-04-30 10:20:00 +03:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2018-11-06 11:06:24 +03:00
|
|
|
// hide table if emptycontent is not hidden
|
|
|
|
#emptycontent:not(.hidden) ~ & {
|
|
|
|
display: none;
|
|
|
|
}
|
2020-01-17 02:24:34 +03:00
|
|
|
// floating header
|
|
|
|
thead {
|
|
|
|
position: -webkit-sticky;
|
|
|
|
position: sticky;
|
|
|
|
@include position('sticky');
|
|
|
|
// header + breadcrumbs
|
|
|
|
top: $header-height;
|
|
|
|
// under breadcrumbs, over file list
|
|
|
|
z-index: 60;
|
|
|
|
display: block;
|
|
|
|
background-color: var(--color-main-background-translucent);
|
|
|
|
}
|
2013-10-04 09:41:16 +04:00
|
|
|
}
|
2014-05-12 21:54:20 +04:00
|
|
|
|
2019-10-26 17:44:33 +03:00
|
|
|
#filestable.hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2014-05-22 13:16:42 +04:00
|
|
|
/* fit app list view heights */
|
2019-05-23 18:03:04 +03:00
|
|
|
.app-files #app-content > .viewcontainer {
|
2016-01-29 12:07:15 +03:00
|
|
|
min-height: 0%;
|
2019-05-23 18:03:04 +03:00
|
|
|
width: 100%;
|
2014-05-22 13:16:42 +04:00
|
|
|
}
|
|
|
|
|
2015-07-16 13:21:24 +03:00
|
|
|
.app-files #app-content {
|
2016-06-14 00:00:56 +03:00
|
|
|
transition: background-color 0.3s ease;
|
2018-10-02 08:55:17 +03:00
|
|
|
// force the width to be the full width to not go bigger than the screen
|
|
|
|
// flex will grow for the mobile view if necessary
|
|
|
|
width: calc(100% - 300px);
|
2015-07-16 13:21:24 +03:00
|
|
|
}
|
|
|
|
|
2016-06-14 00:00:56 +03:00
|
|
|
.file-drag, .file-drag #filestable tbody tr, .file-drag #filestable tbody tr:hover {
|
2016-06-15 14:11:25 +03:00
|
|
|
transition: background-color 0.3s ease!important;
|
2018-07-24 13:08:31 +03:00
|
|
|
background-color: rgb(179, 230, 255) !important;
|
2016-06-14 00:00:56 +03:00
|
|
|
}
|
|
|
|
|
2017-11-08 21:03:32 +03:00
|
|
|
.app-files #app-content.dir-drop {
|
2018-06-03 22:06:36 +03:00
|
|
|
background-color: var(--color-main-background) !important;
|
2017-11-08 21:03:32 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.file-drag #filestable tbody tr, .file-drag #filestable tbody tr:hover{
|
|
|
|
background-color: transparent !important;
|
2016-06-15 12:28:53 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.app-files #app-content.dir-drop #filestable tbody tr.dropping-to-dir{
|
2017-11-08 21:03:32 +03:00
|
|
|
background-color: rgb(179, 230, 255) !important;
|
2016-06-15 02:03:59 +03:00
|
|
|
}
|
|
|
|
|
2015-04-08 20:25:28 +03:00
|
|
|
/* icons for sidebar */
|
|
|
|
.nav-icon-files {
|
2018-07-04 12:19:45 +03:00
|
|
|
@include icon-color('folder', 'files', $color-black);
|
2015-04-08 20:25:28 +03:00
|
|
|
}
|
2016-07-11 11:54:04 +03:00
|
|
|
.nav-icon-recent {
|
2018-07-04 12:19:45 +03:00
|
|
|
@include icon-color('recent', 'files', $color-black);
|
2016-07-11 11:54:04 +03:00
|
|
|
}
|
2015-04-08 20:25:28 +03:00
|
|
|
.nav-icon-favorites {
|
2018-07-24 13:08:31 +03:00
|
|
|
@include icon-color('star-dark', 'actions', $color-black, 2, true);
|
2015-04-08 20:25:28 +03:00
|
|
|
}
|
|
|
|
.nav-icon-sharingin,
|
2018-07-20 12:22:24 +03:00
|
|
|
.nav-icon-sharingout,
|
2020-01-07 14:57:57 +03:00
|
|
|
.nav-icon-pendingshares,
|
2018-07-20 12:22:24 +03:00
|
|
|
.nav-icon-shareoverview {
|
2018-07-04 12:19:45 +03:00
|
|
|
@include icon-color('share', 'files', $color-black);
|
2015-04-08 20:25:28 +03:00
|
|
|
}
|
|
|
|
.nav-icon-sharinglinks {
|
2018-07-04 12:19:45 +03:00
|
|
|
@include icon-color('public', 'files', $color-black);
|
2015-04-08 20:25:28 +03:00
|
|
|
}
|
|
|
|
.nav-icon-extstoragemounts {
|
2018-07-04 12:19:45 +03:00
|
|
|
@include icon-color('external', 'files', $color-black);
|
2015-04-08 20:25:28 +03:00
|
|
|
}
|
|
|
|
.nav-icon-trashbin {
|
2018-07-04 12:19:45 +03:00
|
|
|
@include icon-color('delete', 'files', $color-black);
|
2015-04-08 20:25:28 +03:00
|
|
|
}
|
2018-08-29 12:53:43 +03:00
|
|
|
.nav-icon-trashbin-starred {
|
|
|
|
@include icon-color('delete', 'files', #ff0000);
|
|
|
|
}
|
2018-06-20 20:14:50 +03:00
|
|
|
.nav-icon-deletedshares {
|
2018-07-09 12:43:06 +03:00
|
|
|
@include icon-color('unshare', 'files', $color-black);
|
2018-06-20 20:14:50 +03:00
|
|
|
}
|
2018-12-07 20:33:05 +03:00
|
|
|
.nav-icon-favorites-starred {
|
|
|
|
@include icon-color('star-dark', 'actions', $color-yellow, 2, true);
|
|
|
|
}
|
2015-04-08 20:25:28 +03:00
|
|
|
|
2015-08-27 14:22:58 +03:00
|
|
|
#app-navigation .nav-files a.nav-icon-files {
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
/* button needs overrides due to navigation styles */
|
|
|
|
#app-navigation .nav-files a.new {
|
|
|
|
width: 40px;
|
|
|
|
height: 32px;
|
|
|
|
padding: 0 10px;
|
|
|
|
margin: 0;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
#app-navigation .nav-files a.new.hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
#app-navigation .nav-files a.new.disabled {
|
|
|
|
opacity: 0.3;
|
|
|
|
}
|
|
|
|
|
2015-08-26 18:28:40 +03:00
|
|
|
#filestable tbody tr {
|
2016-06-14 00:00:56 +03:00
|
|
|
transition: background-color 0.3s ease;
|
2018-10-01 22:23:10 +03:00
|
|
|
height: 51px;
|
2015-08-26 18:28:40 +03:00
|
|
|
}
|
2014-11-06 18:22:57 +03:00
|
|
|
#filestable tbody tr:hover,
|
|
|
|
#filestable tbody tr:focus,
|
2014-12-17 17:43:29 +03:00
|
|
|
#filestable tbody .name:focus,
|
2015-08-26 18:28:40 +03:00
|
|
|
#filestable tbody tr:active,
|
2015-07-15 18:35:35 +03:00
|
|
|
#filestable tbody tr.highlighted,
|
2015-08-25 13:05:04 +03:00
|
|
|
#filestable tbody tr.highlighted .name:focus,
|
2015-08-26 18:28:40 +03:00
|
|
|
#filestable tbody tr.selected,
|
|
|
|
#filestable tbody tr.searchresult,
|
2018-11-15 14:14:15 +03:00
|
|
|
#filestable tbody tr:hover .filename form,
|
2015-08-26 18:28:40 +03:00
|
|
|
table tr.mouseOver td {
|
2016-06-14 00:00:56 +03:00
|
|
|
transition: background-color 0.3s ease;
|
2018-06-03 22:06:36 +03:00
|
|
|
background-color: var(--color-background-dark);
|
2013-08-01 00:24:52 +04:00
|
|
|
}
|
2018-06-03 22:06:36 +03:00
|
|
|
tbody a { color: var(--color-main-text); }
|
2014-02-13 13:39:38 +04:00
|
|
|
|
2016-10-19 12:33:25 +03:00
|
|
|
span.conflict-path, span.extension, span.uploading, td.date {
|
2018-06-03 22:06:36 +03:00
|
|
|
color: var(--color-text-maxcontrast);
|
2014-02-13 13:39:38 +04:00
|
|
|
}
|
2016-10-19 12:33:25 +03:00
|
|
|
span.conflict-path, span.extension {
|
2014-02-13 13:39:38 +04:00
|
|
|
-webkit-transition: opacity 300ms;
|
|
|
|
-moz-transition: opacity 300ms;
|
|
|
|
-o-transition: opacity 300ms;
|
|
|
|
transition: opacity 300ms;
|
2014-06-08 13:36:01 +04:00
|
|
|
vertical-align: top;
|
2014-02-13 13:39:38 +04:00
|
|
|
}
|
2016-10-19 12:33:25 +03:00
|
|
|
tr:hover span.conflict-path,
|
|
|
|
tr:focus span.conflict-path,
|
2014-11-06 18:22:57 +03:00
|
|
|
tr:hover span.extension,
|
|
|
|
tr:focus span.extension {
|
2014-02-13 13:39:38 +04:00
|
|
|
opacity: 1;
|
2018-06-03 22:06:36 +03:00
|
|
|
color: var(--color-text-maxcontrast);
|
2014-02-13 13:39:38 +04:00
|
|
|
}
|
|
|
|
|
2014-05-26 13:52:42 +04:00
|
|
|
table th, table th a {
|
2018-06-03 22:06:36 +03:00
|
|
|
color: var(--color-text-maxcontrast);
|
2014-05-26 13:52:42 +04:00
|
|
|
}
|
|
|
|
table.multiselect th a {
|
2018-10-04 11:53:45 +03:00
|
|
|
color: var(--color-main-text);
|
2014-05-26 13:52:42 +04:00
|
|
|
}
|
2014-04-03 22:57:06 +04:00
|
|
|
table th .columntitle {
|
2018-06-02 18:15:19 +03:00
|
|
|
display: block;
|
2014-04-03 22:57:06 +04:00
|
|
|
padding: 15px;
|
|
|
|
height: 50px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
-moz-box-sizing: border-box;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
2018-06-02 18:15:19 +03:00
|
|
|
table.multiselect th .columntitle {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
2014-04-03 22:57:06 +04:00
|
|
|
table th .columntitle.name {
|
2019-02-21 15:55:46 +03:00
|
|
|
padding-left: 0;
|
2014-04-03 22:57:06 +04:00
|
|
|
margin-left: 50px;
|
|
|
|
}
|
2014-07-16 23:52:08 +04:00
|
|
|
|
2014-04-03 22:57:06 +04:00
|
|
|
table th .sort-indicator {
|
|
|
|
width: 10px;
|
|
|
|
height: 8px;
|
2014-10-01 17:21:28 +04:00
|
|
|
margin-left: 5px;
|
2014-04-03 22:57:06 +04:00
|
|
|
display: inline-block;
|
2014-10-01 17:21:28 +04:00
|
|
|
vertical-align: text-bottom;
|
|
|
|
opacity: .3;
|
|
|
|
}
|
2015-09-23 16:09:49 +03:00
|
|
|
.sort-indicator.hidden,
|
2015-09-29 15:38:29 +03:00
|
|
|
.multiselect .sort-indicator,
|
|
|
|
table.multiselect th:hover .sort-indicator.hidden,
|
|
|
|
table.multiselect th:focus .sort-indicator.hidden {
|
2014-10-01 17:21:28 +04:00
|
|
|
visibility: hidden;
|
2013-06-25 17:08:51 +04:00
|
|
|
}
|
2015-09-29 14:24:33 +03:00
|
|
|
.multiselect .sort, .multiselect .sort span {
|
|
|
|
cursor: default;
|
|
|
|
}
|
2014-11-06 18:22:57 +03:00
|
|
|
table th:hover .sort-indicator.hidden,
|
|
|
|
table th:focus .sort-indicator.hidden {
|
2014-07-16 23:52:08 +04:00
|
|
|
visibility: visible;
|
|
|
|
}
|
2014-10-01 17:21:28 +04:00
|
|
|
|
2015-08-25 15:14:53 +03:00
|
|
|
table th,
|
2013-06-25 17:08:51 +04:00
|
|
|
table td {
|
2018-06-03 22:06:36 +03:00
|
|
|
border-bottom: 1px solid var(--color-border);
|
2015-08-25 15:14:53 +03:00
|
|
|
text-align: left;
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
table td {
|
|
|
|
padding: 0 15px;
|
2013-06-25 17:08:51 +04:00
|
|
|
font-style: normal;
|
|
|
|
background-position: 8px center;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
}
|
2013-08-14 22:41:20 +04:00
|
|
|
table th#headerName {
|
|
|
|
position: relative;
|
2014-01-24 21:20:52 +04:00
|
|
|
width: 9999px; /* not really sure why this works better than 100% … table styling */
|
2013-08-14 22:41:20 +04:00
|
|
|
padding: 0;
|
|
|
|
}
|
2014-12-15 17:11:51 +03:00
|
|
|
|
2013-08-14 22:41:20 +04:00
|
|
|
#headerName-container {
|
|
|
|
position: relative;
|
|
|
|
height: 50px;
|
|
|
|
}
|
2014-12-15 17:11:51 +03:00
|
|
|
|
2013-08-14 22:41:20 +04:00
|
|
|
table th#headerSize, table td.filesize {
|
|
|
|
text-align: right;
|
|
|
|
}
|
2014-06-06 17:33:33 +04:00
|
|
|
table th#headerDate, table td.date,
|
|
|
|
table th.column-last, table td.column-last {
|
2013-08-14 22:41:20 +04:00
|
|
|
-moz-box-sizing: border-box;
|
|
|
|
box-sizing: border-box;
|
2013-06-25 17:08:51 +04:00
|
|
|
position: relative;
|
2014-02-03 20:23:30 +04:00
|
|
|
/* this can not be just width, both need to be set … table styling */
|
2015-12-01 15:45:30 +03:00
|
|
|
min-width: 130px;
|
|
|
|
max-width: 130px;
|
2013-06-25 17:08:51 +04:00
|
|
|
}
|
2012-12-13 22:44:55 +04:00
|
|
|
|
2020-01-17 02:24:34 +03:00
|
|
|
#app-content-files thead {
|
2018-06-14 07:06:03 +03:00
|
|
|
top: 94px;
|
2013-08-14 22:41:20 +04:00
|
|
|
}
|
2013-08-29 12:50:55 +04:00
|
|
|
|
2013-06-11 16:48:53 +04:00
|
|
|
table.multiselect thead th {
|
2019-04-18 18:37:44 +03:00
|
|
|
background-color: var(--color-main-background-translucent);
|
2013-06-11 16:48:53 +04:00
|
|
|
font-weight: bold;
|
|
|
|
}
|
2015-08-18 12:30:00 +03:00
|
|
|
|
|
|
|
#app-content.with-app-sidebar table.multiselect thead{
|
|
|
|
margin-right: 27%;
|
|
|
|
}
|
|
|
|
|
2013-08-14 22:41:20 +04:00
|
|
|
table.multiselect #headerName {
|
2020-01-17 02:24:34 +03:00
|
|
|
position: relative;
|
2014-01-24 21:20:52 +04:00
|
|
|
width: 9999px; /* when we use 100%, the styling breaks on mobile … table styling */
|
2013-08-14 22:41:20 +04:00
|
|
|
}
|
2015-04-21 16:38:34 +03:00
|
|
|
table.multiselect #modified {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
table td.selection,
|
|
|
|
table th.selection,
|
|
|
|
table td.fileaction {
|
|
|
|
width: 32px;
|
|
|
|
text-align: center;
|
|
|
|
}
|
2013-06-25 17:08:51 +04:00
|
|
|
table td.filename a.name {
|
2018-04-19 17:58:43 +03:00
|
|
|
display: flex;
|
2013-08-14 22:41:20 +04:00
|
|
|
position:relative; /* Firefox needs to explicitly have this default set … */
|
|
|
|
-moz-box-sizing: border-box;
|
2013-06-25 17:08:51 +04:00
|
|
|
box-sizing: border-box;
|
2013-08-14 22:41:20 +04:00
|
|
|
height: 50px;
|
2014-05-15 13:48:41 +04:00
|
|
|
line-height: 50px;
|
2013-08-14 22:41:20 +04:00
|
|
|
padding: 0;
|
2013-06-25 17:08:51 +04:00
|
|
|
}
|
2017-09-28 15:42:37 +03:00
|
|
|
table td.filename .thumbnail-wrapper {
|
2018-04-19 17:58:43 +03:00
|
|
|
/* we need this to make sure flex is working inside a table cell */
|
|
|
|
width: 0;
|
|
|
|
min-width: 50px;
|
|
|
|
max-width: 50px;
|
2017-09-28 15:42:37 +03:00
|
|
|
height: 50px;
|
|
|
|
}
|
|
|
|
table td.filename .thumbnail-wrapper.icon-loading-small {
|
2017-09-21 20:46:29 +03:00
|
|
|
&:after {
|
|
|
|
z-index: 10;
|
|
|
|
}
|
|
|
|
.thumbnail {
|
|
|
|
opacity: 0.2;
|
|
|
|
}
|
|
|
|
}
|
2014-12-11 19:36:14 +03:00
|
|
|
table td.filename .thumbnail {
|
|
|
|
display: inline-block;
|
|
|
|
width: 32px;
|
|
|
|
height: 32px;
|
2017-09-28 15:39:21 +03:00
|
|
|
background-size: 32px;
|
2017-09-21 20:46:29 +03:00
|
|
|
margin-left: 9px;
|
2014-12-11 19:36:14 +03:00
|
|
|
margin-top: 9px;
|
2018-10-31 02:01:58 +03:00
|
|
|
border-radius: var(--border-radius);
|
2014-12-11 19:36:14 +03:00
|
|
|
cursor: pointer;
|
2015-01-15 19:53:23 +03:00
|
|
|
position: absolute;
|
|
|
|
z-index: 4;
|
2014-12-11 19:36:14 +03:00
|
|
|
}
|
2019-03-14 18:36:55 +03:00
|
|
|
|
|
|
|
// Show slight border around previews for images, txt, etc.
|
|
|
|
table tr[data-has-preview='true'] .thumbnail {
|
|
|
|
border: 1px solid var(--color-border);
|
|
|
|
}
|
|
|
|
|
2013-08-17 12:46:03 +04:00
|
|
|
table td.filename input.filename {
|
2014-07-03 04:08:53 +04:00
|
|
|
width: 70%;
|
2015-01-16 19:02:08 +03:00
|
|
|
margin-left: 48px;
|
2013-08-17 12:46:03 +04:00
|
|
|
cursor: text;
|
|
|
|
}
|
2018-11-15 14:14:15 +03:00
|
|
|
table td.filename form {
|
|
|
|
margin-top: -40px;
|
|
|
|
position: relative;
|
|
|
|
top: -6px;
|
|
|
|
}
|
2015-01-09 15:01:30 +03:00
|
|
|
|
2014-01-16 12:53:39 +04:00
|
|
|
table td.filename a, table td.login, table td.logout, table td.download, table td.upload, table td.create, table td.delete { padding:3px 8px 8px 3px; }
|
2017-09-28 15:42:37 +03:00
|
|
|
table td.filename .nametext, .modified, .column-last>span:first-child { float:left; padding:15px 0; }
|
2013-08-14 22:41:20 +04:00
|
|
|
|
2014-06-06 17:33:33 +04:00
|
|
|
.modified, .column-last>span:first-child {
|
2013-08-14 22:41:20 +04:00
|
|
|
position: relative;
|
2014-02-03 20:23:30 +04:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2015-08-07 19:19:47 +03:00
|
|
|
width: 110px;
|
2013-06-25 17:08:51 +04:00
|
|
|
}
|
2013-08-14 22:41:20 +04:00
|
|
|
|
2012-12-05 14:17:41 +04:00
|
|
|
/* TODO fix usability bug (accidental file/folder selection) */
|
2018-04-19 17:58:43 +03:00
|
|
|
table {
|
2018-04-23 00:09:15 +03:00
|
|
|
td.filename {
|
|
|
|
max-width: 0;
|
|
|
|
.nametext {
|
|
|
|
width: 0;
|
|
|
|
flex-grow: 1;
|
|
|
|
display: flex;
|
|
|
|
padding: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
height: 100%;
|
|
|
|
z-index: 10;
|
|
|
|
padding-right: 20px;
|
|
|
|
}
|
2018-04-19 17:58:43 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.uploadtext {
|
|
|
|
position: absolute;
|
|
|
|
left: 55px;
|
|
|
|
}
|
2017-09-14 17:40:24 +03:00
|
|
|
}
|
2014-06-06 16:00:18 +04:00
|
|
|
|
2019-03-30 14:57:18 +03:00
|
|
|
.hide-hidden-files #filestable #fileList tr.hidden-file,
|
|
|
|
.hide-hidden-files #filestable #fileList tr.hidden-file.dragging {
|
2016-08-17 18:34:15 +03:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
#fileList tr.animate-opacity {
|
|
|
|
-webkit-transition:opacity 250ms;
|
|
|
|
-moz-transition:opacity 250ms;
|
|
|
|
-o-transition:opacity 250ms;
|
|
|
|
transition:opacity 250ms;
|
|
|
|
}
|
|
|
|
#fileList tr.dragging {
|
|
|
|
opacity: 0.2;
|
|
|
|
}
|
|
|
|
|
2014-06-07 22:24:21 +04:00
|
|
|
table td.filename .nametext .innernametext {
|
2014-06-06 16:00:18 +04:00
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
position: relative;
|
2015-01-16 23:36:35 +03:00
|
|
|
vertical-align: top;
|
2014-06-06 16:00:18 +04:00
|
|
|
}
|
2014-06-07 12:53:49 +04:00
|
|
|
|
2014-06-08 19:48:53 +04:00
|
|
|
/* for smaller resolutions - see mobile.css */
|
|
|
|
|
2014-06-30 16:00:43 +04:00
|
|
|
table td.filename .uploadtext {
|
|
|
|
font-weight: normal;
|
2014-07-30 08:38:46 +04:00
|
|
|
margin-left: 55px;
|
|
|
|
margin-top: 5px;
|
|
|
|
height: 20px;
|
|
|
|
padding: 10px 0;
|
2014-09-23 15:36:47 +04:00
|
|
|
font-size: 11px;
|
|
|
|
opacity: .5;
|
2014-06-30 16:00:43 +04:00
|
|
|
}
|
2013-02-14 13:40:23 +04:00
|
|
|
|
2017-09-29 02:36:10 +03:00
|
|
|
table td.selection {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
2013-02-14 13:40:23 +04:00
|
|
|
/* File checkboxes */
|
2017-09-29 02:36:10 +03:00
|
|
|
#fileList tr td.selection>.selectCheckBox + label:before {
|
2017-09-27 14:58:35 +03:00
|
|
|
opacity: 0.3;
|
2019-06-26 01:48:11 +03:00
|
|
|
margin-right: 0;
|
2013-08-14 22:41:20 +04:00
|
|
|
}
|
2015-09-15 21:26:53 +03:00
|
|
|
|
2017-09-27 14:58:35 +03:00
|
|
|
/* Show checkbox with full opacity when hovering, checked, or selected */
|
2017-09-29 02:36:10 +03:00
|
|
|
#fileList tr:hover td.selection>.selectCheckBox + label:before,
|
|
|
|
#fileList tr:focus td.selection>.selectCheckBox + label:before,
|
|
|
|
#fileList tr td.selection>.selectCheckBox:checked + label:before,
|
|
|
|
#fileList tr.selected td.selection>.selectCheckBox + label:before {
|
2013-09-04 23:32:45 +04:00
|
|
|
opacity: 1;
|
2015-09-30 18:38:35 +03:00
|
|
|
}
|
2013-09-04 23:32:45 +04:00
|
|
|
|
2019-01-13 19:15:43 +03:00
|
|
|
/* Show checkbox with half opacity when selecting range */
|
|
|
|
#fileList tr.halfselected td.selection>.selectCheckBox + label:before {
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
|
2013-08-14 22:41:20 +04:00
|
|
|
/* Use label to have bigger clickable size for checkbox */
|
2017-09-29 02:36:10 +03:00
|
|
|
#fileList tr td.selection>.selectCheckBox + label,
|
2014-05-12 21:54:20 +04:00
|
|
|
.select-all + label {
|
2017-09-29 02:36:10 +03:00
|
|
|
padding: 16px;
|
2014-12-15 17:11:51 +03:00
|
|
|
}
|
2013-08-14 22:41:20 +04:00
|
|
|
|
2012-12-20 13:53:50 +04:00
|
|
|
#fileList tr td.filename {
|
2014-05-16 19:00:39 +04:00
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
|
|
|
padding-left: 0;
|
2016-03-23 14:31:58 +03:00
|
|
|
padding-right:0;
|
2012-12-20 13:53:50 +04:00
|
|
|
-webkit-transition:background-image 500ms; -moz-transition:background-image 500ms; -o-transition:background-image 500ms; transition:background-image 500ms;
|
|
|
|
}
|
2013-08-14 22:41:20 +04:00
|
|
|
|
2013-10-02 20:10:34 +04:00
|
|
|
#fileList tr td.filename a.name label {
|
2013-10-02 19:43:07 +04:00
|
|
|
position: absolute;
|
2014-01-15 17:45:10 +04:00
|
|
|
width: 80%;
|
2013-10-02 19:43:07 +04:00
|
|
|
height: 50px;
|
|
|
|
}
|
|
|
|
|
2014-11-18 20:53:45 +03:00
|
|
|
#fileList tr td.filename .favorite {
|
|
|
|
display: inline-block;
|
|
|
|
float: left;
|
|
|
|
}
|
2017-09-27 13:39:59 +03:00
|
|
|
#fileList tr td.filename .favorite-mark {
|
2017-09-28 15:42:37 +03:00
|
|
|
position: absolute;
|
2014-11-18 20:53:45 +03:00
|
|
|
display: block;
|
2017-09-28 15:42:37 +03:00
|
|
|
top: -6px;
|
|
|
|
right: -6px;
|
2014-11-18 20:53:45 +03:00
|
|
|
line-height: 100%;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
2011-07-29 02:26:23 +04:00
|
|
|
#uploadsize-message,#delete-confirm { display:none; }
|
2012-12-20 14:14:27 +04:00
|
|
|
|
|
|
|
/* File actions */
|
|
|
|
.fileactions {
|
2017-11-03 12:41:32 +03:00
|
|
|
z-index: 50;
|
2012-12-20 14:14:27 +04:00
|
|
|
}
|
2013-08-14 22:41:20 +04:00
|
|
|
|
2015-07-16 16:28:45 +03:00
|
|
|
.busy .fileactions, .busy .action {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
2014-09-22 20:24:52 +04:00
|
|
|
|
2015-08-07 18:58:37 +03:00
|
|
|
/* fix position of bubble pointer for Files app */
|
|
|
|
.bubble,
|
|
|
|
#app-navigation .app-navigation-entry-menu {
|
|
|
|
border-top-right-radius: 3px;
|
2016-11-25 17:38:49 +03:00
|
|
|
min-width: 100px;
|
2015-08-07 18:58:37 +03:00
|
|
|
}
|
|
|
|
|
2014-09-22 20:24:52 +04:00
|
|
|
/* force show the loading icon, not only on hover */
|
|
|
|
#fileList .icon-loading-small {
|
|
|
|
opacity: 1 !important;
|
|
|
|
display: inline !important;
|
|
|
|
}
|
|
|
|
|
2014-11-18 20:53:45 +03:00
|
|
|
#fileList .action.action-share-notification span, #fileList a.name {
|
2014-05-13 17:22:18 +04:00
|
|
|
cursor: default !important;
|
|
|
|
}
|
|
|
|
|
2015-08-07 19:26:07 +03:00
|
|
|
a.action > img {
|
2015-11-19 19:50:20 +03:00
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
2015-08-07 19:26:07 +03:00
|
|
|
vertical-align: text-bottom;
|
2014-05-16 19:00:39 +04:00
|
|
|
}
|
2013-08-14 22:41:20 +04:00
|
|
|
|
|
|
|
/* Actions for selected files */
|
|
|
|
.selectedActions {
|
2018-05-28 04:49:01 +03:00
|
|
|
position: relative;
|
2018-06-14 07:06:03 +03:00
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
2013-08-14 22:41:20 +04:00
|
|
|
}
|
2018-06-16 00:05:29 +03:00
|
|
|
.selectedActions.hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
2013-08-14 22:41:20 +04:00
|
|
|
.selectedActions a {
|
|
|
|
display: inline;
|
2014-05-16 19:00:39 +04:00
|
|
|
line-height: 50px;
|
2018-06-14 07:06:03 +03:00
|
|
|
padding: 16px 5px;
|
2014-05-16 19:00:39 +04:00
|
|
|
}
|
2018-06-02 18:15:19 +03:00
|
|
|
|
2014-05-12 21:54:20 +04:00
|
|
|
.selectedActions a.hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
2013-08-14 22:41:20 +04:00
|
|
|
.selectedActions a img {
|
|
|
|
position:relative;
|
2014-05-16 19:00:39 +04:00
|
|
|
vertical-align: text-bottom;
|
|
|
|
margin-bottom: -1px;
|
2013-08-14 22:41:20 +04:00
|
|
|
}
|
|
|
|
|
2018-06-15 18:13:40 +03:00
|
|
|
.selectedActions .actions-selected .icon-more {
|
|
|
|
margin-top: -3px;
|
|
|
|
}
|
|
|
|
|
2017-11-07 18:32:20 +03:00
|
|
|
#fileList td a {
|
|
|
|
a.action {
|
|
|
|
display: inline;
|
|
|
|
padding: 17px 8px;
|
|
|
|
line-height: 50px;
|
|
|
|
opacity: .3;
|
|
|
|
&.action-share {
|
|
|
|
padding: 17px 14px;
|
2019-06-14 15:16:25 +03:00
|
|
|
&.permanent:not(.shared-style) .icon-shared + span {
|
|
|
|
/* hide text of the share action */
|
|
|
|
/* .hidden-visually for accessbility */
|
|
|
|
position: absolute;
|
|
|
|
left:-10000px;
|
|
|
|
top: auto;
|
|
|
|
width: 1px;
|
|
|
|
height: 1px;
|
|
|
|
overflow: hidden;
|
2019-03-14 20:01:44 +03:00
|
|
|
}
|
2017-11-07 18:32:20 +03:00
|
|
|
.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;
|
|
|
|
}
|
2013-02-21 19:52:18 +04:00
|
|
|
}
|
2017-03-26 23:09:22 +03:00
|
|
|
|
2017-09-14 17:38:31 +03:00
|
|
|
// Ellipsize long sharer names
|
|
|
|
#fileList .action.action-share.permanent.shared-style span:not(.icon) {
|
|
|
|
display: inline-block;
|
|
|
|
max-width: 70px;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2017-09-21 15:04:23 +03:00
|
|
|
vertical-align: middle;
|
|
|
|
margin-left: 6px;
|
2017-09-14 17:38:31 +03:00
|
|
|
}
|
|
|
|
|
2017-11-01 13:41:22 +03:00
|
|
|
#fileList .remoteAddress .userDomain {
|
|
|
|
margin-left: 0 !important;
|
|
|
|
}
|
|
|
|
|
2017-09-27 13:39:59 +03:00
|
|
|
#fileList .favorite-mark.permanent {
|
2017-08-25 15:25:21 +03:00
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
2017-04-19 05:30:56 +03:00
|
|
|
#fileList .fileActionsMenu a.action:hover,
|
|
|
|
#fileList .fileActionsMenu a.action:focus,
|
|
|
|
/* show share action of shared items darker to distinguish from non-shared */
|
|
|
|
#fileList a.action.action-share.shared-style:hover,
|
|
|
|
#fileList a.action.action-share.shared-style:focus {
|
|
|
|
opacity: 1;
|
2017-03-26 23:09:22 +03:00
|
|
|
}
|
|
|
|
|
2015-06-26 11:26:01 +03:00
|
|
|
#fileList tr a.action.disabled {
|
|
|
|
background: none;
|
|
|
|
}
|
|
|
|
|
2015-06-29 12:24:18 +03:00
|
|
|
#selectedActionsList a.download.disabled,
|
|
|
|
#fileList tr a.action.action-download.disabled {
|
|
|
|
color: #000000;
|
|
|
|
}
|
|
|
|
|
2015-06-26 11:26:01 +03:00
|
|
|
#fileList tr:hover a.action.disabled:hover * {
|
|
|
|
cursor: default;
|
|
|
|
}
|
2011-11-10 19:40:09 +04:00
|
|
|
|
2013-07-02 06:28:52 +04:00
|
|
|
.summary {
|
2013-07-03 21:50:03 +04:00
|
|
|
opacity: .3;
|
2015-04-22 14:58:22 +03:00
|
|
|
/* add whitespace to bottom of files list to correctly show dropdowns */
|
2018-10-13 00:07:52 +03:00
|
|
|
height: 250px;
|
|
|
|
}
|
2019-11-26 20:52:56 +03:00
|
|
|
#filestable .filesummary {
|
|
|
|
width: 100%;
|
|
|
|
}
|
2018-10-13 00:07:52 +03:00
|
|
|
/* Less whitespace needed on link share page
|
|
|
|
* as there is a footer and action menus have fewer entries.
|
|
|
|
*/
|
|
|
|
#body-public .summary {
|
|
|
|
height: 180px;
|
2013-07-02 06:28:52 +04:00
|
|
|
}
|
2014-11-06 18:22:57 +03:00
|
|
|
.summary:hover,
|
|
|
|
.summary:focus,
|
|
|
|
.summary,
|
|
|
|
table tr.summary td {
|
2013-07-03 21:50:03 +04:00
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
.summary td {
|
|
|
|
border-bottom: none;
|
2015-04-22 14:58:22 +03:00
|
|
|
vertical-align: top;
|
|
|
|
padding-top: 20px;
|
2013-07-02 06:28:52 +04:00
|
|
|
}
|
|
|
|
.summary .info {
|
2019-10-30 18:19:18 +03:00
|
|
|
margin-left: 2px;
|
|
|
|
}
|
|
|
|
.hiddeninfo {
|
|
|
|
white-space: pre-line;
|
2013-07-02 06:28:52 +04:00
|
|
|
}
|
|
|
|
|
2013-01-19 00:49:38 +04:00
|
|
|
table.dragshadow {
|
|
|
|
width:auto;
|
2018-08-27 19:08:45 +03:00
|
|
|
z-index: 2000;
|
2013-01-19 00:49:38 +04:00
|
|
|
}
|
|
|
|
table.dragshadow td.filename {
|
2013-10-28 18:41:52 +04:00
|
|
|
padding-left:60px;
|
2013-01-19 00:49:38 +04:00
|
|
|
padding-right:16px;
|
2013-10-28 18:41:52 +04:00
|
|
|
height: 36px;
|
2018-08-27 19:12:50 +03:00
|
|
|
|
|
|
|
/* Override "max-width: 0" to prevent file name and size from overlapping */
|
|
|
|
max-width: unset;
|
2013-01-19 00:49:38 +04:00
|
|
|
}
|
|
|
|
table.dragshadow td.size {
|
|
|
|
padding-right:8px;
|
2013-01-30 22:24:24 +04:00
|
|
|
}
|
2013-08-17 15:07:18 +04:00
|
|
|
.mask {
|
|
|
|
z-index: 50;
|
2014-05-12 21:54:20 +04:00
|
|
|
position: absolute;
|
2013-08-17 15:07:18 +04:00
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
2018-06-03 22:06:36 +03:00
|
|
|
background-color: var(--color-main-background);
|
2013-08-17 15:07:18 +04:00
|
|
|
background-repeat: no-repeat no-repeat;
|
|
|
|
background-position: 50%;
|
|
|
|
opacity: 0.7;
|
|
|
|
transition: opacity 100ms;
|
|
|
|
-moz-transition: opacity 100ms;
|
|
|
|
-o-transition: opacity 100ms;
|
|
|
|
-ms-transition: opacity 100ms;
|
|
|
|
-webkit-transition: opacity 100ms;
|
|
|
|
}
|
|
|
|
.mask.transparent{
|
|
|
|
opacity: 0;
|
|
|
|
}
|
2015-07-16 16:28:45 +03:00
|
|
|
|
2015-08-27 14:22:58 +03:00
|
|
|
.newFileMenu {
|
2017-01-17 13:17:40 +03:00
|
|
|
font-weight: 300;
|
|
|
|
top: 100%;
|
|
|
|
margin-top: 4px;
|
2017-01-21 22:09:09 +03:00
|
|
|
min-width: 100px;
|
2018-10-31 13:20:02 +03:00
|
|
|
margin-left: 22px; /* Align left edge below center of + button … */
|
|
|
|
transform: translateX(-50%); /* … then center it below button */
|
2017-01-21 22:05:58 +03:00
|
|
|
z-index: 1001;
|
2018-10-31 13:20:02 +03:00
|
|
|
|
|
|
|
/* Center triangle */
|
|
|
|
&::after {
|
|
|
|
left: calc(50% - 8px) !important;
|
|
|
|
}
|
2015-07-16 16:28:45 +03:00
|
|
|
}
|
|
|
|
|
2016-02-25 19:23:32 +03:00
|
|
|
#filestable .filename .action .icon,
|
|
|
|
#filestable .selectedActions a .icon,
|
2017-09-27 13:39:59 +03:00
|
|
|
#filestable .filename .favorite-mark .icon,
|
2016-02-25 19:23:32 +03:00
|
|
|
#controls .actions .button .icon {
|
2016-02-17 13:04:29 +03:00
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
2016-02-25 19:23:32 +03:00
|
|
|
background-size: 16px 16px;
|
2016-02-17 13:04:29 +03:00
|
|
|
}
|
|
|
|
|
2017-09-27 13:39:59 +03:00
|
|
|
#filestable .filename .favorite-mark {
|
|
|
|
// Override default icons to always hide the star icon and always show the
|
|
|
|
// starred icon even when hovered or focused.
|
|
|
|
& .icon-star {
|
|
|
|
background-image: none;
|
|
|
|
}
|
|
|
|
& .icon-starred {
|
2018-12-07 20:33:05 +03:00
|
|
|
@include icon-color('star-dark', 'actions', $color-yellow, 1, true);
|
2017-09-27 13:39:59 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-03-04 12:48:08 +03:00
|
|
|
#filestable .filename .action .icon.hidden,
|
|
|
|
#filestable .selectedActions a .icon.hidden,
|
|
|
|
#controls .actions .button .icon.hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
#filestable .filename .action .icon.loading,
|
|
|
|
#filestable .selectedActions a .icon.loading,
|
|
|
|
#controls .actions .button .icon.loading {
|
|
|
|
width: 15px;
|
|
|
|
height: 15px;
|
|
|
|
}
|
|
|
|
|
2017-01-17 13:17:40 +03:00
|
|
|
.app-files .actions .button.new {
|
|
|
|
position: relative;
|
|
|
|
}
|
2015-10-29 16:41:37 +03:00
|
|
|
|
2017-11-08 18:56:58 +03:00
|
|
|
.breadcrumb .canDrop > a,
|
2016-03-12 06:29:59 +03:00
|
|
|
#filestable tbody tr.canDrop {
|
2018-12-07 20:33:05 +03:00
|
|
|
background-color: rgba( $color-primary, .3 );
|
|
|
|
}
|
|
|
|
.dropzone-background {
|
|
|
|
background-color: rgba( $color-primary, .3 );
|
|
|
|
:hover{
|
|
|
|
box-shadow: none !important;
|
|
|
|
}
|
2015-10-29 16:41:37 +03:00
|
|
|
}
|
2017-06-08 17:42:43 +03:00
|
|
|
|
2020-01-08 12:09:02 +03:00
|
|
|
.notCreatable {
|
|
|
|
padding-left: 12px;
|
|
|
|
padding-top: 12px;
|
|
|
|
color: var(--color-text-lighter);
|
|
|
|
}
|
2017-06-08 17:42:43 +03:00
|
|
|
|
|
|
|
#quota {
|
|
|
|
margin: 0 !important;
|
|
|
|
border: none;
|
2017-06-12 11:25:09 +03:00
|
|
|
border-radius: 0;
|
2017-09-17 13:40:54 +03:00
|
|
|
background-color: transparent;
|
2017-06-13 01:03:54 +03:00
|
|
|
z-index:1;
|
2019-06-14 15:16:25 +03:00
|
|
|
|
2019-05-21 11:47:56 +03:00
|
|
|
> a[href='#'] {
|
|
|
|
// if no link is set, no mouse feedback
|
|
|
|
box-shadow: none !important;
|
|
|
|
&, * {
|
|
|
|
cursor: default !important;
|
|
|
|
}
|
|
|
|
}
|
2017-06-09 16:41:06 +03:00
|
|
|
|
|
|
|
.quota-container {
|
|
|
|
height: 5px;
|
2018-06-03 22:06:36 +03:00
|
|
|
border-radius: var(--border-radius);
|
2017-06-09 16:41:06 +03:00
|
|
|
|
|
|
|
div {
|
|
|
|
height: 100%;
|
2018-06-03 22:06:36 +03:00
|
|
|
background-color: var(--color-primary);
|
2017-06-09 16:41:06 +03:00
|
|
|
}
|
2017-06-08 17:42:43 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-06-13 11:12:13 +03:00
|
|
|
#quotatext {
|
2017-06-09 16:41:06 +03:00
|
|
|
padding: 0;
|
|
|
|
height: 30px;
|
|
|
|
line-height: 30px;
|
2017-06-08 17:42:43 +03:00
|
|
|
}
|
2018-10-03 11:59:31 +03:00
|
|
|
|
|
|
|
/* GRID */
|
2018-10-04 13:09:23 +03:00
|
|
|
#filestable.view-grid:not(.hidden) {
|
|
|
|
$grid-size: 160px;
|
2018-10-04 19:45:23 +03:00
|
|
|
$grid-pad: 14px;
|
2018-10-03 13:18:50 +03:00
|
|
|
|
2018-10-04 11:53:45 +03:00
|
|
|
/* HEADER and MULTISELECT */
|
2018-10-03 11:59:31 +03:00
|
|
|
thead {
|
2018-10-04 11:53:45 +03:00
|
|
|
tr {
|
|
|
|
display: block;
|
|
|
|
border-bottom: 1px solid var(--color-border);
|
2019-04-18 18:37:44 +03:00
|
|
|
background-color: var(--color-main-background-translucent);
|
2018-10-04 11:53:45 +03:00
|
|
|
th {
|
|
|
|
width: auto;
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
}
|
2018-10-03 11:59:31 +03:00
|
|
|
}
|
2018-10-03 13:18:50 +03:00
|
|
|
|
2018-10-04 11:53:45 +03:00
|
|
|
/* MAIN FILE LIST */
|
2018-10-03 11:59:31 +03:00
|
|
|
tbody {
|
|
|
|
display: grid;
|
2018-10-04 12:28:27 +03:00
|
|
|
grid-template-columns: repeat(auto-fill, $grid-size);
|
2018-10-03 11:59:31 +03:00
|
|
|
justify-content: space-around;
|
|
|
|
row-gap: 15px;
|
2018-10-04 19:45:23 +03:00
|
|
|
margin: 15px 0;
|
2018-10-03 13:18:50 +03:00
|
|
|
|
2018-10-25 15:40:18 +03:00
|
|
|
// ensure search still filters tr with .hidden
|
|
|
|
tr:not(.hidden) {
|
2018-10-03 11:59:31 +03:00
|
|
|
display: block;
|
2018-10-03 13:18:50 +03:00
|
|
|
position: relative;
|
2018-10-04 19:54:02 +03:00
|
|
|
height: $grid-size + 44px - $grid-pad;
|
2018-10-03 13:25:56 +03:00
|
|
|
border-radius: var(--border-radius);
|
2018-10-12 20:02:00 +03:00
|
|
|
|
2018-10-04 19:49:06 +03:00
|
|
|
&:hover, &:focus, &:active,
|
|
|
|
&.selected,
|
|
|
|
&.searchresult,
|
2018-10-23 09:23:22 +03:00
|
|
|
.name:focus,
|
|
|
|
&.highlighted {
|
2018-10-04 19:45:23 +03:00
|
|
|
background-color: transparent;
|
2018-10-12 20:02:00 +03:00
|
|
|
|
2018-10-04 19:45:23 +03:00
|
|
|
.thumbnail-wrapper,
|
|
|
|
.nametext,
|
|
|
|
.fileactions {
|
2018-10-04 19:49:06 +03:00
|
|
|
transition: background-color 0.3s ease;
|
2018-10-04 19:45:23 +03:00
|
|
|
background-color: var(--color-background-dark);
|
|
|
|
}
|
|
|
|
}
|
2018-10-03 11:59:31 +03:00
|
|
|
}
|
2018-10-03 13:18:50 +03:00
|
|
|
|
2018-10-03 11:59:31 +03:00
|
|
|
td {
|
2018-10-03 13:18:50 +03:00
|
|
|
display: inline;
|
|
|
|
border-bottom: none;
|
|
|
|
|
|
|
|
&.filename {
|
|
|
|
.thumbnail-wrapper {
|
|
|
|
min-width: 0;
|
2018-10-04 19:45:23 +03:00
|
|
|
max-width: none;
|
|
|
|
position: absolute;
|
|
|
|
width: $grid-size;
|
|
|
|
height: $grid-size;
|
|
|
|
padding: $grid-pad; // same as action icon bottom and right padding
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
2018-10-18 14:42:01 +03:00
|
|
|
z-index: -1; // make sure the default click is the link
|
2018-10-03 13:18:50 +03:00
|
|
|
|
|
|
|
.thumbnail {
|
2018-10-04 19:45:23 +03:00
|
|
|
width: calc(100% - 2 * #{$grid-pad});
|
|
|
|
height: calc(100% - 2 * #{$grid-pad}); //action icon padding
|
|
|
|
background-size: contain;
|
2018-10-04 12:28:27 +03:00
|
|
|
margin: 0;
|
2018-10-03 13:33:18 +03:00
|
|
|
border-radius: var(--border-radius);
|
2018-10-04 12:28:27 +03:00
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: center;
|
2018-10-03 13:18:50 +03:00
|
|
|
|
2018-10-04 12:28:27 +03:00
|
|
|
/* Position favorite star related to checkbox to left and 3-dot menu below
|
|
|
|
* Position is inherited from the selection while in grid view
|
|
|
|
*/
|
2018-10-03 13:18:50 +03:00
|
|
|
.favorite-mark {
|
2018-10-04 19:45:23 +03:00
|
|
|
padding: $grid-pad;
|
2018-10-04 12:28:27 +03:00
|
|
|
left: auto;
|
2018-10-04 19:45:23 +03:00
|
|
|
top: -22px; // center in corner of thumbnail
|
|
|
|
right: -22px; // center in corner of thumbnail
|
2018-10-03 13:18:50 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.name {
|
|
|
|
height: 100%;
|
2018-10-04 20:11:09 +03:00
|
|
|
border-radius: var(--border-radius);
|
|
|
|
// since we're using thumbnail, name and actions bg
|
|
|
|
// we need to hide the overflow for the radius to show
|
|
|
|
// luckily the popovermenu is outside .name
|
|
|
|
overflow: hidden;
|
2018-10-04 19:45:23 +03:00
|
|
|
// we but the thumbnail in background to ensure
|
|
|
|
// the name is the default click handler
|
|
|
|
// force back the cursor which have been overrided
|
|
|
|
// and disabled for some reason...
|
|
|
|
cursor: pointer !important;
|
2018-10-03 13:18:50 +03:00
|
|
|
|
|
|
|
.nametext {
|
2018-10-04 12:28:27 +03:00
|
|
|
display: flex;
|
|
|
|
height: 44px;
|
2018-10-04 19:54:02 +03:00
|
|
|
margin-top: $grid-size - $grid-pad;
|
2019-01-15 00:03:40 +03:00
|
|
|
text-align: center;
|
2018-10-04 12:28:27 +03:00
|
|
|
line-height: 44px;
|
2019-01-15 00:03:40 +03:00
|
|
|
padding: 0;
|
2018-10-03 13:18:50 +03:00
|
|
|
|
|
|
|
.innernametext {
|
|
|
|
display: inline-block;
|
2019-01-15 00:03:40 +03:00
|
|
|
text-align: center;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
&:before {
|
|
|
|
content: '';
|
|
|
|
flex: 1;
|
|
|
|
min-width: 14px;
|
|
|
|
}
|
|
|
|
&:after {
|
|
|
|
content: '';
|
|
|
|
flex: 1;
|
|
|
|
min-width: 44px;
|
2018-10-03 13:18:50 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
/* No space for extension in grid view */
|
|
|
|
.extension {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.fileactions {
|
|
|
|
height: initial;
|
2018-10-04 19:54:02 +03:00
|
|
|
margin-top: $grid-size - $grid-pad;
|
2018-10-04 12:28:27 +03:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2019-01-15 00:03:40 +03:00
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
2018-10-12 20:02:00 +03:00
|
|
|
|
2018-10-04 12:28:27 +03:00
|
|
|
.action {
|
2018-10-04 19:45:23 +03:00
|
|
|
padding: $grid-pad;
|
2018-10-04 12:28:27 +03:00
|
|
|
width: 44px;
|
|
|
|
height: 44px;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2018-10-12 20:02:00 +03:00
|
|
|
|
2019-04-02 12:33:20 +03:00
|
|
|
// hide all actions in grid view that are not the menu
|
|
|
|
&:not(.action-menu) {
|
2018-10-12 20:19:08 +03:00
|
|
|
display: none;
|
|
|
|
}
|
2018-10-04 12:28:27 +03:00
|
|
|
}
|
2018-10-03 13:18:50 +03:00
|
|
|
}
|
|
|
|
}
|
2018-11-15 14:14:15 +03:00
|
|
|
|
2019-03-14 20:01:44 +03:00
|
|
|
.fileActionsMenu {
|
|
|
|
// force show the sharing entry in the dropdown menu
|
|
|
|
.action-share-container.hidden {
|
|
|
|
display: block !important;
|
|
|
|
// avatar in shared by user dropdown menu
|
|
|
|
.action-share img {
|
|
|
|
padding: 6px;
|
|
|
|
border-radius: 50%;
|
|
|
|
}
|
|
|
|
}
|
2019-04-02 12:33:20 +03:00
|
|
|
// force show the sharing entry in the dropdown menu
|
|
|
|
.action-restore-container.hidden {
|
|
|
|
display: block !important;
|
|
|
|
}
|
|
|
|
// force show the sharing entry in the dropdown menu
|
|
|
|
.action-comment-container.hidden {
|
|
|
|
display: block !important;
|
|
|
|
}
|
2019-03-14 20:01:44 +03:00
|
|
|
}
|
|
|
|
|
2018-11-15 14:14:15 +03:00
|
|
|
form {
|
|
|
|
padding: 3px 14px;
|
|
|
|
border-radius: var(--border-radius);
|
|
|
|
|
|
|
|
input.filename {
|
|
|
|
width: 100%;
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
}
|
2018-10-03 13:18:50 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
/* No space for filesize and date in grid view */
|
|
|
|
&.filesize,
|
|
|
|
&.date {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2018-10-04 12:28:27 +03:00
|
|
|
&.selection,
|
|
|
|
&.filename .favorite-mark {
|
2018-10-03 11:59:31 +03:00
|
|
|
position: absolute;
|
2018-10-04 19:45:23 +03:00
|
|
|
top: -8px; // half the checkbox width, center on corner of thumbnail
|
|
|
|
left: -8px; // half the checkbox width, center on corner of thumbnail
|
2018-10-03 11:59:31 +03:00
|
|
|
display: flex;
|
|
|
|
width: 44px;
|
2018-10-04 12:28:27 +03:00
|
|
|
height: 44px;
|
2018-10-03 13:18:50 +03:00
|
|
|
z-index: 10;
|
2018-10-03 13:27:39 +03:00
|
|
|
background: transparent;
|
2018-10-03 13:18:50 +03:00
|
|
|
|
2018-10-03 11:59:31 +03:00
|
|
|
label {
|
|
|
|
width: 44px;
|
|
|
|
height: 44px;
|
2018-10-04 12:28:27 +03:00
|
|
|
display: inline-flex;
|
2018-10-04 19:45:23 +03:00
|
|
|
padding: $grid-pad; // like any action icon
|
2018-10-04 12:28:27 +03:00
|
|
|
&::before {
|
|
|
|
margin: 0;
|
2018-10-04 19:45:23 +03:00
|
|
|
width: $grid-pad; // 16px - border
|
|
|
|
height: $grid-pad; // 16px - border
|
2018-10-04 12:28:27 +03:00
|
|
|
}
|
2018-10-03 11:59:31 +03:00
|
|
|
}
|
|
|
|
}
|
2018-10-04 11:53:45 +03:00
|
|
|
|
|
|
|
/* Position actions menu below file */
|
|
|
|
.popovermenu {
|
|
|
|
left: 0;
|
2018-10-04 12:28:27 +03:00
|
|
|
width: $grid-size - 10px; // 2 * margin
|
|
|
|
margin: 0 5px;
|
2018-10-04 11:53:45 +03:00
|
|
|
|
|
|
|
/* Ellipsize long entries, normally menu width is adjusted but for grid we use fixed width. */
|
|
|
|
.menuitem span:not(.icon) {
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
}
|
2018-10-03 11:59:31 +03:00
|
|
|
}
|
|
|
|
}
|
2018-10-03 13:18:50 +03:00
|
|
|
|
2019-03-30 14:57:18 +03:00
|
|
|
tr.hidden-file td.filename .name .nametext .extension {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2018-10-03 14:19:08 +03:00
|
|
|
/* Center align the footer file number & size summary */
|
|
|
|
tfoot {
|
|
|
|
display: grid;
|
|
|
|
|
2018-10-04 13:56:02 +03:00
|
|
|
.summary:not(.hidden) {
|
2018-10-03 14:19:08 +03:00
|
|
|
display: inline-block;
|
|
|
|
margin: 0 auto;
|
|
|
|
|
|
|
|
td {
|
|
|
|
padding-top: 50px;
|
|
|
|
|
|
|
|
&:first-child,
|
|
|
|
&.date {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.info {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-10-03 13:18:50 +03:00
|
|
|
}
|
2018-10-03 19:09:48 +03:00
|
|
|
|
|
|
|
/* Grid view toggle */
|
2018-10-04 16:17:24 +03:00
|
|
|
#view-toggle {
|
2018-10-03 19:09:48 +03:00
|
|
|
background-color: transparent;
|
|
|
|
border: none;
|
|
|
|
margin: 0;
|
|
|
|
padding: 22px;
|
|
|
|
opacity: .5;
|
2018-11-06 11:06:24 +03:00
|
|
|
position: fixed;
|
|
|
|
right: 0;
|
|
|
|
z-index: 100;
|
2018-10-03 19:09:48 +03:00
|
|
|
|
|
|
|
&:hover,
|
2018-10-23 17:49:56 +03:00
|
|
|
&:focus,
|
|
|
|
#showgridview:focus + & {
|
2018-10-03 19:09:48 +03:00
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
2019-08-14 17:45:26 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Make sure the hidden input is always
|
|
|
|
* on the visible scrolled area of the
|
|
|
|
* page to avoid scrolling to top when focusing
|
|
|
|
*/
|
2019-06-19 10:35:52 +03:00
|
|
|
#showgridview {
|
2019-08-14 17:45:26 +03:00
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
2019-06-19 10:35:52 +03:00
|
|
|
}
|
2018-10-03 19:09:48 +03:00
|
|
|
|
2018-10-13 00:07:52 +03:00
|
|
|
/* Adjustments for link share page */
|
2018-10-12 20:51:19 +03:00
|
|
|
#body-public {
|
2018-10-12 21:51:53 +03:00
|
|
|
#filestable.view-grid:not(.hidden) tbody td {
|
|
|
|
/* More space for filename since there is no share icon */
|
|
|
|
&.filename .name .nametext .innernametext {
|
|
|
|
max-width: 124px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Position actions menu correctly below 3-dot-menu */
|
|
|
|
.popovermenu {
|
|
|
|
left: -80px;
|
|
|
|
}
|
2018-10-12 20:51:19 +03:00
|
|
|
}
|
|
|
|
|
2018-10-13 00:07:52 +03:00
|
|
|
/* Right-align view toggle on link share page */
|
2018-10-12 20:51:19 +03:00
|
|
|
#view-toggle {
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-10-03 19:09:48 +03:00
|
|
|
/* Hide legacy Gallery toggle */
|
|
|
|
#gallery-button {
|
|
|
|
display: none;
|
|
|
|
}
|