feat: support delete image link of block

This commit is contained in:
charlie
2021-01-13 21:36:20 +08:00
parent e8a20dbde7
commit ee529b5b9d
8 changed files with 216 additions and 49 deletions

View File

@@ -25,6 +25,51 @@
width: 9px;
}
}
.asset-container {
display: inline-block;
position: relative;
margin-top: .5rem;
margin-bottom: .5rem;
.ctl {
position: absolute;
top: 0;
right: 0;
padding: 5px;
display: none;
> a {
padding: 3px;
border-radius: 4px;
opacity: .4;
user-select: none;
&.delete {
svg {
color: red;
opacity: .6;
font-weight: normal;
}
}
&:hover {
opacity: .8;
}
&:active {
opacity: 1;
}
}
}
&:hover {
.ctl {
display: flex;
}
}
}
}
.open-block-ref-link {