2017-06-01 22:58:09 +00:00
|
|
|
@import '../constants/dimensions';
|
|
|
|
@import '../constants/colors';
|
2017-06-05 15:09:06 +00:00
|
|
|
@import '../constants/fonts';
|
2017-06-01 22:58:09 +00:00
|
|
|
|
|
|
|
.markdown-editor {
|
|
|
|
border: 1px solid var(--hl-md);
|
2017-06-01 23:43:27 +00:00
|
|
|
box-sizing: border-box;
|
2017-06-01 22:58:09 +00:00
|
|
|
|
|
|
|
.markdown-editor__edit {
|
|
|
|
padding: @padding-xs @padding-sm;
|
|
|
|
|
|
|
|
// Not sure why this style doesn't work on .CodeMirror...
|
|
|
|
.CodeMirror-scroll {
|
|
|
|
max-height: 30vh;
|
|
|
|
}
|
|
|
|
|
|
|
|
.input {
|
|
|
|
height: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.markdown-editor__preview {
|
2017-06-05 15:09:06 +00:00
|
|
|
max-height: 35vh;
|
2017-06-01 22:58:09 +00:00
|
|
|
padding: @padding-sm;
|
|
|
|
overflow: auto;
|
|
|
|
|
2017-06-05 15:09:06 +00:00
|
|
|
.markdown-editor__preview__content {
|
|
|
|
max-width: 34em;
|
|
|
|
margin-right: auto;
|
2017-06-01 22:58:09 +00:00
|
|
|
|
2017-06-05 15:09:06 +00:00
|
|
|
h1 {
|
|
|
|
font-size: @font-size-xxl;
|
2017-06-07 21:36:43 +00:00
|
|
|
border-bottom: 1px solid var(--hl-sm);
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
font-size: @font-size-xl;
|
|
|
|
border-bottom: 1px solid var(--hl-sm);
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
h3 {
|
|
|
|
font-size: @font-size-lg;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
h4 {
|
|
|
|
font-size: @font-size-md;
|
|
|
|
font-weight: bold;
|
|
|
|
opacity: 0.9;
|
|
|
|
}
|
|
|
|
|
|
|
|
h5 {
|
|
|
|
font-size: @font-size-sm;
|
|
|
|
font-weight: bold;
|
|
|
|
opacity: 0.9;
|
|
|
|
}
|
|
|
|
|
|
|
|
h6 {
|
|
|
|
font-size: @font-size-sm;
|
|
|
|
font-weight: bold;
|
|
|
|
opacity: 0.8;
|
2017-06-01 22:58:09 +00:00
|
|
|
}
|
|
|
|
|
2017-06-05 15:09:06 +00:00
|
|
|
& > * {
|
|
|
|
line-height: 1.7em;
|
|
|
|
margin: @padding-sm 0 @padding-md 0;
|
|
|
|
padding: 0;
|
2017-06-01 22:58:09 +00:00
|
|
|
|
2017-06-05 15:09:06 +00:00
|
|
|
&:first-child {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
2017-06-01 22:58:09 +00:00
|
|
|
|
2017-06-05 15:09:06 +00:00
|
|
|
&:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2017-06-01 22:58:09 +00:00
|
|
|
}
|
|
|
|
|
2017-06-05 15:09:06 +00:00
|
|
|
blockquote {
|
|
|
|
border-left: 0.4em solid var(--hl-md);
|
|
|
|
padding: @padding-xxs @padding-md;
|
2017-06-01 22:58:09 +00:00
|
|
|
|
2017-06-05 15:09:06 +00:00
|
|
|
p {
|
|
|
|
margin: @padding-xs 0;
|
|
|
|
}
|
2017-06-01 22:58:09 +00:00
|
|
|
}
|
|
|
|
|
2017-06-05 15:09:06 +00:00
|
|
|
*:not(pre) > code {
|
|
|
|
padding: @padding-xxs @padding-xs;
|
|
|
|
font-size: @font-size-sm;
|
|
|
|
line-height: @font-size-xs;
|
|
|
|
font-family: @font-monospace;
|
2017-06-01 22:58:09 +00:00
|
|
|
}
|
|
|
|
|
2017-06-05 15:09:06 +00:00
|
|
|
code {
|
|
|
|
background-color: var(--hl-xs);
|
|
|
|
border: 1px solid var(--hl-sm);
|
|
|
|
border-radius: @radius-sm;
|
2017-06-01 22:58:09 +00:00
|
|
|
}
|
|
|
|
|
2017-06-05 15:09:06 +00:00
|
|
|
pre > code {
|
|
|
|
padding: @padding-sm;
|
2017-06-01 22:58:09 +00:00
|
|
|
}
|
|
|
|
|
2017-06-05 15:09:06 +00:00
|
|
|
& > ul {
|
|
|
|
padding-left: @padding-xs;
|
|
|
|
list-style: disc;
|
2017-06-01 22:58:09 +00:00
|
|
|
|
2017-06-05 15:09:06 +00:00
|
|
|
ul {
|
|
|
|
list-style: circle;
|
|
|
|
}
|
2017-06-01 22:58:09 +00:00
|
|
|
}
|
|
|
|
|
2017-06-05 15:09:06 +00:00
|
|
|
ul {
|
|
|
|
margin-left: @padding-md;
|
2017-06-01 22:58:09 +00:00
|
|
|
}
|
|
|
|
|
2017-06-05 15:09:06 +00:00
|
|
|
.hljs {
|
|
|
|
width: 100%;
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
|
|
.hljs-meta,
|
|
|
|
.hljs-comment,
|
|
|
|
.hljs-quote {
|
|
|
|
color: var(--hl);
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-keyword,
|
|
|
|
.hljs-selector-tag,
|
|
|
|
.hljs-subst {
|
|
|
|
color: var(--color-font);
|
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-number,
|
|
|
|
.hljs-literal,
|
|
|
|
.hljs-variable,
|
|
|
|
.hljs-template-variable,
|
|
|
|
.hljs-built_in,
|
|
|
|
.hljs-builtin-name,
|
|
|
|
.hljs-type,
|
|
|
|
.hljs-class .hljs-title,
|
|
|
|
.hljs-tag .hljs-attr {
|
|
|
|
color: var(--color-surprise);
|
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-symbol,
|
|
|
|
.hljs-bullet,
|
|
|
|
.hljs-title,
|
|
|
|
.hljs-section,
|
|
|
|
.hljs-selector-id,
|
|
|
|
.hljs-doctag {
|
|
|
|
color: var(--color-danger);
|
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-string {
|
|
|
|
color: var(--color-notice);
|
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-subst {
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-tag,
|
|
|
|
.hljs-name,
|
|
|
|
.hljs-attr,
|
|
|
|
.hljs-regexp,
|
|
|
|
.hljs-link,
|
|
|
|
.hljs-attribute {
|
|
|
|
color: var(--color-success);
|
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-deletion {
|
|
|
|
background: #fdd;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-addition {
|
|
|
|
background: #dfd;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-emphasis {
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-strong {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2017-06-01 22:58:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|