files.css 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636
  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:5px; height:32px; display: inline-block; float: left; }
  6. .actions input, .actions button, .actions .button { margin:0; float:left; }
  7. .actions .button a { color: #555; }
  8. .actions .button a:hover,
  9. .actions .button a:focus,
  10. .actions .button a:active {
  11. color: #333;
  12. }
  13. .actions.hidden { display: none; }
  14. .actions.creatable {
  15. position: relative;
  16. z-index: -30;
  17. }
  18. #new {
  19. z-index: 1010;
  20. float: left;
  21. padding: 0 !important; /* override default control bar button padding */
  22. }
  23. #trash {
  24. margin-right: 8px;
  25. float: right;
  26. z-index: 1010;
  27. padding: 10px;
  28. font-weight: normal;
  29. }
  30. #new > a {
  31. padding: 14px 10px;
  32. position: relative;
  33. top: 7px;
  34. }
  35. #new.active {
  36. border-bottom-left-radius: 0;
  37. border-bottom-right-radius: 0;
  38. border-bottom: none;
  39. background: #f8f8f8;
  40. }
  41. #new > ul {
  42. display: none;
  43. position: fixed;
  44. min-width: 112px;
  45. z-index: -10;
  46. padding: 8px;
  47. padding-bottom: 0;
  48. margin-top: 13.5px;
  49. margin-left: -1px;
  50. text-align: left;
  51. background: #f8f8f8;
  52. border: 1px solid #ddd;
  53. border: 1px solid rgba(190, 190, 190, 0.901961);
  54. border-radius: 5px;
  55. border-top-left-radius: 0;
  56. box-shadow: 0 2px 7px rgba(170,170,170,.4);
  57. }
  58. #new > ul > li {
  59. height: 36px;
  60. margin: 5px;
  61. padding-left: 42px;
  62. padding-bottom: 2px;
  63. background-position: left center;
  64. cursor: pointer;
  65. }
  66. #new > ul > li > p {
  67. cursor: pointer;
  68. padding-top: 7px;
  69. padding-bottom: 7px;
  70. }
  71. #new .error, #fileList .error {
  72. color: #e9322d;
  73. border-color: #e9322d;
  74. -webkit-box-shadow: 0 0 6px #f8b9b7;
  75. -moz-box-shadow: 0 0 6px #f8b9b7;
  76. box-shadow: 0 0 6px #f8b9b7;
  77. }
  78. /* FILE TABLE */
  79. #filestable {
  80. position: relative;
  81. top: 44px;
  82. width: 100%;
  83. }
  84. /* make sure there's enough room for the file actions */
  85. #body-user #filestable {
  86. min-width: 688px; /* 768 (mobile break) - 80 (nav width) */
  87. }
  88. #body-user #controls {
  89. min-width: 688px; /* 768 (mobile break) - 80 (nav width) */
  90. }
  91. #filestable tbody tr { background-color:#fff; height:51px; }
  92. /* fit app list view heights */
  93. .app-files #app-content>.viewcontainer {
  94. min-height: 100%;
  95. }
  96. /* move Deleted Files to bottom of sidebar */
  97. .nav-trashbin {
  98. position: fixed !important;
  99. bottom: 44px;
  100. width: inherit !important;
  101. background-color: #f5f5f5;
  102. }
  103. /* double padding to account for Deleted files entry, issue with Firefox */
  104. .app-files #app-navigation > ul li:nth-last-child(2) {
  105. margin-bottom: 44px;
  106. }
  107. #filestable tbody tr { background-color:#fff; height:40px; }
  108. #filestable tbody tr:hover,
  109. #filestable tbody tr:focus,
  110. #filestable tbody .name:focus,
  111. #filestable tbody tr:active {
  112. background-color: rgb(240,240,240);
  113. }
  114. #filestable tbody tr.selected {
  115. background-color: rgb(230,230,230);
  116. }
  117. #filestable tbody tr.searchresult {
  118. background-color: rgb(240,240,240);
  119. }
  120. tbody a { color:#000; }
  121. span.extension, span.uploading, td.date {
  122. color: #999;
  123. }
  124. span.extension {
  125. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";
  126. filter: alpha(opacity=70);
  127. opacity: .7;
  128. -webkit-transition: opacity 300ms;
  129. -moz-transition: opacity 300ms;
  130. -o-transition: opacity 300ms;
  131. transition: opacity 300ms;
  132. vertical-align: top;
  133. }
  134. tr:hover span.extension,
  135. tr:focus span.extension {
  136. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  137. filter: alpha(opacity=100);
  138. opacity: 1;
  139. color: #777;
  140. }
  141. table tr.mouseOver td {
  142. background-color: #eee;
  143. }
  144. table th, table th a {
  145. color: #999;
  146. }
  147. table.multiselect th a {
  148. color: #000;
  149. }
  150. table th .columntitle {
  151. display: block;
  152. padding: 15px;
  153. height: 50px;
  154. box-sizing: border-box;
  155. -moz-box-sizing: border-box;
  156. vertical-align: middle;
  157. }
  158. table th .columntitle.name {
  159. padding-left: 5px;
  160. padding-right: 80px;
  161. margin-left: 50px;
  162. }
  163. table th .sort-indicator {
  164. width: 10px;
  165. height: 8px;
  166. margin-left: 5px;
  167. display: inline-block;
  168. vertical-align: text-bottom;
  169. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";
  170. filter: alpha(opacity=30);
  171. opacity: .3;
  172. }
  173. .sort-indicator.hidden {
  174. visibility: hidden;
  175. }
  176. table th:hover .sort-indicator.hidden,
  177. table th:focus .sort-indicator.hidden {
  178. visibility: visible;
  179. }
  180. table th, table td { border-bottom:1px solid #ddd; text-align:left; font-weight:normal; }
  181. table td {
  182. padding: 0 15px;
  183. border-bottom: 1px solid #eee;
  184. font-style: normal;
  185. background-position: 8px center;
  186. background-repeat: no-repeat;
  187. }
  188. table th#headerName {
  189. position: relative;
  190. width: 9999px; /* not really sure why this works better than 100% … table styling */
  191. padding: 0;
  192. }
  193. #headerName-container {
  194. position: relative;
  195. height: 50px;
  196. }
  197. .has-favorites #headerName-container {
  198. padding-left: 50px;
  199. }
  200. table th#headerSize, table td.filesize {
  201. text-align: right;
  202. }
  203. table th#headerDate, table td.date,
  204. table th.column-last, table td.column-last {
  205. -moz-box-sizing: border-box;
  206. box-sizing: border-box;
  207. position: relative;
  208. /* this can not be just width, both need to be set … table styling */
  209. min-width: 176px;
  210. max-width: 176px;
  211. }
  212. /* Multiselect bar */
  213. #filestable.multiselect {
  214. top: 95px;
  215. }
  216. table.multiselect thead {
  217. position: fixed;
  218. top: 89px;
  219. z-index: 10;
  220. -moz-box-sizing: border-box;
  221. box-sizing: border-box;
  222. left: 250px; /* sidebar */
  223. }
  224. table thead th {
  225. background-color: #fff;
  226. }
  227. table.multiselect thead th {
  228. background-color: rgba(220,220,220,.8);
  229. color: #000;
  230. font-weight: bold;
  231. border-bottom: 0;
  232. }
  233. table.multiselect #headerName {
  234. position: relative;
  235. width: 9999px; /* when we use 100%, the styling breaks on mobile … table styling */
  236. }
  237. table td.selection, table th.selection, table td.fileaction { width:32px; text-align:center; }
  238. table td.filename a.name {
  239. position:relative; /* Firefox needs to explicitly have this default set … */
  240. -moz-box-sizing: border-box;
  241. box-sizing: border-box;
  242. display: block;
  243. height: 50px;
  244. line-height: 50px;
  245. padding: 0;
  246. }
  247. table td.filename .thumbnail {
  248. display: inline-block;
  249. width: 32px;
  250. height: 32px;
  251. margin-left: 8px;
  252. margin-top: 9px;
  253. cursor: pointer;
  254. float: left;
  255. position: absolute;
  256. z-index: 4;
  257. }
  258. table td.filename input.filename {
  259. width: 70%;
  260. margin-top: 9px;
  261. margin-left: 48px;
  262. cursor: text;
  263. }
  264. .has-favorites table td.filename input.filename {
  265. margin-left: 52px;
  266. }
  267. 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; }
  268. table td.filename .nametext, .uploadtext, .modified, .column-last>span:first-child { float:left; padding:15px 0; }
  269. .modified, .column-last>span:first-child {
  270. position: relative;
  271. overflow: hidden;
  272. text-overflow: ellipsis;
  273. width: 90%;
  274. }
  275. /* ellipsize long modified dates to make room for showing delete button */
  276. #fileList tr:hover .modified,
  277. #fileList tr:focus .modified,
  278. #fileList tr:hover .column-last>span:first-child,
  279. #fileList tr:focus .column-last>span:first-child {
  280. width: 75%;
  281. }
  282. /* TODO fix usability bug (accidental file/folder selection) */
  283. table td.filename .nametext {
  284. position: absolute;
  285. left: 55px;
  286. padding: 0;
  287. overflow: hidden;
  288. text-overflow: ellipsis;
  289. max-width: 800px;
  290. height: 100%;
  291. }
  292. /* IE8 text-overflow: ellipsis support */
  293. .ie8 table td.filename .nametext {
  294. min-width: 50%;
  295. }
  296. .has-favorites #fileList td.filename a.name {
  297. left: 50px;
  298. margin-right: 50px;
  299. }
  300. table td.filename .nametext .innernametext {
  301. text-overflow: ellipsis;
  302. overflow: hidden;
  303. position: relative;
  304. display: inline-block;
  305. vertical-align: top;
  306. }
  307. /* IE8 text-overflow: ellipsis support */
  308. .ie8 table td.filename .nametext .innernametext {
  309. white-space: nowrap;
  310. word-wrap: normal;
  311. -ms-text-overflow: ellipsis;
  312. max-width: 47%;
  313. }
  314. @media only screen and (min-width: 1366px) {
  315. table td.filename .nametext .innernametext {
  316. max-width: 760px;
  317. }
  318. table tr:hover td.filename .nametext .innernametext,
  319. table tr:focus td.filename .nametext .innernametext {
  320. max-width: 480px;
  321. }
  322. }
  323. @media only screen and (min-width: 1200px) and (max-width: 1366px) {
  324. table td.filename .nametext .innernametext {
  325. max-width: 600px;
  326. }
  327. table tr:hover td.filename .nametext .innernametext,
  328. table tr:focus td.filename .nametext .innernametext {
  329. max-width: 320px;
  330. }
  331. }
  332. @media only screen and (min-width: 1000px) and (max-width: 1200px) {
  333. table td.filename .nametext .innernametext {
  334. max-width: 400px;
  335. }
  336. table tr:hover td.filename .nametext .innernametext,
  337. table tr:focus td.filename .nametext .innernametext {
  338. max-width: 120px;
  339. }
  340. }
  341. @media only screen and (min-width: 768px) and (max-width: 1000px) {
  342. table td.filename .nametext .innernametext {
  343. max-width: 320px;
  344. }
  345. table tr:hover td.filename .nametext .innernametext,
  346. table tr:focus td.filename .nametext .innernametext {
  347. max-width: 40px;
  348. }
  349. }
  350. /* for smaller resolutions - see mobile.css */
  351. table td.filename .uploadtext {
  352. font-weight: normal;
  353. margin-left: 55px;
  354. margin-top: 5px;
  355. height: 20px;
  356. padding: 10px 0;
  357. font-size: 11px;
  358. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
  359. filter: alpha(opacity=50);
  360. opacity: .5;
  361. }
  362. .ie8 input[type="checkbox"]{
  363. padding: 0;
  364. }
  365. /* File checkboxes */
  366. #fileList tr td.filename>.selectCheckBox {
  367. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
  368. filter: alpha(opacity=0);
  369. opacity: 0;
  370. float: left;
  371. top: 0;
  372. margin: 32px 0 4px 32px; /* bigger clickable area doesn’t work in FF width:2.8em; height:2.4em;*/
  373. }
  374. /* Show checkbox when hovering, checked, or selected */
  375. #fileList tr:hover td.filename>.selectCheckBox,
  376. #fileList tr:focus td.filename>.selectCheckBox,
  377. #fileList tr td.filename>.selectCheckBox:checked,
  378. #fileList tr.selected td.filename>.selectCheckBox {
  379. opacity: 1;
  380. }
  381. .lte9 #fileList tr:hover td.filename>.selectCheckBox,
  382. .lte9 #fileList tr:focus td.filename>.selectCheckBox,
  383. .lte9 #fileList tr td.filename>.selectCheckBox[checked=checked],
  384. .lte9 #fileList tr.selected td.filename>.selectCheckBox {
  385. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  386. filter: alpha(opacity=100);
  387. }
  388. /* Use label to have bigger clickable size for checkbox */
  389. #fileList tr td.filename>.selectCheckBox + label,
  390. .select-all + label {
  391. height: 50px;
  392. position: absolute;
  393. width: 50px;
  394. z-index: 5;
  395. }
  396. #fileList tr td.filename>.selectCheckBox {
  397. /* sometimes checkbox height is bigger (KDE/Qt), so setting to absolute
  398. * to prevent it to increase the height */
  399. position: absolute;
  400. z-index: 10;
  401. }
  402. .select-all + label {
  403. top: 0;
  404. }
  405. .select-all {
  406. position: absolute;
  407. top: 18px;
  408. left: 18px;
  409. z-index: 10;
  410. }
  411. .has-favorites .select-all {
  412. left: 68px;
  413. }
  414. #fileList tr td.filename {
  415. position: relative;
  416. width: 100%;
  417. padding-left: 0;
  418. -webkit-transition:background-image 500ms; -moz-transition:background-image 500ms; -o-transition:background-image 500ms; transition:background-image 500ms;
  419. }
  420. #fileList tr td.filename a.name label {
  421. position: absolute;
  422. width: 80%;
  423. height: 50px;
  424. }
  425. #fileList tr td.filename .favorite {
  426. display: inline-block;
  427. float: left;
  428. }
  429. #fileList tr td.filename .action-favorite {
  430. display: block;
  431. float: left;
  432. width: 30px;
  433. line-height: 100%;
  434. text-align: center;
  435. }
  436. #uploadsize-message,#delete-confirm { display:none; }
  437. /* File actions */
  438. .fileactions {
  439. position: absolute;
  440. right: 0;
  441. font-size: 11px;
  442. }
  443. /* force show the loading icon, not only on hover */
  444. #fileList .icon-loading-small {
  445. -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  446. filter:alpha(opacity=100);
  447. opacity: 1 !important;
  448. display: inline !important;
  449. }
  450. #fileList img.move2trash { display:inline; margin:-8px 0; padding:16px 8px 16px 8px !important; float:right; }
  451. #fileList a.action.delete {
  452. position: absolute;
  453. right: 15px;
  454. padding: 17px 14px;
  455. }
  456. #fileList .action.action-share-notification span, #fileList a.name {
  457. cursor: default !important;
  458. }
  459. a.action>img {
  460. max-height:16px;
  461. max-width:16px;
  462. vertical-align:text-bottom;
  463. margin-bottom: -1px;
  464. }
  465. /* Actions for selected files */
  466. .selectedActions {
  467. position: absolute;
  468. top: 0;
  469. right: 0;
  470. }
  471. .selectedActions a {
  472. display: inline;
  473. font-size: 11px;
  474. line-height: 50px;
  475. padding: 18px 5px;
  476. }
  477. .selectedActions a.delete-selected {
  478. padding-right: 15px;
  479. }
  480. .selectedActions a.hidden {
  481. display: none;
  482. }
  483. .selectedActions a img {
  484. position:relative;
  485. vertical-align: text-bottom;
  486. margin-bottom: -1px;
  487. }
  488. #fileList a.action {
  489. display: inline;
  490. padding: 17px 8px;
  491. line-height: 50px;
  492. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
  493. filter: alpha(opacity=0);
  494. opacity: 0;
  495. display:none;
  496. }
  497. #fileList a.action[data-action="Rename"] {
  498. padding: 16px 14px 17px !important;
  499. }
  500. .ie8 #fileList a.action img,
  501. #fileList tr:hover a.action,
  502. #fileList a.action.permanent,
  503. #fileList tr:focus a.action,
  504. #fileList a.action.permanent
  505. /*#fileList .name:focus .action*/ {
  506. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
  507. filter: alpha(opacity=50);
  508. opacity: .5;
  509. display:inline;
  510. }
  511. .ie8 #fileList a.action:hover img,
  512. #fileList tr:hover a.action:hover,
  513. #fileList tr:focus a.action:focus,
  514. #fileList .name:focus a.action:focus {
  515. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  516. filter: alpha(opacity=100);
  517. opacity: 1;
  518. display:inline;
  519. }
  520. .summary {
  521. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";
  522. filter: alpha(opacity=30);
  523. opacity: .3;
  524. height: 60px;
  525. }
  526. .summary:hover,
  527. .summary:focus,
  528. .summary,
  529. table tr.summary td {
  530. background-color: transparent;
  531. }
  532. .summary td {
  533. border-bottom: none;
  534. }
  535. .summary .info {
  536. margin-left: 40px;
  537. }
  538. .has-favorites .summary .info {
  539. margin-left: 90px;
  540. }
  541. #scanning-message{ top:40%; left:40%; position:absolute; display:none; }
  542. table.dragshadow {
  543. width:auto;
  544. }
  545. table.dragshadow td.filename {
  546. padding-left:60px;
  547. padding-right:16px;
  548. height: 36px;
  549. }
  550. table.dragshadow td.size {
  551. padding-right:8px;
  552. }
  553. #upgrade {
  554. width: 400px;
  555. position: absolute;
  556. top: 200px;
  557. left: 50%;
  558. text-align: center;
  559. margin-left: -200px;
  560. }
  561. .mask {
  562. z-index: 50;
  563. position: absolute;
  564. top: 0;
  565. left: 0;
  566. right: 0;
  567. bottom: 0;
  568. background-color: white;
  569. background-repeat: no-repeat no-repeat;
  570. background-position: 50%;
  571. opacity: 0.7;
  572. filter: alpha(opacity=70);
  573. transition: opacity 100ms;
  574. -moz-transition: opacity 100ms;
  575. -o-transition: opacity 100ms;
  576. -ms-transition: opacity 100ms;
  577. -webkit-transition: opacity 100ms;
  578. }
  579. .mask.transparent{
  580. opacity: 0;
  581. }