Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wax-prosemirror
Manage
Activity
Members
Labels
Plan
Issues
34
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wax
wax-prosemirror
Commits
842e73fe
Commit
842e73fe
authored
5 years ago
by
chris
Browse files
Options
Downloads
Patches
Plain Diff
use font-family
parent
f9be636a
No related branches found
No related tags found
1 merge request
!33
Layouts themes
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
wax-prosemirror-layouts/src/layouts/EditoriaLayout.js
+12
-8
12 additions, 8 deletions
wax-prosemirror-layouts/src/layouts/EditoriaLayout.js
with
12 additions
and
8 deletions
wax-prosemirror-layouts/src/layouts/EditoriaLayout.js
+
12
−
8
View file @
842e73fe
import
styled
from
"
styled-components
"
;
import
styled
,
{
ThemeProvider
}
from
"
styled-components
"
;
import
React
,
{
Fragment
}
from
"
react
"
;
import
{
MainMenuBar
,
SideMenuBar
}
from
"
wax-prosemirror-components
"
;
import
EditorElements
from
"
./EditorElements
"
;
import
{
cokoTheme
}
from
"
wax-prosemirror-themes
"
;
const
LayoutWrapper
=
styled
.
div
`
display: flex;
...
...
@@ -33,6 +34,7 @@ const WaxSurfaceScroll = styled.div`
width: 65%;
min-height: 90%;
padding: 40px;
font-family:
${
props
=>
props
.
theme
.
fontReading
}
;
&:focus {
outline: none;
}
...
...
@@ -41,13 +43,15 @@ const WaxSurfaceScroll = styled.div`
`
;
const
EditoriaLayout
=
({
editor
,
view
,
...
props
})
=>
(
<
LayoutWrapper
>
<
MainMenuBar
view
=
{
view
}
{...
props
}
/
>
<
WaxSurfaceContainer
>
<
SideMenuBar
view
=
{
view
}
{...
props
}
/
>
<
WaxSurfaceScroll
>
{
editor
}
<
/WaxSurfaceScroll
>
<
/WaxSurfaceContainer
>
<
/LayoutWrapper
>
<
ThemeProvider
theme
=
{
cokoTheme
}
>
<
LayoutWrapper
>
<
MainMenuBar
view
=
{
view
}
{...
props
}
/
>
<
WaxSurfaceContainer
>
<
SideMenuBar
view
=
{
view
}
{...
props
}
/
>
<
WaxSurfaceScroll
>
{
editor
}
<
/WaxSurfaceScroll
>
<
/WaxSurfaceContainer
>
<
/LayoutWrapper
>
<
/ThemeProvider
>
);
export
default
EditoriaLayout
;
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment