fix: case of untitled block ref #1094

This commit is contained in:
charlie
2021-01-12 14:27:41 +08:00
committed by Tienson Qin
parent 4b2dde2228
commit 2ed50ff3c7
3 changed files with 53 additions and 35 deletions

View File

@@ -1,16 +1,6 @@
.blocks-container {
}
.block-control,
.block-control:hover {
text-decoration: none;
cursor: pointer;
font-size: 14px;
min-width: 10px;
color: initial;
user-select: none;
}
.block-content {
min-height: 24px;
max-width: 100%;
@@ -37,6 +27,14 @@
}
}
.open-block-ref-link {
@apply py-0 px-1 rounded opacity-50 hover:opacity-100;
font-size: 12px;
line-height: 1em;
position: relative;
right: -4px;
}
.block-body {
blockquote:first-child,
pre:first-child {
@@ -50,6 +48,16 @@
border-left-color: var(--ls-guideline-color, #ddd);
}
.block-control,
.block-control:hover {
text-decoration: none;
cursor: pointer;
font-size: 14px;
min-width: 10px;
color: initial;
user-select: none;
}
.block-ref {
color: var(--ls-link-text-color);
padding-bottom: 2px;
@@ -57,6 +65,10 @@
border-bottom-color: var(--ls-block-ref-link-text-color);
cursor: alias;
&-wrap {
display: inline-block;
}
&:hover {
color: var(--ls-link-text-hover-color)
}