summaryrefslogtreecommitdiffstats
path: root/packages/excalidraw/components/Stats/Stats.scss
blob: 106ecf303f7acce0e0506854a3489459fde917bd (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
60
61
62
63
64
65
66
67
68
69
70
71
72
.exc-stats {
  width: 204px;
  position: absolute;
  top: 60px;
  font-size: 12px;
  z-index: var(--zIndex-layerUI);
  pointer-events: var(--ui-pointerEvents);

  :root[dir="rtl"] & {
    left: 12px;
    right: initial;
  }

  h2 {
    font-size: 1.5em;
    margin-block-start: 0.83em;
    margin-block-end: 0.83em;
    font-weight: bold;
  }
  h3 {
    white-space: nowrap;
    font-size: 1.17em;
    margin: 0;
    font-weight: bold;
  }

  &__rows {
    display: flex;
    flex-direction: column;
    gap: 0.3125rem;
  }

  &__row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    display: grid;
    gap: 4px;

    div + div {
      text-align: right;
    }
  }

  &__row--heading {
    text-align: center;
    font-weight: bold;
    margin: 0.25rem 0;
  }

  .title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;

    h2 {
      margin: 0;
    }
  }

  .close {
    height: 16px;
    width: 16px;
    cursor: pointer;
    svg {
      width: 100%;
      height: 100%;
    }
  }
}