aboutsummaryrefslogtreecommitdiffstats
path: root/packages/excalidraw/components/Actions.scss
blob: 5826628de185761bebff0f105d154a9cbcad1cca (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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
.zoom-actions,
.undo-redo-buttons {
  background-color: var(--island-bg-color);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 0 0 1px var(--color-surface-lowest);
}

.zoom-button,
.undo-redo-buttons button {
  border-radius: 0 !important;
  background-color: var(--color-surface-low) !important;
  font-size: 0.875rem !important;
  width: var(--lg-button-size);
  height: var(--lg-button-size);

  svg {
    width: var(--lg-icon-size) !important;
    height: var(--lg-icon-size) !important;
  }

  .ToolIcon__icon {
    width: 100%;
    height: 100%;
  }
}

.reset-zoom-button {
  border-left: 0 !important;
  border-right: 0 !important;
  padding: 0 0.625rem !important;
  width: 3.75rem !important;
  justify-content: center;
  color: var(--text-primary-color);
}

.zoom-out-button {
  border-top-left-radius: var(--border-radius-lg) !important;
  border-bottom-left-radius: var(--border-radius-lg) !important;

  :root[dir="rtl"] & {
    transform: scaleX(-1);
  }

  .ToolIcon__icon {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
}

.zoom-in-button {
  border-top-right-radius: var(--border-radius-lg) !important;
  border-bottom-right-radius: var(--border-radius-lg) !important;

  :root[dir="rtl"] & {
    transform: scaleX(-1);
  }

  .ToolIcon__icon {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
  }
}

.undo-redo-buttons {
  .undo-button-container button {
    border-top-left-radius: var(--border-radius-lg) !important;
    border-bottom-left-radius: var(--border-radius-lg) !important;
    border-right: 0 !important;

    :root[dir="rtl"] & {
      transform: scaleX(-1);
    }

    .ToolIcon__icon {
      border-top-right-radius: 0 !important;
      border-bottom-right-radius: 0 !important;
    }
  }

  .redo-button-container button {
    border-top-right-radius: var(--border-radius-lg) !important;
    border-bottom-right-radius: var(--border-radius-lg) !important;

    :root[dir="rtl"] & {
      transform: scaleX(-1);
    }

    .ToolIcon__icon {
      border-top-left-radius: 0 !important;
      border-bottom-left-radius: 0 !important;
    }
  }
}