fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
save caret position when ending a list
[fnpeditor.git]
/
src
/
editor
/
modules
/
documentCanvas
/
documentCanvas.less
diff --git
a/src/editor/modules/documentCanvas/documentCanvas.less
b/src/editor/modules/documentCanvas/documentCanvas.less
index
541eca2
..
9677691
100644
(file)
--- a/
src/editor/modules/documentCanvas/documentCanvas.less
+++ b/
src/editor/modules/documentCanvas/documentCanvas.less
@@
-1,5
+1,6
@@
@import 'nodes.less';
@import 'canvas/canvas.less';
@import 'nodes.less';
@import 'canvas/canvas.less';
+@import 'canvas/container.less';
@import 'canvas/documentElement.less';
@import 'canvas/genericElement.less';
@import 'canvas/gutter.less';
@import 'canvas/documentElement.less';
@import 'canvas/genericElement.less';
@import 'canvas/gutter.less';
@@
-10,15
+11,36
@@
}
#rng-module-documentCanvas-contentWrapper {
}
#rng-module-documentCanvas-contentWrapper {
- border-color: #ddd;
- border-style: solid;
- border-width: 1px;
+ background-color: #ddd;
float:left;
float:left;
- width:
calc(~'100% - 20px')
;
+ width:
100%
;
height: 100%;
overflow-y: scroll;
height: 100%;
overflow-y: scroll;
- padding: 0 10px;
+ &:before {
+ content: "";
+ position: absolute;
+ top: 0;
+ bottom: 0;
+ left: -15px;
+ right: -15px;
+ box-shadow: inset 0 20px 12px -20px rgba(0,0,0,0.6);
+ pointer-events:none;
+ z-index: 1;
+ }
+
+ &:after {
+ content: "";
+ position: absolute;
+ top: 0;
+ bottom: 0;
+ left: -15px;
+ right: -15px;
+ box-shadow: inset 0px -20px 12px -20px rgba(0,0,0,0.6);
+ pointer-events:none;
+ z-index: 1;
+ }
+
&::-webkit-scrollbar {
.rng-mixin-scrollbar;
}
&::-webkit-scrollbar {
.rng-mixin-scrollbar;
}
@@
-35,8
+57,15
@@
.root-wrapper {
display: table-cell;
vertical-align: top;
.root-wrapper {
display: table-cell;
vertical-align: top;
- width:
8
00px;
+ width:
6
00px;
outline: 0px solid transparent;
outline: 0px solid transparent;
+ padding: 0 100px;
+ background-color: white;
+ box-shadow: 0 0 20px rgba(0, 0, 0, 0.2), inset 0 0 10px rgba(0, 0, 0, 0.1);
+ }
+
+ [document-text-element] {
+ outline: none;
}
.current-text-element {
}
.current-text-element {