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
c8f97687
Commit
c8f97687
authored
5 years ago
by
chris
Browse files
Options
Downloads
Patches
Plain Diff
all styles for Prosemirror surface
parent
842e73fe
No related branches found
No related tags found
1 merge request
!33
Layouts themes
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
wax-prosemirror-layouts/src/layouts/EditorElements.js
+16
-1
16 additions, 1 deletion
wax-prosemirror-layouts/src/layouts/EditorElements.js
wax-prosemirror-layouts/src/layouts/EditoriaLayout.js
+1
-13
1 addition, 13 deletions
wax-prosemirror-layouts/src/layouts/EditoriaLayout.js
with
17 additions
and
14 deletions
wax-prosemirror-layouts/src/layouts/EditorElements.js
+
16
−
1
View file @
c8f97687
import
styled
,
{
css
}
from
"
styled-components
"
;
import
styled
,
{
css
}
from
"
styled-components
"
;
/* All styles regarding ProseMirror surface and elements */
export
default
css
`{
export
default
css
`{
.ProseMirror {
-moz-box-shadow: 0 0 3px #ccc;
-webkit-box-shadow: 0 0 3px #ccc;
box-shadow: 0 0 3px #ccc;
width: 65%;
min-height: 90%;
padding: 40px;
font-family:
${
props
=>
props
.
theme
.
fontReading
}
;
&:focus {
outline: none;
}
}
hr {
hr {
padding: 2px 10px;
padding: 2px 10px;
border: none;
border: none;
...
@@ -74,7 +88,8 @@ export default css`{
...
@@ -74,7 +88,8 @@ export default css`{
background-color: #adf;
background-color: #adf;
pointer-events: none;
pointer-events: none;
}
}
.ProseMirror.resize-cursor.resize-cursor {
.ProseMirror.resize-cursor {
cursor: ew-resize;
cursor: ew-resize;
cursor: col-resize;
cursor: col-resize;
}
}
...
...
This diff is collapsed.
Click to expand it.
wax-prosemirror-layouts/src/layouts/EditoriaLayout.js
+
1
−
13
View file @
c8f97687
...
@@ -27,19 +27,7 @@ const WaxSurfaceScroll = styled.div`
...
@@ -27,19 +27,7 @@ const WaxSurfaceScroll = styled.div`
padding: 0;
padding: 0;
margin-left: 14%;
margin-left: 14%;
padding: 2px;
padding: 2px;
.ProseMirror {
${
EditorElements
}
;
-moz-box-shadow: 0 0 3px #ccc;
-webkit-box-shadow: 0 0 3px #ccc;
box-shadow: 0 0 3px #ccc;
width: 65%;
min-height: 90%;
padding: 40px;
font-family:
${
props
=>
props
.
theme
.
fontReading
}
;
&:focus {
outline: none;
}
${
EditorElements
}
;
}
`
;
`
;
const
EditoriaLayout
=
({
editor
,
view
,
...
props
})
=>
(
const
EditoriaLayout
=
({
editor
,
view
,
...
props
})
=>
(
...
...
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