files.css 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  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 {
  46. position: relative;
  47. display: inline;
  48. }
  49. #uploadprogressbar {
  50. position:relative;
  51. float: left;
  52. margin-left: 12px;
  53. width: 130px;
  54. height: 26px;
  55. display:inline-block;
  56. }
  57. #uploadprogressbar + stop {
  58. font-size: 13px;
  59. }
  60. /* FILE TABLE */
  61. #emptyfolder {
  62. position:absolute;
  63. margin:10em 0 0 10em;
  64. font-size:1.5em; font-weight:bold;
  65. color:#888; text-shadow:#fff 0 1px 0;
  66. }
  67. #filestable { position: relative; top:37px; width:100%; }
  68. tbody tr { background-color:#fff; height:2.5em; }
  69. tbody tr:hover, tbody tr:active {
  70. background-color: rgb(240,240,240);
  71. }
  72. tbody tr.selected {
  73. background-color: rgb(230,230,230);
  74. }
  75. tbody a { color:#000; }
  76. span.extension, span.uploading, td.date { color:#999; }
  77. 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; }
  78. tr:hover span.extension { -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; filter:alpha(opacity=100); opacity:1; color:#777; }
  79. table tr.mouseOver td { background-color:#eee; }
  80. table th { height:2em; padding:0 .5em; color:#999; }
  81. table th .name { float:left; margin-left:.5em; }
  82. table th, table td { border-bottom:1px solid #ddd; text-align:left; font-weight:normal; }
  83. table td { border-bottom:1px solid #eee; font-style:normal; background-position:1em .5em; background-repeat:no-repeat; }
  84. table th#headerName { width:100em; /* not really sure why this works better than 100% … table styling */ }
  85. table th#headerSize, table td.filesize { min-width:3em; padding:0 1em; text-align:right; }
  86. table th#headerDate, table td.date { min-width:11em; padding:0 .1em 0 1em; text-align:left; }
  87. /* Multiselect bar */
  88. #filestable.multiselect { top:63px; }
  89. 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%; }
  90. table.multiselect thead th {
  91. background-color: rgba(210,210,210,.7);
  92. color: #000;
  93. font-weight: bold;
  94. border-bottom: 0;
  95. }
  96. table.multiselect #headerName { width: 100%; }
  97. table td.selection, table th.selection, table td.fileaction { width:2em; text-align:center; }
  98. table td.filename a.name { display:block; height:1.5em; vertical-align:middle; margin-left:3em; }
  99. table tr[data-type="dir"] td.filename a.name span.nametext {font-weight:bold; }
  100. table td.filename input.filename { width:100%; cursor:text; }
  101. 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; }
  102. table td.filename .nametext, .uploadtext, .modified { float:left; padding:.3em 0; }
  103. /* TODO fix usability bug (accidental file/folder selection) */
  104. table td.filename .nametext { overflow:hidden; text-overflow:ellipsis; max-width:800px; }
  105. table td.filename .uploadtext { font-weight:normal; margin-left:.5em; }
  106. table td.filename form { font-size:.85em; margin-left:3em; margin-right:3em; }
  107. /* File checkboxes */
  108. #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; }
  109. #fileList tr td.filename>input[type="checkbox"]:hover:first-child { -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)"; filter:alpha(opacity=80); opacity:.8; }
  110. /* Always show checkbox when selected */
  111. #fileList tr td.filename>input[type="checkbox"]:checked:first-child { -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; filter:alpha(opacity=100); opacity:1; }
  112. #fileList tr.selected td.filename>input[type="checkbox"]:first-child { -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; filter:alpha(opacity=100); opacity:1; }
  113. #fileList tr td.filename {
  114. position:relative; width:100%;
  115. -webkit-transition:background-image 500ms; -moz-transition:background-image 500ms; -o-transition:background-image 500ms; transition:background-image 500ms;
  116. }
  117. #select_all { float:left; margin:.4em 0.6em 0 .5em; }
  118. #uploadsize-message,#delete-confirm { display:none; }
  119. /* File actions */
  120. .fileactions {
  121. position:absolute; top:.6em; right:0;
  122. font-size:.8em;
  123. }
  124. #fileList .name { position:relative; /* Firefox needs to explicitly have this default set … */ }
  125. #fileList tr:hover .fileactions { /* background to distinguish when overlaying with file names */
  126. background-color: rgba(240,240,240,0.898);
  127. box-shadow: -5px 0 7px rgba(240,240,240,0.898);
  128. }
  129. #fileList tr.selected:hover .fileactions, #fileList tr.mouseOver .fileactions { /* slightly darker color for selected rows */
  130. background-color: rgba(230,230,230,.9);
  131. box-shadow: -5px 0 7px rgba(230,230,230,.9);
  132. }
  133. #fileList .fileactions a.action img { position:relative; top:.2em; }
  134. #fileList a.action { display:inline; margin:-.5em 0; padding:1em .5em 1em .5em !important; }
  135. #fileList img.move2trash { display:inline; margin:-.5em 0; padding:1em .5em 1em .5em !important; float:right; }
  136. a.action.delete { float:right; }
  137. a.action>img { max-height:16px; max-width:16px; vertical-align:text-bottom; }
  138. .selectedActions { display:none; float:right; }
  139. .selectedActions a { display:inline; margin:-.5em 0; padding:.5em !important; }
  140. .selectedActions a img { position:relative; top:.3em; }
  141. #fileList a.action {
  142. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
  143. filter: alpha(opacity=0);
  144. opacity: 0;
  145. display:none;
  146. }
  147. #fileList tr:hover a.action, #fileList a.action.permanent {
  148. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
  149. filter: alpha(opacity=50);
  150. opacity: .5;
  151. display:inline;
  152. }
  153. #fileList tr:hover a.action:hover {
  154. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  155. filter: alpha(opacity=100);
  156. opacity: 1;
  157. display:inline;
  158. }
  159. .summary {
  160. opacity: .5;
  161. }
  162. .summary .info {
  163. margin-left: 3em;
  164. }
  165. #scanning-message{ top:40%; left:40%; position:absolute; display:none; }
  166. div.crumb a{ padding:0.9em 0 0.7em 0; color:#555; }
  167. table.dragshadow {
  168. width:auto;
  169. }
  170. table.dragshadow td.filename {
  171. padding-left:36px;
  172. padding-right:16px;
  173. }
  174. table.dragshadow td.size {
  175. padding-right:8px;
  176. }
  177. #upgrade {
  178. width: 400px;
  179. position: absolute;
  180. top: 200px;
  181. left: 50%;
  182. text-align: center;
  183. margin-left: -200px;
  184. }