🎨 无SarasaTerm字体,部分字体样式加粗

This commit is contained in:
hi2hi 2024-12-23 04:52:37 +00:00
parent 61fe45927e
commit c835cec98c
5 changed files with 14 additions and 1 deletions

View File

@ -318,6 +318,7 @@ const dashboardUrl = computed(() => config.nazhua.v1DashboardUrl || '/dashboard'
.site-name {
line-height: calc(var(--layout-header-height) - 20px);
font-size: 24px;
font-weight: bold;
color: #fff;
text-shadow: 2px 2px 4px rgba(#000, 0.5);
cursor: pointer;

View File

@ -11,5 +11,6 @@ export default (app) => {
app.use(store);
app.component('DotDotBox', DotDotBox);
app.config.globalProperties.$hasSarasaTerm = !import.meta.env.VITE_DISABLE_SARASA_TERM_SC;
app.config.globalProperties.$config = config;
};

View File

@ -144,6 +144,7 @@ const platformLogoIconClassName = computed(() => hostUtils.getPlatformLogoIconCl
.server-name {
line-height: 30px;
font-size: 24px;
font-weight: bold;
color: #fff;
}
@ -156,6 +157,7 @@ const platformLogoIconClassName = computed(() => hostUtils.getPlatformLogoIconCl
.core-mem {
line-height: 30px;
font-size: 16px;
font-weight: bold;
}
@media screen and (max-width: 500px) {

View File

@ -36,6 +36,9 @@
v-for="(tagItem, index) in tagList"
:key="`${tagItem}_${index}`"
class="tag-item"
:class="{
'has-sarasa-term': $hasSarasaTerm,
}"
>
{{ tagItem }}
</span>
@ -184,12 +187,16 @@ const show = computed(() => {
.tag-item {
height: 18px;
padding: 0 4px;
line-height: 20px;
line-height: 18px;
font-size: 12px;
color: var(--public-note-tag-color);
background: var(--public-note-tag-bg);
text-shadow: 1px 1px 2px rgba(#000, 0.2);
border-radius: 4px;
&.has-sarasa-term {
line-height: 20px;
}
}
}

View File

@ -167,6 +167,7 @@ function openDetail() {
height: 30px;
line-height: 32px;
font-size: 14px;
font-weight: bold;
}
.cpu-mem-group {
@ -178,6 +179,7 @@ function openDetail() {
.core-mem {
height: 30px;
line-height: 32px;
font-weight: bold;
}
}