files.css 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. /* Copyright (c) 2011, Jan-Christoph Borchardt, http://jancborchardt.net
  2. This file is licensed under the Affero General Public License version 3 or later.
  3. See the COPYING-README file. */
  4. /* FILE MENU */
  5. .actions { padding:.3em; height:2em; width: 100%; }
  6. .actions input, .actions button, .actions .button { margin:0; float:left; }
  7. .actions .button a { color: #555; }
  8. .actions .button a:hover, .actions .button a:active { color: #333; }
  9. #new {
  10. height:17px; margin:0 0 0 1em; z-index:1010; float:left;
  11. }
  12. #new.active { border-bottom-left-radius:0; border-bottom-right-radius:0; border-bottom:none; }
  13. #new>a { padding:.5em 1.2em .3em; }
  14. #new>ul {
  15. display:none; position:fixed; min-width:7em; z-index:10;
  16. padding:.5em; padding-bottom:0; margin-top:.075em; margin-left:-.5em;
  17. text-align:left;
  18. background:#f8f8f8; border:1px solid #ddd; border-radius:10px; border-top-left-radius:0;
  19. box-shadow:0 2px 7px rgba(170,170,170,.4);
  20. }
  21. #new>ul>li { height:20px; margin:.3em; padding-left:2em; padding-bottom:0.1em;
  22. background-repeat:no-repeat; cursor:pointer; }
  23. #new>ul>li>p { cursor:pointer; }
  24. #new>ul>li>form>input { padding:0.3em; margin:-0.3em; }
  25. #trash { margin: 0 1em; z-index:1010; float: right; }
  26. #upload {
  27. height:27px; padding:0; margin-left:0.2em; overflow:hidden;
  28. }
  29. #upload a {
  30. position:relative; display:block; width:100%; height:27px;
  31. cursor:pointer; z-index:10;
  32. background-image:url('%webroot%/core/img/actions/upload.svg');
  33. background-repeat:no-repeat;
  34. background-position:7px 6px;
  35. opacity:0.65;
  36. }
  37. .file_upload_target { display:none; }
  38. .file_upload_form { display:inline; float:left; margin:0; padding:0; cursor:pointer; overflow:visible; }
  39. #file_upload_start {
  40. left:0; top:0; width:28px; height:27px; padding:0;
  41. font-size:1em;
  42. -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; filter:alpha(opacity=0); opacity:0;
  43. z-index:20; position:relative; cursor:pointer; overflow:hidden;
  44. }
  45. #uploadprogresswrapper { float: right; position: relative; }
  46. #uploadprogresswrapper #uploadprogressbar {
  47. position:relative; float: right;
  48. margin-left: 12px; width:10em; height:1.5em; top:.4em;
  49. display:inline-block;
  50. }
  51. /* FILE TABLE */
  52. #emptyfolder {
  53. position:absolute;
  54. margin:10em 0 0 10em;
  55. font-size:1.5em; font-weight:bold;
  56. color:#888; text-shadow:#fff 0 1px 0;
  57. }
  58. #filestable { position: relative; top:37px; width:100%; }
  59. tbody tr { background-color:#fff; height:2.5em; }
  60. tbody tr:hover, tbody tr:active {
  61. background-color: rgb(240,240,240);
  62. }
  63. tbody tr.selected {
  64. background-color: rgb(230,230,230);
  65. }
  66. tbody a { color:#000; }
  67. span.extension, span.uploading, td.date { color:#999; }
  68. span.extension { text-transform:lowercase; -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=70)"; filter:alpha(opacity=70); opacity:.7; -webkit-transition:opacity 300ms; -moz-transition:opacity 300ms; -o-transition:opacity 300ms; transition:opacity 300ms; }
  69. tr:hover span.extension { -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; filter:alpha(opacity=100); opacity:1; color:#777; }
  70. table tr.mouseOver td { background-color:#eee; }
  71. table th { height:2em; padding:0 .5em; color:#999; }
  72. table th .name { float:left; margin-left:.5em; }
  73. table th, table td { border-bottom:1px solid #ddd; text-align:left; font-weight:normal; }
  74. table td { border-bottom:1px solid #eee; font-style:normal; background-position:1em .5em; background-repeat:no-repeat; }
  75. table th#headerName { width:100em; /* not really sure why this works better than 100% … table styling */ }
  76. table th#headerSize, table td.filesize { min-width:3em; padding:0 1em; text-align:right; }
  77. table th#headerDate, table td.date { min-width:11em; padding:0 .1em 0 1em; text-align:left; }
  78. /* Multiselect bar */
  79. #filestable.multiselect { top:63px; }
  80. table.multiselect thead { position:fixed; top:82px; z-index:1; -moz-box-sizing: border-box; box-sizing: border-box; left: 0; padding-left: 64px; width:100%; }
  81. table.multiselect thead th {
  82. background-color: rgba(210,210,210,.7);
  83. color: #000;
  84. font-weight: bold;
  85. border-bottom: 0;
  86. }
  87. table.multiselect #headerName { width: 100%; }
  88. table td.selection, table th.selection, table td.fileaction { width:2em; text-align:center; }
  89. table td.filename a.name { display:block; height:1.5em; vertical-align:middle; margin-left:3em; }
  90. table tr[data-type="dir"] td.filename a.name span.nametext {font-weight:bold; }
  91. table td.filename input.filename { width:100%; cursor:text; }
  92. table td.filename a, table td.login, table td.logout, table td.download, table td.upload, table td.create, table td.delete { padding:.2em .5em .5em 0; }
  93. table td.filename .nametext, .uploadtext, .modified { float:left; padding:.3em 0; }
  94. /* TODO fix usability bug (accidental file/folder selection) */
  95. table td.filename .nametext { overflow:hidden; text-overflow:ellipsis; max-width:800px; }
  96. table td.filename .uploadtext { font-weight:normal; margin-left:.5em; }
  97. table td.filename form { font-size:.85em; margin-left:3em; margin-right:3em; }
  98. /* File checkboxes */
  99. #fileList tr td.filename>input[type="checkbox"]:first-child { -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; filter:alpha(opacity=0); opacity:0; float:left; margin:.7em 0 0 1em; /* bigger clickable area doesn’t work in FF width:2.8em; height:2.4em;*/ -webkit-transition:opacity 200ms; -moz-transition:opacity 200ms; -o-transition:opacity 200ms; transition:opacity 200ms; }
  100. #fileList tr td.filename>input[type="checkbox"]:hover:first-child { -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)"; filter:alpha(opacity=80); opacity:.8; }
  101. /* Always show checkbox when selected */
  102. #fileList tr td.filename>input[type="checkbox"]:checked:first-child { -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; filter:alpha(opacity=100); opacity:1; }
  103. #fileList tr.selected td.filename>input[type="checkbox"]:first-child { -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; filter:alpha(opacity=100); opacity:1; }
  104. #fileList tr td.filename {
  105. position:relative; width:100%;
  106. -webkit-transition:background-image 500ms; -moz-transition:background-image 500ms; -o-transition:background-image 500ms; transition:background-image 500ms;
  107. }
  108. #select_all { float:left; margin:.4em 0.6em 0 .5em; }
  109. #uploadsize-message,#delete-confirm { display:none; }
  110. /* File actions */
  111. .fileactions {
  112. position:absolute; top:.6em; right:0;
  113. font-size:.8em;
  114. }
  115. #fileList .name { position:relative; /* Firefox needs to explicitly have this default set … */ }
  116. #fileList tr:hover .fileactions { /* background to distinguish when overlaying with file names */
  117. background-color: rgba(240,240,240,0.898);
  118. box-shadow: -5px 0 7px rgba(240,240,240,0.898);
  119. }
  120. #fileList tr.selected:hover .fileactions, #fileList tr.mouseOver .fileactions { /* slightly darker color for selected rows */
  121. background-color: rgba(230,230,230,.9);
  122. box-shadow: -5px 0 7px rgba(230,230,230,.9);
  123. }
  124. #fileList .fileactions a.action img { position:relative; top:.2em; }
  125. #fileList a.action { display:inline; margin:-.5em 0; padding:1em .5em 1em .5em !important; }
  126. #fileList img.move2trash { display:inline; margin:-.5em 0; padding:1em .5em 1em .5em !important; float:right; }
  127. a.action.delete { float:right; }
  128. a.action>img { max-height:16px; max-width:16px; vertical-align:text-bottom; }
  129. .selectedActions { display:none; float:right; }
  130. .selectedActions a { display:inline; margin:-.5em 0; padding:.5em !important; }
  131. .selectedActions a img { position:relative; top:.3em; }
  132. #fileList a.action {
  133. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
  134. filter: alpha(opacity=0);
  135. opacity: 0;
  136. display:none;
  137. }
  138. #fileList tr:hover a.action, #fileList a.action.permanent {
  139. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=.5)";
  140. filter: alpha(opacity=.5);
  141. opacity: .5;
  142. display:inline;
  143. }
  144. #fileList tr:hover a.action:hover {
  145. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=1)";
  146. filter: alpha(opacity=1);
  147. opacity: 1;
  148. display:inline;
  149. }
  150. .summary {
  151. opacity: .5;
  152. }
  153. .summary .info {
  154. margin-left: 3em;
  155. }
  156. #scanning-message{ top:40%; left:40%; position:absolute; display:none; }
  157. div.crumb a{ padding:0.9em 0 0.7em 0; color:#555; }
  158. table.dragshadow {
  159. width:auto;
  160. }
  161. table.dragshadow td.filename {
  162. padding-left:36px;
  163. padding-right:16px;
  164. }
  165. table.dragshadow td.size {
  166. padding-right:8px;
  167. }
  168. #upgrade {
  169. width: 400px;
  170. position: absolute;
  171. top: 200px;
  172. left: 50%;
  173. text-align: center;
  174. margin-left: -200px;
  175. }