afn-basic-components 1.1.2 → 1.1.4

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.
@@ -1,337 +1,287 @@
1
- html {
2
- height: 100%;
3
- box-sizing: border-box;
1
+ /**
2
+ * 通用css样式布局处理
3
+ * Copyright (c) 2019 ruoyi
4
+ */
5
+
6
+ /** 基础通用 **/
7
+ .pt5 {
8
+ padding-top: 5px;
4
9
  }
5
10
 
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;
11
+ .pr5 {
12
+ padding-right: 5px;
13
13
  }
14
14
 
15
- label {
16
- font-weight: 700;
15
+ .pb5 {
16
+ padding-bottom: 5px;
17
17
  }
18
18
 
19
- html,
20
- body,
21
- #app {
22
- height: 100%;
23
- overflow: hidden;
19
+ .mt5 {
20
+ margin-top: 5px;
24
21
  }
25
22
 
26
- *,
27
- *:before,
28
- *:after {
29
- box-sizing: inherit;
23
+ .mr5 {
24
+ margin-right: 5px;
30
25
  }
31
26
 
32
- a:focus,
33
- a:active {
34
- outline: none;
27
+ .mb5 {
28
+ margin-bottom: 5px;
35
29
  }
36
30
 
37
- a,
38
- a:focus,
39
- a:hover {
40
- cursor: pointer;
41
- color: inherit;
42
- text-decoration: none;
31
+ .mb8 {
32
+ margin-bottom: 8px;
43
33
  }
44
34
 
45
- div:focus {
46
- outline: none;
35
+ .ml5 {
36
+ margin-left: 5px;
47
37
  }
48
38
 
49
- .clearfix {
50
- &:after {
51
- visibility: hidden;
52
- display: block;
53
- font-size: 0;
54
- content: " ";
55
- clear: both;
56
- height: 0;
57
- }
39
+ .mt10 {
40
+ margin-top: 10px;
58
41
  }
59
42
 
60
- // main-container global css
61
- .app-container {
62
- padding: 20px;
43
+ .mr10 {
44
+ margin-right: 10px;
63
45
  }
64
46
 
65
- .components-container {
66
- margin: 30px 50px;
67
- position: relative;
47
+ .mb10 {
48
+ margin-bottom: 10px;
49
+ }
50
+ .ml10 {
51
+ margin-left: 10px;
68
52
  }
69
53
 
70
- .pagination-container {
71
- margin-top: 30px;
54
+ .mt20 {
55
+ margin-top: 20px;
72
56
  }
73
57
 
74
- .text-center {
75
- text-align: center;
58
+ .mr20 {
59
+ margin-right: 20px;
76
60
  }
77
61
 
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;
62
+ .mb20 {
63
+ margin-bottom: 20px;
64
+ }
65
+ .ml20 {
66
+ margin-left: 20px;
67
+ }
68
+
69
+ .h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
70
+ font-family: inherit;
71
+ font-weight: 500;
72
+ line-height: 1.1;
73
+ color: inherit;
74
+ }
75
+
76
+ .el-message-box__status + .el-message-box__message{
77
+ word-break: break-word;
78
+ }
79
+
80
+ .el-dialog:not(.is-fullscreen) {
81
+ margin-top: 6vh !important;
82
+ }
83
+
84
+ .el-dialog__wrapper.scrollbar .el-dialog .el-dialog__body {
85
+ overflow: auto;
86
+ overflow-x: hidden;
87
+ max-height: 70vh;
88
+ padding: 10px 20px 0;
89
+ }
90
+
91
+ .el-table {
92
+ .el-table__header-wrapper, .el-table__fixed-header-wrapper {
93
+ th {
94
+ word-break: break-word;
95
+ background-color: #f8f8f9;
96
+ color: #515a6e;
97
+ height: 40px;
98
+ font-size: 13px;
99
+ }
96
100
  }
97
101
 
98
- &.deleted {
99
- background: #d0d0d0;
102
+ .el-table__body-wrapper {
103
+ .el-button [class*="el-icon-"] + span {
104
+ margin-left: 1px;
105
+ }
100
106
  }
101
107
  }
102
108
 
103
- .link-type,
104
- .link-type:focus {
105
- color: #337ab7;
106
- cursor: pointer;
109
+ /** 表单布局 **/
110
+ .form-header {
111
+ font-size: 15px;
112
+ color: #6379bb;
113
+ border-bottom: 1px solid #ddd;
114
+ margin: 8px 10px 25px 10px;
115
+ padding-bottom: 5px
116
+ }
107
117
 
108
- &:hover {
109
- color: #20a0ff;
110
- }
118
+ /** 表格布局 **/
119
+ .pagination-container {
120
+ display: flex;
121
+ justify-content: flex-end;
122
+ margin-top: 20px;
111
123
  }
112
124
 
113
- .filter-container {
114
- padding-bottom: 10px;
125
+ /* tree border */
126
+ .tree-border {
127
+ margin-top: 5px;
128
+ border: 1px solid #e5e6e7;
129
+ background: #FFFFFF none;
130
+ border-radius: 4px;
131
+ }
115
132
 
116
- .filter-item {
117
- display: inline-block;
118
- vertical-align: middle;
119
- margin-bottom: 10px;
133
+ @media (max-width: 768px) {
134
+ .pagination-container .el-pagination > .el-pagination__jump {
135
+ display: none !important;
136
+ }
137
+ .pagination-container .el-pagination > .el-pagination__sizes {
138
+ display: none !important;
120
139
  }
121
140
  }
122
141
 
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;
142
+ .el-table .fixed-width .el-button--mini {
143
+ padding-left: 0;
144
+ padding-right: 0;
145
+ width: inherit;
172
146
  }
173
147
 
174
- table {
175
- border-collapse: collapse;
176
- width: 100%;
148
+ /** 表格更多操作下拉样式 */
149
+ .el-table .el-dropdown-link,.el-table .el-dropdown-selfdefine {
150
+ cursor: pointer;
151
+ margin-left: 5px;
177
152
  }
178
153
 
179
- .el-dialog {
180
- border-radius: 8px;
154
+ .el-table .el-dropdown, .el-icon-arrow-down {
155
+ font-size: 12px;
181
156
  }
182
157
 
183
- // 表单布局样式
184
- .form-container {
185
- padding: 20px;
186
- background: #fff;
187
- border-radius: 4px;
158
+ .el-tree-node__content > .el-checkbox {
159
+ margin-right: 8px;
188
160
  }
189
161
 
190
- .form-item {
191
- margin-bottom: 20px;
162
+ .list-group-striped > .list-group-item {
163
+ border-left: 0;
164
+ border-right: 0;
165
+ border-radius: 0;
166
+ padding-left: 0;
167
+ padding-right: 0;
168
+ }
192
169
 
193
- .label {
194
- display: block;
195
- margin-bottom: 8px;
196
- font-weight: 500;
197
- color: #333;
198
- }
170
+ .list-group {
171
+ padding-left: 0px;
172
+ list-style: none;
199
173
  }
200
174
 
201
- // 表格布局样式
202
- .table-container {
203
- background: #fff;
204
- border-radius: 4px;
205
- padding: 20px;
175
+ .list-group-item {
176
+ border-bottom: 1px solid #e7eaec;
177
+ border-top: 1px solid #e7eaec;
178
+ margin-bottom: -1px;
179
+ padding: 11px 0px;
180
+ font-size: 13px;
206
181
  }
207
182
 
208
- .table-header {
209
- display: flex;
210
- justify-content: space-between;
211
- align-items: center;
212
- margin-bottom: 20px;
183
+ .pull-right {
184
+ float: right !important;
213
185
  }
214
186
 
215
- .table-title {
216
- font-size: 16px;
217
- font-weight: 500;
218
- color: #333;
187
+ .el-card__header {
188
+ padding: 14px 15px 7px;
189
+ min-height: 40px;
219
190
  }
220
191
 
221
- // 响应式布局
222
- @media (max-width: 768px) {
223
- .app-container {
224
- padding: 10px;
225
- }
192
+ .el-card__body {
193
+ padding: 15px 20px 20px 20px;
194
+ }
226
195
 
227
- .components-container {
228
- margin: 15px 20px;
229
- }
196
+ .card-box {
197
+ margin-bottom: 10px;
198
+ }
230
199
 
231
- .filter-container {
232
- .filter-item {
233
- display: block;
234
- width: 100%;
235
- }
236
- }
200
+ /* button color */
201
+ .el-button--cyan.is-active,
202
+ .el-button--cyan:active {
203
+ background: #20B2AA;
204
+ border-color: #20B2AA;
205
+ color: #FFFFFF;
237
206
  }
238
207
 
239
- // 表格样式
240
- .el-table {
241
- th {
242
- background-color: #f5f7fa;
243
- color: #333;
244
- font-weight: 500;
245
- }
208
+ .el-button--cyan:focus,
209
+ .el-button--cyan:hover {
210
+ background: #48D1CC;
211
+ border-color: #48D1CC;
212
+ color: #FFFFFF;
246
213
  }
247
214
 
248
- // 分页样式
249
- .pagination-container {
250
- display: flex;
251
- justify-content: flex-end;
252
- margin-top: 20px;
215
+ .el-button--cyan {
216
+ background-color: #20B2AA;
217
+ border-color: #20B2AA;
218
+ color: #FFFFFF;
253
219
  }
254
220
 
255
- // 树形组件样式
256
- .tree-container {
257
- max-height: 400px;
258
- overflow-y: auto;
221
+ /* text color */
222
+ .text-navy {
223
+ color: #1ab394;
259
224
  }
260
225
 
261
- // 列表组样式
262
- .list-group {
263
- .list-group-item {
264
- padding: 12px 16px;
265
- border-bottom: 1px solid #eee;
226
+ .text-primary {
227
+ color: inherit;
228
+ }
266
229
 
267
- &:last-child {
268
- border-bottom: none;
269
- }
270
- }
230
+ .text-success {
231
+ color: #1c84c6;
271
232
  }
272
233
 
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);
234
+ .text-info {
235
+ color: #23c6c8;
279
236
  }
280
237
 
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
- }
238
+ .text-warning {
239
+ color: #f8ac59;
293
240
  }
294
241
 
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; }
242
+ .text-danger {
243
+ color: #ed5565;
244
+ }
245
+
246
+ .text-muted {
247
+ color: #888888;
248
+ }
301
249
 
302
- // 图片样式
250
+ /* image */
303
251
  .img-circle {
304
252
  border-radius: 50%;
305
253
  }
306
254
 
307
- .img-thumbnail {
308
- padding: 4px;
309
- line-height: 1.42857143;
310
- background-color: #fff;
311
- border: 1px solid #ddd;
312
- border-radius: 4px;
255
+ .img-lg {
256
+ width: 120px;
257
+ height: 120px;
258
+ }
259
+
260
+ .avatar-upload-preview {
261
+ position: relative;
262
+ top: 50%;
263
+ left: 50%;
264
+ transform: translate(-50%, -50%);
265
+ width: 200px;
266
+ height: 200px;
267
+ border-radius: 50%;
268
+ box-shadow: 0 0 4px #ccc;
269
+ overflow: hidden;
313
270
  }
314
271
 
315
- // 拖拽列样式
272
+ /* 拖拽列样式 */
316
273
  .sortable-ghost {
317
- opacity: 0.8;
274
+ opacity: .8;
318
275
  color: #fff !important;
319
276
  background: #42b983 !important;
320
277
  }
321
278
 
322
- // 分割面板样式
323
- .split-pane {
324
- height: 100%;
279
+ .top-right-btn {
280
+ position: relative;
281
+ float: right;
325
282
  }
326
283
 
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
- }
284
+ /* 分割面板样式 */
285
+ .splitpanes.default-theme .splitpanes__pane {
286
+ background-color: #fff!important;
337
287
  }