2022-03-20 08:56:28 +00:00
|
|
|
.cm-editor {
|
2022-08-02 12:40:04 +00:00
|
|
|
font-size: 18px;
|
2022-08-29 13:47:16 +00:00
|
|
|
--max-width: 800px;
|
2022-12-15 14:55:50 +00:00
|
|
|
height: 100%;
|
2022-03-20 08:56:28 +00:00
|
|
|
|
|
|
|
.cm-content {
|
2022-12-15 14:55:50 +00:00
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
2022-08-29 13:47:16 +00:00
|
|
|
max-width: var(--max-width);
|
2022-12-16 10:39:46 +00:00
|
|
|
padding: 5px 20px;
|
2022-08-29 13:47:16 +00:00
|
|
|
}
|
|
|
|
|
2022-12-15 14:55:50 +00:00
|
|
|
.cm-line {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
2022-08-29 13:47:16 +00:00
|
|
|
.sb-inline-img {
|
2022-11-18 15:59:55 +00:00
|
|
|
max-width: 100%;
|
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
|
2022-11-18 15:04:37 +00:00
|
|
|
@mixin lineOverflow($baseIndent, $bulletIndent: 0) {
|
2022-03-20 08:56:28 +00:00
|
|
|
text-indent: -1 * ($baseIndent + 2ch);
|
|
|
|
padding-left: $baseIndent + 2ch;
|
|
|
|
|
2022-08-02 12:40:04 +00:00
|
|
|
&.sb-line-task {
|
2022-11-18 15:04:37 +00:00
|
|
|
text-indent: -1 * ($baseIndent + 5ch);
|
|
|
|
padding-left: $baseIndent + 5ch;
|
|
|
|
|
|
|
|
.cm-list-bullet::after {
|
|
|
|
left: ($baseIndent + 5ch);
|
|
|
|
}
|
2022-03-20 08:56:28 +00:00
|
|
|
}
|
|
|
|
|
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-11-18 15:04:37 +00:00
|
|
|
|
|
|
|
.cm-list-bullet::after {
|
|
|
|
left: ($baseIndent + $bulletIndent + 2ch);
|
|
|
|
}
|
2022-03-20 08:56:28 +00:00
|
|
|
}
|
|
|
|
|
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-11-18 15:04:37 +00:00
|
|
|
.sb-line-blockquote {
|
|
|
|
&.sb-line-li-1 {
|
|
|
|
@include lineOverflow(-1, 2);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.sb-line-li-1.sb-line-li-2 {
|
|
|
|
@include lineOverflow(1, 2);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.sb-line-li-1.sb-line-li-2.sb-line-li-3 {
|
|
|
|
@include lineOverflow(4);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.sb-line-li-1.sb-line-li-2.sb-line-li-3.sb-line-li-4 {
|
|
|
|
@include lineOverflow(6);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.sb-line-li-1.sb-line-li-2.sb-line-li-3.sb-line-li-4.sb-line-li-5 {
|
|
|
|
@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;
|
|
|
|
}
|
2022-11-18 15:04:37 +00:00
|
|
|
|
|
|
|
.cm-list-bullet {
|
2022-12-19 11:35:58 +00:00
|
|
|
position: relative;
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-task-checked {
|
|
|
|
text-decoration: line-through !important;
|
2022-11-18 15:04:37 +00:00
|
|
|
}
|
|
|
|
|
2022-12-19 11:35:58 +00:00
|
|
|
.sb-checkbox>input[type=checkbox] {
|
2022-11-18 15:04:37 +00:00
|
|
|
width: 3ch;
|
|
|
|
}
|
|
|
|
|
2022-12-19 11:35:58 +00:00
|
|
|
.cm-list-bullet::after {
|
|
|
|
visibility: visible;
|
|
|
|
position: absolute;
|
2022-11-18 15:04:37 +00:00
|
|
|
color: rgb(150, 150, 150);
|
2022-12-19 11:35:58 +00:00
|
|
|
content: "\2022";
|
|
|
|
/* U+2022 BULLET */
|
|
|
|
}
|
2022-11-18 15:04:37 +00:00
|
|
|
|
2022-12-19 11:35:58 +00:00
|
|
|
.sb-directive-start .sb-comment,
|
|
|
|
.sb-directive-end .sb-comment {
|
2022-11-18 15:04:37 +00:00
|
|
|
position: relative;
|
|
|
|
left: -12px;
|
|
|
|
}
|
|
|
|
|
2022-12-19 11:35:58 +00:00
|
|
|
.sb-line-frontmatter-outside,
|
|
|
|
.sb-line-code-outside {
|
|
|
|
.sb-meta {
|
|
|
|
color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
color: transparent;
|
2022-11-18 15:04:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.sb-blockquote-outside {
|
|
|
|
text-indent: -1ch;
|
|
|
|
min-height: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sb-line-table-outside {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sb-table-widget {
|
|
|
|
display: block;
|
|
|
|
font-weight: normal;
|
|
|
|
margin-bottom: -3rem;
|
|
|
|
|
|
|
|
table {
|
|
|
|
width: 100%;
|
|
|
|
border-spacing: 0;
|
|
|
|
}
|
2022-12-19 11:35:58 +00:00
|
|
|
|
2022-11-18 15:04:37 +00:00
|
|
|
thead tr {
|
2022-12-19 11:35:58 +00:00
|
|
|
background-color: #333;
|
|
|
|
color: #eee;
|
|
|
|
font-weight: bold;
|
2022-11-18 15:04:37 +00:00
|
|
|
}
|
2022-12-19 11:35:58 +00:00
|
|
|
|
|
|
|
th,
|
|
|
|
td {
|
|
|
|
padding: 8px;
|
2022-11-18 15:04:37 +00:00
|
|
|
}
|
2022-12-19 11:35:58 +00:00
|
|
|
|
2022-11-18 15:04:37 +00:00
|
|
|
tbody tr:nth-of-type(even) {
|
2022-12-19 11:35:58 +00:00
|
|
|
background-color: #f3f3f3;
|
2022-11-18 15:04:37 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.sb-line-blockquote {
|
|
|
|
border-left: 1px solid rgb(74, 74, 74);
|
|
|
|
}
|
|
|
|
|
2022-12-19 11:35:58 +00:00
|
|
|
.sb-line-blockquote.sb-line-ul.sb-line-li>.sb-quote.sb-meta:first-child {
|
2022-11-18 15:04:37 +00:00
|
|
|
margin-left: -1ch;
|
|
|
|
}
|
2022-12-19 11:35:58 +00:00
|
|
|
|
2022-03-20 08:56:28 +00:00
|
|
|
}
|
2022-11-18 15:04:37 +00:00
|
|
|
|
|
|
|
.cm-scroller {
|
|
|
|
// Give some breathing space at the bottom of the screen
|
|
|
|
padding-bottom: 20em;
|
2022-12-19 11:35:58 +00:00
|
|
|
}
|