* 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
107 lines
1.6 KiB
SCSS
107 lines
1.6 KiB
SCSS
@import './constants.scss';
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
:root {
|
|
--line-height-1: 1;
|
|
--line-height-2: 1.125;
|
|
--line-height-3: 1.25;
|
|
--line-height-4: 1.5;
|
|
--letter-spacing: 1;
|
|
--caps-letter-spacing: .2em;
|
|
--bold-font-weight: bold;
|
|
}
|
|
|
|
html, body, .viewport {
|
|
width: 100%;
|
|
margin: 0;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Atlas Grotesk', -apple-system, 'Helvetica Neue', Helvetica, sans-serif;
|
|
font-size: 15px;
|
|
line-height: 1.5;
|
|
margin: 0;
|
|
color: $textColor;
|
|
background-color: #fff;
|
|
display: flex;
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
}
|
|
img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
}
|
|
svg {
|
|
max-height: 100%;
|
|
}
|
|
a {
|
|
color: $actionColor;
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
}
|
|
h1, h2, h3,
|
|
h4, h5, h6 {
|
|
font-weight: 600;
|
|
line-height: 1.25;
|
|
margin-top: 1em;
|
|
margin-bottom: .5em;
|
|
}
|
|
h1 { font-size: 2em }
|
|
h2 { font-size: 1.5em }
|
|
h3 { font-size: 1.25em }
|
|
h4 { font-size: 1em }
|
|
h5 { font-size: .875em }
|
|
h6 { font-size: .75em }
|
|
p, dl, ol, ul, pre, blockquote {
|
|
margin-top: 1em;
|
|
margin-bottom: 1em;
|
|
}
|
|
code,
|
|
pre,
|
|
samp {
|
|
font-family:
|
|
'Atlas Typewriter',
|
|
'Source Code Pro',
|
|
Menlo,
|
|
Consolas,
|
|
'Liberation Mono',
|
|
monospace;
|
|
}
|
|
code, samp {
|
|
font-size: 87.5%;
|
|
padding: .125em;
|
|
}
|
|
pre {
|
|
font-size: 87.5%;
|
|
overflow: scroll;
|
|
}
|
|
blockquote {
|
|
font-size: 1.25em;
|
|
font-style: italic;
|
|
margin-left: 0;
|
|
}
|
|
hr {
|
|
margin: 2em 0;
|
|
border: 0;
|
|
border-bottom-width: 1px;
|
|
border-bottom-style: solid;
|
|
border-bottom-color: #dedede;
|
|
}
|
|
*[role=button] {
|
|
cursor: pointer;
|
|
}
|
|
|
|
:global {
|
|
.hljs {
|
|
border: 1px solid rgba(0,0,0,.0625);
|
|
padding: 1em;
|
|
border-radius: 0.25em;
|
|
}
|
|
}
|