2022-12-21 21:55:24 +08:00
|
|
|
.cm-focused {
|
|
|
|
outline: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
#sb-main .cm-editor {
|
2022-08-02 20:40:04 +08:00
|
|
|
font-size: 18px;
|
2022-12-15 22:55:50 +08:00
|
|
|
height: 100%;
|
2022-03-20 16:56:28 +08:00
|
|
|
|
|
|
|
.cm-content {
|
2023-07-02 17:50:53 +08:00
|
|
|
width: 100%;
|
2022-12-15 22:55:50 +08:00
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
2023-02-28 17:07:20 +08:00
|
|
|
max-width: var(--#{"editor-width"});
|
2022-12-16 18:39:46 +08:00
|
|
|
padding: 5px 20px;
|
2022-08-29 21:47:16 +08:00
|
|
|
}
|
|
|
|
|
2022-12-15 22:55:50 +08:00
|
|
|
.cm-line {
|
|
|
|
padding: 0;
|
2023-07-10 14:44:37 +08:00
|
|
|
|
|
|
|
&.sb-line-h1,
|
|
|
|
&.sb-line-h2,
|
|
|
|
&.sb-line-h3,
|
2024-05-14 19:24:33 +08:00
|
|
|
&.sb-line-h4,
|
|
|
|
&.sb-line-h5,
|
|
|
|
&.sb-line-h6 {
|
2023-07-10 14:44:37 +08:00
|
|
|
font-weight: bold;
|
|
|
|
padding: 2px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-02-03 02:19:07 +08:00
|
|
|
.cm-line:has(.sb-directive) {
|
|
|
|
background-color: var(--editor-directive-background-color);
|
|
|
|
}
|
|
|
|
|
2024-08-02 22:30:39 +08:00
|
|
|
.sb-line-h1,
|
|
|
|
h1 {
|
2023-07-10 14:44:37 +08:00
|
|
|
font-size: 1.5em;
|
|
|
|
}
|
|
|
|
|
2024-08-02 22:30:39 +08:00
|
|
|
.sb-line-h2,
|
|
|
|
h2 {
|
2023-07-10 14:44:37 +08:00
|
|
|
font-size: 1.2em;
|
|
|
|
}
|
|
|
|
|
2024-08-02 22:30:39 +08:00
|
|
|
.sb-line-h3,
|
|
|
|
h3 {
|
2023-07-10 14:44:37 +08:00
|
|
|
font-size: 1.1em;
|
|
|
|
}
|
|
|
|
|
2024-08-02 22:30:39 +08:00
|
|
|
.sb-line-h4,
|
|
|
|
h4,
|
|
|
|
.sb-line-h5,
|
|
|
|
h5,
|
|
|
|
.sb-line-h6,
|
|
|
|
h6 {
|
2023-07-10 14:44:37 +08:00
|
|
|
font-size: 1em;
|
2022-12-15 22:55:50 +08:00
|
|
|
}
|
|
|
|
|
2024-07-07 16:32:13 +08:00
|
|
|
// If a header only contains a tag, it's likely a line containging "#" which may turn into a hashtag, so style it as such instead of a header
|
2024-12-14 16:57:46 +08:00
|
|
|
.sb-line-h1:has(> a.sb-hashtag:only-child) {
|
2024-07-07 16:32:13 +08:00
|
|
|
font-size: 1em;
|
|
|
|
padding: 0;
|
|
|
|
font-weight: normal;
|
|
|
|
|
|
|
|
.sb-meta {
|
|
|
|
color: var(--editor-hashtag-color);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-08-02 22:30:39 +08:00
|
|
|
.sb-inline-content * {
|
2022-11-18 23:59:55 +08:00
|
|
|
max-width: 100%;
|
2024-08-02 22:30:39 +08:00
|
|
|
display: block;
|
2022-03-20 16:56:28 +08:00
|
|
|
}
|
|
|
|
|
2023-07-10 14:44:37 +08:00
|
|
|
.cm-panels-bottom .cm-vim-panel {
|
|
|
|
padding: 0 20px;
|
|
|
|
max-width: var(--editor-width);
|
|
|
|
margin: auto;
|
|
|
|
}
|
|
|
|
|
2023-06-15 01:27:18 +08:00
|
|
|
// Gutter styling
|
|
|
|
.cm-gutters {
|
|
|
|
background-color: transparent;
|
|
|
|
border-right: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-foldPlaceholder {
|
|
|
|
background-color: transparent;
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
|
2022-03-20 16:56:28 +08:00
|
|
|
// Indentation of follow-up lines
|
2022-11-18 23:04:37 +08:00
|
|
|
@mixin lineOverflow($baseIndent, $bulletIndent: 0) {
|
2022-03-20 16:56:28 +08:00
|
|
|
text-indent: -1 * ($baseIndent + 2ch);
|
|
|
|
padding-left: $baseIndent + 2ch;
|
|
|
|
|
2022-08-02 20:40:04 +08:00
|
|
|
&.sb-line-task {
|
2022-11-18 23:04:37 +08:00
|
|
|
text-indent: -1 * ($baseIndent + 5ch);
|
|
|
|
padding-left: $baseIndent + 5ch;
|
|
|
|
|
|
|
|
.cm-list-bullet::after {
|
|
|
|
left: ($baseIndent + 5ch);
|
|
|
|
}
|
2022-03-20 16:56:28 +08:00
|
|
|
}
|
|
|
|
|
2022-08-02 20:40:04 +08:00
|
|
|
&.sb-line-blockquote {
|
2022-03-20 16:56:28 +08:00
|
|
|
text-indent: -1 * ($baseIndent + 4ch);
|
|
|
|
padding-left: $baseIndent + 4ch;
|
|
|
|
}
|
2022-11-18 23:04:37 +08:00
|
|
|
|
|
|
|
.cm-list-bullet::after {
|
|
|
|
left: ($baseIndent + $bulletIndent + 2ch);
|
|
|
|
}
|
2022-03-20 16:56:28 +08:00
|
|
|
}
|
|
|
|
|
2022-08-02 20:40:04 +08:00
|
|
|
.sb-line-ul {
|
|
|
|
&.sb-line-li-1 {
|
2022-03-20 16:56:28 +08:00
|
|
|
@include lineOverflow(0);
|
|
|
|
}
|
|
|
|
|
2022-08-02 20:40:04 +08:00
|
|
|
&.sb-line-li-1.sb-line-li-2 {
|
2022-03-20 16:56:28 +08:00
|
|
|
@include lineOverflow(2);
|
|
|
|
}
|
|
|
|
|
2022-08-02 20:40:04 +08:00
|
|
|
&.sb-line-li-1.sb-line-li-2.sb-line-li-3 {
|
2022-03-20 16:56:28 +08:00
|
|
|
@include lineOverflow(4);
|
|
|
|
}
|
|
|
|
|
2022-08-02 20:40:04 +08:00
|
|
|
&.sb-line-li-1.sb-line-li-2.sb-line-li-3.sb-line-li-4 {
|
2022-03-20 16:56:28 +08:00
|
|
|
@include lineOverflow(6);
|
|
|
|
}
|
|
|
|
|
2022-08-02 20:40:04 +08:00
|
|
|
&.sb-line-li-1.sb-line-li-2.sb-line-li-3.sb-line-li-4.sb-line-li-5 {
|
2022-03-20 16:56:28 +08:00
|
|
|
@include lineOverflow(8);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-08-02 20:40:04 +08:00
|
|
|
.sb-line-ol {
|
|
|
|
&.sb-line-li-1 {
|
2022-03-20 16:56:28 +08:00
|
|
|
@include lineOverflow(1);
|
|
|
|
}
|
|
|
|
|
2022-08-02 20:40:04 +08:00
|
|
|
&.sb-line-li-1.sb-line-li-2 {
|
2022-12-21 21:55:24 +08:00
|
|
|
@include lineOverflow(4);
|
2022-03-20 16:56:28 +08:00
|
|
|
}
|
|
|
|
|
2022-08-02 20:40:04 +08:00
|
|
|
&.sb-line-li-1.sb-line-li-2.sb-line-li-3 {
|
2022-12-21 21:55:24 +08:00
|
|
|
@include lineOverflow(7);
|
2022-03-20 16:56:28 +08:00
|
|
|
}
|
|
|
|
|
2022-08-02 20:40:04 +08:00
|
|
|
&.sb-line-li-1.sb-line-li-2.sb-line-li-3.sb-line-li-4 {
|
2022-12-21 21:55:24 +08:00
|
|
|
@include lineOverflow(10);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.sb-line-li-1.sb-line-li-2.sb-line-li-3.sb-line-li-4.sb-line-li-5 {
|
|
|
|
@include lineOverflow(13);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.sb-line-ol.sb-line-ul {
|
|
|
|
// &.sb-line-li-1 {
|
|
|
|
// @include lineOverflow(1);
|
|
|
|
// }
|
|
|
|
|
|
|
|
&.sb-line-li-1.sb-line-li-2 {
|
|
|
|
@include lineOverflow(3);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.sb-line-li-1.sb-line-li-2.sb-line-li-3 {
|
2022-03-20 16:56:28 +08:00
|
|
|
@include lineOverflow(6);
|
|
|
|
}
|
|
|
|
|
2022-12-21 21:55:24 +08:00
|
|
|
&.sb-line-li-1.sb-line-li-2.sb-line-li-3.sb-line-li-4 {
|
|
|
|
@include lineOverflow(9);
|
|
|
|
}
|
|
|
|
|
2022-08-02 20:40:04 +08:00
|
|
|
&.sb-line-li-1.sb-line-li-2.sb-line-li-3.sb-line-li-4.sb-line-li-5 {
|
2022-12-21 21:55:24 +08:00
|
|
|
@include lineOverflow(12);
|
2022-03-20 16:56:28 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-11-18 23:04:37 +08: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 20:40:04 +08:00
|
|
|
.sb-line-comment {
|
2022-03-20 16:56:28 +08:00
|
|
|
text-indent: -1 * 3ch;
|
|
|
|
padding-left: 3ch;
|
|
|
|
}
|
2022-11-18 23:04:37 +08:00
|
|
|
|
|
|
|
.cm-list-bullet {
|
2022-12-19 19:35:58 +08:00
|
|
|
position: relative;
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
2023-07-10 14:44:37 +08:00
|
|
|
.cm-list-bullet::after {
|
|
|
|
visibility: visible;
|
|
|
|
position: absolute;
|
|
|
|
content: "\2022";
|
|
|
|
/* U+2022 BULLET */
|
|
|
|
}
|
|
|
|
|
2022-12-19 19:35:58 +08:00
|
|
|
.cm-task-checked {
|
|
|
|
text-decoration: line-through !important;
|
2022-11-18 23:04:37 +08:00
|
|
|
}
|
2023-07-10 19:16:22 +08:00
|
|
|
|
2023-07-10 14:44:37 +08:00
|
|
|
.cm-tooltip-autocomplete {
|
|
|
|
.cm-completionDetail {
|
|
|
|
font-style: normal;
|
|
|
|
display: block;
|
|
|
|
font-size: 80%;
|
|
|
|
margin-left: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-completionLabel {
|
|
|
|
display: block;
|
|
|
|
margin-left: 5px;
|
|
|
|
}
|
2022-11-18 23:04:37 +08:00
|
|
|
|
2023-07-10 14:44:37 +08:00
|
|
|
.cm-completionIcon {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.sb-header-inside.sb-line-h1 {
|
|
|
|
text-indent: -2ch;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sb-header-inside.sb-line-h2 {
|
|
|
|
text-indent: -3ch;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sb-header-inside.sb-line-h3 {
|
|
|
|
text-indent: -4ch;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sb-header-inside.sb-line-h4 {
|
|
|
|
text-indent: -5ch;
|
|
|
|
}
|
|
|
|
|
2024-05-14 19:24:33 +08:00
|
|
|
.sb-header-inside.sb-line-h5 {
|
|
|
|
text-indent: -6ch;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sb-header-inside.sb-line-h6 {
|
|
|
|
text-indent: -7ch;
|
|
|
|
}
|
|
|
|
|
2024-10-11 21:34:27 +08:00
|
|
|
.sb-checkbox > input[type="checkbox"] {
|
2022-11-18 23:04:37 +08:00
|
|
|
width: 3ch;
|
|
|
|
}
|
|
|
|
|
2024-01-09 20:34:21 +08:00
|
|
|
.sb-hashtag,
|
|
|
|
.hashtag {
|
2023-07-10 14:44:37 +08:00
|
|
|
border-radius: 6px;
|
|
|
|
padding: 0 3px;
|
|
|
|
margin: 0 1px 0 0;
|
|
|
|
font-size: 0.9em;
|
|
|
|
}
|
|
|
|
|
2024-12-14 16:57:46 +08:00
|
|
|
a.sb-hashtag {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
2023-07-10 14:44:37 +08:00
|
|
|
.sb-strikethrough {
|
|
|
|
text-decoration: line-through;
|
|
|
|
|
|
|
|
&.sb-meta {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.sb-line-hr {
|
|
|
|
margin-top: 1em;
|
|
|
|
margin-bottom: -1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sb-hr {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sb-naked-url {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sb-command-button {
|
|
|
|
cursor: pointer;
|
|
|
|
font-size: 1em;
|
|
|
|
border-radius: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sb-command-link-name {
|
|
|
|
cursor: pointer;
|
|
|
|
border-radius: 4px;
|
|
|
|
padding: 0 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sb-link:not(.sb-url) {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sb-link:not(.sb-meta, .sb-url) {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sb-url:not(.sb-link) {
|
|
|
|
text-decoration: underline;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sb-wiki-link-page {
|
|
|
|
border-radius: 5px;
|
|
|
|
padding: 0 5px;
|
|
|
|
// white-space: nowrap;
|
|
|
|
text-decoration: none;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2024-10-05 21:37:36 +08:00
|
|
|
.sb-lua-directive {
|
2024-10-08 01:17:12 +08:00
|
|
|
background-color: rgb(233, 232, 232, 35%);
|
|
|
|
border: 1px #d3d3d373 solid;
|
|
|
|
/* box-shadow: #d1d1d1 0 0 4px; */
|
|
|
|
border-radius: 8px;
|
2024-10-05 21:37:36 +08:00
|
|
|
padding: 2px;
|
|
|
|
}
|
|
|
|
|
2023-07-10 14:44:37 +08:00
|
|
|
a.sb-wiki-link-page-missing,
|
2024-10-11 21:34:27 +08:00
|
|
|
.sb-wiki-link-page-missing > .sb-wiki-link-page {
|
2023-07-10 14:44:37 +08:00
|
|
|
border-radius: 5px;
|
|
|
|
padding: 0 5px;
|
|
|
|
// white-space: nowrap;
|
|
|
|
text-decoration: none;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sb-wiki-link {
|
2024-02-03 02:19:07 +08:00
|
|
|
// cursor: pointer;
|
2023-07-10 14:44:37 +08:00
|
|
|
}
|
|
|
|
|
2023-10-03 20:16:33 +08:00
|
|
|
.sb-task-mark {
|
2023-07-10 14:44:37 +08:00
|
|
|
font-size: 91%;
|
|
|
|
}
|
|
|
|
|
2023-09-01 22:57:29 +08:00
|
|
|
.sb-task-state {
|
|
|
|
font-size: 91%;
|
|
|
|
}
|
|
|
|
|
2024-01-24 20:34:12 +08:00
|
|
|
.sb-task-deadline {
|
2024-10-11 21:34:27 +08:00
|
|
|
background-color: rgba(22, 22, 22, 0.07);
|
2024-01-24 20:34:12 +08:00
|
|
|
}
|
|
|
|
|
2022-12-19 19:35:58 +08:00
|
|
|
.sb-line-frontmatter-outside,
|
|
|
|
.sb-line-code-outside {
|
|
|
|
.sb-meta {
|
|
|
|
color: transparent;
|
|
|
|
}
|
2023-07-10 19:16:22 +08:00
|
|
|
|
2022-12-19 19:35:58 +08:00
|
|
|
color: transparent;
|
2022-11-18 23:04:37 +08:00
|
|
|
}
|
|
|
|
|
2023-07-10 14:44:37 +08:00
|
|
|
.sb-line-blockquote {
|
|
|
|
text-indent: -2ch;
|
|
|
|
}
|
|
|
|
|
2022-11-18 23:04:37 +08:00
|
|
|
.sb-blockquote-outside {
|
|
|
|
text-indent: -1ch;
|
|
|
|
min-height: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sb-line-table-outside {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2023-07-10 14:44:37 +08:00
|
|
|
.sb-line-tbl-header {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sb-line-tbl-header .meta {
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
|
2022-11-18 23:04:37 +08:00
|
|
|
.sb-table-widget {
|
|
|
|
display: block;
|
|
|
|
font-weight: normal;
|
|
|
|
margin-bottom: -3rem;
|
2023-07-13 17:50:31 +08:00
|
|
|
overflow: auto;
|
2023-10-29 17:02:50 +08:00
|
|
|
}
|
2022-12-19 19:35:58 +08:00
|
|
|
|
2023-10-29 17:02:50 +08:00
|
|
|
table {
|
|
|
|
width: 100%;
|
|
|
|
border-spacing: 0;
|
|
|
|
}
|
2022-12-19 19:35:58 +08:00
|
|
|
|
2023-10-29 17:02:50 +08:00
|
|
|
thead tr {
|
|
|
|
font-weight: bold;
|
2023-07-10 14:44:37 +08:00
|
|
|
}
|
2022-12-19 19:35:58 +08:00
|
|
|
|
2024-01-02 20:47:50 +08:00
|
|
|
thead tr td {
|
|
|
|
// Primarily to make the column headers look reasonable with the button bar that may be put on top
|
|
|
|
padding: 11px 8px;
|
|
|
|
}
|
|
|
|
|
2023-10-29 17:02:50 +08:00
|
|
|
th,
|
|
|
|
td {
|
|
|
|
padding: 8px;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
2023-07-10 14:44:37 +08:00
|
|
|
// dont apply background color twice for (fenced) code blocks
|
|
|
|
.sb-line-code .sb-code {
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sb-line-code-outside .sb-code-info {
|
|
|
|
display: block;
|
|
|
|
float: right;
|
|
|
|
font-size: 90%;
|
|
|
|
padding-right: 7px;
|
|
|
|
}
|
|
|
|
|
2024-02-23 17:12:48 +08:00
|
|
|
.sb-code-copy-button {
|
|
|
|
float: right;
|
|
|
|
cursor: pointer;
|
|
|
|
margin: 0 3px;
|
|
|
|
}
|
2024-03-05 01:35:02 +08:00
|
|
|
|
2024-10-11 21:34:27 +08:00
|
|
|
.sb-code-copy-button > svg {
|
2024-02-23 17:12:48 +08:00
|
|
|
height: 1rem;
|
|
|
|
width: 1rem;
|
|
|
|
}
|
|
|
|
|
2023-07-10 14:44:37 +08:00
|
|
|
.sb-line-fenced-code .sb-code {
|
|
|
|
background-color: transparent;
|
2022-11-18 23:04:37 +08:00
|
|
|
}
|
|
|
|
|
2023-07-10 14:44:37 +08:00
|
|
|
.sb-line-fenced-code .sb-comment {
|
|
|
|
border-radius: 0;
|
|
|
|
font-style: inherit;
|
|
|
|
font-size: inherit;
|
|
|
|
line-height: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sb-keyword {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
2023-11-16 16:59:37 +08:00
|
|
|
// Allow for cursor movement into a code widget fenced code block from bottom-up
|
2022-12-22 23:20:05 +08:00
|
|
|
.sb-fenced-code-hide {
|
2023-07-10 14:44:37 +08:00
|
|
|
background-color: transparent;
|
2022-12-22 23:20:05 +08:00
|
|
|
line-height: 0;
|
|
|
|
}
|
|
|
|
|
2023-12-27 20:38:38 +08:00
|
|
|
.sb-markdown-widget {
|
|
|
|
margin: 0 0 -4ch 0;
|
2024-01-21 05:53:51 +08:00
|
|
|
|
|
|
|
::selection {
|
|
|
|
background-color: var(--editor-selection-background-color) !important;
|
|
|
|
}
|
2023-12-28 01:05:47 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.sb-markdown-top-widget h1,
|
|
|
|
.sb-markdown-bottom-widget h1 {
|
2023-12-28 23:14:30 +08:00
|
|
|
margin: 0 0 5px 0;
|
2023-12-28 01:05:47 +08:00
|
|
|
padding: 10px !important;
|
2024-01-02 21:47:02 +08:00
|
|
|
background-color: var(--editor-widget-background-color);
|
2023-12-28 01:05:47 +08:00
|
|
|
font-size: 1.2em;
|
|
|
|
}
|
|
|
|
|
2023-12-28 23:14:30 +08:00
|
|
|
.sb-markdown-top-widget:has(*) {
|
2023-12-28 01:05:47 +08:00
|
|
|
margin-bottom: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sb-markdown-bottom-widget {
|
|
|
|
margin-top: 10px;
|
|
|
|
}
|
|
|
|
|
2024-01-15 23:43:12 +08:00
|
|
|
.sb-markdown-top-widget:has(*) .content {
|
2024-01-09 16:57:07 +08:00
|
|
|
max-height: 500px;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (max-height: 1000px) {
|
2024-01-15 23:43:12 +08:00
|
|
|
.sb-markdown-top-widget:has(*) .content {
|
2024-01-09 16:57:07 +08:00
|
|
|
max-height: 300px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-12-28 01:05:47 +08:00
|
|
|
.sb-markdown-widget,
|
|
|
|
.sb-markdown-top-widget:has(*),
|
|
|
|
.sb-markdown-bottom-widget:has(*) {
|
2024-01-02 21:47:02 +08:00
|
|
|
border: 1px solid var(--editor-widget-background-color);
|
2023-12-27 20:38:38 +08:00
|
|
|
border-radius: 5px;
|
2024-01-02 18:01:34 +08:00
|
|
|
white-space: normal;
|
2023-12-27 20:38:38 +08:00
|
|
|
position: relative;
|
2024-01-05 03:08:12 +08:00
|
|
|
min-height: 48px;
|
2023-12-27 20:38:38 +08:00
|
|
|
|
2024-01-15 23:43:12 +08:00
|
|
|
.content {
|
|
|
|
overflow-y: auto;
|
|
|
|
}
|
|
|
|
|
2023-12-27 20:38:38 +08:00
|
|
|
ul,
|
|
|
|
ol {
|
|
|
|
margin-top: 0;
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
ul {
|
|
|
|
list-style: none;
|
2023-12-28 23:14:30 +08:00
|
|
|
// padding-left: 1ch;
|
2023-12-27 20:38:38 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
ul li::before {
|
|
|
|
content: "\2022";
|
|
|
|
/* Add content: \2022 is the CSS Code/unicode for a bullet */
|
|
|
|
color: var(--editor-list-bullet-color);
|
|
|
|
display: inline-block;
|
|
|
|
/* Needed to add space between the bullet and the text */
|
|
|
|
width: 1em;
|
|
|
|
/* Also needed for space (tweak if needed) */
|
2023-12-28 23:14:30 +08:00
|
|
|
margin-left: -1em;
|
2023-12-27 20:38:38 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
h1,
|
|
|
|
h2,
|
|
|
|
h3,
|
|
|
|
h4,
|
|
|
|
h5 {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
a.wiki-link {
|
|
|
|
border-radius: 5px;
|
|
|
|
padding: 0 5px;
|
|
|
|
color: var(--editor-wiki-link-page-color);
|
|
|
|
background-color: var(--editor-wiki-link-page-background-color);
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
span.task-deadline {
|
|
|
|
background-color: rgba(22, 22, 22, 0.07);
|
|
|
|
}
|
|
|
|
|
|
|
|
tt {
|
|
|
|
background-color: var(--editor-code-background-color);
|
|
|
|
}
|
|
|
|
|
2024-01-02 18:01:34 +08:00
|
|
|
// Only show the button bar on hover on non-touch devices
|
|
|
|
&:hover .button-bar {
|
2023-12-27 20:38:38 +08:00
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2024-01-02 18:01:34 +08:00
|
|
|
// Always show button bar on touch devices
|
|
|
|
@media (hover: none) and (pointer: coarse) {
|
|
|
|
.button-bar {
|
|
|
|
display: block !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-12-27 20:38:38 +08:00
|
|
|
.button-bar {
|
|
|
|
position: absolute;
|
2024-01-02 18:01:34 +08:00
|
|
|
right: 0;
|
|
|
|
top: 0;
|
2023-12-27 20:38:38 +08:00
|
|
|
display: none;
|
2024-01-02 21:47:02 +08:00
|
|
|
background: var(--editor-widget-background-color);
|
2023-12-27 20:38:38 +08:00
|
|
|
padding-inline: 3px;
|
2024-01-02 18:01:34 +08:00
|
|
|
padding: 4px 0;
|
2024-01-05 03:08:12 +08:00
|
|
|
border-radius: 0 0 0 5px;
|
2023-12-28 23:14:30 +08:00
|
|
|
|
2023-12-27 20:38:38 +08:00
|
|
|
button {
|
|
|
|
border: none;
|
|
|
|
background: none;
|
|
|
|
cursor: pointer;
|
|
|
|
color: var(--root-color);
|
2023-12-28 23:14:30 +08:00
|
|
|
margin-right: -8px;
|
2024-01-02 20:47:50 +08:00
|
|
|
padding: 11px 8px;
|
2023-12-27 20:38:38 +08:00
|
|
|
}
|
|
|
|
|
2024-01-02 18:01:34 +08:00
|
|
|
button:last-of-type {
|
|
|
|
margin-right: 2px;
|
|
|
|
}
|
2023-12-27 20:38:38 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-07-09 15:22:08 +08:00
|
|
|
.sb-markdown-widget-inline {
|
|
|
|
margin: 0 0 0 0;
|
|
|
|
}
|
|
|
|
|
2022-12-22 23:20:05 +08:00
|
|
|
.sb-fenced-code-iframe {
|
2023-07-10 14:44:37 +08:00
|
|
|
background-color: transparent;
|
2022-12-22 23:20:05 +08:00
|
|
|
|
|
|
|
iframe {
|
|
|
|
border: 0;
|
|
|
|
width: 100%;
|
2023-10-03 20:16:33 +08:00
|
|
|
max-width: 100%;
|
2022-12-22 23:20:05 +08:00
|
|
|
padding: 0;
|
2023-12-19 23:18:18 +08:00
|
|
|
margin: 0 0 -2ch 0;
|
2024-01-02 21:47:02 +08:00
|
|
|
border: 1px solid var(--editor-widget-background-color);
|
2023-10-03 20:16:33 +08:00
|
|
|
border-radius: 5px;
|
2022-12-22 23:20:05 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-10-11 21:34:27 +08:00
|
|
|
.sb-line-blockquote.sb-line-ul.sb-line-li > .sb-quote.sb-meta:first-child {
|
2023-07-10 14:44:37 +08:00
|
|
|
margin-left: -1ch;
|
2022-11-18 23:04:37 +08:00
|
|
|
}
|
|
|
|
|
2023-07-10 14:44:37 +08:00
|
|
|
.sb-admonition {
|
|
|
|
border-left-width: 4px !important;
|
|
|
|
border-left-style: solid;
|
2022-11-18 23:04:37 +08:00
|
|
|
}
|
2022-12-19 19:35:58 +08:00
|
|
|
|
2024-07-19 23:00:13 +08:00
|
|
|
.sb-admonition-type::before {
|
|
|
|
content: "";
|
2024-03-05 01:35:02 +08:00
|
|
|
mask: var(--admonition-icon) no-repeat;
|
|
|
|
-webkit-mask: var(--admonition-icon) no-repeat;
|
|
|
|
mask-size: cover;
|
|
|
|
-webkit-mask-size: cover;
|
|
|
|
width: 1.1em;
|
|
|
|
height: 1.1em;
|
2023-07-10 14:44:37 +08:00
|
|
|
display: inline-flex;
|
|
|
|
vertical-align: middle;
|
2024-07-19 23:00:13 +08:00
|
|
|
margin-left: 5px;
|
2023-07-10 14:44:37 +08:00
|
|
|
}
|
|
|
|
|
2024-01-08 16:21:19 +08:00
|
|
|
.sb-frontmatter-marker {
|
|
|
|
float: right;
|
|
|
|
font-size: 80%;
|
|
|
|
padding-right: 7px;
|
|
|
|
}
|
|
|
|
|
2022-12-21 21:55:24 +08:00
|
|
|
.cm-scroller {
|
|
|
|
// Give some breathing space at the bottom of the screen
|
|
|
|
padding-bottom: 20em;
|
|
|
|
}
|
2022-03-20 16:56:28 +08:00
|
|
|
}
|
2022-11-18 23:04:37 +08:00
|
|
|
|
2022-12-21 21:55:24 +08:00
|
|
|
div:not(.cm-focused).cm-fat-cursor {
|
|
|
|
outline: none !important;
|
2024-10-11 21:34:27 +08:00
|
|
|
}
|