index.scss 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. .excalidraw {
  2. --color-primary-contrast-offset: #625ee0; // to offset Chubb illusion
  3. &.theme--dark {
  4. --color-primary-contrast-offset: #726dff; // to offset Chubb illusion
  5. }
  6. .top-right-ui {
  7. display: flex;
  8. justify-content: center;
  9. align-items: flex-start;
  10. }
  11. .footer-center {
  12. justify-content: flex-end;
  13. margin-top: auto;
  14. margin-bottom: auto;
  15. margin-inline-start: auto;
  16. }
  17. .encrypted-icon {
  18. border-radius: var(--space-factor);
  19. color: var(--color-primary);
  20. margin-top: auto;
  21. margin-bottom: auto;
  22. margin-inline-start: auto;
  23. margin-inline-end: 0.6em;
  24. z-index: var(--zIndex-layerUI);
  25. svg {
  26. width: 1.2rem;
  27. height: 1.2rem;
  28. }
  29. }
  30. .dropdown-menu-container {
  31. .dropdown-menu-item {
  32. &.active-collab {
  33. background-color: #ecfdf5;
  34. color: #064e3c;
  35. }
  36. &.highlighted {
  37. color: var(--color-promo);
  38. font-weight: 700;
  39. .dropdown-menu-item__icon g {
  40. stroke-width: 2;
  41. }
  42. }
  43. }
  44. }
  45. &.theme--dark {
  46. .dropdown-menu-item {
  47. &.active-collab {
  48. background-color: #064e3c;
  49. color: #ecfdf5;
  50. }
  51. }
  52. }
  53. .collab-offline-warning {
  54. pointer-events: none;
  55. position: absolute;
  56. top: 6.5rem;
  57. left: 50%;
  58. transform: translateX(-50%);
  59. padding: 0.5rem 1rem;
  60. font-size: 0.875rem;
  61. text-align: center;
  62. line-height: 1.5;
  63. border-radius: var(--border-radius-md);
  64. background-color: var(--color-warning);
  65. color: var(--color-text-warning);
  66. z-index: 6;
  67. white-space: pre;
  68. }
  69. }
  70. .excalidraw-app.is-collaborating {
  71. [data-testid="clear-canvas-button"] {
  72. display: none;
  73. }
  74. }
  75. .plus-button {
  76. display: flex;
  77. justify-content: center;
  78. cursor: pointer;
  79. align-items: center;
  80. border: 1px solid var(--color-primary);
  81. padding: 0.5rem 0.75rem;
  82. border-radius: var(--border-radius-lg);
  83. background-color: var(--island-bg-color);
  84. color: var(--color-primary) !important;
  85. text-decoration: none !important;
  86. font-size: 0.75rem;
  87. box-sizing: border-box;
  88. height: var(--lg-button-size);
  89. &:hover {
  90. background-color: var(--color-primary);
  91. color: white !important;
  92. }
  93. &:active {
  94. background-color: var(--color-primary-darker);
  95. }
  96. }
  97. .theme--dark {
  98. .plus-button {
  99. &:hover {
  100. color: black !important;
  101. }
  102. }
  103. }