style: 代码块 margin 与其他块统一、代码块语言的位置有点难看

This commit is contained in:
Jeffrey Chen 2024-12-21 04:48:29 +08:00
parent a43188edf8
commit 0230c63ba5

View file

@ -281,7 +281,7 @@
}
.code-block:not(pre) {
margin: 1em 0;
margin: 2px 0;
box-sizing: border-box;
.protyle-action {
@ -299,8 +299,14 @@
align-self: center;
}
.protyle-icon,
.protyle-icon {
opacity: 0;
transition: var(--b3-transition);
}
.protyle-action__language {
position: absolute;
left: 1em;
opacity: 0;
transition: var(--b3-transition);
}