index.scss
1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
// 主样式文件
@import './variables.scss';
@import './element-ui.scss';
// 全局样式
* {
box-sizing: border-box;
}
body {
margin: 0;
padding: 0;
font-family: "Source Han Sans CN", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
background-color: $background-color;
color: $text-primary;
}
// 侧边栏相关样式
.sidebar-expanded {
width: $sidebar-width;
transition: width 0.3s ease;
}
.sidebar-collapsed {
width: $sidebar-collapsed-width;
transition: width 0.3s ease;
}
// 卡片样式
.dashboard-card {
position: relative;
height: 116px;
.card-icon {
position: absolute;
right: 20px;
top: 50%;
transform: translateY(-50%);
width: 88px;
height: 88px;
}
}
// 表格样式
.el-table {
.cell {
line-height: 24px;
}
}
// 分页样式
.pagination-container {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 20px;
padding: 0 10px;
}
// 页面标题
.page-header {
h1 {
font-size: 24px;
font-weight: 600;
margin: 0;
color: $text-primary;
}
}
// 卡片标题
.card-header {
h3 {
font-size: 18px;
font-weight: 600;
margin: 0;
color: $text-primary;
}
}
// 响应式设计
@media (max-width: 768px) {
.hidden-lg-only {
display: none !important;
}
}