将 SCSS 中使用的 @import 改为 @use (#15114)

* 将 SCSS 中使用的 @import 改为 @use

* 更新 SCSS 相关依赖
This commit is contained in:
Jeffrey Chen 2025-07-10 17:27:00 +08:00 committed by GitHub
parent d968055aa7
commit a4ee654cb2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
23 changed files with 1085 additions and 1032 deletions

View file

@ -1,11 +1,46 @@
@use "mixin";
%fn {
&__ellipsis {
@include mixin.text-clamp(1);
display: block; // 集市挂件名称过长遮挡星标 https://github.com/siyuan-note/siyuan/issues/4782
}
&__flex-column {
min-height: 100%;
display: flex;
flex-direction: column;
}
&__a {
color: var(--b3-theme-on-surface);
cursor: pointer;
&:hover {
color: var(--b3-theme-on-background);
}
}
&__code {
padding: .2em .4em;
margin: 0;
font-size: 85%;
border-radius: var(--b3-border-radius);
font-family: var(--b3-font-family-code);
word-break: break-word;
background-size: 20px 20px;
white-space: pre-wrap;
background-color: var(--b3-protyle-code-background);
}
}
.fn {
&__hidescrollbar::-webkit-scrollbar {
display: none;
}
&__ellipsis {
@include text-clamp(1);
display: block; // 集市挂件名称过长遮挡星标 https://github.com/siyuan-note/siyuan/issues/4782
@extend %fn__ellipsis;
}
&__space {
@ -52,9 +87,7 @@
}
&-column {
min-height: 100%;
display: flex;
flex-direction: column;
@extend %fn__flex-column;
}
&-shrink {
@ -83,12 +116,7 @@
}
&__a {
color: var(--b3-theme-on-surface);
cursor: pointer;
&:hover {
color: var(--b3-theme-on-background);
}
@extend %fn__a;
}
&__block {
@ -125,15 +153,7 @@
}
&__code {
padding: .2em .4em;
margin: 0;
font-size: 85%;
border-radius: var(--b3-border-radius);
font-family: var(--b3-font-family-code);
word-break: break-word;
background-size: 20px 20px;
white-space: pre-wrap;
background-color: var(--b3-protyle-code-background);
@extend %fn__code;
}
&__kbd {