From 1c6cf6d5874881e11d007f75db3675a9d8c4b2ae Mon Sep 17 00:00:00 2001 From: Offerel Date: Tue, 19 Jul 2022 17:17:14 +0200 Subject: [PATCH] Fix resizing notes list --- CHANGELOG.md | 1 + skins/primitivenotes.css | 1 - skins/primitivenotes.min.css | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b4fedff..019ee0e 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ### v2.1.2 - Fix for ToC +- Fix resizing notes list ### v2.1.1 - Fix for pasting html/markdown diff --git a/skins/primitivenotes.css b/skins/primitivenotes.css index 72f968e..0ce0596 100755 --- a/skins/primitivenotes.css +++ b/skins/primitivenotes.css @@ -19,7 +19,6 @@ } } .column-resizer { - background: #f4f4f4; right: -11px; width: 10px; } diff --git a/skins/primitivenotes.min.css b/skins/primitivenotes.min.css index a6756fd..90fda0f 100755 --- a/skins/primitivenotes.min.css +++ b/skins/primitivenotes.min.css @@ -1 +1 @@ -:root{--maxwidth:800px}@media screen and (max-width:480px){.editor-toolbar button.clean-block{display:none!important}.editor-toolbar button.ordered-list{display:none!important}.editor-toolbar button.table{display:none!important}.editor-toolbar button.italic{display:none!important}.editor-toolbar .separator{display:none!important}}.column-resizer{background:#f4f4f4;right:-11px;width:10px}#layout{background-color:#f4f4f4}#layout-content{margin-left:10px}#metah{height:100%}#notes-list.highlight *{background-color:#f0f8ff;opacity:.8;pointer-events:none}#tocdiv{position:absolute;background-color:#d4dbde;width:260px;white-space:nowrap;padding:5px 0 5px;border-bottom-left-radius:.3em;border-bottom-right-radius:.3em;border:1px solid #bbb;overflow-x:hidden;right:30px;border-top:0;height:250px;overflow-y:auto}#tocdiv.tocShow{top:29px}#tocdiv div{height:calc(100% - 35px);overflow:auto;width:100%;padding-top:10px;padding-right:15px;counter-reset:section}#tocdiv h3{font-size:1.3em;padding:10px 10px 2px;background-color:#b6c3c8;width:258px;margin:0}#tocdiv>li{top:40px;position:relative}#tocdiv ul{margin:0;padding-left:15px;counter-reset:item}#tocdiv li{list-style:none;padding:0;overflow:hidden;text-overflow:ellipsis}#tocdiv li:not(.ul)::before{content:counters(item, ".") " ";counter-increment:item}.db-spinner{width:40px;height:40px;border-radius:50%;background-color:transparent;border:7px solid #2229;border-top:7px solid #03a9f4;border-bottom:7px solid #03a9f4;animation:1s spin linear infinite;position:absolute;top:50%;left:50%;z-index:100}.lbg{background-color:#44697547;width:100%;height:100%;position:absolute;top:0;left:0}@keyframes spin{from{transform:rotate(0)}to{transform:rotate(360deg)}}.mdeHide{display:none!important}#headerTitle{font-size:2em;padding:0 5px;width:calc(100% - 30px);border:thin solid #ced4da;background-color:#fff;border-radius:.2em;margin:5px 0;outline:0;text-overflow:ellipsis}#headerTitle::placeholder{color:#a9a9a9;font-weight:lighter}#headerTitle.readOnly{border-color:transparent!important;background-color:transparent!important;pointer-events:none}#main_header .tagify{border:1px solid transparent!important;overflow-x:auto;flex-wrap:revert!important;margin:0 10px 0 0;border-radius:.3em;overflow-y:hidden}#main_header .tagify[readonly]:not(.tagify--mix):not(.tagify--select) .tagify__tag>div::before{animation:unset!important}#main_header .taedit{background-color:#fff;border-color:#ced4da!important}.lselected{background-color:#f0f8ff}#ndata{position:absolute;background-color:#d4dbde;border:1px solid #a9a9a9;width:calc(100% - 50px);border-top:0;z-index:1;border-bottom-left-radius:.3em;border-bottom-right-radius:.3em;top:15px;animation-name:bounceInDown;animation-duration:1s;animation-fill-mode:both;display:none;left:calc(50% - 10px);max-width:var(--maxwidth);flex-wrap:wrap;justify-content:space-around;align-content:space-around;row-gap:5px;column-gap:10px;padding:20px 10px 10px 10px;transform:translate(-50%,0)!important;width:calc(100% - 50px)}@keyframes bounceInDown{0%,100%,60%,75%,90%{transition-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}100%{transform:none}}#ndata label{font-size:.7em;color:#696969;margin:0;width:100%}#ndata input{border:1px solid #b2b2b2;border-radius:.3em;background-color:#fff;width:100%;outline:0}#ndata .ifield{flex-grow:1;width:200px}#ndata .datefield{flex-grow:1;order:1;width:100px}#ndata input:read-only{background-color:azure;opacity:.5}input#source:read-only:not(:placeholder-shown){cursor:pointer}input#source:read-only:not(:placeholder-shown):hover{text-decoration:underline;color:#00008b}.mtoggle{display:flex!important}#pnlist .size{right:15px;position:absolute;margin-top:-22px;font-size:85%;color:#737677;width:3em;text-align:right}#pnlist .subject{width:calc(100% - 4em);text-overflow:ellipsis;overflow:hidden;font-weight:bolder;color:#686868}#pnlist .date{font-size:85%;color:#737677}.nlist li{border-bottom:1px solid #f1f3f4;cursor:default;font-weight:400;line-height:22px;list-style:none;background-image:url(images/unknown-icon.png);background-repeat:no-repeat;background-size:32px;padding-left:36px;background-position-x:5px;background-position-y:6px}.nlist li:hover{background-color:#afd9fd}.nlist li.md{background-image:url(images/md-icon.png)}.nlist li.jpg{background-image:url(images/jpg-icon.png)}.nlist li.png{background-image:url(images/png-icon.png)}.nlist li.html{background-image:url(images/html-icon.png)}.nlist li.pdf{background-image:url(images/pdf-icon.png)}.nlist li.txt{background-image:url(images/txt-icon.png)}.upl{display:none}#main_header{background-color:#f4f4f4;z-index:10;position:relative;top:0;width:100%}#main_area{width:100%;height:calc(100% - 80px);position:relative}.objdiv{height:100%;max-width:100%}.objcont{width:100%;height:100%;object-fit:scale-down}.custom-file{display:none}#metah .CodeMirror-focused,#metah .tagify--focus,#metah input:focus{border-color:#37beff!important;box-shadow:0 0 0 .2rem rgb(55 190 255 / 25%)}.cm-variable-2.cm-link{overflow:scroll;position:absolute;white-space:nowrap}.EasyMDEContainer{background-color:#f4f4f4;padding:0 10px 0 0}.editor-toolbar{z-index:2;background-color:#f4f4f4;border-radius:0!important;border:0!important;padding:2px 0!important}.editor-toolbar button:disabled{pointer-events:none}.editor-toolbar.disabled-for-preview button:not(.no-disable){opacity:.3!important}.fa-floppy-disk::before{content:"\f0c7"}.editor-preview{background-color:#fff!important;line-height:1.2em;counter-reset:h1}.editor-preview h1{counter-reset:h2}.editor-preview h1:before{counter-increment:h1;content:counter(h1) " "}.editor-preview h2{counter-reset:h3}.editor-preview h2:before{counter-increment:h2;content:counter(h1) "." counter(h2) " ";counter-reset:h3}.editor-preview h3{counter-reset:h4}.editor-preview h3:before{counter-increment:h3;content:counter(h1) "." counter(h2) "." counter(h3) " ";counter-reset:h4}.editor-preview h4{counter-reset:h5}.editor-preview h4:before{counter-increment:h4;content:counter(h1) "." counter(h2) "." counter(h3) "." counter(h4) " ";counter-reset:h5}.editor-preview h5{counter-reset:h6}.editor-preview h5:before{counter-increment:h5;content:counter(h1) "." counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) " ";counter-reset:h6}.editor-preview *{max-width:var(--maxwidth);margin-left:auto;margin-right:auto}.editor-preview pre{border-radius:4px}.editor-preview code{overflow-x:auto;scrollbar-width:thin;margin:0 0 -5px 0;user-select:all;width:unset;background-color:#eed7d7;font-family:Consolas,Monaco,monospace!important;color:#e93700;padding:2px;border-radius:4px;display:inline-block;white-space:pre;max-width:100%}.editor-preview pre code{color:unset;background-color:unset;position:relative;width:100%}.editor-preview kbd{font-family:Consolas,"Courier New",monospace;border-radius:5px;padding:0 4px;font-size:.9em;background:#fff;color:#555;user-select:none;border-width:1px 3px 3px 1px;border-color:#ccc #aaa #888 #bbb;white-space:nowrap;border-style:solid}.editor-preview img{display:block;max-width:var(--maxwidth)}.editor-preview blockquote{color:#3c763d;background-color:rgba(66,185,131,.1);padding:0;margin:15px 0;border-left:4px solid #42b983;margin-left:auto;margin-right:auto}.editor-preview blockquote p{padding:5px}.editor-preview a{color:#42b983;text-decoration:none;font-style:normal;font-weight:600}.editor-preview h1,.editor-preview h2,.editor-preview h3,.editor-preview h4,.editor-preview h5,.editor-preview h6{font-weight:700}.editor-preview code::-webkit-scrollbar-thumb{background:#bbb;border-radius:6px}.editor-preview code::-webkit-scrollbar{height:6px;background:#dee2e6}.editor-preview table{border-spacing:0;border-collapse:collapse;text-shadow:1px 1px 0 #fff}.editor-preview table thead th{background-color:#e0e0e0;border:1px solid #ddd;padding:5px}.editor-preview table tr:nth-child(2n){background:linear-gradient(to bottom,#f8f8f8 0,#f6f6f6 100%)}.editor-preview table td,.editor-preview table th{border:1px solid #ddd;padding:5px}.editor-preview li{margin-left:0!important}.editor-preview li>input[type=checkbox]{height:unset!important;margin-left:-1.3em}.editor-preview span.success{position:absolute;left:50%;transform:translate(-50%,0);background-color:#7fff00;padding:0 5px;border-radius:4px;color:#000}.editor-preview-side{position:absolute!important;top:34px;bottom:31px}.cm-comment{font-family:Consolas,Monaco,monospace!important;font-size:.9em}.cm-link,.cm-url{color:#42b983!important} \ No newline at end of file +:root{--maxwidth:800px}@media screen and (max-width:480px){.editor-toolbar button.clean-block{display:none!important}.editor-toolbar button.ordered-list{display:none!important}.editor-toolbar button.table{display:none!important}.editor-toolbar button.italic{display:none!important}.editor-toolbar .separator{display:none!important}}.column-resizer{right:-11px;width:10px}#layout{background-color:#f4f4f4}#layout-content{margin-left:10px}#metah{height:100%}#notes-list.highlight *{background-color:#f0f8ff;opacity:.8;pointer-events:none}#tocdiv{position:absolute;background-color:#d4dbde;width:260px;white-space:nowrap;padding:5px 0 5px;border-bottom-left-radius:.3em;border-bottom-right-radius:.3em;border:1px solid #bbb;overflow-x:hidden;right:30px;border-top:0;height:250px;overflow-y:auto}#tocdiv.tocShow{top:29px}#tocdiv div{height:calc(100% - 35px);overflow:auto;width:100%;padding-top:10px;padding-right:15px;counter-reset:section}#tocdiv h3{font-size:1.3em;padding:10px 10px 2px;background-color:#b6c3c8;width:258px;margin:0}#tocdiv>li{top:40px;position:relative}#tocdiv ul{margin:0;padding-left:15px;counter-reset:item}#tocdiv li{list-style:none;padding:0;overflow:hidden;text-overflow:ellipsis}#tocdiv li:not(.ul)::before{content:counters(item, ".") " ";counter-increment:item}.db-spinner{width:40px;height:40px;border-radius:50%;background-color:transparent;border:7px solid #2229;border-top:7px solid #03a9f4;border-bottom:7px solid #03a9f4;animation:1s spin linear infinite;position:absolute;top:50%;left:50%;z-index:100}.lbg{background-color:#44697547;width:100%;height:100%;position:absolute;top:0;left:0}@keyframes spin{from{transform:rotate(0)}to{transform:rotate(360deg)}}.mdeHide{display:none!important}#headerTitle{font-size:2em;padding:0 5px;width:calc(100% - 30px);border:thin solid #ced4da;background-color:#fff;border-radius:.2em;margin:5px 0;outline:0;text-overflow:ellipsis}#headerTitle::placeholder{color:#a9a9a9;font-weight:lighter}#headerTitle.readOnly{border-color:transparent!important;background-color:transparent!important;pointer-events:none}#main_header .tagify{border:1px solid transparent!important;overflow-x:auto;flex-wrap:revert!important;margin:0 10px 0 0;border-radius:.3em;overflow-y:hidden}#main_header .tagify[readonly]:not(.tagify--mix):not(.tagify--select) .tagify__tag>div::before{animation:unset!important}#main_header .taedit{background-color:#fff;border-color:#ced4da!important}.lselected{background-color:#f0f8ff}#ndata{position:absolute;background-color:#d4dbde;border:1px solid #a9a9a9;width:calc(100% - 50px);border-top:0;z-index:1;border-bottom-left-radius:.3em;border-bottom-right-radius:.3em;top:15px;animation-name:bounceInDown;animation-duration:1s;animation-fill-mode:both;display:none;left:calc(50% - 10px);max-width:var(--maxwidth);flex-wrap:wrap;justify-content:space-around;align-content:space-around;row-gap:5px;column-gap:10px;padding:20px 10px 10px 10px;transform:translate(-50%,0)!important;width:calc(100% - 50px)}@keyframes bounceInDown{0%,100%,60%,75%,90%{transition-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}100%{transform:none}}#ndata label{font-size:.7em;color:#696969;margin:0;width:100%}#ndata input{border:1px solid #b2b2b2;border-radius:.3em;background-color:#fff;width:100%;outline:0}#ndata .ifield{flex-grow:1;width:200px}#ndata .datefield{flex-grow:1;order:1;width:100px}#ndata input:read-only{background-color:azure;opacity:.5}input#source:read-only:not(:placeholder-shown){cursor:pointer}input#source:read-only:not(:placeholder-shown):hover{text-decoration:underline;color:#00008b}.mtoggle{display:flex!important}#pnlist .size{right:15px;position:absolute;margin-top:-22px;font-size:85%;color:#737677;width:3em;text-align:right}#pnlist .subject{width:calc(100% - 4em);text-overflow:ellipsis;overflow:hidden;font-weight:bolder;color:#686868}#pnlist .date{font-size:85%;color:#737677}.nlist li{border-bottom:1px solid #f1f3f4;cursor:default;font-weight:400;line-height:22px;list-style:none;background-image:url(images/unknown-icon.png);background-repeat:no-repeat;background-size:32px;padding-left:36px;background-position-x:5px;background-position-y:6px}.nlist li:hover{background-color:#afd9fd}.nlist li.md{background-image:url(images/md-icon.png)}.nlist li.jpg{background-image:url(images/jpg-icon.png)}.nlist li.png{background-image:url(images/png-icon.png)}.nlist li.html{background-image:url(images/html-icon.png)}.nlist li.pdf{background-image:url(images/pdf-icon.png)}.nlist li.txt{background-image:url(images/txt-icon.png)}.upl{display:none}#main_header{background-color:#f4f4f4;z-index:10;position:relative;top:0;width:100%}#main_area{width:100%;height:calc(100% - 80px);position:relative}.objdiv{height:100%;max-width:100%}.objcont{width:100%;height:100%;object-fit:scale-down}.custom-file{display:none}#metah .CodeMirror-focused,#metah .tagify--focus,#metah input:focus{border-color:#37beff!important;box-shadow:0 0 0 .2rem rgb(55 190 255 / 25%)}.cm-variable-2.cm-link{overflow:scroll;position:absolute;white-space:nowrap}.EasyMDEContainer{background-color:#f4f4f4;padding:0 10px 0 0}.editor-toolbar{z-index:2;background-color:#f4f4f4;border-radius:0!important;border:0!important;padding:2px 0!important}.editor-toolbar button:disabled{pointer-events:none}.editor-toolbar.disabled-for-preview button:not(.no-disable){opacity:.3!important}.fa-floppy-disk::before{content:"\f0c7"}.editor-preview{background-color:#fff!important;line-height:1.2em;counter-reset:h1}.editor-preview h1{counter-reset:h2}.editor-preview h1:before{counter-increment:h1;content:counter(h1) " "}.editor-preview h2{counter-reset:h3}.editor-preview h2:before{counter-increment:h2;content:counter(h1) "." counter(h2) " ";counter-reset:h3}.editor-preview h3{counter-reset:h4}.editor-preview h3:before{counter-increment:h3;content:counter(h1) "." counter(h2) "." counter(h3) " ";counter-reset:h4}.editor-preview h4{counter-reset:h5}.editor-preview h4:before{counter-increment:h4;content:counter(h1) "." counter(h2) "." counter(h3) "." counter(h4) " ";counter-reset:h5}.editor-preview h5{counter-reset:h6}.editor-preview h5:before{counter-increment:h5;content:counter(h1) "." counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) " ";counter-reset:h6}.editor-preview *{max-width:var(--maxwidth);margin-left:auto;margin-right:auto}.editor-preview pre{border-radius:4px}.editor-preview code{overflow-x:auto;scrollbar-width:thin;margin:0 0 -5px 0;user-select:all;width:unset;background-color:#eed7d7;font-family:Consolas,Monaco,monospace!important;color:#e93700;padding:2px;border-radius:4px;display:inline-block;white-space:pre;max-width:100%}.editor-preview pre code{color:unset;background-color:unset;position:relative;width:100%}.editor-preview kbd{font-family:Consolas,"Courier New",monospace;border-radius:5px;padding:0 4px;font-size:.9em;background:#fff;color:#555;user-select:none;border-width:1px 3px 3px 1px;border-color:#ccc #aaa #888 #bbb;white-space:nowrap;border-style:solid}.editor-preview img{display:block;max-width:var(--maxwidth)}.editor-preview blockquote{color:#3c763d;background-color:rgba(66,185,131,.1);padding:0;margin:15px 0;border-left:4px solid #42b983;margin-left:auto;margin-right:auto}.editor-preview blockquote p{padding:5px}.editor-preview a{color:#42b983;text-decoration:none;font-style:normal;font-weight:600}.editor-preview h1,.editor-preview h2,.editor-preview h3,.editor-preview h4,.editor-preview h5,.editor-preview h6{font-weight:700}.editor-preview code::-webkit-scrollbar-thumb{background:#bbb;border-radius:6px}.editor-preview code::-webkit-scrollbar{height:6px;background:#dee2e6}.editor-preview table{border-spacing:0;border-collapse:collapse;text-shadow:1px 1px 0 #fff}.editor-preview table thead th{background-color:#e0e0e0;border:1px solid #ddd;padding:5px}.editor-preview table tr:nth-child(2n){background:linear-gradient(to bottom,#f8f8f8 0,#f6f6f6 100%)}.editor-preview table td,.editor-preview table th{border:1px solid #ddd;padding:5px}.editor-preview li{margin-left:0!important}.editor-preview li>input[type=checkbox]{height:unset!important;margin-left:-1.3em}.editor-preview span.success{position:absolute;left:50%;transform:translate(-50%,0);background-color:#7fff00;padding:0 5px;border-radius:4px;color:#000}.editor-preview-side{position:absolute!important;top:34px;bottom:31px}.cm-comment{font-family:Consolas,Monaco,monospace!important;font-size:.9em}.cm-link,.cm-url{color:#42b983!important} \ No newline at end of file