summaryrefslogtreecommitdiff
path: root/desk/lib/kaji.css
blob: c41d0d77e895a2f3b0dd131c5aad17a0a80f5469 (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
70
71
72
73
74
75
76
77
78
79
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

/* The Modal (background) */
#kaji-modal-bg {
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 998;
}

/* Modal Content */
#kaji-modal-fg {
  background-color: var(--background-color);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  width: 80%;
  z-index: 999;
  max-height: 90vh;
  max-width: 90vw;
  overflow: auto;
}

[kaji="modal"] {
  cursor: pointer;
}

#kaji-alert {
  background-color: var(--background-color);
  border: 2px solid var(--hong);
  z-index: 999;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0.5rem;
}

button {
  cursor: pointer;
}

.hide {
  display: none;
}

.not-hide {
  display: block;
}

.iscroll-spinner {
  display: block;
  margin: 1rem auto;
}