@jx3box/jx3box-common-ui 6.6.5 → 6.6.8

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.
@@ -54,16 +54,16 @@ body {
54
54
  transition: 0.3s ease-in-out;
55
55
  }
56
56
  // &:hover {
57
- // background-color:@primary;
58
- // .u-pic {
59
- // // transform: rotateZ(180deg);
60
- // svg {
61
- // fill: #0cf;
62
- // }
63
- // }
64
- // .u-txt {
65
- // color: #0cf;
66
- // }
57
+ // background-color:@primary;
58
+ // .u-pic {
59
+ // // transform: rotateZ(180deg);
60
+ // svg {
61
+ // fill: #0cf;
62
+ // }
63
+ // }
64
+ // .u-txt {
65
+ // color: #0cf;
66
+ // }
67
67
  // }
68
68
  .u-txt {
69
69
  color: #fff;
@@ -89,43 +89,46 @@ body {
89
89
  }
90
90
 
91
91
  //怀旧服
92
- .c-header-origin{
92
+ .c-header-origin {
93
93
  .fl;
94
- margin:15px 0;
94
+ margin: 15px 0;
95
95
  .mr(10px);
96
96
  .pr;
97
- background-color:#7d7d7d;
97
+ background-color: #7d7d7d;
98
98
  border: 2px solid #303133;
99
99
  border-radius: 4px;
100
100
  overflow: hidden;
101
- .u-active{
101
+ .u-active {
102
102
  .db;
103
- .size(50%,100%);
103
+ .size(50%, 100%);
104
104
  background: @color-link;
105
- &:hover{
106
- background-color:#3590f7;
105
+ &:hover {
106
+ background-color: #3590f7;
107
107
  }
108
- .pa;.lt(0);
108
+ .pa;
109
+ .lt(0);
109
110
 
110
111
  transition: all 0.2s ease-in-out;
111
- &.isOffset{
112
+ &.isOffset {
112
113
  transform: translateX(100%);
113
114
  }
114
115
  }
115
- .u-item{
116
- .dbi;.y(top);
116
+ .u-item {
117
+ .dbi;
118
+ .y(top);
117
119
  font-size: 14px;
118
120
  color: #fff;
119
121
  .pointer;
120
122
  padding: 5px 10px;
121
- .pr;.z(1);
123
+ .pr;
124
+ .z(1);
122
125
  }
123
- .on{
126
+ .on {
124
127
  cursor: default;
125
128
  }
126
129
  }
127
- @media screen and (max-width:@phone){
128
- .c-header-origin{
130
+ @media screen and (max-width: @phone) {
131
+ .c-header-origin {
129
132
  .ml(10px);
130
133
  .mt(16px);
131
134
  }
@@ -192,7 +195,7 @@ body {
192
195
  .fl;
193
196
  font-family: Montserrat, "Helvetica Neue", sans-serif;
194
197
  .clearfix;
195
- .u-item-box{
198
+ .u-item-box {
196
199
  .fl;
197
200
  }
198
201
  .u-item {
@@ -222,7 +225,7 @@ body {
222
225
  }
223
226
  padding: 16px 15px;
224
227
  transition: 0.1s ease-in;
225
- i{
228
+ i {
226
229
  .none;
227
230
  }
228
231
  }
@@ -243,9 +246,9 @@ body {
243
246
  line-height: 16px;
244
247
  padding: 10px 30px;
245
248
  .db;
246
- span{
249
+ span {
247
250
  .fz(12px);
248
- color:#999;
251
+ color: #999;
249
252
  }
250
253
  }
251
254
  }
@@ -284,8 +287,6 @@ body {
284
287
  }
285
288
 
286
289
  .u-menu {
287
- // .none;
288
-
289
290
  background-clip: padding-box;
290
291
  background-color: #fff;
291
292
  color: @color;
@@ -348,25 +349,27 @@ body {
348
349
  }
349
350
  }
350
351
 
351
- .i-icon-vip{
352
- .dbi;vertical-align: baseline;
353
- padding:2px 5px;
354
- .fz(12px,14px);
352
+ .i-icon-vip {
353
+ .dbi;
354
+ vertical-align: baseline;
355
+ padding: 2px 5px;
356
+ .fz(12px, 14px);
355
357
  font-style: normal;
356
358
  border-radius: 2px;
357
- background-color:#ddd;
358
- color:#fff;
359
- &.on{
359
+ background-color: #ddd;
360
+ color: #fff;
361
+ &.on {
360
362
  background-color: #6f42c1;
361
363
  }
362
364
  }
363
- .u-expire,.u-vip-type{
365
+ .u-expire,
366
+ .u-vip-type {
364
367
  .fz(12px);
365
368
  // color:#999;
366
369
  .ml(5px);
367
370
  }
368
- .u-vip-left{
369
- color:#999;
371
+ .u-vip-left {
372
+ color: #999;
370
373
  .ml(5px);
371
374
  }
372
375
 
@@ -376,6 +379,10 @@ body {
376
379
  display: inline-block;
377
380
  margin-right: 3px;
378
381
  }
382
+
383
+ .off {
384
+ filter: grayscale(100%);
385
+ }
379
386
  }
380
387
 
381
388
  //消息面板
@@ -386,18 +393,20 @@ body {
386
393
 
387
394
  .u-msg {
388
395
  display: block;
389
- height: 32px;
390
- padding: 13px 10px;
396
+ // height: 32px;
397
+ padding: 27px 14px 20px 14px;
391
398
  &:hover {
392
399
  opacity: 0.7;
393
400
  }
394
401
  cursor: pointer;
395
402
  }
396
403
  .u-icon-msg {
397
- .mt(10px);
398
- width: 15px;
399
- height: 16px;
404
+ // .mt(10px);
405
+ width: 17px;
406
+ height: 17px;
400
407
  display: block;
408
+ .pr;
409
+ top: -1px;
401
410
  // margin-top: 9px;
402
411
  svg {
403
412
  width: 100%;
@@ -415,7 +424,7 @@ body {
415
424
  border-radius: 50%;
416
425
  position: absolute;
417
426
  right: -5px;
418
- top: -10px;
427
+ top: -6px;
419
428
  }
420
429
  .u-list {
421
430
  // .none;
@@ -435,14 +444,13 @@ body {
435
444
  border: 1px solid #ccc;
436
445
  padding: 10px;
437
446
 
438
-
439
447
  ul {
440
448
  padding: 0;
441
449
  margin: 0;
442
450
  list-style: none;
443
451
  *zoom: 1;
444
452
  &::after {
445
- content: '';
453
+ content: "";
446
454
  flex: 1;
447
455
  }
448
456
  // &:after {
@@ -593,11 +601,11 @@ body {
593
601
  height: 100%;
594
602
  user-select: none;
595
603
  cursor: pointer;
604
+ box-sizing: border-box;
596
605
 
597
606
  .u-post {
598
607
  .db;
599
- height: 32px;
600
- padding: 20px 10px 10px 10px;
608
+ padding: 24px 8px 24px 10px;
601
609
  }
602
610
 
603
611
  .u-add {
@@ -620,6 +628,106 @@ body {
620
628
  }
621
629
  }
622
630
 
631
+ // 用户资产
632
+ .c-header-assets {
633
+ float: left;
634
+ position: relative;
635
+ height: 100%;
636
+
637
+ .u-coin {
638
+ .db;
639
+ .size(18px);
640
+ * {
641
+ fill: #fff !important;
642
+ }
643
+ }
644
+ .u-asset {
645
+ .db;
646
+ padding: (@header-height - 16px)/2 10px;
647
+ &:hover {
648
+ .tm(0.7);
649
+ }
650
+ }
651
+
652
+ .u-icon {
653
+ .size(16px);
654
+ // font-size: 15px;
655
+ display: block;
656
+ // height: 32px;
657
+ padding: 24px 10px 10px 10px;
658
+ .pointer;
659
+ }
660
+
661
+ .u-assets {
662
+ .pa;
663
+ background-clip: padding-box;
664
+ background-color: #fff;
665
+ color: #3d454d;
666
+ border: 1px solid rgba(27, 31, 35, 0.15);
667
+ border-radius: 4px;
668
+ box-shadow: 0 3px 12px rgb(27 31 35 / 15%);
669
+ right: 0;
670
+ list-style: none;
671
+ margin: -6px 0 0 0;
672
+ padding: 15px;
673
+ position: absolute;
674
+ z-index: 820;
675
+ top: 100%;
676
+ width: 200px;
677
+
678
+ &:before {
679
+ content: "";
680
+ display: inline-block;
681
+ position: absolute;
682
+ left: auto;
683
+ right: 9px;
684
+ top: -16px;
685
+ border: 8px solid transparent;
686
+ border-bottom-color: rgba(27, 31, 35, 0.15);
687
+ }
688
+
689
+ &:after {
690
+ content: "";
691
+ display: inline-block;
692
+ position: absolute;
693
+ left: auto;
694
+ right: 10px;
695
+ top: -14px;
696
+ border: 7px solid transparent;
697
+ border-bottom-color: #fff;
698
+ }
699
+ }
700
+
701
+ .u-detail {
702
+ .u-item {
703
+ font-size: 12px;
704
+ color: #454545;
705
+ .flex;
706
+ align-items: center;
707
+ justify-content: space-between;
708
+ padding: 5px 0;
709
+
710
+ .u-value {
711
+ font-weight: bold;
712
+ .ml(5px);
713
+ color: #da076a;
714
+ }
715
+ .u-item-extend {
716
+ a {
717
+ .ml(5px);
718
+ &:hover {
719
+ color: @pink;
720
+ }
721
+ }
722
+ }
723
+ }
724
+ }
725
+ }
726
+
727
+ // 管理菜单
728
+ .c-header-manage {
729
+ }
730
+
623
731
  //登录、注册
624
732
  .c-header-login {
625
733
  margin: 16px 5px 16px 0;
@@ -692,12 +800,11 @@ body {
692
800
  }
693
801
 
694
802
  // .u-register {
695
- // background-color: @primary;
696
- // .mr(10px);
803
+ // background-color: @primary;
804
+ // .mr(10px);
697
805
  // }
698
806
  }
699
807
 
700
-
701
808
  // 用户信息
702
809
  .c-header-info {
703
810
  float: left;
@@ -779,6 +886,85 @@ body {
779
886
  opacity: 0.7;
780
887
  }
781
888
  }
889
+
890
+ .m-info {
891
+ background-clip: padding-box;
892
+ background-color: #fff;
893
+ color: #3d454d;
894
+ border: 1px solid rgba(27, 31, 35, 0.15);
895
+ border-radius: 4px;
896
+ box-shadow: 0 3px 12px rgb(27 31 35 / 35%);
897
+ right: 0;
898
+ list-style: none;
899
+ position: absolute;
900
+ z-index: 820;
901
+ top: 100%;
902
+ width: 400px;
903
+ margin-top: 18px;
904
+ margin-right: -10px;
905
+
906
+ .u-profile {
907
+ background-color: #f4f6f7;
908
+ padding: 10px;
909
+ }
910
+
911
+ .u-id {
912
+ font-size: 12px;
913
+ color: #999;
914
+ margin-top: 5px;
915
+ }
916
+ .u-copy {
917
+ margin-left: 5px;
918
+ .pointer;
919
+
920
+ &:hover {
921
+ color: @primary;
922
+ }
923
+ }
924
+ .m-vip {
925
+ margin-top: 5px;
926
+ }
927
+ .u-vip {
928
+ margin-left: 10px;
929
+ }
930
+
931
+ .u-actions {
932
+ width: 100%;
933
+ .flex;
934
+
935
+ .el-button {
936
+ border-radius: 0;
937
+ flex: 1;
938
+
939
+ &:first-of-type {
940
+ border-left-width: 0;
941
+ }
942
+ &:last-of-type {
943
+ border-right-width: 0;
944
+ }
945
+ }
946
+ }
947
+
948
+ .m-other {
949
+ .u-item {
950
+ display: block;
951
+ padding: 5px 10px;
952
+ color: #454545;
953
+
954
+ &:hover {
955
+ background: @primary;
956
+ color: #fff;
957
+ }
958
+ }
959
+ .u-logout {
960
+ padding: 0 10px 10px 10px;
961
+
962
+ .el-button {
963
+ width: 100%;
964
+ }
965
+ }
966
+ }
967
+ }
782
968
  }
783
969
 
784
970
  @media print {
@@ -787,16 +973,18 @@ body {
787
973
  }
788
974
  }
789
975
 
790
- @media screen and (max-width:@phone){
791
- .env-app{
792
- .c-header{.none;}
793
- body{
976
+ @media screen and (max-width: @phone) {
977
+ .env-app {
978
+ .c-header {
979
+ .none;
980
+ }
981
+ body {
794
982
  padding-top: 0;
795
983
  }
796
984
  }
797
985
  }
798
986
 
799
- .c-header-jx3box{
987
+ .c-header-jx3box {
800
988
  top: @header-height;
801
989
  left: 0;
802
990
  }
@@ -1,141 +1,137 @@
1
1
  .c-sidebar-left {
2
- .w(@aside-left - 40px);
3
- box-sizing: border-box;
4
- padding: 10px;
5
- .pf;
6
- .z(600);
7
- left: 0;
8
- top: @header-height + @bread-height;
9
- bottom: 0;
10
- background-color: @bg-light;
11
- border-right: 1px solid #eee;
2
+ .w(@aside-left - 40px);
3
+ box-sizing: border-box;
4
+ padding: 10px;
5
+ .pf;
6
+ .z(600);
7
+ left: 0;
8
+ top: @header-height + @bread-height;
9
+ bottom: 0;
10
+ background-color: @bg-light;
11
+ border-right: 1px solid #eee;
12
12
  }
13
13
 
14
14
  .c-sidebar-left.without-bread {
15
- top: @header-height;
15
+ top: @header-height;
16
16
  }
17
17
 
18
18
  .c-sidebar-left-inner {
19
- .size(100%);
20
- overflow-y: hidden;
21
-
22
- &:hover {
19
+ .size(100%);
23
20
  overflow-y: auto;
24
- }
25
-
26
- &::-webkit-scrollbar {
27
- width: 4px;
28
- }
29
-
30
- &::-webkit-scrollbar-track,
31
- &::-webkit-scrollbar-track-piece {
32
- background-color: #fafafa;
33
- border-radius: 6px;
34
- }
35
-
36
- &::-webkit-scrollbar-thumb {
37
- background-color: #eee;
38
- border-radius: 6px;
39
- }
40
-
41
- &::-webkit-scrollbar-button,
42
- &::-webkit-scrollbar-corner,
43
- &::-webkit-resizer {
44
- display: none;
45
- }
21
+
22
+ &::-webkit-scrollbar {
23
+ width: 4px;
24
+ }
25
+
26
+ &::-webkit-scrollbar-track,
27
+ &::-webkit-scrollbar-track-piece {
28
+ background-color: #fafafa;
29
+ border-radius: 6px;
30
+ }
31
+
32
+ &::-webkit-scrollbar-thumb {
33
+ background-color: #eee;
34
+ border-radius: 6px;
35
+ }
36
+
37
+ &::-webkit-scrollbar-button,
38
+ &::-webkit-scrollbar-corner,
39
+ &::-webkit-resizer {
40
+ display: none;
41
+ }
46
42
  }
47
43
 
48
44
  // 笔记本<1440 缩小双边栏
49
45
  @media screen and (max-width: @smallpc) {
50
- .c-sidebar-left {
51
- .w(@aside-left - 40px);
52
- }
46
+ .c-sidebar-left {
47
+ .w(@aside-left - 40px);
48
+ }
53
49
  }
54
50
 
55
51
  // 平板横屏
56
52
  @media screen and (max-width: @notebook) {
57
- .c-sidebar-left {
58
- .w(@aside-left - 60px);
59
- }
53
+ .c-sidebar-left {
54
+ .w(@aside-left - 60px);
55
+ }
60
56
  }
61
57
 
62
58
  @media screen and (max-width: @phone) {
63
59
  .c-sidebar-left-inner {
64
- overflow-y: auto;
60
+ overflow-y: auto;
65
61
  }
66
62
  }
67
63
 
68
64
  // 折叠相关逻辑
69
65
  .c-sidebar-left-toggle {
70
- display: block;
71
- .pa;
72
- .rb(-21px, calc(50% - 20px));
73
- width: 20px;
74
- height: 40px;
75
- line-height: 40px;
76
- .pointer;
77
- text-align: center;
78
- background-color: @bg-light;
79
- border-right: 1px solid #eee;
80
- border-top: 1px solid #eee;
81
- border-bottom: 1px solid #eee;
82
- border-radius: 0px 2px 2px 0px;
83
- font-size: 16px;
84
- color: #999;
85
-
86
- &:hover {
87
- color: #222;
88
- }
89
-
90
- &.close-sidebar-left {
91
- right: 0;
92
- }
93
-
94
- svg {
95
- fill: @color;
96
- }
66
+ display: block;
67
+ .pa;
68
+ .rb(-21px, calc(50% - 20px));
69
+ width: 20px;
70
+ height: 40px;
71
+ line-height: 40px;
72
+ .pointer;
73
+ text-align: center;
74
+ background-color: @bg-light;
75
+ border-right: 1px solid #eee;
76
+ border-top: 1px solid #eee;
77
+ border-bottom: 1px solid #eee;
78
+ border-radius: 0px 2px 2px 0px;
79
+ font-size: 16px;
80
+ color: #999;
81
+
82
+ &:hover {
83
+ color: #222;
84
+ }
85
+
86
+ &.close-sidebar-left {
87
+ right: 0;
88
+ }
89
+
90
+ svg {
91
+ fill: @color;
92
+ }
97
93
  }
98
94
 
99
95
  .closeLeftSidebar() {
100
- transition: 0.2s ease-in-out;
101
- transform: translateX(-100%);
96
+ transition: 0.2s ease-in-out;
97
+ transform: translateX(-100%);
102
98
  }
103
99
 
104
100
  .openLeftSidebar() {
105
- transition: 0.2s ease-in-out;
106
- transform: translateX(0);
101
+ transition: 0.2s ease-in-out;
102
+ transform: translateX(0);
107
103
  }
108
104
 
109
105
  .c-sidebar-left.isclose {
110
- .closeLeftSidebar();
106
+ .closeLeftSidebar();
111
107
 
112
- .c-sidebar-left-toggle {
113
- transition: 0.2s ease-in-out;
114
- transform: translateX(100%);
115
- }
108
+ .c-sidebar-left-toggle {
109
+ transition: 0.2s ease-in-out;
110
+ transform: translateX(100%);
111
+ }
116
112
  }
117
113
 
118
114
  .c-sidebar-left.isopen {
119
- .openLeftSidebar();
115
+ .openLeftSidebar();
120
116
 
121
- .c-sidebar-left-toggle {
122
- transition: 0.2s ease-in-out;
123
- transform: translateX(0);
124
- }
117
+ .c-sidebar-left-toggle {
118
+ transition: 0.2s ease-in-out;
119
+ transform: translateX(0);
120
+ }
125
121
  }
126
122
 
127
123
  @media screen and (max-width: @ipad) {
128
- .c-sidebar-left-toggle {
129
- .none;
130
- }
124
+ .c-sidebar-left-toggle {
125
+ .none;
126
+ }
131
127
 
132
- .c-sidebar-left.isopen {
133
- box-shadow: 2px 0 3px rgba(0, 0, 0, .1);
134
- }
128
+ .c-sidebar-left.isopen {
129
+ box-shadow: 2px 0 3px rgba(0, 0, 0, 0.1);
130
+ }
135
131
  }
136
132
 
137
133
  @media print {
138
- .c-sidebar-left {
139
- .none;
140
- }
134
+ .c-sidebar-left {
135
+ .none;
136
+ }
141
137
  }