* WIP: Slate editor
* WIP
* Focus at start / end working
* ah ha
* Super basic floating toolbar
* Nested list editing
* Pulling more logic into plugins
* inline code markdown
* Backspace at end of code block should remove mark
* Ensure there is always an empty line at editor end
* Add keyboard shortcuts for bold, italic, underline
* Add strikethrough shortcode and toolbar
* Toolbar to declarative
Fixed paragraph styling
Removed unused stuffs
* Super basic link editing
* Split Toolbar, now possible to edit and remove links
* Add new link to selection from toolbar working
* Ensure toolbar doesn't extend off screen
* Fix minor js issues, disable formatting of document title
* Boom, icons
* Remove codemirror, fix MD parsing issues
* CMD+S now saves inplace
* Add --- shortcut for horizontal rule
* Improved styling for link editor
* Add header anchors in readOnly
* More readable core text color
* Restored image file uploading 🎉
* Add support for inline md syntax, ** __ etc
* Centered
* Flooooow
* Checklist support
* Upgrade edit list plugin
* Finally. Allow keydown within rich textarea
* Update Markdown serializer
* Cleanup, remove async editor loading
* Editor > MarkdownEditor
Fixed unsaved changes warning triggered when all changes are saved
* MOAR typing
* Combine edit and view
* Fixed checkboxes still editable in readOnly
* wip
* Breadcrumb
Restored scroll
* Move document scene actions to menu
* Added: Support for code blocks, syntax highlighting
* Cleanup
* > styled component
* Prevent CMD+Enter from adding linebreak
* Show image uploading in layout activity indicator
* Upgrade editor deps
* Improve link toolbar. Only one scenario where it's not working now
144 lines
1.7 KiB
SCSS
144 lines
1.7 KiB
SCSS
.container {
|
|
display: flex;
|
|
flex: 1;
|
|
flex-direction: column;
|
|
|
|
font-weight: 400;
|
|
font-size: 1em;
|
|
line-height: 1.5em;
|
|
|
|
padding: 0 3em;
|
|
max-width: 50em;
|
|
}
|
|
|
|
.editor {
|
|
background: #fff;
|
|
color: #1b2631;
|
|
height: auto;
|
|
width: 100%;
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6 {
|
|
font-weight: 500;
|
|
|
|
.anchor {
|
|
visibility: hidden;
|
|
color: #dedede;
|
|
padding-left: .25em;
|
|
}
|
|
|
|
&:hover {
|
|
.anchor {
|
|
visibility: visible;
|
|
|
|
&:hover {
|
|
color: #cdcdcd;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
ul,
|
|
ol {
|
|
margin: 1em .1em;
|
|
padding-left: 1em;
|
|
|
|
ul,
|
|
ol {
|
|
margin: .1em;
|
|
}
|
|
}
|
|
|
|
li p {
|
|
display: inline;
|
|
margin: 0;
|
|
}
|
|
|
|
.todoList {
|
|
list-style: none;
|
|
padding-left: 0;
|
|
|
|
.todoList {
|
|
padding-left: 1em;
|
|
}
|
|
}
|
|
|
|
.todo {
|
|
span:last-child:focus {
|
|
outline: none;
|
|
}
|
|
}
|
|
|
|
code,
|
|
pre {
|
|
background: #efefef;
|
|
border-radius: 3px;
|
|
border: 1px solid #dedede;
|
|
}
|
|
|
|
pre {
|
|
padding: 0 .5em;
|
|
|
|
code {
|
|
background: none;
|
|
border: 0;
|
|
padding: 0;
|
|
border-radius: 0;
|
|
}
|
|
}
|
|
|
|
blockquote {
|
|
border-left: 3px solid #efefef;
|
|
padding-left: 10px;
|
|
}
|
|
|
|
table {
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
tr {
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
|
|
th {
|
|
font-weight: bold;
|
|
}
|
|
|
|
th,
|
|
td {
|
|
padding: 5px 20px 5px 0;
|
|
}
|
|
}
|
|
|
|
.readOnly {
|
|
cursor: default;
|
|
}
|
|
|
|
.title {
|
|
position: relative;
|
|
}
|
|
|
|
.placeholder {
|
|
position: absolute;
|
|
top: 0;
|
|
pointer-events: none;
|
|
color: #ddd;
|
|
}
|
|
|
|
@media all and (max-width: 2000px) and (min-width: 960px) {
|
|
.container {
|
|
// margin-top: 48px;
|
|
font-size: 1.1em;
|
|
}
|
|
}
|
|
|
|
@media all and (max-width: 960px) {
|
|
.container {
|
|
font-size: 0.9em;
|
|
}
|
|
}
|