ExportDialog.scss 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. @import "../css/_variables";
  2. .excalidraw {
  3. .ExportDialog__preview {
  4. --preview-padding: calc(var(--space-factor) * 4);
  5. background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==")
  6. left center;
  7. text-align: center;
  8. padding: var(--preview-padding);
  9. margin-bottom: calc(var(--space-factor) * 3);
  10. }
  11. .ExportDialog__preview canvas {
  12. max-width: calc(100% - var(--preview-padding) * 2);
  13. max-height: 25rem;
  14. }
  15. &.Appearance_dark .ExportDialog__preview canvas {
  16. filter: none;
  17. }
  18. .ExportDialog__actions {
  19. width: 100%;
  20. display: flex;
  21. grid-gap: calc(var(--space-factor) * 2);
  22. align-items: top;
  23. justify-content: space-between;
  24. }
  25. .ExportDialog__name {
  26. grid-column: project-name;
  27. margin: auto;
  28. .TextInput {
  29. height: calc(1rem - 3px);
  30. }
  31. }
  32. @media (max-width: 550px) {
  33. .ExportDialog {
  34. display: flex;
  35. flex-direction: column;
  36. }
  37. .ExportDialog__actions {
  38. flex-direction: column;
  39. align-items: center;
  40. }
  41. .ExportDialog__actions > * {
  42. margin-bottom: calc(var(--space-factor) * 3);
  43. }
  44. }
  45. @media #{$media-query} {
  46. .ExportDialog__preview canvas {
  47. max-height: 30vh;
  48. }
  49. .ExportDialog__dialog,
  50. .ExportDialog__dialog .Island {
  51. height: 100%;
  52. box-sizing: border-box;
  53. }
  54. .ExportDialog__dialog .Island {
  55. overflow-y: auto;
  56. }
  57. }
  58. }