made human-friendly editing buttons

This commit is contained in:
Fedor Katurov 2023-04-26 17:09:23 +06:00
parent 6d854f57a5
commit 02333e6049
15 changed files with 175 additions and 28 deletions

View file

@ -1,4 +1,27 @@
.editor {
position: relative;
height: 100%;
box-sizing: border-box;
}
.edit {
position: absolute;
bottom: 0;
right: 0;
opacity: 0;
transition: opacity 0.25s;
padding: 10px;
.editor:hover & {
opacity: 0.5;
}
&:hover {
opacity: 1;
}
}
.content {
& > :first-child {
margin-top: 0 !important;
margin-left: 0 !important;