file-view.less 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. .file-view,
  2. .binary-file {
  3. padding: @line-height-computed / 2;
  4. background-color: @gray-lightest;
  5. text-align: center;
  6. overflow: auto;
  7. .file-view-buttons {
  8. display: flex;
  9. flex-wrap: wrap;
  10. gap: @spacing-03;
  11. justify-content: center;
  12. }
  13. .file-view-error {
  14. margin: @spacing-08 -15px auto;
  15. > .alert {
  16. max-width: 400px;
  17. margin: 0 auto;
  18. }
  19. }
  20. .tpr-refresh-error {
  21. .btn {
  22. color: @neutral-90;
  23. background-color: @white;
  24. &:hover {
  25. background-color: @neutral-20;
  26. }
  27. }
  28. }
  29. img,
  30. .file-view-pdf {
  31. max-width: 100%;
  32. max-height: 90%;
  33. display: block;
  34. margin: auto;
  35. margin-top: @line-height-computed / 2;
  36. border: 1px solid @gray;
  37. .box-shadow(0 2px 3px @gray;);
  38. background-color: white;
  39. }
  40. .file-view-pdf {
  41. overflow: auto;
  42. width: max-content;
  43. display: flex;
  44. flex-direction: column;
  45. align-items: center;
  46. .pdf-page:not(:last-of-type) {
  47. border-bottom: 1px solid @gray;
  48. }
  49. }
  50. p.no-preview {
  51. margin-top: @line-height-computed / 2;
  52. font-size: 24px;
  53. color: @gray;
  54. }
  55. .text-loading {
  56. margin-top: @line-height-computed / 2;
  57. font-size: 24px;
  58. color: @gray;
  59. }
  60. .text-preview {
  61. margin-top: @line-height-computed / 2;
  62. .scroll-container {
  63. background-color: white;
  64. font-size: 0.8em;
  65. line-height: 1.1em;
  66. overflow: auto;
  67. border: 1px solid @gray-lighter;
  68. padding: 8px 12px;
  69. text-align: left;
  70. white-space: pre;
  71. font-family: monospace;
  72. }
  73. }
  74. .linked-file-icon {
  75. color: @blue;
  76. }
  77. }