This repository has been archived on 2024-09-05. You can view files and clone it, but cannot push or open issues or pull requests.
shimmie2/ext/notes/style.css
discomrade a21f6ebf6b [notes] allow clicking through notes container
If the notes extension is enabled, the container would block clicking the image, including right-clicking to save it
2024-02-20 10:41:31 +00:00

59 lines
1.1 KiB
CSS

.notes-container {
position: absolute;
pointer-events: none;
}
.notes-container .note {
display: flex;
justify-content: center;
align-items: center;
color: black;
background-color: #FFE;
border: 1px dashed black;
overflow: hidden;
position: absolute;
opacity: 0.5;
z-index: 1;
pointer-events: auto;
}
.notes-container .note.editing {
opacity: 1;
border: 1px dashed red;
z-index: 2;
}
.notes-container .note.editing.dragging {
opacity: 0.5;
z-index: 2;
}
.notes-container .note:hover {
opacity: 1;
z-index: 3;
}
.notes-container .editor {
display: grid;
color: black;
background-color: #EFE;
border: 1px dashed blue;
position: absolute;
grid-template-columns: 1fr 1fr;
grid-template-areas:
"text text"
"save cancel"
"delete delete";
z-index: 4;
pointer-events: auto;
}
.notes-container .editor TEXTAREA {
grid-area: text;
// resize: none;
}
.notes-container .editor BUTTON[value="Save"] {
grid-area: save;
}
.notes-container .editor BUTTON[value="Cancel"] {
grid-area: cancel;
}
.notes-container .editor BUTTON[value="Delete"] {
grid-area: delete;
}