Hyperlink.scss 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. @import "../css/variables.module.scss";
  2. .excalidraw-hyperlinkContainer {
  3. display: flex;
  4. align-items: center;
  5. justify-content: space-between;
  6. position: absolute;
  7. box-shadow: 0px 2px 4px 0 rgb(0 0 0 / 30%);
  8. z-index: var(--zIndex-hyperlinkContainer);
  9. background: var(--island-bg-color);
  10. border-radius: var(--border-radius-md);
  11. box-sizing: border-box;
  12. // to account for LS due to rendering icons after new link created
  13. min-height: 42px;
  14. &-input,
  15. button {
  16. z-index: 100;
  17. }
  18. &-input,
  19. &-link {
  20. height: 24px;
  21. padding: 0 8px;
  22. line-height: 24px;
  23. font-size: 0.9rem;
  24. font-weight: 500;
  25. font-family: var(--ui-font);
  26. }
  27. &-input {
  28. width: 18rem;
  29. border: none;
  30. background-color: transparent;
  31. color: var(--text-primary-color);
  32. outline: none;
  33. border: none;
  34. box-shadow: none !important;
  35. }
  36. &-link {
  37. overflow: hidden;
  38. text-overflow: ellipsis;
  39. white-space: nowrap;
  40. max-width: 15rem;
  41. }
  42. button {
  43. color: $oc-blue-6;
  44. background-color: transparent !important;
  45. font-weight: 500;
  46. &.excalidraw-hyperlinkContainer--remove {
  47. color: $oc-red-9;
  48. }
  49. }
  50. &--remove .ToolIcon__icon svg {
  51. color: $oc-red-6;
  52. }
  53. .ToolIcon__icon {
  54. width: 2rem;
  55. height: 2rem;
  56. }
  57. &__buttons {
  58. flex: 0 0 auto;
  59. }
  60. }