2022-04-04 13:25:07 +00:00
|
|
|
@import "constants.scss";
|
|
|
|
|
2022-04-04 16:33:13 +00:00
|
|
|
//div.rhs-open #editor .cm-editor .cm-content {
|
|
|
|
// max-width: 550px;
|
|
|
|
//}
|
2022-04-04 13:25:07 +00:00
|
|
|
|
2022-03-20 08:56:28 +00:00
|
|
|
.cm-editor {
|
|
|
|
font-size: var(--ident);
|
2022-04-08 15:46:09 +00:00
|
|
|
//overflow-y: hidden;
|
2022-04-09 20:43:46 +00:00
|
|
|
padding: 0 20px;
|
2022-03-20 08:56:28 +00:00
|
|
|
|
|
|
|
.cm-content {
|
|
|
|
font-family: var(--editor-font);
|
|
|
|
margin: auto;
|
2022-04-04 13:25:07 +00:00
|
|
|
max-width: $max-editor-width;
|
2022-03-20 08:56:28 +00:00
|
|
|
}
|
|
|
|
|
2022-04-04 16:33:13 +00:00
|
|
|
&.cm-focused {
|
|
|
|
outline: none !important;
|
2022-03-20 08:56:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.cm-selectionBackground {
|
|
|
|
background-color: #d7e1f6 !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.line-h1,
|
|
|
|
.line-h2,
|
|
|
|
.line-h3 {
|
2022-04-13 12:46:52 +00:00
|
|
|
background-color: rgba(0, 30, 77, 0.5);
|
2022-03-20 08:56:28 +00:00
|
|
|
color: #fff;
|
|
|
|
font-weight: bold;
|
|
|
|
padding: 2px 2px;
|
|
|
|
|
|
|
|
.meta {
|
|
|
|
color: orange;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.line-h1 {
|
|
|
|
font-size: 1.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.line-h2 {
|
|
|
|
font-size: 1.2em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.line-h3 {
|
|
|
|
font-size: 1.1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Color list item this way */
|
|
|
|
.line-li .meta {
|
|
|
|
color: rgb(0, 123, 19);
|
|
|
|
}
|
|
|
|
/* Then undo other meta */
|
|
|
|
.line-li .meta ~ .meta {
|
|
|
|
color: #650007;
|
|
|
|
}
|
|
|
|
|
|
|
|
.line-code {
|
|
|
|
background-color: #efefef;
|
|
|
|
margin-left: 30px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.line-fenced-code {
|
2022-04-12 11:33:07 +00:00
|
|
|
background-color: rgba(72, 72, 72, 0.1);
|
2022-03-20 08:56:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.meta {
|
|
|
|
color: #650007;
|
|
|
|
}
|
|
|
|
|
|
|
|
.line-blockquote {
|
|
|
|
background-color: rgba(220, 220, 220, 0.5);
|
|
|
|
color: #676767;
|
|
|
|
text-indent: -2ch;
|
|
|
|
padding-left: 2ch;
|
|
|
|
}
|
|
|
|
|
|
|
|
.emphasis {
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
|
|
|
|
.strong {
|
|
|
|
font-weight: 900;
|
|
|
|
}
|
|
|
|
|
|
|
|
.link:not(.meta, .url) {
|
|
|
|
color: #0330cb;
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
|
|
|
|
.link.url {
|
|
|
|
color: #7e7d7d;
|
|
|
|
}
|
|
|
|
|
|
|
|
.url:not(.link) {
|
|
|
|
color: #0330cb;
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
|
2022-04-12 11:33:07 +00:00
|
|
|
.atom {
|
|
|
|
color: darkred;
|
|
|
|
}
|
|
|
|
|
2022-03-20 08:56:28 +00:00
|
|
|
.wiki-link-page {
|
|
|
|
color: #0330cb;
|
2022-04-10 09:04:07 +00:00
|
|
|
background-color: rgba(77,141,255,0.07);
|
|
|
|
border-radius: 5px;
|
|
|
|
padding: 0 5px;
|
|
|
|
//text-decoration: underline;
|
2022-03-20 08:56:28 +00:00
|
|
|
}
|
|
|
|
.wiki-link {
|
2022-04-10 09:04:07 +00:00
|
|
|
color: #a8abbd;
|
|
|
|
//background-color: rgba(77,141,255,0.07);
|
2022-03-20 08:56:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.code {
|
|
|
|
background-color: #efefef;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Indentation of follow-up lines
|
|
|
|
@mixin lineOverflow($baseIndent) {
|
|
|
|
text-indent: -1 * ($baseIndent + 2ch);
|
|
|
|
padding-left: $baseIndent + 2ch;
|
|
|
|
|
|
|
|
&.line-task {
|
|
|
|
text-indent: -1 * ($baseIndent + 6ch);
|
|
|
|
padding-left: $baseIndent + 6ch;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.line-blockquote {
|
|
|
|
text-indent: -1 * ($baseIndent + 4ch);
|
|
|
|
padding-left: $baseIndent + 4ch;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.line-ul {
|
|
|
|
&.line-li-1 {
|
|
|
|
@include lineOverflow(0);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.line-li-1.line-li-2 {
|
|
|
|
@include lineOverflow(2);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.line-li-1.line-li-2.line-li-3 {
|
|
|
|
@include lineOverflow(4);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.line-li-1.line-li-2.line-li-3.line-li-4 {
|
|
|
|
@include lineOverflow(6);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.line-li-1.line-li-2.line-li-3.line-li-4.line-li-5 {
|
|
|
|
@include lineOverflow(8);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.line-ol {
|
|
|
|
&.line-li-1 {
|
|
|
|
@include lineOverflow(1);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.line-li-1.line-li-2 {
|
|
|
|
@include lineOverflow(2);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.line-li-1.line-li-2.line-li-3 {
|
|
|
|
@include lineOverflow(4);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.line-li-1.line-li-2.line-li-3.line-li-4 {
|
|
|
|
@include lineOverflow(6);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.line-li-1.line-li-2.line-li-3.line-li-4.line-li-5 {
|
|
|
|
@include lineOverflow(8);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.line-comment {
|
|
|
|
text-indent: -1 * 3ch;
|
|
|
|
padding-left: 3ch;
|
|
|
|
}
|
|
|
|
|
|
|
|
.task-marker {
|
|
|
|
background-color: #ddd;
|
|
|
|
}
|
|
|
|
|
|
|
|
.line-comment {
|
|
|
|
background-color: rgba(255, 255, 0, 0.5);
|
|
|
|
}
|
2022-03-29 15:02:28 +00:00
|
|
|
|
|
|
|
.comment {
|
2022-04-13 12:46:52 +00:00
|
|
|
color: #989797;
|
|
|
|
background-color: rgba(210, 210, 210, 0.2);
|
2022-04-10 09:04:07 +00:00
|
|
|
border-radius: 5px;
|
2022-04-13 12:46:52 +00:00
|
|
|
font-style: italic;
|
|
|
|
font-size: 75%;
|
|
|
|
line-height: 75%;
|
2022-03-29 15:02:28 +00:00
|
|
|
}
|
2022-03-20 08:56:28 +00:00
|
|
|
}
|