file-view.scss 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. .file-view {
  2. padding: var(--spacing-05);
  3. text-align: center;
  4. overflow: auto;
  5. .loading-panel {
  6. padding-top: 8rem;
  7. background: var(--neutral-10);
  8. }
  9. .file-view-buttons {
  10. display: flex;
  11. flex-wrap: wrap;
  12. gap: var(--spacing-03);
  13. justify-content: center;
  14. }
  15. .file-view-error {
  16. margin: var(--spacing-08) auto auto;
  17. max-width: 400px;
  18. text-align: left;
  19. }
  20. img,
  21. .file-view-pdf {
  22. max-width: 100%;
  23. max-height: 90%;
  24. display: block;
  25. margin: var(--spacing-05) auto auto;
  26. border: 1px solid var(--neutral-60);
  27. box-shadow: 0 2px 3px var(--neutral-60);
  28. background-color: var(--white);
  29. }
  30. .file-view-pdf {
  31. overflow: auto;
  32. width: max-content;
  33. display: flex;
  34. flex-direction: column;
  35. align-items: center;
  36. .pdf-page:not(:last-of-type) {
  37. border-bottom: 1px solid var(--neutral-60);
  38. }
  39. }
  40. .linked-file-icon {
  41. color: var(--blue-50);
  42. }
  43. .no-preview {
  44. color: var(--neutral-60);
  45. font-size: var(--font-size-06);
  46. margin-top: var(--spacing-06);
  47. }
  48. .text-preview {
  49. margin-top: var(--spacing-05);
  50. color: var(--content-primary);
  51. .scroll-container {
  52. background-color: var(--white);
  53. font-size: 0.8em;
  54. line-height: 1.1em;
  55. overflow: auto;
  56. border: 1px solid var(--neutral-30);
  57. padding: var(--spacing-04) var(--spacing-05);
  58. text-align: left;
  59. white-space: pre;
  60. font-family: monospace;
  61. }
  62. }
  63. }
  64. .full-size,
  65. .loading-panel {
  66. position: absolute;
  67. inset: 0;
  68. }
  69. .no-history-available,
  70. .no-file-selection-message,
  71. .multi-selection-message {
  72. width: 50%;
  73. margin: var(--spacing-10) auto;
  74. text-align: center;
  75. }
  76. .pdf-empty,
  77. .no-history-available,
  78. .no-file-selection,
  79. .multi-selection-ongoing {
  80. &::before {
  81. @extend .full-size;
  82. left: 20px;
  83. content: '';
  84. background: url(../../../../../public/img/ol-brand/overleaf-o-grey.svg)
  85. center / 200px no-repeat;
  86. opacity: 0.2;
  87. pointer-events: none;
  88. }
  89. }