2016-11-01 16:55:21 -07:00
|
|
|
.editor {
|
|
|
|
position: relative;
|
|
|
|
& h1, & h2, & h3 {
|
|
|
|
padding: 0;
|
|
|
|
color: #7c8382;
|
|
|
|
text-decoration: none;
|
|
|
|
border-bottom: none;
|
|
|
|
margin-bottom: 20px;
|
|
|
|
line-height: 1.45;
|
|
|
|
&:before {
|
|
|
|
content: "# ";
|
|
|
|
color: #a5afad;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
& h1 {
|
|
|
|
font-size: 2.5rem;
|
|
|
|
}
|
|
|
|
& h2 {
|
|
|
|
font-size: 2rem;
|
|
|
|
}
|
|
|
|
& h3 {
|
|
|
|
font-size: 1.8rem;
|
|
|
|
}
|
|
|
|
& h2:before {
|
|
|
|
content: "## ";
|
|
|
|
}
|
|
|
|
& h3:before {
|
|
|
|
content: "### ";
|
|
|
|
}
|
|
|
|
& p {
|
|
|
|
margin-bottom: 20px;
|
|
|
|
}
|
2016-08-02 23:25:45 -03:00
|
|
|
}
|
2016-08-18 15:13:22 -03:00
|
|
|
|
2016-11-01 16:55:21 -07:00
|
|
|
:global {
|
|
|
|
& .ProseMirror {
|
|
|
|
position: relative;
|
|
|
|
}
|
2016-08-18 15:13:22 -03:00
|
|
|
|
2016-11-01 16:55:21 -07:00
|
|
|
& .ProseMirror-content {
|
|
|
|
white-space: pre-wrap;
|
|
|
|
}
|
2016-08-18 15:13:22 -03:00
|
|
|
|
2016-11-01 16:55:21 -07:00
|
|
|
& .ProseMirror-drop-target {
|
|
|
|
position: absolute;
|
|
|
|
width: 1px;
|
|
|
|
background: #666;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
& .ProseMirror-content ul, & .ProseMirror-content ol {
|
|
|
|
padding-left: 30px;
|
|
|
|
cursor: default;
|
|
|
|
}
|
|
|
|
|
|
|
|
& .ProseMirror-content blockquote {
|
|
|
|
padding-left: 1em;
|
|
|
|
border-left: 3px solid #eee;
|
|
|
|
margin-left: 0; margin-right: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
& .ProseMirror-content pre {
|
|
|
|
white-space: pre-wrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
& .ProseMirror-content li {
|
|
|
|
position: relative;
|
|
|
|
pointer-events: none; /* Don't do weird stuff with marker clicks */
|
|
|
|
}
|
|
|
|
& .ProseMirror-content li > * {
|
|
|
|
pointer-events: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
& .ProseMirror-nodeselection *::selection { background: transparent; }
|
|
|
|
& .ProseMirror-nodeselection *::-moz-selection { background: transparent; }
|
|
|
|
|
|
|
|
& .ProseMirror-selectednode {
|
|
|
|
outline: 2px solid #8cf;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Make sure li selections wrap around markers */
|
|
|
|
|
|
|
|
& li.ProseMirror-selectednode {
|
|
|
|
outline: none;
|
|
|
|
}
|
2016-08-18 15:13:22 -03:00
|
|
|
|
2016-11-01 16:55:21 -07:00
|
|
|
& li.ProseMirror-selectednode:after {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
left: -32px;
|
|
|
|
right: -2px; top: -2px; bottom: -2px;
|
|
|
|
border: 2px solid #8cf;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
2016-08-18 15:13:22 -03:00
|
|
|
}
|