summaryrefslogtreecommitdiffstats
path: root/packages/excalidraw/components/Toast.scss
blob: 853871fd46bbda1e97824000298fa09a6d915840 (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
@import "../css/variables.module.scss";

.excalidraw {
  .Toast {
    $closeButtonSize: 1.2rem;
    $closeButtonPadding: 0.4rem;

    animation: fade-in 0.5s;
    background-color: var(--button-gray-1);
    border-radius: 4px;
    bottom: 10px;
    box-sizing: border-box;
    cursor: default;
    left: 50%;
    margin-left: -150px;
    padding: 4px 0;
    position: absolute;
    text-align: center;
    width: 300px;
    z-index: 999999;

    .Toast__message {
      padding: 0 $closeButtonSize + ($closeButtonPadding);
      color: var(--popup-text-color);
      white-space: pre-wrap;
    }

    .close {
      position: absolute;
      top: 0;
      right: 0;
      padding: $closeButtonPadding;

      .ToolIcon__icon {
        width: $closeButtonSize;
        height: $closeButtonSize;
      }
    }
  }

  @keyframes fade-in {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
}