refactor: remove unused style.css import from main.js

Removed the unnecessary import of './style.css' from main.js as it's no longer needed in the application. The theme.css file is still imported for styling requirements.
This commit is contained in:
2026-03-18 03:14:18 +08:00
parent 3db8980928
commit c3479a8a16
2 changed files with 0 additions and 216 deletions

View File

@@ -7,7 +7,6 @@ import 'dayjs/locale/zh-cn';
import App from './App.vue'
import router from './router'
import './style.css'
import './theme.css'
const app = createApp(App)

View File

@@ -1,215 +0,0 @@
/* ================================
SionRUI 业务样式
主题变量已移至 theme.css
================================ */
/* ================================
全局基础样式
================================ */
html, body, #app {
background: var(--color-bg);
color: var(--color-text);
font-family: var(--font-family);
font-size: 16px;
line-height: 1.5;
}
body {
scrollbar-gutter: stable both-edges;
}
/* ================================
滚动条样式
================================ */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: var(--color-gray-300);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--color-gray-400);
}
.dark ::-webkit-scrollbar-thumb {
background: var(--color-gray-600);
}
.dark ::-webkit-scrollbar-thumb:hover {
background: var(--color-gray-500);
}
/* ================================
文本选中和焦点
================================ */
::selection {
background: var(--primary);
color: var(--primary-foreground);
}
:focus-visible {
outline: 2px solid var(--ring);
outline-offset: 2px;
}
/* ================================
链接样式
================================ */
a {
color: var(--primary);
text-decoration: none;
transition: color var(--duration-fast) ease;
}
a:hover {
color: var(--primary-hover);
}
/* ================================
按钮基础
================================ */
button {
cursor: pointer;
font-family: inherit;
}
button:disabled {
cursor: not-allowed;
opacity: 0.5;
}
/* ================================
输入框基础
================================ */
input, textarea, select {
font-family: inherit;
font-size: inherit;
}
/* ================================
通用工具类
================================ */
/* 文本截断 */
.truncate {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* 多行截断 */
.line-clamp-2 {
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.line-clamp-3 {
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
/* 玻璃态效果 */
.glass {
background: oklch(1 0 0 / 0.8);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
}
.dark .glass {
background: oklch(0.18 0.010 265 / 0.8);
}
/* 渐变文字 */
.gradient-text {
background: linear-gradient(135deg, var(--primary), var(--accent));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
/* 发光边框 */
.glow-border {
box-shadow: var(--shadow-glow);
}
.glow-border:hover {
box-shadow: var(--shadow-glow-lg);
}
/* 悬浮卡片 */
.hover-card {
transition: transform var(--duration-base) var(--ease-out),
box-shadow var(--duration-base) var(--ease-out);
}
.hover-card:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-lg);
}
/* 加载动画 */
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.spinner {
animation: spin 0.8s linear infinite;
}
/* 淡入动画 */
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.fade-in {
animation: fadeIn var(--duration-base) ease-out;
}
/* 滑入动画 */
@keyframes slideUp {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.slide-up {
animation: slideUp var(--duration-base) var(--ease-out);
}
/* 脉冲动画 */
@keyframes pulse {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.5;
}
}
.pulse {
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}