aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/scrapbook/ScrapbookBox.scss
blob: 8dc93df602ae086e3691e11fff04be8b7dc20a24 (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
.scrapbook-box {
  /* Make sure the container fills its parent, and set a base background */
  position: relative; /* so that absolute children (loading overlay, etc.) are positioned relative to this */
  width: 100%;
  height: 100%;
  background: beige;
  overflow: hidden; /* prevent scrollbars if children overflow */
}

/* Loading overlay that covers the entire scrapbook while AI-generation is in progress */
.scrapbook-box-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  z-index: 10; /* sits above the ImageBox and other content */
}

/* The <select> dropdown for choosing presets */
.scrapbook-box-preset-select {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 20;
  padding: 4px 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: white;
}

/* Container for the “Regenerate Background” button */
.scrapbook-box-ui {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 20;
}

/* The button itself */
.scrapbook-box-ui-button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  font-size: 14px;
  color: black;
  background: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.scrapbook-box-ui-button:hover {
  background: #f5f5f5;
}