efront 4.30.3 → 4.31.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.
@@ -1,14 +1,15 @@
1
1
  @title-height: 32px;
2
- @height : 240px;
3
- @width : 280px;
2
+ @height : 240px;
3
+ @width : 280px;
4
4
 
5
5
  & {
6
- display : block;
7
- position : relative;
8
- width : @width;
9
- max-width : 100%;
10
- height : @height;
6
+ display: block;
7
+ position: relative;
8
+ width: @width;
9
+ max-width: 100%;
10
+ height: @height;
11
11
  background-color: #fff;
12
+ border: 1px solid #0092cc;
12
13
  }
13
14
 
14
15
  &.date-4 {
@@ -25,86 +26,86 @@
25
26
 
26
27
  .cbody {
27
28
  position: absolute;
28
- height : @height - @title-height;
29
- top : @title-height;
30
- left : 0;
31
- width : 100%;
29
+ height: @height - @title-height;
30
+ top: @title-height;
31
+ left: 0;
32
+ width: 100%;
32
33
  overflow: hidden;
33
34
 
34
35
  >div {
35
- text-align : center;
36
- display : block;
37
- float : left;
36
+ text-align: center;
37
+ display: block;
38
+ float: left;
38
39
  border-radius: 50%;
39
- transition : border-radius .1s, background-color .1s;
40
- position : relative;
41
- cursor : pointer;
40
+ transition: border-radius .1s, background-color .1s;
41
+ position: relative;
42
+ cursor: pointer;
42
43
 
43
44
  >span {
44
- position : absolute;
45
- top : 50%;
46
- height : 16px;
47
- margin-top : -8px;
45
+ position: absolute;
46
+ top: 50%;
47
+ height: 16px;
48
+ margin-top: -8px;
48
49
  line-height: 16px;
49
- right : 0;
50
- left : 0;
50
+ right: 0;
51
+ left: 0;
51
52
  }
52
53
  }
53
54
 
54
55
  >div:hover {
55
56
  background-color: #ddd;
56
- border-radius : 3px;
57
+ border-radius: 3px;
57
58
 
58
59
  &:active {
59
- color : #fff;
60
+ color: #fff;
60
61
  background-color: #0092cc;
61
- box-shadow : 0 0 4px rgba(0, 0, 0, 0.3) inset;
62
- border-radius : 3px;
62
+ box-shadow: 0 0 4px rgba(0, 0, 0, 0.3) inset;
63
+ border-radius: 3px;
63
64
  }
64
65
  }
65
66
 
66
67
  >div.iing {
67
68
  background-color: #00aaef;
68
- color : #fff;
69
+ color: #fff;
69
70
  }
70
71
 
71
72
  >div.last,
72
73
  >div.next {
73
- opacity : 0.5;
74
+ opacity: 0.5;
74
75
  background-color: transparent;
75
- color : inherit;
76
+ color: inherit;
76
77
  }
77
78
 
78
79
  >div.title {
79
- border-bottom : 1px solid rgba(0, 0, 0, 0.1);
80
+ border-bottom: 1px solid rgba(0, 0, 0, 0.1);
80
81
  background-color: transparent;
81
- color : inherit;
82
+ color: inherit;
82
83
  }
83
84
  }
84
85
 
85
86
  .chead {
86
- @color : ~"#ffffffcc";
87
- @hover-color : ~"#ffffffee";
88
- @active-color : ~"#ffffff99";
89
- @height : @title-height;
90
- height : @height;
91
- line-height : @height;
87
+ @color :~"#ffffffcc";
88
+ @hover-color :~"#ffffffee";
89
+ @active-color :~"#ffffff99";
90
+ @height : @title-height;
91
+ height: @height;
92
+ line-height: @height;
92
93
  background-color: #0092cc;
93
- font-size : 20px;
94
- color : @color;
95
- position : absolute;
96
- top : 0px;
97
- width : 100%;
98
- left : 0;
99
- text-align : center;
94
+ font-size: 20px;
95
+ color: @color;
96
+ position: absolute;
97
+ top: 0px;
98
+ width: 100%;
99
+ left: 0;
100
+ text-align: center;
100
101
 
101
102
  >i {
102
103
  box-sizing: border-box;
103
- width : @height;
104
- height : @height;
105
- top : 0;
106
- position : absolute;
107
- cursor : pointer;
104
+ width: @height;
105
+ height: @height;
106
+ top: 0;
107
+ position: absolute;
108
+ cursor: pointer;
108
109
 
109
110
  &:nth-child(1) {
110
111
  left: 0;
@@ -128,16 +129,16 @@
128
129
  }
129
130
 
130
131
  &:after {
131
- content : '';
132
- display : block;
133
- width : 0;
134
- height : 0;
135
- top : 50%;
136
- left : 50%;
137
- margin-top : -8px;
132
+ content: '';
133
+ display: block;
134
+ width: 0;
135
+ height: 0;
136
+ top: 50%;
137
+ left: 50%;
138
+ margin-top: -8px;
138
139
  margin-left: -8px;
139
- border : 8px solid transparent;
140
- position : absolute;
140
+ border: 8px solid transparent;
141
+ position: absolute;
141
142
  }
142
143
 
143
144
  &:nth-last-child(1) {
@@ -176,7 +177,7 @@
176
177
  }
177
178
 
178
179
  &.ing {
179
- color : @hover-color;
180
+ color: @hover-color;
180
181
  background-color: #00aaef;
181
182
  }
182
183
  }
@@ -74,7 +74,7 @@ body>& {
74
74
  border-bottom: 1px solid rgba(0, 0, 0, .16);
75
75
 
76
76
  >* {
77
- vertical-align: middle;
77
+ vertical-align: top;
78
78
  }
79
79
 
80
80
  .drop,
@@ -480,7 +480,7 @@
480
480
  if (!detailWindow) {
481
481
  detailWindow = view();
482
482
  on('submit')(detailWindow, e => e.preventDefault());
483
- detailWindow.innerHTML = `<div head><span -if=!item? >${i18n`翻译工具`} </span><template -else>${i18n`翻译: `}"<span -bind="item?.text"></span>"</template><drop @click="close()"></drop></div><lattice itemwidth=260 -src="s in supports" body><field style="display:inline-block;padding:0 0 6px 12px;" ><label style="padding-left:0"><span -bind="s.name"></span>(<span -bind="s.lang"></span>)</label><textarea -model="fanyi[s.id]" class='body' style="resize:none"></textarea></field></lattice><div foot><a style="float:left" @click="baidu">${i18n`一键百度`}</a></div>`;
483
+ detailWindow.innerHTML = `<div head><span -if=!item? >${i18n`翻译工具`} </span><template -else>${i18n`翻译: `}"<span -bind="item?.text"></span>"</template><drop @click="close()"></drop></div><lattice itemwidth=260 -src="s in supports" body><field style="display:inline-block;padding:6px 0 0 0;position:relative" ><label style="padding-left:2px;display:block;background:#fff;background-clip:padding-box;border:1px solid transparent;box-sizing:border-box;" head><span -bind="s.name"></span>(<span -bind="s.lang"></span>)</label><textarea -model="fanyi[s.id]" class='body' style="resize:none"></textarea></field></lattice><div foot><a style="float:left" @click="baidu">${i18n`一键百度`}</a></div>`;
484
484
  drag.on(detailWindow, detailWindow.firstElementChild);
485
485
  resize.on(detailWindow);
486
486
  css(detailWindow, `position:absolute;left:0;top:0;bottom:0;width:260px;`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "efront",
3
- "version": "4.30.3",
3
+ "version": "4.31.0",
4
4
  "description": "一个开发环境,提供一种自由的前端开发模式,也可作为辅助工具使用。",
5
5
  "main": "public/efront.js",
6
6
  "directories": {