file-view.scss 2.3 KB

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