mobile.css 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. @charset "UTF-8";
  2. /**
  3. * @copyright Copyright (c) 2018, John Molakvoæ (skjnldsv@protonmail.com)
  4. *
  5. * @author John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
  6. *
  7. * @license GNU AGPL version 3 or any later version
  8. *
  9. * This program is free software: you can redistribute it and/or modify
  10. * it under the terms of the GNU Affero General Public License as
  11. * published by the Free Software Foundation, either version 3 of the
  12. * License, or (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU Affero General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU Affero General Public License
  20. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  21. *
  22. */
  23. @media only screen and (max-width: 1024px) {
  24. /* make header scroll up for single shares, more view of content on small screens */
  25. #header.share-file {
  26. position: absolute !important;
  27. }
  28. /* hide size and date columns */
  29. table th.column-size,
  30. table td.filesize,
  31. table th.column-mtime,
  32. table td.date {
  33. display: none;
  34. }
  35. /* restrict length of displayed filename to prevent overflow */
  36. table td.filename .nametext {
  37. max-width: 75% !important;
  38. }
  39. /* on mobile, show single shared image at full width without margin */
  40. #imgframe {
  41. width: 100%;
  42. padding: 0;
  43. }
  44. /* some margin for the file type icon */
  45. #imgframe .publicpreview {
  46. margin-top: 32px;
  47. }
  48. /* some padding for better clickability */
  49. .files-fileList a.action img {
  50. padding: 0 6px 0 12px;
  51. }
  52. /* hide text of the actions on mobile */
  53. .files-fileList a.action:not(.menuitem) span {
  54. display: none;
  55. }
  56. /* ellipsis on file names */
  57. .nametext {
  58. width: 60%;
  59. white-space: nowrap;
  60. overflow: hidden;
  61. text-overflow: ellipsis;
  62. }
  63. #header .menutoggle {
  64. padding-right: 14px;
  65. background-position: center;
  66. }
  67. .note {
  68. padding: 0 20px;
  69. }
  70. .emptycontent {
  71. margin-top: 10vh;
  72. }
  73. }
  74. /*# sourceMappingURL=mobile.css.map */