files.css 14 KB

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