Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
a-doc-editor
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ramdayal Munda
a-doc-editor
Commits
f47fa26e
Commit
f47fa26e
authored
Dec 01, 2023
by
ramdayalmunda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
both sidebar scrollbars
parent
6c92f472
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
10 deletions
+35
-10
a-doc-editor.css
dist/assets/a-doc-editor.css
+29
-8
a-doc-editor.js
dist/assets/a-doc-editor.js
+6
-2
No files found.
dist/assets/a-doc-editor.css
View file @
f47fa26e
...
@@ -30,13 +30,16 @@
...
@@ -30,13 +30,16 @@
}
}
.a-doc-editor
.body
.left-sidebar
{
.a-doc-editor
.body
.left-sidebar
{
left
:
0
;
border-radius
:
0
10px
10px
0
;
display
:
flex
;
flex-direction
:
column
;
position
:
absolute
;
position
:
absolute
;
padding
:
8px
;
padding
:
8px
;
height
:
100%
;
width
:
17%
;
width
:
17%
;
left
:
0
;
top
:
0
;
bottom
:
0
;
background-color
:
#8a9a9b
;
background-color
:
#8a9a9b
;
border-radius
:
0
10px
10px
0
;
transition
:
300ms
;
transition
:
300ms
;
}
}
...
@@ -52,13 +55,16 @@
...
@@ -52,13 +55,16 @@
}
}
.a-doc-editor
.body
.right-sidebar
{
.a-doc-editor
.body
.right-sidebar
{
right
:
0
;
border-radius
:
10px
0
0
10px
;
display
:
flex
;
flex-direction
:
column
;
position
:
absolute
;
position
:
absolute
;
padding
:
8px
;
padding
:
8px
;
height
:
100%
;
right
:
0
;
width
:
17%
;
width
:
17%
;
background-color
:
#969b8a
;
top
:
0
;
border-radius
:
10px
0
0
10px
;
bottom
:
0
;
background-color
:
#8a9a9b
;
transition
:
300ms
;
transition
:
300ms
;
}
}
...
@@ -66,15 +72,30 @@
...
@@ -66,15 +72,30 @@
right
:
-16%
;
right
:
-16%
;
transition
:
300ms
;
transition
:
300ms
;
}
}
.a-doc-editor
.body
.sidebar-body
{
flex
:
1
;
padding
:
8px
;
left
:
20%
;
right
:
20%
;
top
:
0
;
bottom
:
0
;
text-align
:
center
;
overflow
:
auto
;
display
:
flex
;
flex-direction
:
column
;
}
.a-doc-editor
.body
.hide
.sidebar-body
{
overflow
:
hidden
;
}
.a-doc-editor
.body
.scrolling-area
{
.a-doc-editor
.body
.scrolling-area
{
position
:
absolute
;
position
:
absolute
;
padding
:
8px
;
left
:
20%
;
left
:
20%
;
right
:
20%
;
right
:
20%
;
top
:
0
;
top
:
0
;
bottom
:
0
;
bottom
:
0
;
text-align
:
center
;
text-align
:
center
;
align-items
:
center
;
overflow
:
auto
;
overflow
:
auto
;
}
}
...
...
dist/assets/a-doc-editor.js
View file @
f47fa26e
...
@@ -83,20 +83,24 @@ var ADocEditor = function (customConfig) {
...
@@ -83,20 +83,24 @@ var ADocEditor = function (customConfig) {
<div>Page tools</div>
<div>Page tools</div>
</div>
</div>
<div class="body">
<div class="body">
<div class="scrolling-area" id="
${
scrollingAreaId
}
"></div>
<div class="scrolling-area" id="
${
scrollingAreaId
}
">
<canvas class="page"></canvas>
</div>
<div class="left-sidebar hide" id="
${
leftSidebarId
}
">
<div class="left-sidebar hide" id="
${
leftSidebarId
}
">
<div class="toggle-sidebar">
<div class="toggle-sidebar">
<span></span>
<span></span>
<span>Summary</span>
<span>Summary</span>
<span>⇆</span>
<span>⇆</span>
</div>
</div>
<div class="sidebar-body"></div>
</div>
</div>
<div class="right-sidebar
hide
" id="
${
rightSidebarId
}
">
<div class="right-sidebar" id="
${
rightSidebarId
}
">
<div class="toggle-sidebar">
<div class="toggle-sidebar">
<span>⇆</span>
<span>⇆</span>
<span>Comments</span>
<span>Comments</span>
<span></span>
<span></span>
</div>
</div>
<div class="sidebar-body"></div>
</div>
</div>
</div>
</div>
<div class="footer" id="
${
footerComponentId
}
">
<div class="footer" id="
${
footerComponentId
}
">
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment