aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/components/dialog/Dialog.css
blob: 3f0f9cb6c275c3445de202310ce6871e49b63353 (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
61
62
63
64
65
66
67
68
69
.cru-dialog-overlay {
  position: fixed;
  z-index: 1040;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  overflow: auto;
  padding: 20vh 1em;
}

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

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

  margin: 2em auto;

  border: var(--cru-theme-color) 2px solid;
  border-radius: 5px;
  padding: 1.5em;
  background-color: var(--cru-dialog-container-background-color);
}

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

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

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

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

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