aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/scrapbook/ScrapbookBox.scss
blob: 6ac2220f98a7348d008f1081a72ad7de6b960807 (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
.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: relative;
    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: relative;
    top: 8px;
    right: 8px;
    z-index: 20;
    background: white;
    width: 40px;
    display: flex;
    justify-content: center;
}

/* 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;
}