zhouwx
2024-12-04 80c8993820fc3f958397bebe9dbd72be6a449c55
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
/* 初始化样式
------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none !important;
}
 
:root {
    --next-color-white: #ffffff;
    --next-bg-main-color: #f8f8f8;
    --next-bg-color: #f5f5ff;
    --next-border-color-light: #f1f2f3;
    --next-color-primary-lighter: #ecf5ff;
    --next-color-success-lighter: #f0f9eb;
    --next-color-warning-lighter: #fdf6ec;
    --next-color-danger-lighter: #fef0f0;
    --next-color-dark-hover: #0000001a;
    --next-color-menu-hover: rgba(0, 0, 0, 0.2);
    --next-color-user-hover: rgba(0, 0, 0, 0.04);
    --next-color-seting-main: #e9eef3;
    --next-color-seting-aside: #d3dce6;
    --next-color-seting-header: #b3c0d1;
}
 
html,
body,
#app {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, SimSun, sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    background-color: var(--next-bg-main-color);
    font-size: 14px;
    overflow: hidden;
    position: relative;
}
 
/* 主布局样式
------------------------------- */
.layout-container {
    width: 100%;
    height: 100%;
    .layout-aside {
        //background: var(--next-bg-menuBar);
        background: #384358;
        box-shadow: 2px 0 6px rgb(0 21 41 / 1%);
        height: inherit;
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        overflow-x: hidden !important;
        .el-scrollbar__view {
            overflow: hidden;
        }
    }
    .layout-header {
        padding: 0 !important;
    }
    .layout-main {
        padding: 0 !important;
        overflow: hidden;
        width: 100%;
        background-color: var(--next-bg-main-color);
    }
    .el-scrollbar {
        width: 100%;
    }
    // 此字段多次用到,建议不删除,如需修改,请重写覆盖样式
    .layout-view-bg-white {
        background: var(--el-color-white);
        width: 100%;
        height: 100%;
        border-radius: 4px;
        border: 1px solid var(--el-border-color-light, #ebeef5);
    }
    .layout-el-aside-br-color {
        border-right: 1px solid var(--el-border-color-light, #ebeef5);
    }
    // pc端左侧导航样式
    .layout-aside-pc-220 {
        width: 220px !important;
        transition: width 0.3s ease;
        border-radius: 0 8px 8px 0;
        box-shadow: 5px 0 10px rgba(0,0,0,.15);
    }
    .layout-aside-pc-64 {
        width: 64px !important;
        transition: width 0.3s ease;
    }
    .layout-aside-pc-1 {
        width: 1px !important;
        transition: width 0.3s ease;
    }
    // 手机端左侧导航样式
    .layout-aside-mobile {
        position: fixed;
        top: 0;
        left: -220px;
        width: 220px;
        z-index: 9999999;
    }
    .layout-aside-mobile-close {
        left: -220px;
        transition: all 0.3s cubic-bezier(0.39, 0.58, 0.57, 1);
    }
    .layout-aside-mobile-open {
        left: 0;
        transition: all 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
    }
    .layout-aside-mobile-mode {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 9999998;
        animation: error-img 0.3s;
    }
    .layout-scrollbar {
        @extend .el-scrollbar;
        padding: 15px;
    }
    .layout-mian-height-50 {
        height: calc(100vh - 50px);
    }
    .layout-columns-warp {
        flex: 1;
        display: flex;
        overflow: hidden;
    }
    .layout-hide {
        display: none;
    }
}
 
/* element plus 全局样式
------------------------------- */
.layout-breadcrumb-seting {
    .el-divider {
        background-color: rgb(230, 230, 230);
    }
}
 
/* nprogress 进度条跟随主题颜色
------------------------------- */
#nprogress {
    .bar {
        background: var(--el-color-primary) !important;
        z-index: 9999999 !important;
    }
}
 
/* flex 弹性布局
------------------------------- */
.flex {
    display: flex;
}
.flex-auto {
    flex: 1;
    overflow: hidden;
}
.flex-center {
    @extend .flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
}
.flex-margin {
    margin: auto;
}
.flex-warp {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    margin: 0 -5px;
    .flex-warp-item {
        padding: 5px;
        .flex-warp-item-box {
            width: 100%;
            height: 100%;
        }
    }
}
 
/* cursor 鼠标形状
------------------------------- */
// 默认
.cursor-default {
    cursor: default !important;
}
// 帮助
.cursor-help {
    cursor: help !important;
}
// 手指
.cursor-pointer {
    cursor: pointer !important;
}
// 移动
.cursor-move {
    cursor: move !important;
}
 
/* 宽高 100%
------------------------------- */
.w100 {
    width: 100% !important;
}
.h100 {
    height: 100% !important;
}
.vh100 {
    height: 100vh !important;
}
.max100vh {
    max-height: 100vh !important;
}
.min100vh {
    min-height: 100vh !important;
}
 
/* 颜色值
------------------------------- */
.color-primary {
    color: var(--el-color-primary);
}
.color-success {
    color: var(--el-color-success);
}
.color-warning {
    color: var(--el-color-warning);
}
.color-danger {
    color: var(--el-color-danger);
}
.color-info {
    color: var(--el-color-info);
}
 
/* 字体大小全局样式
------------------------------- */
@for $i from 10 through 32 {
    .font#{$i} {
        font-size: #{$i}px !important;
    }
}
 
/* 外边距、内边距全局样式
------------------------------- */
@for $i from 1 through 35 {
    .mt#{$i} {
        margin-top: #{$i}px !important;
    }
    .mr#{$i} {
        margin-right: #{$i}px !important;
    }
    .mb#{$i} {
        margin-bottom: #{$i}px !important;
    }
    .ml#{$i} {
        margin-left: #{$i}px !important;
    }
    .pt#{$i} {
        padding-top: #{$i}px !important;
    }
    .pr#{$i} {
        padding-right: #{$i}px !important;
    }
    .pb#{$i} {
        padding-bottom: #{$i}px !important;
    }
    .pl#{$i} {
        padding-left: #{$i}px !important;
    }
}