feat: 添加i18n,美化界面

This commit is contained in:
2025-03-20 02:29:01 +08:00
parent 27d9bdf54e
commit c206add7eb
56 changed files with 2743 additions and 928 deletions

View File

@@ -3,13 +3,6 @@
@import './index.css';
@import '@kevisual/center-components/theme/wind-theme.css';
html,
body {
width: 100%;
height: 100%;
font-size: 16px;
font-family: 'Montserrat', sans-serif;
}
h1 {
@apply text-2xl font-bold;
}
@@ -38,7 +31,7 @@ h3 {
@apply text-gray-700;
}
@utility card-key {
@apply text-xs text-gray-400;
@apply text-xs;
}
@utility card-footer {
@apply text-sm text-gray-500;
@@ -48,7 +41,7 @@ h3 {
}
@utility layout-menu {
@apply bg-secondary p-2 text-white flex justify-between h-12 ;
@apply bg-secondary p-2 text-white flex justify-between h-12;
-webkit-app-region: drag;
}
@utility no-drag {
@@ -64,58 +57,8 @@ h3 {
}
}
/* font-family */
@utility font-family-mon {
font-family: 'Montserrat', sans-serif;
}
@utility font-family-rob {
font-family: 'Roboto', sans-serif;
}
@utility font-family-int {
font-family: 'Inter', sans-serif;
}
@utility font-family-orb {
font-family: 'Orbitron', sans-serif;
}
@utility font-family-din {
font-family: 'DIN', sans-serif;
}
@utility flex-row-center {
@apply flex flex-row items-center justify-center;
}
@utility flex-col-center {
@apply flex flex-col items-center justify-center;
}
@utility scrollbar {
overflow: auto;
/* 整个滚动条 */
&::-webkit-scrollbar {
width: 3px;
height: 3px;
}
/* 滚动条有滑块的轨道部分 */
&::-webkit-scrollbar-track-piece {
background-color: transparent;
border-radius: 1px;
}
/* 滚动条滑块(竖向:vertical 横向:horizontal) */
&::-webkit-scrollbar-thumb {
cursor: pointer;
background-color: #c1c1c1;
border-radius: 5px;
}
/* 滚动条滑块hover */
&::-webkit-scrollbar-thumb:hover {
background-color: #999999;
}
/* 同时有垂直和水平滚动条时交汇的部分 */
&::-webkit-scrollbar-corner {
display: block; /* 修复交汇时出现的白块 */
}
.cm-editor {
@apply h-full;
}