@jx3box/jx3box-common-ui 6.4.5 → 6.4.7

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,111 @@
1
+ .c-header-jx3box {
2
+ background-color: @bg-black;
3
+ .z(800);
4
+ overflow-y: auto;
5
+ overflow-x: hidden;
6
+ .w(100%);
7
+ box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
8
+ transition: 0.5s ease-in-out;
9
+ .clearfix;
10
+
11
+ .none;
12
+ &.on {
13
+ .db;
14
+ }
15
+ .pr;
16
+ .u-close {
17
+ // .pa;.rb(0);
18
+ .fr;
19
+ background-color: @color;
20
+ .fz(13px);
21
+ padding: 5px 10px;
22
+ i {
23
+ .mr(3px);
24
+ }
25
+ .pointer;
26
+ }
27
+
28
+ .c-header-search {
29
+ float: none;
30
+ .w(auto);
31
+ margin: 0 20px 10px 20px;
32
+ box-sizing: border-box;
33
+ padding: 0;
34
+ .none;
35
+ }
36
+
37
+ .u-list {
38
+ display: flex;
39
+ flex-direction: column;
40
+ flex-wrap: wrap;
41
+ height: 480px;
42
+ padding: 20px;
43
+ .clearfix;
44
+ overflow: auto;
45
+ }
46
+
47
+ .u-list__item {
48
+ .fl;
49
+ .mb(10px);
50
+ width: 160px;
51
+ padding:0 20px;
52
+ flex-grow: 0;
53
+ }
54
+
55
+ .u-group {
56
+ margin-bottom: 5px;
57
+ .pr;
58
+ }
59
+
60
+ .u-group-icon {
61
+ .size(18px, 18px);
62
+ .pa;
63
+ left: -25px;
64
+ }
65
+
66
+ .u-group-name{
67
+ .fz(14px,1.8);
68
+ .bold;
69
+ color:#59a5fc;
70
+ padding:0 10px;
71
+ }
72
+
73
+ .u-subtitle {
74
+ .fz(12px,2);
75
+ color:#9b9b9b;
76
+ padding:0 10px;
77
+ }
78
+
79
+
80
+ .u-content__item{
81
+ padding:5px 0;
82
+ }
83
+ .u-link {
84
+ .db;
85
+ .r(2px);
86
+ padding:0 10px;
87
+ // .mb(3px);
88
+ .u-txt {
89
+ .fz(13px,2);
90
+ color: #eee;
91
+ }
92
+ &:hover{
93
+ background-color:#3b4044;
94
+ .u-txt{
95
+ color: #fff;
96
+ }
97
+ }
98
+
99
+ &.not-client {
100
+ .none;
101
+ }
102
+ }
103
+ @media screen and (max-width: @ipad-y) {
104
+ .c-header-search {
105
+ .db;
106
+ }
107
+ }
108
+ }
109
+ .c-header-jx3box.isOverlay {
110
+ background-color: rgba(0, 0, 0, 0.85);
111
+ }
@@ -1,98 +1,135 @@
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
- .c-sidebar-left.without-bread{
14
- top: @header-height;
13
+
14
+ .c-sidebar-left.without-bread {
15
+ top: @header-height;
15
16
  }
16
- .c-sidebar-left-inner{
17
- .size(100%);
17
+
18
+ .c-sidebar-left-inner {
19
+ .size(100%);
20
+ overflow-y: hidden;
21
+
22
+ &:hover {
18
23
  overflow-y: auto;
19
- &::-webkit-scrollbar {
20
- width: 4px;
21
- }
22
- &::-webkit-scrollbar-track,
23
- &::-webkit-scrollbar-track-piece {
24
- background-color: #fafafa;
25
- border-radius: 6px;
26
- }
27
- &::-webkit-scrollbar-thumb {
28
- background-color: #eee;
29
- border-radius: 6px;
30
- }
31
- &::-webkit-scrollbar-button,
32
- &::-webkit-scrollbar-corner,
33
- &::-webkit-resizer {
34
- display: none;
35
- }
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
+ }
36
46
  }
37
47
 
38
48
  // 笔记本<1440 缩小双边栏
39
49
  @media screen and (max-width: @smallpc) {
40
- .c-sidebar-left {
41
- .w(@aside-left - 40px);
42
- }
50
+ .c-sidebar-left {
51
+ .w(@aside-left - 40px);
52
+ }
43
53
  }
44
54
 
45
55
  // 平板横屏
46
56
  @media screen and (max-width: @notebook) {
47
- .c-sidebar-left {
48
- .w(@aside-left - 60px);
49
- }
57
+ .c-sidebar-left {
58
+ .w(@aside-left - 60px);
59
+ }
50
60
  }
51
61
 
52
62
  // 折叠相关逻辑
53
63
  .c-sidebar-left-toggle {
54
- .pa;
55
- .rb(0);
56
- .size(20px);
57
- .pointer;
58
- padding: 10px;
59
- svg {
60
- fill: @color;
61
- }
64
+ display: block;
65
+ .pa;
66
+ .rb(-21px, calc(50% - 20px));
67
+ width: 20px;
68
+ height: 40px;
69
+ line-height: 40px;
70
+ .pointer;
71
+ text-align: center;
72
+ background-color: @bg-light;
73
+ border-right: 1px solid #eee;
74
+ border-top: 1px solid #eee;
75
+ border-bottom: 1px solid #eee;
76
+ border-radius: 0px 2px 2px 0px;
77
+ font-size: 16px;
78
+ color: #999;
79
+
80
+ &:hover {
81
+ color: #222;
82
+ }
83
+
84
+ &.close-sidebar-left {
85
+ right: 0;
86
+ }
87
+
88
+ svg {
89
+ fill: @color;
90
+ }
62
91
  }
92
+
63
93
  .closeLeftSidebar() {
64
- transition: 0.2s ease-in-out;
65
- transform: translateX(-100%);
94
+ transition: 0.2s ease-in-out;
95
+ transform: translateX(-100%);
66
96
  }
97
+
67
98
  .openLeftSidebar() {
68
- transition: 0.2s ease-in-out;
69
- transform: translateX(0);
99
+ transition: 0.2s ease-in-out;
100
+ transform: translateX(0);
70
101
  }
102
+
71
103
  .c-sidebar-left.isclose {
72
- .closeLeftSidebar();
104
+ .closeLeftSidebar();
73
105
 
74
- .c-sidebar-left-toggle {
75
- transition: 0.2s ease-in-out;
76
- transform: translateX(100%);
77
- }
106
+ .c-sidebar-left-toggle {
107
+ transition: 0.2s ease-in-out;
108
+ transform: translateX(100%);
109
+ }
78
110
  }
111
+
79
112
  .c-sidebar-left.isopen {
80
- .openLeftSidebar();
113
+ .openLeftSidebar();
81
114
 
82
- .c-sidebar-left-toggle {
83
- transition: 0.2s ease-in-out;
84
- transform: translateX(0);
85
- }
115
+ .c-sidebar-left-toggle {
116
+ transition: 0.2s ease-in-out;
117
+ transform: translateX(0);
118
+ }
86
119
  }
87
120
 
88
121
  @media screen and (max-width: @ipad) {
89
- .c-sidebar-left-toggle {
90
- .none;
91
- }
92
- .c-sidebar-left.isopen{
93
- box-shadow:2px 0 3px rgba(0,0,0,.1);
94
- }
122
+ .c-sidebar-left-toggle {
123
+ .none;
124
+ }
125
+
126
+ .c-sidebar-left.isopen {
127
+ box-shadow: 2px 0 3px rgba(0, 0, 0, .1);
128
+ }
129
+ }
130
+
131
+ @media print {
132
+ .c-sidebar-left {
133
+ .none;
134
+ }
95
135
  }
96
- @media print{
97
- .c-sidebar-left{.none;}
98
- }