afn-basic-components 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,229 @@
1
+ @import './variables.scss';
2
+ @import './mixin.scss';
3
+ @import './transition.scss';
4
+ @import './element-ui.scss';
5
+ @import './sidebar.scss';
6
+ @import './btn.scss';
7
+ @import './ruoyi.scss';
8
+
9
+ html {
10
+ height: 100%;
11
+ box-sizing: border-box;
12
+ }
13
+
14
+ body {
15
+ height: 100%;
16
+ -moz-osx-font-smoothing: grayscale;
17
+ -webkit-font-smoothing: antialiased;
18
+ text-rendering: optimizeLegibility;
19
+ font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
20
+ Microsoft YaHei, Arial, sans-serif;
21
+ }
22
+
23
+ label {
24
+ font-weight: 700;
25
+ }
26
+
27
+ html,
28
+ body,
29
+ #app {
30
+ height: 100%;
31
+ overflow: hidden;
32
+ }
33
+
34
+ *,
35
+ *:before,
36
+ *:after {
37
+ box-sizing: inherit;
38
+ }
39
+
40
+ a:focus,
41
+ a:active {
42
+ outline: none;
43
+ }
44
+
45
+ a,
46
+ a:focus,
47
+ a:hover {
48
+ cursor: pointer;
49
+ color: inherit;
50
+ text-decoration: none;
51
+ }
52
+
53
+ div:focus {
54
+ outline: none;
55
+ }
56
+
57
+ .clearfix {
58
+ &:after {
59
+ visibility: hidden;
60
+ display: block;
61
+ font-size: 0;
62
+ content: " ";
63
+ clear: both;
64
+ height: 0;
65
+ }
66
+ }
67
+
68
+ // main-container global css
69
+ .app-container {
70
+ padding: 20px;
71
+ }
72
+
73
+ .components-container {
74
+ margin: 30px 50px;
75
+ position: relative;
76
+ }
77
+
78
+ .pagination-container {
79
+ margin-top: 30px;
80
+ }
81
+
82
+ .text-center {
83
+ text-align: center;
84
+ }
85
+
86
+ .sub-navbar {
87
+ height: 50px;
88
+ line-height: 50px;
89
+ position: relative;
90
+ width: 100%;
91
+ text-align: right;
92
+ padding-right: 20px;
93
+ transition: 600ms ease position;
94
+ background: linear-gradient(
95
+ 90deg,
96
+ rgba(32, 182, 249, 1) 0%,
97
+ rgba(32, 182, 249, 1) 0%,
98
+ rgba(33, 120, 241, 1) 100%,
99
+ rgba(33, 120, 241, 1) 100%
100
+ );
101
+
102
+ &.draft {
103
+ background: #d0d0d0;
104
+ }
105
+
106
+ &.deleted {
107
+ background: #d0d0d0;
108
+ }
109
+ }
110
+
111
+ .link-type,
112
+ .link-type:focus {
113
+ color: #337ab7;
114
+ cursor: pointer;
115
+
116
+ &:hover {
117
+ color: #20a0ff;
118
+ }
119
+ }
120
+
121
+ .filter-container {
122
+ padding-bottom: 10px;
123
+
124
+ .filter-item {
125
+ display: inline-block;
126
+ vertical-align: middle;
127
+ margin-bottom: 10px;
128
+ }
129
+ }
130
+
131
+ //refine vue-multiselect plugin
132
+ .multiselect {
133
+ line-height: 16px;
134
+ }
135
+
136
+ .multiselect--active {
137
+ z-index: 1000 !important;
138
+ }
139
+
140
+ // 面包屑样式
141
+ .app-breadcrumb.el-breadcrumb {
142
+ display: inline-block;
143
+ font-size: 14px;
144
+ line-height: 50px;
145
+ margin-left: 8px;
146
+
147
+ .no-redirect {
148
+ color: #97a8be;
149
+ cursor: text;
150
+ }
151
+ }
152
+
153
+ // 导航栏样式
154
+ .navbar {
155
+ height: 50px;
156
+ overflow: hidden;
157
+ position: relative;
158
+ background: #fff;
159
+ box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
160
+
161
+ .hamburger-container {
162
+ line-height: 46px;
163
+ height: 100%;
164
+ float: left;
165
+ cursor: pointer;
166
+ transition: background 0.3s;
167
+ -webkit-tap-highlight-color: transparent;
168
+
169
+ &:hover {
170
+ background: rgba(0, 0, 0, 0.025);
171
+ }
172
+ }
173
+
174
+ .breadcrumb-container {
175
+ float: left;
176
+ }
177
+
178
+ .right-menu {
179
+ float: right;
180
+ height: 100%;
181
+ line-height: 50px;
182
+
183
+ &:focus {
184
+ outline: none;
185
+ }
186
+
187
+ .right-menu-item {
188
+ display: inline-block;
189
+ padding: 0 8px;
190
+ height: 100%;
191
+ font-size: 18px;
192
+ color: #5a5e66;
193
+ vertical-align: text-bottom;
194
+
195
+ &.hover-effect {
196
+ cursor: pointer;
197
+ transition: background 0.3s;
198
+
199
+ &:hover {
200
+ background: rgba(0, 0, 0, 0.025);
201
+ }
202
+ }
203
+ }
204
+
205
+ .avatar-container {
206
+ margin-right: 30px;
207
+
208
+ .avatar-wrapper {
209
+ margin-top: 5px;
210
+ position: relative;
211
+
212
+ .user-avatar {
213
+ cursor: pointer;
214
+ width: 40px;
215
+ height: 40px;
216
+ border-radius: 10px;
217
+ }
218
+
219
+ .el-icon-caret-bottom {
220
+ cursor: pointer;
221
+ position: absolute;
222
+ right: -20px;
223
+ top: 25px;
224
+ font-size: 12px;
225
+ }
226
+ }
227
+ }
228
+ }
229
+ }
@@ -0,0 +1,66 @@
1
+ @mixin clearfix {
2
+ &:after {
3
+ content: "";
4
+ display: table;
5
+ clear: both;
6
+ }
7
+ }
8
+
9
+ @mixin scrollBar {
10
+ &::-webkit-scrollbar-track-piece {
11
+ background: #d3dce6;
12
+ }
13
+
14
+ &::-webkit-scrollbar {
15
+ width: 6px;
16
+ }
17
+
18
+ &::-webkit-scrollbar-thumb {
19
+ background: #99a9bf;
20
+ border-radius: 20px;
21
+ }
22
+ }
23
+
24
+ @mixin relative {
25
+ position: relative;
26
+ width: 100%;
27
+ height: 100%;
28
+ }
29
+
30
+ @mixin pct($pct) {
31
+ width: #{$pct};
32
+ position: relative;
33
+ margin: 0 auto;
34
+ }
35
+
36
+ @mixin triangle($width, $height, $color, $direction) {
37
+ $width: $width/2;
38
+ $color-border-style: $height solid $color;
39
+ $transparent-border-style: $width solid transparent;
40
+ height: 0;
41
+ width: 0;
42
+
43
+ @if $direction==up {
44
+ border-bottom: $color-border-style;
45
+ border-left: $transparent-border-style;
46
+ border-right: $transparent-border-style;
47
+ }
48
+
49
+ @else if $direction==right {
50
+ border-left: $color-border-style;
51
+ border-top: $transparent-border-style;
52
+ border-bottom: $transparent-border-style;
53
+ }
54
+
55
+ @else if $direction==down {
56
+ border-top: $color-border-style;
57
+ border-left: $transparent-border-style;
58
+ border-right: $transparent-border-style;
59
+ }
60
+
61
+ @else if $direction==left {
62
+ border-right: $color-border-style;
63
+ border-top: $transparent-border-style;
64
+ border-bottom: $transparent-border-style;
65
+ }
66
+ }
@@ -0,0 +1,337 @@
1
+ html {
2
+ height: 100%;
3
+ box-sizing: border-box;
4
+ }
5
+
6
+ body {
7
+ height: 100%;
8
+ -moz-osx-font-smoothing: grayscale;
9
+ -webkit-font-smoothing: antialiased;
10
+ text-rendering: optimizeLegibility;
11
+ font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
12
+ Microsoft YaHei, Arial, sans-serif;
13
+ }
14
+
15
+ label {
16
+ font-weight: 700;
17
+ }
18
+
19
+ html,
20
+ body,
21
+ #app {
22
+ height: 100%;
23
+ overflow: hidden;
24
+ }
25
+
26
+ *,
27
+ *:before,
28
+ *:after {
29
+ box-sizing: inherit;
30
+ }
31
+
32
+ a:focus,
33
+ a:active {
34
+ outline: none;
35
+ }
36
+
37
+ a,
38
+ a:focus,
39
+ a:hover {
40
+ cursor: pointer;
41
+ color: inherit;
42
+ text-decoration: none;
43
+ }
44
+
45
+ div:focus {
46
+ outline: none;
47
+ }
48
+
49
+ .clearfix {
50
+ &:after {
51
+ visibility: hidden;
52
+ display: block;
53
+ font-size: 0;
54
+ content: " ";
55
+ clear: both;
56
+ height: 0;
57
+ }
58
+ }
59
+
60
+ // main-container global css
61
+ .app-container {
62
+ padding: 20px;
63
+ }
64
+
65
+ .components-container {
66
+ margin: 30px 50px;
67
+ position: relative;
68
+ }
69
+
70
+ .pagination-container {
71
+ margin-top: 30px;
72
+ }
73
+
74
+ .text-center {
75
+ text-align: center;
76
+ }
77
+
78
+ .sub-navbar {
79
+ height: 50px;
80
+ line-height: 50px;
81
+ position: relative;
82
+ width: 100%;
83
+ text-align: right;
84
+ padding-right: 20px;
85
+ transition: 600ms ease position;
86
+ background: linear-gradient(
87
+ 90deg,
88
+ rgba(32, 182, 249, 1) 0%,
89
+ rgba(32, 182, 249, 1) 0%,
90
+ rgba(33, 120, 241, 1) 100%,
91
+ rgba(33, 120, 241, 1) 100%
92
+ );
93
+
94
+ &.draft {
95
+ background: #d0d0d0;
96
+ }
97
+
98
+ &.deleted {
99
+ background: #d0d0d0;
100
+ }
101
+ }
102
+
103
+ .link-type,
104
+ .link-type:focus {
105
+ color: #337ab7;
106
+ cursor: pointer;
107
+
108
+ &:hover {
109
+ color: #20a0ff;
110
+ }
111
+ }
112
+
113
+ .filter-container {
114
+ padding-bottom: 10px;
115
+
116
+ .filter-item {
117
+ display: inline-block;
118
+ vertical-align: middle;
119
+ margin-bottom: 10px;
120
+ }
121
+ }
122
+
123
+ //refine vue-multiselect plugin
124
+ .multiselect {
125
+ line-height: 16px;
126
+ }
127
+
128
+ .multiselect--active {
129
+ z-index: 1000 !important;
130
+ }
131
+
132
+ // 通用间距类
133
+ .mt-5 { margin-top: 5px; }
134
+ .mt-10 { margin-top: 10px; }
135
+ .mt-15 { margin-top: 15px; }
136
+ .mt-20 { margin-top: 20px; }
137
+ .mb-5 { margin-bottom: 5px; }
138
+ .mb-10 { margin-bottom: 10px; }
139
+ .mb-15 { margin-bottom: 15px; }
140
+ .mb-20 { margin-bottom: 20px; }
141
+ .ml-5 { margin-left: 5px; }
142
+ .ml-10 { margin-left: 10px; }
143
+ .ml-15 { margin-left: 15px; }
144
+ .ml-20 { margin-left: 20px; }
145
+ .mr-5 { margin-right: 5px; }
146
+ .mr-10 { margin-right: 10px; }
147
+ .mr-15 { margin-right: 15px; }
148
+ .mr-20 { margin-right: 20px; }
149
+
150
+ .pt-5 { padding-top: 5px; }
151
+ .pt-10 { padding-top: 10px; }
152
+ .pt-15 { padding-top: 15px; }
153
+ .pt-20 { padding-top: 20px; }
154
+ .pb-5 { padding-bottom: 5px; }
155
+ .pb-10 { padding-bottom: 10px; }
156
+ .pb-15 { padding-bottom: 15px; }
157
+ .pb-20 { padding-bottom: 20px; }
158
+ .pl-5 { padding-left: 5px; }
159
+ .pl-10 { padding-left: 10px; }
160
+ .pl-15 { padding-left: 15px; }
161
+ .pl-20 { padding-left: 20px; }
162
+ .pr-5 { padding-right: 5px; }
163
+ .pr-10 { padding-right: 10px; }
164
+ .pr-15 { padding-right: 15px; }
165
+ .pr-20 { padding-right: 20px; }
166
+
167
+ // 通用元素样式
168
+ h1, h2, h3, h4, h5, h6 {
169
+ margin: 0;
170
+ padding: 0;
171
+ font-weight: 500;
172
+ }
173
+
174
+ table {
175
+ border-collapse: collapse;
176
+ width: 100%;
177
+ }
178
+
179
+ .el-dialog {
180
+ border-radius: 8px;
181
+ }
182
+
183
+ // 表单布局样式
184
+ .form-container {
185
+ padding: 20px;
186
+ background: #fff;
187
+ border-radius: 4px;
188
+ }
189
+
190
+ .form-item {
191
+ margin-bottom: 20px;
192
+
193
+ .label {
194
+ display: block;
195
+ margin-bottom: 8px;
196
+ font-weight: 500;
197
+ color: #333;
198
+ }
199
+ }
200
+
201
+ // 表格布局样式
202
+ .table-container {
203
+ background: #fff;
204
+ border-radius: 4px;
205
+ padding: 20px;
206
+ }
207
+
208
+ .table-header {
209
+ display: flex;
210
+ justify-content: space-between;
211
+ align-items: center;
212
+ margin-bottom: 20px;
213
+ }
214
+
215
+ .table-title {
216
+ font-size: 16px;
217
+ font-weight: 500;
218
+ color: #333;
219
+ }
220
+
221
+ // 响应式布局
222
+ @media (max-width: 768px) {
223
+ .app-container {
224
+ padding: 10px;
225
+ }
226
+
227
+ .components-container {
228
+ margin: 15px 20px;
229
+ }
230
+
231
+ .filter-container {
232
+ .filter-item {
233
+ display: block;
234
+ width: 100%;
235
+ }
236
+ }
237
+ }
238
+
239
+ // 表格样式
240
+ .el-table {
241
+ th {
242
+ background-color: #f5f7fa;
243
+ color: #333;
244
+ font-weight: 500;
245
+ }
246
+ }
247
+
248
+ // 分页样式
249
+ .pagination-container {
250
+ display: flex;
251
+ justify-content: flex-end;
252
+ margin-top: 20px;
253
+ }
254
+
255
+ // 树形组件样式
256
+ .tree-container {
257
+ max-height: 400px;
258
+ overflow-y: auto;
259
+ }
260
+
261
+ // 列表组样式
262
+ .list-group {
263
+ .list-group-item {
264
+ padding: 12px 16px;
265
+ border-bottom: 1px solid #eee;
266
+
267
+ &:last-child {
268
+ border-bottom: none;
269
+ }
270
+ }
271
+ }
272
+
273
+ // 卡片样式
274
+ .card {
275
+ background: #fff;
276
+ border-radius: 4px;
277
+ padding: 20px;
278
+ box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
279
+ }
280
+
281
+ // 青色按钮样式
282
+ .el-button--cyan {
283
+ background-color: #20a0ff;
284
+ border-color: #20a0ff;
285
+ color: #fff;
286
+
287
+ &:hover,
288
+ &:focus {
289
+ background: #4db3ff;
290
+ border-color: #4db3ff;
291
+ color: #fff;
292
+ }
293
+ }
294
+
295
+ // 文本颜色类
296
+ .text-primary { color: #409eff; }
297
+ .text-success { color: #67c23a; }
298
+ .text-warning { color: #e6a23c; }
299
+ .text-danger { color: #f56c6c; }
300
+ .text-info { color: #909399; }
301
+
302
+ // 图片样式
303
+ .img-circle {
304
+ border-radius: 50%;
305
+ }
306
+
307
+ .img-thumbnail {
308
+ padding: 4px;
309
+ line-height: 1.42857143;
310
+ background-color: #fff;
311
+ border: 1px solid #ddd;
312
+ border-radius: 4px;
313
+ }
314
+
315
+ // 拖拽列样式
316
+ .sortable-ghost {
317
+ opacity: 0.8;
318
+ color: #fff !important;
319
+ background: #42b983 !important;
320
+ }
321
+
322
+ // 分割面板样式
323
+ .split-pane {
324
+ height: 100%;
325
+ }
326
+
327
+ // 响应式分页
328
+ @media (max-width: 768px) {
329
+ .pagination-container {
330
+ .el-pagination {
331
+ .el-pagination__sizes,
332
+ .el-pagination__jump {
333
+ display: none;
334
+ }
335
+ }
336
+ }
337
+ }