mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-17 08:38:18 +00:00
scroll bar style
This commit is contained in:
@@ -790,7 +790,7 @@ window.require = undefined;
|
|||||||
<script src="public/tinymce/tinymce.dev.js"></script>
|
<script src="public/tinymce/tinymce.dev.js"></script>
|
||||||
<script src="public/libs/ace/ace.js"></script>
|
<script src="public/libs/ace/ace.js"></script>
|
||||||
<script src="public/js/app/page.js"></script>
|
<script src="public/js/app/page.js"></script>
|
||||||
<script src="public/js/jQuery-slimScroll-1.3.0/jquery.slimscroll.js"></script>
|
<!-- <script src="public/js/jQuery-slimScroll-1.3.0/jquery.slimscroll.js"></script> -->
|
||||||
<script src="public/js/contextmenu/jquery.contextmenu.js"></script>
|
<script src="public/js/contextmenu/jquery.contextmenu.js"></script>
|
||||||
<script src="public/js/bootstrap-min.js"></script>
|
<script src="public/js/bootstrap-min.js"></script>
|
||||||
<script src="public/js/app/note.js"></script>
|
<script src="public/js/app/note.js"></script>
|
||||||
|
@@ -992,7 +992,7 @@ h1, h2, h3 {
|
|||||||
right:0;
|
right:0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
overflow-y: hidden;
|
overflow-y: scroll;
|
||||||
padding: 0 5px;
|
padding: 0 5px;
|
||||||
}
|
}
|
||||||
#noteItemList .item {
|
#noteItemList .item {
|
||||||
@@ -1512,3 +1512,35 @@ top: 4px;
|
|||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
white-space: nowrap;text-overflow:ellipsis; overflow:hidden;
|
white-space: nowrap;text-overflow:ellipsis; overflow:hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// scrollbar style TODO
|
||||||
|
// https://www.webkit.org/blog/363/styling-scrollbars/
|
||||||
|
// http://trac.webkit.org/export/41842/trunk/LayoutTests/scrollbars/overflow-scrollbar-combinations.html
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* STYLE 2
|
||||||
|
*/
|
||||||
|
/*
|
||||||
|
*::-webkit-scrollbar-track
|
||||||
|
{
|
||||||
|
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
|
||||||
|
border-radius: 10px;
|
||||||
|
background-color: #F5F5F5;
|
||||||
|
}
|
||||||
|
|
||||||
|
*::-webkit-scrollbar
|
||||||
|
{
|
||||||
|
width: 10px;
|
||||||
|
background-color: #F5F5F5;
|
||||||
|
position: absolute;
|
||||||
|
-webkit-transform: translatez(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
*::-webkit-scrollbar-thumb
|
||||||
|
{
|
||||||
|
border-radius: 10px;
|
||||||
|
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
|
||||||
|
background-color: #D62929;
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
@@ -913,7 +913,7 @@ h3 {
|
|||||||
right: 0;
|
right: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
overflow-y: hidden;
|
overflow-y: scroll;
|
||||||
padding: 0 5px;
|
padding: 0 5px;
|
||||||
}
|
}
|
||||||
#noteItemList .item {
|
#noteItemList .item {
|
||||||
@@ -1362,6 +1362,39 @@ h3 {
|
|||||||
width: 230px;
|
width: 230px;
|
||||||
height: 80px;
|
height: 80px;
|
||||||
}
|
}
|
||||||
|
.conflict-title {
|
||||||
|
display: block;
|
||||||
|
text-decoration: underline;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
* STYLE 2
|
||||||
|
*/
|
||||||
|
/*
|
||||||
|
*::-webkit-scrollbar-track
|
||||||
|
{
|
||||||
|
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
|
||||||
|
border-radius: 10px;
|
||||||
|
background-color: #F5F5F5;
|
||||||
|
}
|
||||||
|
|
||||||
|
*::-webkit-scrollbar
|
||||||
|
{
|
||||||
|
width: 10px;
|
||||||
|
background-color: #F5F5F5;
|
||||||
|
position: absolute;
|
||||||
|
-webkit-transform: translatez(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
*::-webkit-scrollbar-thumb
|
||||||
|
{
|
||||||
|
border-radius: 10px;
|
||||||
|
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
|
||||||
|
background-color: #D62929;
|
||||||
|
}
|
||||||
|
*/
|
||||||
::selection {
|
::selection {
|
||||||
background: #000000;
|
background: #000000;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
|
@@ -913,7 +913,7 @@ h3 {
|
|||||||
right: 0;
|
right: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
overflow-y: hidden;
|
overflow-y: scroll;
|
||||||
padding: 0 5px;
|
padding: 0 5px;
|
||||||
}
|
}
|
||||||
#noteItemList .item {
|
#noteItemList .item {
|
||||||
@@ -1362,6 +1362,39 @@ h3 {
|
|||||||
width: 230px;
|
width: 230px;
|
||||||
height: 80px;
|
height: 80px;
|
||||||
}
|
}
|
||||||
|
.conflict-title {
|
||||||
|
display: block;
|
||||||
|
text-decoration: underline;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
* STYLE 2
|
||||||
|
*/
|
||||||
|
/*
|
||||||
|
*::-webkit-scrollbar-track
|
||||||
|
{
|
||||||
|
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
|
||||||
|
border-radius: 10px;
|
||||||
|
background-color: #F5F5F5;
|
||||||
|
}
|
||||||
|
|
||||||
|
*::-webkit-scrollbar
|
||||||
|
{
|
||||||
|
width: 10px;
|
||||||
|
background-color: #F5F5F5;
|
||||||
|
position: absolute;
|
||||||
|
-webkit-transform: translatez(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
*::-webkit-scrollbar-thumb
|
||||||
|
{
|
||||||
|
border-radius: 10px;
|
||||||
|
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
|
||||||
|
background-color: #D62929;
|
||||||
|
}
|
||||||
|
*/
|
||||||
::selection {
|
::selection {
|
||||||
background: #000000;
|
background: #000000;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
|
@@ -913,7 +913,7 @@ h3 {
|
|||||||
right: 0;
|
right: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
overflow-y: hidden;
|
overflow-y: scroll;
|
||||||
padding: 0 5px;
|
padding: 0 5px;
|
||||||
}
|
}
|
||||||
#noteItemList .item {
|
#noteItemList .item {
|
||||||
@@ -1362,6 +1362,39 @@ h3 {
|
|||||||
width: 230px;
|
width: 230px;
|
||||||
height: 80px;
|
height: 80px;
|
||||||
}
|
}
|
||||||
|
.conflict-title {
|
||||||
|
display: block;
|
||||||
|
text-decoration: underline;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
* STYLE 2
|
||||||
|
*/
|
||||||
|
/*
|
||||||
|
*::-webkit-scrollbar-track
|
||||||
|
{
|
||||||
|
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
|
||||||
|
border-radius: 10px;
|
||||||
|
background-color: #F5F5F5;
|
||||||
|
}
|
||||||
|
|
||||||
|
*::-webkit-scrollbar
|
||||||
|
{
|
||||||
|
width: 10px;
|
||||||
|
background-color: #F5F5F5;
|
||||||
|
position: absolute;
|
||||||
|
-webkit-transform: translatez(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
*::-webkit-scrollbar-thumb
|
||||||
|
{
|
||||||
|
border-radius: 10px;
|
||||||
|
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
|
||||||
|
background-color: #D62929;
|
||||||
|
}
|
||||||
|
*/
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Open Sans';
|
font-family: 'Open Sans';
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
|
@@ -913,7 +913,7 @@ h3 {
|
|||||||
right: 0;
|
right: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
overflow-y: hidden;
|
overflow-y: scroll;
|
||||||
padding: 0 5px;
|
padding: 0 5px;
|
||||||
}
|
}
|
||||||
#noteItemList .item {
|
#noteItemList .item {
|
||||||
@@ -1362,6 +1362,39 @@ h3 {
|
|||||||
width: 230px;
|
width: 230px;
|
||||||
height: 80px;
|
height: 80px;
|
||||||
}
|
}
|
||||||
|
.conflict-title {
|
||||||
|
display: block;
|
||||||
|
text-decoration: underline;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
* STYLE 2
|
||||||
|
*/
|
||||||
|
/*
|
||||||
|
*::-webkit-scrollbar-track
|
||||||
|
{
|
||||||
|
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
|
||||||
|
border-radius: 10px;
|
||||||
|
background-color: #F5F5F5;
|
||||||
|
}
|
||||||
|
|
||||||
|
*::-webkit-scrollbar
|
||||||
|
{
|
||||||
|
width: 10px;
|
||||||
|
background-color: #F5F5F5;
|
||||||
|
position: absolute;
|
||||||
|
-webkit-transform: translatez(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
*::-webkit-scrollbar-thumb
|
||||||
|
{
|
||||||
|
border-radius: 10px;
|
||||||
|
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
|
||||||
|
background-color: #D62929;
|
||||||
|
}
|
||||||
|
*/
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Open Sans';
|
font-family: 'Open Sans';
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
|
@@ -815,7 +815,8 @@ Note.renderNotes = function(notes, forNewNote, isShared) {
|
|||||||
// 手机端不用
|
// 手机端不用
|
||||||
// slimScroll使得手机端滚动不流畅
|
// slimScroll使得手机端滚动不流畅
|
||||||
if(!LEA.isMobile && !Mobile.isMobile()) {
|
if(!LEA.isMobile && !Mobile.isMobile()) {
|
||||||
$("#noteItemList").slimScroll({ scrollTo: '0px', height: "100%", onlyScrollBar: true});
|
// $("#noteItemList").slimScroll({ scrollTo: '0px', height: "100%", onlyScrollBar: true});
|
||||||
|
$("#noteItemList").scrollTop(0); // ({ scrollTo: '0px', height: "100%", onlyScrollBar: true});
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!notes || typeof notes != "object" || notes.length <= 0) {
|
if(!notes || typeof notes != "object" || notes.length <= 0) {
|
||||||
|
Reference in New Issue
Block a user