2023-10-03 10:51:31 +03:00
|
|
|
.ProseMirror {
|
|
|
|
outline: none;
|
|
|
|
|
|
|
|
&.text-editor-view {
|
|
|
|
font: inherit;
|
|
|
|
line-height: 150%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.text-editor-view {
|
2023-10-16 08:08:31 +03:00
|
|
|
// overflow-y: auto;
|
2023-10-10 19:34:39 +03:00
|
|
|
color: var(--theme-text-primary-color);
|
2024-09-16 07:30:25 +03:00
|
|
|
margin: 0.25rem 0;
|
2023-10-03 10:51:31 +03:00
|
|
|
|
2023-11-17 10:35:09 +03:00
|
|
|
.suggestion {
|
2023-12-04 20:53:51 +03:00
|
|
|
padding-left: 0.25rem;
|
2023-11-17 10:35:09 +03:00
|
|
|
color: var(--theme-link-color);
|
|
|
|
background-color: var(--theme-mention-bg-color);
|
|
|
|
border-radius: .25rem;
|
|
|
|
}
|
|
|
|
|
2023-10-13 10:58:37 +03:00
|
|
|
.title,
|
|
|
|
h1,
|
|
|
|
h2,
|
|
|
|
h3,
|
|
|
|
b {
|
|
|
|
font-weight: 600;
|
|
|
|
}
|
|
|
|
|
2023-10-24 18:39:56 +03:00
|
|
|
h1,
|
|
|
|
h2,
|
|
|
|
h3 {
|
|
|
|
&:first-child {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-10-13 10:58:37 +03:00
|
|
|
.title {
|
|
|
|
font-size: 2.25rem;
|
|
|
|
margin-top: 3.75rem;
|
|
|
|
margin-bottom: 0.25rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
h1 {
|
|
|
|
font-size: 1.75rem;
|
2024-02-05 15:36:51 +03:00
|
|
|
line-height: 150%;
|
2023-10-13 10:58:37 +03:00
|
|
|
margin-top: 2.75rem;
|
|
|
|
margin-bottom: 0.25rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
font-size: 1.375rem;
|
2024-02-05 15:36:51 +03:00
|
|
|
line-height: 150%;
|
2023-10-13 10:58:37 +03:00
|
|
|
margin-top: 2.25rem;
|
|
|
|
margin-bottom: 0.25rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
h3 {
|
|
|
|
font-size: 1.125rem;
|
2024-02-05 15:36:51 +03:00
|
|
|
line-height: 150%;
|
2023-10-13 10:58:37 +03:00
|
|
|
margin-top: 1.5rem;
|
|
|
|
margin-bottom: 0.25rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
p {
|
|
|
|
margin-block-start: 0.5rem;
|
2024-09-16 07:30:25 +03:00
|
|
|
margin-block-end: 0.5rem;
|
2023-10-03 10:51:31 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
>*+* {
|
2023-10-13 10:58:37 +03:00
|
|
|
margin-top: 0.5rem;
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
ul,
|
|
|
|
ol {
|
2024-09-16 07:30:25 +03:00
|
|
|
margin-top: 0.5rem;
|
|
|
|
margin-bottom: 0.5rem;
|
2023-10-13 10:58:37 +03:00
|
|
|
margin-right: .25rem;
|
|
|
|
margin-left: .75rem;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
li {
|
|
|
|
margin-left: 0.75rem;
|
|
|
|
padding-left: 0.375rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
li p {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
2023-11-07 19:23:07 +03:00
|
|
|
ul[data-type="todoList"] {
|
|
|
|
list-style: none;
|
2024-09-16 07:30:25 +03:00
|
|
|
margin-left: 0;
|
2023-11-07 19:23:07 +03:00
|
|
|
|
|
|
|
li {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-10-13 10:58:37 +03:00
|
|
|
ol ol { list-style: lower-alpha; }
|
|
|
|
ol ol ol { list-style: lower-roman; }
|
|
|
|
ol ol ol ol { list-style: decimal; }
|
|
|
|
ol ol ol ol ol { list-style: lower-alpha; }
|
|
|
|
ol ol ol ol ol ol { list-style: lower-roman; }
|
|
|
|
ol ol ol ol ol ol ol { list-style: decimal; }
|
|
|
|
|
2023-10-03 10:51:31 +03:00
|
|
|
/* Placeholder (at the top) */
|
|
|
|
p.is-editor-empty:first-child::before {
|
|
|
|
content: attr(data-placeholder);
|
|
|
|
float: left;
|
2023-10-10 19:34:39 +03:00
|
|
|
color: var(--theme-text-placeholder-color);
|
2023-10-03 10:51:31 +03:00
|
|
|
pointer-events: none;
|
|
|
|
height: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.text-editor-view_compact {
|
|
|
|
min-height: 0;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.text-editor-view_full-height {
|
|
|
|
min-height: 0;
|
|
|
|
max-height: 100%;
|
|
|
|
height: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus-within p.is-editor-empty:first-child::before {
|
|
|
|
color: var(--theme-trans-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
|
|
background-color: var(--scrollbar-bar-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
&::-webkit-scrollbar-thumb:hover {
|
|
|
|
background-color: var(--scrollbar-bar-hover);
|
|
|
|
}
|
|
|
|
|
|
|
|
&::-webkit-scrollbar-corner {
|
|
|
|
background-color: var(--scrollbar-bar-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
&::-webkit-scrollbar-track {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Give a remote user a caret */
|
2024-04-17 00:08:12 +03:00
|
|
|
.collaboration-cursor {
|
2023-12-26 08:24:28 +03:00
|
|
|
border-left: 1px solid transparent;
|
|
|
|
border-right: 1px solid transparent;
|
2023-10-03 10:51:31 +03:00
|
|
|
margin-left: -1px;
|
|
|
|
margin-right: -1px;
|
|
|
|
position: relative;
|
|
|
|
word-break: normal;
|
2024-04-17 00:08:12 +03:00
|
|
|
cursor: text;
|
|
|
|
}
|
|
|
|
|
|
|
|
.collaboration-cursor__caret {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
cursor: text;
|
|
|
|
height: 110%;
|
|
|
|
width: 8px;
|
|
|
|
top: -2px;
|
|
|
|
left: -4px;
|
|
|
|
position: absolute;
|
2023-10-03 10:51:31 +03:00
|
|
|
|
2023-12-26 08:24:28 +03:00
|
|
|
&::after {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
border-color: inherit;
|
|
|
|
border-style: solid;
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
border-left: 4px solid transparent;
|
|
|
|
border-right: 4px solid transparent;
|
|
|
|
border-top-width: 4px;
|
|
|
|
border-bottom: 0;
|
|
|
|
}
|
2023-10-03 10:51:31 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
cmark {
|
|
|
|
border-top: 1px solid lightblue;
|
|
|
|
border-bottom: 1px solid lightblue;
|
|
|
|
border-radius: 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
span.insertion {
|
|
|
|
border-top: 1px solid lightblue;
|
|
|
|
border-bottom: 1px solid lightblue;
|
|
|
|
border-radius: 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
span.deletion {
|
|
|
|
text-decoration: line-through;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-02-05 14:46:53 +03:00
|
|
|
@supports (selector(:has(.text-editor-image-container))) {
|
|
|
|
p:has(> .text-editor-image-container) {
|
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-10-22 17:55:39 +03:00
|
|
|
.text-editor-image-container {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
|
|
|
|
&[data-align="center"] {
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
&[data-align="left"] {
|
|
|
|
justify-content: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
&[data-align="right"] {
|
|
|
|
justify-content: right;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.text-editor-image-container {
|
|
|
|
img {
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-03-07 16:32:13 +03:00
|
|
|
.text-editor-file-container {
|
|
|
|
background-color: var(--theme-button-default);
|
|
|
|
border-radius: 0.375rem;
|
|
|
|
border: 1px solid var(--theme-button-border);
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
|
|
|
font-weight: 400;
|
|
|
|
width: 22.5rem;
|
|
|
|
height: 2rem;
|
|
|
|
padding: 0 0.25rem;
|
|
|
|
margin: 0.375rem 0;
|
|
|
|
|
|
|
|
svg {
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
|
|
|
|
.file-name-container {
|
|
|
|
font-size: 0.8125rem;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
padding: 0 0.25rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.file-name {
|
|
|
|
white-space: nowrap;
|
|
|
|
word-break: break-all;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
line-height: 1.25rem;
|
|
|
|
min-width: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
padding: 0 0.25rem;
|
|
|
|
color: var(--theme-content-color);
|
|
|
|
font-weight: 400;
|
|
|
|
text-decoration: none;
|
|
|
|
max-width: 16rem;
|
|
|
|
}
|
|
|
|
a:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.file-size {
|
|
|
|
font-size: 0.6875rem;
|
|
|
|
color: var(--theme-dark-color);
|
|
|
|
padding: 0 0.25rem;
|
|
|
|
line-height: 1rem;
|
|
|
|
flex-shrink: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-10-03 10:51:31 +03:00
|
|
|
.text-editor-image {
|
2023-05-27 18:49:14 +03:00
|
|
|
cursor: pointer;
|
|
|
|
object-fit: contain;
|
2023-08-10 19:27:43 +03:00
|
|
|
}
|
2023-09-06 09:44:54 +03:00
|
|
|
|
2023-10-22 17:55:39 +03:00
|
|
|
.ProseMirror-selectednode {
|
|
|
|
img {
|
2024-01-25 12:17:26 +03:00
|
|
|
outline: 2px solid var(--primary-button-outline);
|
|
|
|
outline-offset: 2px;
|
|
|
|
border-radius: 2px;
|
2023-10-22 17:55:39 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-03-07 16:32:13 +03:00
|
|
|
.text-editor-file-container.ProseMirror-selectednode {
|
|
|
|
box-shadow: 0 0 0 2px var(--text-editor-selected-node-color);
|
|
|
|
border-radius: 0.125rem;
|
|
|
|
}
|
|
|
|
|
2023-12-14 09:27:05 +03:00
|
|
|
.ProseMirror-gapcursor:after {
|
|
|
|
border-top: 1px solid var(--theme-text-primary-color) !important;
|
|
|
|
}
|
|
|
|
|
2023-11-20 11:10:13 +03:00
|
|
|
.reference {
|
|
|
|
&:hover,
|
|
|
|
&.ProseMirror-selectednode {
|
|
|
|
background-color: var(--theme-mention-focused-bg-color);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-10-09 20:26:09 +03:00
|
|
|
.text-editor-highlighted-node-warning {
|
|
|
|
background-color: var(--text-editor-highlighted-node-warning-background-color);
|
|
|
|
border-bottom: 0.0625rem solid var(--text-editor-highlighted-node-warning-border-color);
|
|
|
|
|
|
|
|
&.text-editor-highlighted-node-selected, &:hover {
|
|
|
|
background-color: var(--text-editor-highlighted-node-warning-active-background-color);
|
|
|
|
}
|
2024-08-21 17:47:24 +03:00
|
|
|
|
|
|
|
@media print {
|
|
|
|
background-color: inherit !important;
|
|
|
|
border-bottom: none;
|
|
|
|
}
|
2023-09-06 12:01:25 +03:00
|
|
|
}
|
|
|
|
|
2023-10-03 10:53:51 +03:00
|
|
|
.text-editor-highlighted-node-delete {
|
|
|
|
background-color: var(--text-editor-highlighted-node-delete-background-color);
|
|
|
|
color: var(--text-editor-highlighted-node-delete-font-color);
|
|
|
|
text-decoration: line-through;
|
2023-09-06 12:01:25 +03:00
|
|
|
}
|
|
|
|
|
2023-10-03 10:53:51 +03:00
|
|
|
.text-editor-highlighted-node-add {
|
|
|
|
background-color: var(--text-editor-highlighted-node-add-background-color);
|
|
|
|
color: var(--text-editor-highlighted-node-add-font-color)
|
2023-09-06 12:01:25 +03:00
|
|
|
}
|
2023-09-29 10:41:52 +03:00
|
|
|
|
2024-08-21 17:47:24 +03:00
|
|
|
.text-editor-note-marker {
|
|
|
|
padding-left: 0.25rem;
|
|
|
|
color: transparent;
|
|
|
|
background-image: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20256%20256%22%20id%3D%22note%22%3E%3Crect%20width%3D%22256%22%20height%3D%22256%22%20fill%3D%22none%22%3E%3C%2Frect%3E%3Cline%20x1%3D%2296%22%20x2%3D%22160%22%20y1%3D%2296%22%20y2%3D%2296%22%20fill%3D%22none%22%20stroke%3D%22%23313131%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%228%22%3E%3C%2Fline%3E%3Cline%20x1%3D%2296%22%20x2%3D%22160%22%20y1%3D%22128%22%20y2%3D%22128%22%20fill%3D%22none%22%20stroke%3D%22%23313131%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%228%22%3E%3C%2Fline%3E%3Cline%20x1%3D%2296%22%20x2%3D%22128%22%20y1%3D%22160%22%20y2%3D%22160%22%20fill%3D%22none%22%20stroke%3D%22%23313131%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%228%22%3E%3C%2Fline%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22%23313131%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%228%22%20d%3D%22M156.68629%2C216H48a8%2C8%2C0%2C0%2C1-8-8V48a8%2C8%2C0%2C0%2C1%2C8-8H208a8%2C8%2C0%2C0%2C1%2C8%2C8V156.68629a8%2C8%2C0%2C0%2C1-2.34315%2C5.65686l-51.3137%2C51.3137A8%2C8%2C0%2C0%2C1%2C156.68629%2C216Z%22%3E%3C%2Fpath%3E%3Cpolyline%20fill%3D%22none%22%20stroke%3D%22%23313131%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%228%22%20points%3D%22215.277%20159.992%20160%20159.992%20160%20215.272%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E');
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
user-select: none;
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
@media print {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-09-09 20:32:22 +03:00
|
|
|
.theme-dark {
|
|
|
|
@import './github-dark.scss';
|
|
|
|
}
|
|
|
|
|
|
|
|
.theme-light {
|
|
|
|
@import './github-light.scss';
|
|
|
|
}
|
|
|
|
|
2024-08-21 17:47:24 +03:00
|
|
|
.theme-dark .text-editor-note-marker {
|
|
|
|
background-image: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20256%20256%22%20id%3D%22note%22%3E%3Crect%20width%3D%22256%22%20height%3D%22256%22%20fill%3D%22none%22%3E%3C%2Frect%3E%3Cline%20x1%3D%2296%22%20x2%3D%22160%22%20y1%3D%2296%22%20y2%3D%2296%22%20fill%3D%22none%22%20stroke%3D%22%23FDFDF7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%228%22%3E%3C%2Fline%3E%3Cline%20x1%3D%2296%22%20x2%3D%22160%22%20y1%3D%22128%22%20y2%3D%22128%22%20fill%3D%22none%22%20stroke%3D%22%23FDFDF7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%228%22%3E%3C%2Fline%3E%3Cline%20x1%3D%2296%22%20x2%3D%22128%22%20y1%3D%22160%22%20y2%3D%22160%22%20fill%3D%22none%22%20stroke%3D%22%23FDFDF7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%228%22%3E%3C%2Fline%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22%23FDFDF7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%228%22%20d%3D%22M156.68629%2C216H48a8%2C8%2C0%2C0%2C1-8-8V48a8%2C8%2C0%2C0%2C1%2C8-8H208a8%2C8%2C0%2C0%2C1%2C8%2C8V156.68629a8%2C8%2C0%2C0%2C1-2.34315%2C5.65686l-51.3137%2C51.3137A8%2C8%2C0%2C0%2C1%2C156.68629%2C216Z%22%3E%3C%2Fpath%3E%3Cpolyline%20fill%3D%22none%22%20stroke%3D%22%23FDFDF7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%228%22%20points%3D%22215.277%20159.992%20160%20159.992%20160%20215.272%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E');
|
|
|
|
}
|
|
|
|
|
|
|
|
.theme-text-editor-note-anchor {
|
|
|
|
&.neutral {
|
|
|
|
background-color: var(--theme-text-editor-note-anchor-bg-neutral);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.dangerous {
|
|
|
|
background-color: var(--theme-text-editor-note-anchor-bg-dangerous);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.dangerous-light {
|
|
|
|
background-color: var(--theme-text-editor-note-anchor-bg-dangerous-light);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.warning {
|
|
|
|
background-color: var(--theme-text-editor-note-anchor-bg-warning);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.warning-light {
|
|
|
|
background-color: var(--theme-text-editor-note-anchor-bg-warning-light);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.positive {
|
|
|
|
background-color: var(--theme-text-editor-note-anchor-bg-positive);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.positive-light {
|
|
|
|
background-color: var(--theme-text-editor-note-anchor-bg-positive-light);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.primary {
|
|
|
|
background-color: var(--theme-text-editor-note-anchor-bg-primary);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.primary-light {
|
|
|
|
background-color: var(--theme-text-editor-note-anchor-bg-primary-light);
|
|
|
|
}
|
|
|
|
|
|
|
|
@media print {
|
|
|
|
background-color: inherit !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-09-29 10:41:52 +03:00
|
|
|
.text-editor-popup {
|
|
|
|
background-color: var(--theme-comp-header-color);
|
|
|
|
border-radius: 0.5rem;
|
|
|
|
box-shadow: var(--theme-popup-shadow);
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
|
2023-10-03 10:51:31 +03:00
|
|
|
.text-editor-lint-icon {
|
|
|
|
display: inline-block;
|
|
|
|
position: absolute;
|
|
|
|
right: 2px;
|
|
|
|
cursor: pointer;
|
|
|
|
border-radius: 100px;
|
|
|
|
// background: #f22;
|
|
|
|
color: white;
|
|
|
|
font-family: times, georgia, serif;
|
|
|
|
font-size: 15px;
|
|
|
|
font-weight: bold;
|
|
|
|
width: 0.7em;
|
|
|
|
height: 0.7em;
|
|
|
|
text-align: center;
|
|
|
|
padding-left: 0.5px;
|
|
|
|
line-height: 1.1em;
|
|
|
|
|
|
|
|
&.add {
|
2023-12-04 09:09:08 +03:00
|
|
|
background: var(--text-editor-highlighted-node-add-background-color);
|
2023-10-03 10:51:31 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
&.delete {
|
2023-12-04 09:09:08 +03:00
|
|
|
background: var(--text-editor-highlighted-node-delete-background-color);
|
2023-10-03 10:51:31 +03:00
|
|
|
}
|
|
|
|
}
|