editor: tweaking visual appearance
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Thu, 29 May 2014 07:11:37 +0000 (09:11 +0200)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Thu, 29 May 2014 07:38:00 +0000 (09:38 +0200)
src/editor/modules/documentCanvas/canvas/canvas.less
src/editor/modules/documentCanvas/canvas/gutter.less
src/editor/modules/documentCanvas/documentCanvas.less
src/editor/modules/rng/editingLayout.html
src/editor/modules/rng/editingLayout.less
src/editor/modules/rng/mainLayout.less
src/editor/modules/rng/rng.js
src/editor/styles/mixins.less

index b594247..2c6edc2 100644 (file)
@@ -1,7 +1,8 @@
 .view-table {
     display: table;
-    width: 100%;
-    
+    width: calc(~'100% - 100px');
+    margin: 10px 0 20px 100px;
+
     .view-row {
         display: table-row;
     }
index b41179b..17178c7 100644 (file)
@@ -2,11 +2,11 @@
     display: table-cell;
     width: calc(~'100% - 800px');
     min-width: 250px;
-    padding-left: 45px;
+    padding: 0 25px;
 }
 
 .gutter-box {
-    border: 1px solid #ddd;
+    border: 1px solid darken(#ddd, 10%);
     padding: 5px 10px;
     position: relative;
     background-color: darken(#FFFCB7, 15%);
index 541eca2..879d78d 100644 (file)
 }
 
 #rng-module-documentCanvas-contentWrapper {
-    border-color: #ddd;
-    border-style: solid;
-    border-width: 1px;
+    background-color: #ddd;
     float:left;
-    width: calc(~'100% - 20px');
+    width: 100%;
     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;
     }
     .root-wrapper {
         display: table-cell;
         vertical-align: top;
-        width:800px;
+        width: 600px;
         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);
     }
 
     .current-text-element {
index 259f0f4..9fb37e6 100644 (file)
@@ -1,5 +1,4 @@
 <div class="fnp-module-rng-editingLayout">
     <div fnpjs-place="toolbar"></div>
     <div class="rng-module-rng2-left" fnpjs-place="leftColumn"></div>
-    <div class="rng-module-rng2-statusBar" fnpjs-place="statusBar"></div>
 </div>
\ No newline at end of file
index eefd222..fe46e6d 100644 (file)
@@ -10,6 +10,8 @@
 
 .fnp-module-rng-editingLayout {
 
+    margin-left: 60px;
+
     [fnpjs-place="statusBar"] {
         position: absolute;
         bottom: 0;
@@ -22,7 +24,7 @@
     [fnpjs-place="leftColumn"] {
         position: absolute;
         top: 30px; //
-        bottom: 50px; //
+        bottom: 0px; //
         left:0;
         right: 0;
     }
index c1a7e8e..859b581 100644 (file)
@@ -2,8 +2,8 @@
     position: fixed;
     top: 5px;
     bottom: 5px;
-    left: 80px;
-    right: 80px;
+    left: 0px;
+    right: 0px;
     
     [fnpjs-place="messages"] {
         position: absolute;
@@ -16,6 +16,7 @@
         float: right;
         position: relative;
         z-index: 2;
+        margin-right: 60px;
     }
     
     [fnpjs-place="mainView"] {
@@ -29,6 +30,7 @@
         > .rng-view-tabs {
             position: relative;
             height: 100%;
+            padding-left: 60px;
 
             > .rng-view-tabs-content {
                 position: absolute;
index 459dcc1..032fea4 100644 (file)
@@ -81,7 +81,7 @@ return function(sandbox) {
             sandbox.getModule('mainBar').setCommandEnabled('drop-draft', usingDraft);
             sandbox.getModule('mainBar').setCommandEnabled('save', usingDraft);
 
-            _.each(['sourceEditor', 'documentCanvas', 'documentToolbar', 'nodeBreadCrumbs', 'mainBar', 'indicator', 'documentHistory', 'diffViewer', 'statusBar'], function(moduleName) {
+            _.each(['sourceEditor', 'documentCanvas', 'documentToolbar', 'mainBar', 'indicator', 'documentHistory', 'diffViewer', 'statusBar'], function(moduleName) {
                 sandbox.getModule(moduleName).start();
             });
             
index 3a14f31..28effc8 100644 (file)
@@ -1,5 +1,5 @@
 .rng-mixin-scrollbar {
-    width: 9px;
+    width: 12px;
 }
 
 .rng-mixin-scrollbar-track {