2022-03-20 08:56:28 +00:00
|
|
|
.cm-editor {
|
2022-08-02 12:40:04 +00:00
|
|
|
font-size: 18px;
|
2022-04-09 20:43:46 +00:00
|
|
|
padding: 0 20px;
|
2022-03-20 08:56:28 +00:00
|
|
|
|
|
|
|
.cm-content {
|
|
|
|
margin: auto;
|
2022-08-02 12:40:04 +00:00
|
|
|
max-width: 800px;
|
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
|
|
|
}
|
|
|
|
|
|
|
|
// Indentation of follow-up lines
|
|
|
|
@mixin lineOverflow($baseIndent) {
|
|
|
|
text-indent: -1 * ($baseIndent + 2ch);
|
|
|
|
padding-left: $baseIndent + 2ch;
|
|
|
|
|
2022-08-02 12:40:04 +00:00
|
|
|
&.sb-line-task {
|
2022-03-20 08:56:28 +00:00
|
|
|
text-indent: -1 * ($baseIndent + 6ch);
|
|
|
|
padding-left: $baseIndent + 6ch;
|
|
|
|
}
|
|
|
|
|
2022-08-02 12:40:04 +00:00
|
|
|
&.sb-line-blockquote {
|
2022-03-20 08:56:28 +00:00
|
|
|
text-indent: -1 * ($baseIndent + 4ch);
|
|
|
|
padding-left: $baseIndent + 4ch;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-08-02 12:40:04 +00:00
|
|
|
.sb-line-ul {
|
|
|
|
&.sb-line-li-1 {
|
2022-03-20 08:56:28 +00:00
|
|
|
@include lineOverflow(0);
|
|
|
|
}
|
|
|
|
|
2022-08-02 12:40:04 +00:00
|
|
|
&.sb-line-li-1.sb-line-li-2 {
|
2022-03-20 08:56:28 +00:00
|
|
|
@include lineOverflow(2);
|
|
|
|
}
|
|
|
|
|
2022-08-02 12:40:04 +00:00
|
|
|
&.sb-line-li-1.sb-line-li-2.sb-line-li-3 {
|
2022-03-20 08:56:28 +00:00
|
|
|
@include lineOverflow(4);
|
|
|
|
}
|
|
|
|
|
2022-08-02 12:40:04 +00:00
|
|
|
&.sb-line-li-1.sb-line-li-2.sb-line-li-3.sb-line-li-4 {
|
2022-03-20 08:56:28 +00:00
|
|
|
@include lineOverflow(6);
|
|
|
|
}
|
|
|
|
|
2022-08-02 12:40:04 +00:00
|
|
|
&.sb-line-li-1.sb-line-li-2.sb-line-li-3.sb-line-li-4.sb-line-li-5 {
|
2022-03-20 08:56:28 +00:00
|
|
|
@include lineOverflow(8);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-08-02 12:40:04 +00:00
|
|
|
.sb-line-ol {
|
|
|
|
&.sb-line-li-1 {
|
2022-03-20 08:56:28 +00:00
|
|
|
@include lineOverflow(1);
|
|
|
|
}
|
|
|
|
|
2022-08-02 12:40:04 +00:00
|
|
|
&.sb-line-li-1.sb-line-li-2 {
|
2022-03-20 08:56:28 +00:00
|
|
|
@include lineOverflow(2);
|
|
|
|
}
|
|
|
|
|
2022-08-02 12:40:04 +00:00
|
|
|
&.sb-line-li-1.sb-line-li-2.sb-line-li-3 {
|
2022-03-20 08:56:28 +00:00
|
|
|
@include lineOverflow(4);
|
|
|
|
}
|
|
|
|
|
2022-08-02 12:40:04 +00:00
|
|
|
&.sb-line-li-1.sb-line-li-2.sb-line-li-3.sb-line-li-4 {
|
2022-03-20 08:56:28 +00:00
|
|
|
@include lineOverflow(6);
|
|
|
|
}
|
|
|
|
|
2022-08-02 12:40:04 +00:00
|
|
|
&.sb-line-li-1.sb-line-li-2.sb-line-li-3.sb-line-li-4.sb-line-li-5 {
|
2022-03-20 08:56:28 +00:00
|
|
|
@include lineOverflow(8);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-08-02 12:40:04 +00:00
|
|
|
.sb-line-comment {
|
2022-03-20 08:56:28 +00:00
|
|
|
text-indent: -1 * 3ch;
|
|
|
|
padding-left: 3ch;
|
|
|
|
}
|
|
|
|
}
|