Repository navigation
Expand file tree
/
Copy pathmarkdown.css
More file actions
135 lines (135 loc) · 3.09 KB
/
Copy pathmarkdown.css
File metadata and controls
135 lines (135 loc) · 3.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
.markdown-document {
flex: 0 0 auto;
height: 100%;
min-height: 0;
width: 100%;
min-width: 0;
overflow: hidden;
}
.doca-markdown .exmd-editor.app-shell {
display: flex;
flex-direction: column;
width: 100%;
min-width: 0;
min-height: 0;
margin: 0;
padding: 0;
grid-template-columns: none;
overscroll-behavior: none;
}
.doca-markdown .workspace {
flex: 1;
min-height: 0;
margin: 0;
padding: 0;
width: 100%;
}
.doca-markdown .editor-pane,
.doca-markdown .preview-pane {
/* The host hands off vertical scrolling only after this pane reaches its end. */
overscroll-behavior-y: contain;
}
/* CodeMirror draws selection behind the text layer. Opaque active-line paint
from the SDK hides it, even though the native range is still selected. */
.doca-markdown .cm-activeLine {
background: rgb(120 130 150 / 4%) !important;
}
.doca-markdown .cm-editor .cm-scroller .cm-selectionBackground {
background: #dce6ff;
}
.doca-markdown .cm-editor.cm-focused .cm-scroller .cm-selectionBackground {
background: #b9ceff;
}
.markdown-toolbar {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
min-width: 0;
}
.markdown-toolbar > .region-comment-add {
flex: none;
margin-right: 12px;
border-left: 1px solid #dfe3ea;
color: #b88700;
border-radius: 0;
width: 36px;
height: 32px;
}
.markdown-toolbar > .toolbar {
min-width: 0;
flex-wrap: wrap;
}
/* In a compact pane the tools keep one row that scrolls sideways, with the view
* switcher first, instead of stacking two or three rows above the text. */
@media (max-width: 839px) {
.app-shell[data-workspace-layout="compact"] .markdown-toolbar > .toolbar {
flex-wrap: nowrap;
justify-content: flex-start;
overflow-x: auto;
scrollbar-width: thin;
}
.app-shell[data-workspace-layout="compact"] .markdown-toolbar > .toolbar > .view-switcher {
order: -1;
margin-left: 6px;
}
}
.markdown-toolbar .toolbar {
justify-content: center;
gap: 4px;
border-bottom: 0;
min-height: 44px;
padding: 4px 12px;
}
.markdown-toolbar .toolbar-spacer {
flex: 0;
}
.markdown-toolbar button {
display: inline-flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.markdown-preview-only .markdown-body {
max-width: 100%;
}
.type-icon.markdown,
.tree-row .document-type-icon.type-markdown {
color: #7950b8;
background: #f3edff;
}
.markdown-sdk-container {
width: 100%;
height: 100%;
min-width: 0;
}
.markdown-document:has(.region-comments-drawer) .markdown-sdk-container {
width: 0;
flex: 1 1 0;
}
.markdown-document .region-comment-controls {
top: 36px;
}
.markdown-document .region-comments-drawer {
overflow-anchor: none;
}
.markdown-document .region-comments-drawer > header {
position: sticky;
top: 0;
z-index: 3;
background: var(--surface, #fff);
padding-block: 12px;
}
.markdown-document .linked-comment-draft {
position: sticky;
top: 40px;
z-index: 2;
background: var(--surface, #fff);
}
.markdown-document .linked-comment-pagination:not(:empty) {
position: sticky;
bottom: 0;
z-index: 3;
background: var(--surface, #fff);
padding-block: 8px;
}