quill.scss 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. .ql-editor {
  2. .file-card {
  3. position: relative;
  4. display: block;
  5. margin: 8px 0;
  6. border: 1px solid var(--border-default);
  7. border-radius: 8px;
  8. padding: 8px;
  9. background: var(--bg-elevated);
  10. white-space: initial;
  11. justify-self: start;
  12. user-select: auto;
  13. cursor: grab;
  14. .file-card-content {
  15. display: flex;
  16. flex-direction: column;
  17. gap: 4px;
  18. pointer-events: auto;
  19. }
  20. .file-card-info {
  21. font-size: 14px;
  22. word-break: break-word;
  23. }
  24. .file-card-actions {
  25. z-index: 1;
  26. position: absolute;
  27. display: none;
  28. width: 154px;
  29. top: 100%;
  30. left: 50%;
  31. transform: translate(-50%, -50%);
  32. background: var(--bg-page);
  33. border: 1px solid var(--border-strong);
  34. padding: 4px;
  35. border-radius: 4px;
  36. button {
  37. background: var(--border-default);
  38. border: none;
  39. border-radius: 4px;
  40. padding: 4px 8px;
  41. cursor: pointer;
  42. &:hover, &.active {
  43. background: #d5d5d5;
  44. }
  45. }
  46. }
  47. &:hover {
  48. cursor: grab;
  49. outline: 1px solid var(--text-muted);
  50. }
  51. &.active {
  52. border: 1px solid var(--color-success);
  53. .file-card-actions {
  54. display: flex;
  55. gap: 0.313rem;
  56. }
  57. }
  58. }
  59. }