summaryrefslogtreecommitdiffstats
path: root/packages/excalidraw/components/FollowMode/FollowMode.scss
blob: 383b3ceedb6fca6f308576877c601b7572223dce (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
.excalidraw {
  .follow-mode {
    position: absolute;
    box-sizing: border-box;
    pointer-events: none;
    border: 2px solid var(--color-primary-hover);
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;

    &__badge {
      background-color: var(--color-primary-hover);
      color: var(--color-primary-light);
      padding: 0.25rem 0.5rem;
      margin-bottom: 0.5rem;
      border-radius: 0.5rem;
      pointer-events: all;
      font-size: 0.75rem;
      display: flex;
      gap: 0.5rem;
      align-items: center;

      &__label {
        display: flex;
        white-space: pre-wrap;
        line-height: 1;
      }

      &__username {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100px;
      }
    }

    &__disconnect-btn {
      all: unset;
      cursor: pointer;
      border-radius: 0.25rem;

      &:hover {
        background-color: var(--color-primary-darker);
      }

      &:active {
        background-color: var(--color-primary-darkest);
      }

      svg {
        display: block;
        width: 1rem;
        height: 1rem;
      }
    }
  }
}