aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/components/dialog/Dialog.css
blob: e4c61440c5823beece646f327c1f2a2ee6513f36 (plain)
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
.cru-dialog-overlay {
  position: fixed;
  z-index: 1040;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  overflow: auto;
}

.cru-dialog-background {
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: var(--cru-surface-dim-color);
  opacity: 0.8;
}

.cru-dialog-container {
  max-width: 100%;
  min-width: 30vw;

  margin: 2em auto;

  border: var(--cru-key-container-color) 1px solid;
  border-radius: 5px;
  padding: 1.5em;
  background-color: var(--cru-surface-color);
}

@media (min-width: 576px) {
  .cru-dialog-container {
    max-width: 800px;
  }
}

.cru-dialog-enter .cru-dialog-container {
  transform: scale(0, 0);
  opacity: 0;
  transform-origin: center;
}

.cru-dialog-enter-active .cru-dialog-container {
  transform: scale(1, 1);
  opacity: 1;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

.cru-dialog-exit-active .cru-dialog-container {
  transition: transform 0.3s, opacity 0.3s;
  transform: scale(0, 0);
  opacity: 0;
  transform-origin: center;
}