file-view.scss 2.3 KB

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