aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/scrapbook/ScrapbookSlot.scss
blob: ae647ad36336f0cfc1e2e6c415c351ffaaa0d14a (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
80
81
82
83
84
85
//IGNORE FOR NOW, CURRENTLY NOT USED IN SCRAPBOOK IMPLEMENTATION
.scrapbook-slot {
  position: absolute;
  background-color: rgba(245, 245, 245, 0.7);
  border: 2px dashed #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  transition: all 0.2s ease;
  overflow: hidden;

  &.scrapbook-slot-over {
    border-color: #4a90e2;
    background-color: rgba(74, 144, 226, 0.1);
  }

  &.scrapbook-slot-filled {
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.1);
    background-color: transparent;

    &.scrapbook-slot-over {
      border-color: #4a90e2;
      background-color: rgba(74, 144, 226, 0.1);
    }
  }

  .scrapbook-slot-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }

  .scrapbook-slot-placeholder {
    text-align: center;
    color: #888;
  }

  .scrapbook-slot-title {
    font-weight: bold;
    margin-bottom: 5px;
  }

  .scrapbook-slot-instruction {
    font-size: 0.9em;
    font-style: italic;
  }

  .scrapbook-slot-content {
    width: 100%;
    height: 100%;
    position: relative;
  }

  .scrapbook-slot-controls {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s ease;

    .scrapbook-slot-remove-btn {
      background-color: rgba(255, 255, 255, 0.8);
      border: 1px solid #ccc;
      border-radius: 50%;
      width: 20px;
      height: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 10px;
      
      &:hover {
        background-color: rgba(255, 0, 0, 0.1);
      }
    }
  }

  &:hover .scrapbook-slot-controls {
    opacity: 1;
  }
}