leaui image fix bugs
This commit is contained in:
@ -488,47 +488,17 @@ function log(o) {
|
|||||||
<div id="leanoteNavContent">
|
<div id="leanoteNavContent">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<style>
|
|
||||||
#upload {
|
<!-- leaui image -->
|
||||||
position: absolute;
|
<form id="upload" method="post" action="/file/uploadImageLeaui" enctype="multipart/form-data" style="margin-top: 5px;">
|
||||||
z-index: 0;
|
<div id="drop">
|
||||||
bottom: 0;
|
Drop images to here
|
||||||
right: 0;
|
<input type="file" name="file" multiple style="display: none"/>
|
||||||
left: 0px;
|
</div>
|
||||||
padding: 0;
|
<ul id="uploadMsg">
|
||||||
background-color: #fff;
|
</ul>
|
||||||
text-align: center;
|
</form>
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
#upload #drop {
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
padding-top: 100px;
|
|
||||||
}
|
|
||||||
#drop.in {
|
|
||||||
border: 1px solid #000000;
|
|
||||||
}
|
|
||||||
#drop.hover {
|
|
||||||
border: 2px solid #000000;
|
|
||||||
}
|
|
||||||
#uploadMsg {
|
|
||||||
position: absolute;
|
|
||||||
top: 3px;
|
|
||||||
right: 3px;
|
|
||||||
bottom: 10px;
|
|
||||||
overflow: scroll;
|
|
||||||
list-style: none;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
<form id="upload" method="post" action="/file/uploadImageLeaui" enctype="multipart/form-data" style="margin-top: 5px;">
|
|
||||||
<div id="drop">
|
|
||||||
Drop images to here
|
|
||||||
<input type="file" name="file" multiple style="display: none"/>
|
|
||||||
</div>
|
|
||||||
<ul id="uploadMsg">
|
|
||||||
</ul>
|
|
||||||
</form>
|
|
||||||
|
|
||||||
<!-- 由此可以算高度 -->
|
<!-- 由此可以算高度 -->
|
||||||
<div id="editorContent" name="editorContent" tabindex="2" />
|
<div id="editorContent" name="editorContent" tabindex="2" />
|
||||||
{{.noteContent}}
|
{{.noteContent}}
|
||||||
|
@ -488,47 +488,17 @@ function log(o) {
|
|||||||
<div id="leanoteNavContent">
|
<div id="leanoteNavContent">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<style>
|
|
||||||
#upload {
|
<!-- leaui image -->
|
||||||
position: absolute;
|
<form id="upload" method="post" action="/file/uploadImageLeaui" enctype="multipart/form-data" style="margin-top: 5px;">
|
||||||
z-index: 0;
|
<div id="drop">
|
||||||
bottom: 0;
|
Drop images to here
|
||||||
right: 0;
|
<input type="file" name="file" multiple style="display: none"/>
|
||||||
left: 0px;
|
</div>
|
||||||
padding: 0;
|
<ul id="uploadMsg">
|
||||||
background-color: #fff;
|
</ul>
|
||||||
text-align: center;
|
</form>
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
#upload #drop {
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
padding-top: 100px;
|
|
||||||
}
|
|
||||||
#drop.in {
|
|
||||||
border: 1px solid #000000;
|
|
||||||
}
|
|
||||||
#drop.hover {
|
|
||||||
border: 2px solid #000000;
|
|
||||||
}
|
|
||||||
#uploadMsg {
|
|
||||||
position: absolute;
|
|
||||||
top: 3px;
|
|
||||||
right: 3px;
|
|
||||||
bottom: 10px;
|
|
||||||
overflow: scroll;
|
|
||||||
list-style: none;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
<form id="upload" method="post" action="/file/uploadImageLeaui" enctype="multipart/form-data" style="margin-top: 5px;">
|
|
||||||
<div id="drop">
|
|
||||||
Drop images to here
|
|
||||||
<input type="file" name="file" multiple style="display: none"/>
|
|
||||||
</div>
|
|
||||||
<ul id="uploadMsg">
|
|
||||||
</ul>
|
|
||||||
</form>
|
|
||||||
|
|
||||||
<!-- 由此可以算高度 -->
|
<!-- 由此可以算高度 -->
|
||||||
<div id="editorContent" name="editorContent" tabindex="2" />
|
<div id="editorContent" name="editorContent" tabindex="2" />
|
||||||
{{.noteContent}}
|
{{.noteContent}}
|
||||||
|
File diff suppressed because one or more lines are too long
@ -1210,4 +1210,36 @@ background-position:-1px -670px
|
|||||||
|
|
||||||
#toggleEditorMode {
|
#toggleEditorMode {
|
||||||
margin: 0 10px !important;
|
margin: 0 10px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
// leaui image drop drag
|
||||||
|
#upload {
|
||||||
|
position: absolute;
|
||||||
|
z-index: 0;
|
||||||
|
bottom: 0;
|
||||||
|
right: 0;
|
||||||
|
left: 0px;
|
||||||
|
padding: 0;
|
||||||
|
background-color: #fff;
|
||||||
|
text-align: center;
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
#upload #drop {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
padding-top: 100px;
|
||||||
|
}
|
||||||
|
#drop.in {
|
||||||
|
border: 1px solid #000000;
|
||||||
|
}
|
||||||
|
#drop.hover {
|
||||||
|
border: 2px solid #000000;
|
||||||
|
}
|
||||||
|
#uploadMsg {
|
||||||
|
position: absolute;
|
||||||
|
top: 3px;
|
||||||
|
right: 3px;
|
||||||
|
bottom: 10px;
|
||||||
|
overflow: scroll;
|
||||||
|
list-style: none;
|
||||||
}
|
}
|
File diff suppressed because one or more lines are too long
@ -1169,4 +1169,37 @@ background-position:-1px -670px
|
|||||||
|
|
||||||
#toggleEditorMode {
|
#toggleEditorMode {
|
||||||
margin: 0 10px !important;
|
margin: 0 10px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// leaui image drop drag
|
||||||
|
#upload {
|
||||||
|
position: absolute;
|
||||||
|
z-index: 0;
|
||||||
|
bottom: 0;
|
||||||
|
right: 0;
|
||||||
|
left: 0px;
|
||||||
|
padding: 0;
|
||||||
|
background-color: #fff;
|
||||||
|
text-align: center;
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
#upload #drop {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
padding-top: 100px;
|
||||||
|
}
|
||||||
|
#drop.in {
|
||||||
|
border: 1px solid #000000;
|
||||||
|
}
|
||||||
|
#drop.hover {
|
||||||
|
border: 2px solid #000000;
|
||||||
|
}
|
||||||
|
#uploadMsg {
|
||||||
|
position: absolute;
|
||||||
|
top: 3px;
|
||||||
|
right: 3px;
|
||||||
|
bottom: 10px;
|
||||||
|
overflow: scroll;
|
||||||
|
list-style: none;
|
||||||
}
|
}
|
@ -72,13 +72,10 @@ a.raw:hover {
|
|||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
border-bottom: 1px solid #ebeff2;
|
border-bottom: 1px solid #ebeff2;
|
||||||
/* for app */
|
/* for app */
|
||||||
|
|
||||||
webkit-user-select: none;
|
webkit-user-select: none;
|
||||||
/* 还不知 */
|
/* 还不知 */
|
||||||
|
|
||||||
-webkit-app-region: drag;
|
-webkit-app-region: drag;
|
||||||
/* -webkit-app-region: no-drag; */
|
/* -webkit-app-region: no-drag; */
|
||||||
|
|
||||||
}
|
}
|
||||||
#header a {
|
#header a {
|
||||||
color: #ccc;
|
color: #ccc;
|
||||||
@ -290,7 +287,6 @@ a.raw:hover {
|
|||||||
}
|
}
|
||||||
.item-title {
|
.item-title {
|
||||||
/*font-weight: 400;*/
|
/*font-weight: 400;*/
|
||||||
|
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
height: 22px;
|
height: 22px;
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
@ -345,9 +341,7 @@ a.raw:hover {
|
|||||||
border: none;
|
border: none;
|
||||||
overflow: hidden !important;
|
overflow: hidden !important;
|
||||||
/*不知道哪里设置了auto*/
|
/*不知道哪里设置了auto*/
|
||||||
|
|
||||||
/*border-radius: 5px;*/
|
/*border-radius: 5px;*/
|
||||||
|
|
||||||
}
|
}
|
||||||
/* 最顶层 */
|
/* 最顶层 */
|
||||||
#editor .mce-tinymce {
|
#editor .mce-tinymce {
|
||||||
@ -449,7 +443,6 @@ a.raw:hover {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
/*border-left: 1px solid #ccc;*/
|
/*border-left: 1px solid #ccc;*/
|
||||||
|
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding-left: 3px;
|
padding-left: 3px;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
@ -911,7 +904,6 @@ body {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
}
|
}
|
||||||
#noteList #notesAndSort {
|
#noteList #notesAndSort {
|
||||||
display: none;
|
display: none;
|
||||||
|
@ -72,13 +72,10 @@ a.raw:hover {
|
|||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
border-bottom: 1px solid #ebeff2;
|
border-bottom: 1px solid #ebeff2;
|
||||||
/* for app */
|
/* for app */
|
||||||
|
|
||||||
webkit-user-select: none;
|
webkit-user-select: none;
|
||||||
/* 还不知 */
|
/* 还不知 */
|
||||||
|
|
||||||
-webkit-app-region: drag;
|
-webkit-app-region: drag;
|
||||||
/* -webkit-app-region: no-drag; */
|
/* -webkit-app-region: no-drag; */
|
||||||
|
|
||||||
}
|
}
|
||||||
#header a {
|
#header a {
|
||||||
color: #ccc;
|
color: #ccc;
|
||||||
@ -290,7 +287,6 @@ a.raw:hover {
|
|||||||
}
|
}
|
||||||
.item-title {
|
.item-title {
|
||||||
/*font-weight: 400;*/
|
/*font-weight: 400;*/
|
||||||
|
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
height: 22px;
|
height: 22px;
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
@ -345,9 +341,7 @@ a.raw:hover {
|
|||||||
border: none;
|
border: none;
|
||||||
overflow: hidden !important;
|
overflow: hidden !important;
|
||||||
/*不知道哪里设置了auto*/
|
/*不知道哪里设置了auto*/
|
||||||
|
|
||||||
/*border-radius: 5px;*/
|
/*border-radius: 5px;*/
|
||||||
|
|
||||||
}
|
}
|
||||||
/* 最顶层 */
|
/* 最顶层 */
|
||||||
#editor .mce-tinymce {
|
#editor .mce-tinymce {
|
||||||
@ -449,7 +443,6 @@ a.raw:hover {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
/*border-left: 1px solid #ccc;*/
|
/*border-left: 1px solid #ccc;*/
|
||||||
|
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding-left: 3px;
|
padding-left: 3px;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
@ -741,3 +734,33 @@ background-position:-1px -670px
|
|||||||
background-color: #65bd77;
|
background-color: #65bd77;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
#upload {
|
||||||
|
position: absolute;
|
||||||
|
z-index: 0;
|
||||||
|
bottom: 0;
|
||||||
|
right: 0;
|
||||||
|
left: 0px;
|
||||||
|
padding: 0;
|
||||||
|
background-color: #fff;
|
||||||
|
text-align: center;
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
#upload #drop {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
padding-top: 100px;
|
||||||
|
}
|
||||||
|
#drop.in {
|
||||||
|
border: 1px solid #000000;
|
||||||
|
}
|
||||||
|
#drop.hover {
|
||||||
|
border: 2px solid #000000;
|
||||||
|
}
|
||||||
|
#uploadMsg {
|
||||||
|
position: absolute;
|
||||||
|
top: 3px;
|
||||||
|
right: 3px;
|
||||||
|
bottom: 10px;
|
||||||
|
overflow: scroll;
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
@ -830,3 +830,36 @@ background-position:-1px -670px
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// leaui image drop drag
|
||||||
|
#upload {
|
||||||
|
position: absolute;
|
||||||
|
z-index: 0;
|
||||||
|
bottom: 0;
|
||||||
|
right: 0;
|
||||||
|
left: 0px;
|
||||||
|
padding: 0;
|
||||||
|
background-color: #fff;
|
||||||
|
text-align: center;
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
#upload #drop {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
padding-top: 100px;
|
||||||
|
}
|
||||||
|
#drop.in {
|
||||||
|
border: 1px solid #000000;
|
||||||
|
}
|
||||||
|
#drop.hover {
|
||||||
|
border: 2px solid #000000;
|
||||||
|
}
|
||||||
|
#uploadMsg {
|
||||||
|
position: absolute;
|
||||||
|
top: 3px;
|
||||||
|
right: 3px;
|
||||||
|
bottom: 10px;
|
||||||
|
overflow: scroll;
|
||||||
|
list-style: none;
|
||||||
|
}
|
File diff suppressed because one or more lines are too long
@ -159,8 +159,8 @@ define('leaui_image', ['jquery.ui.widget', 'fileupload'], function(){
|
|||||||
$("#upload").show();
|
$("#upload").show();
|
||||||
}
|
}
|
||||||
|
|
||||||
function hideUpload() {
|
function hideUpload() {
|
||||||
$("#upload").css("z-index", 0).css("top", "auto");
|
$("#upload").css("z-index", 0).css("top", "auto").hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
// drag css
|
// drag css
|
||||||
|
Reference in New Issue
Block a user