forked from TypeCellOS/BlockNote
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheditor.css
More file actions
164 lines (145 loc) · 4.26 KB
/
Copy patheditor.css
File metadata and controls
164 lines (145 loc) · 4.26 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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
@import url("prosemirror-tables/style/tables.css");
.bn-editor {
outline: none;
padding-inline: 54px;
/* Define a set of colors to be used throughout the app for consistency
see https://atlassian.design/foundations/color for more info */
--N800: #172b4d; /* Dark neutral used for tooltips and text on light background */
--N40: #dfe1e6; /* Light neutral used for subtle borders and text on dark background */
}
/*
bn-root should be applied to all top-level elements
This includes the Prosemirror editor, but also <div> element such as
Tippy popups that are appended to document.body directly
*/
.bn-root {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.bn-root *,
.bn-root *::before,
.bn-root *::after {
-webkit-box-sizing: inherit;
-moz-box-sizing: inherit;
box-sizing: inherit;
}
/* reset styles, they will be set on blockContent */
.bn-default-styles p,
.bn-default-styles h1,
.bn-default-styles h2,
.bn-default-styles h3,
.bn-default-styles li {
margin: 0;
padding: 0;
font-size: inherit;
/* min width to make sure cursor is always visible */
min-width: 2px !important;
}
.bn-default-styles {
font-size: 16px;
font-weight: normal;
font-family: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont,
"Open Sans", "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell",
"Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.bn-table-drop-cursor {
position: absolute;
z-index: 20;
background-color: #adf;
pointer-events: none;
}
.bn-drag-preview {
position: absolute;
top: 0;
left: 0;
padding: 10px;
/* Sort of a hack but seems like the most reliable solution. */
/* Drag preview element needs to be within bounds of the document area or it
won't work in some cases. */
/* Negative z-index covers most cases, but the element can still be visible
if UI elements are translucent. */
/* Setting opacity has no effect on the drag preview but does affect the
element. Unless it's set to 0, in which case the drag preview also becomes
hidden. So setting it to an extremely low value instead makes the element
functionally invisible while not affecting the drag preview itself. */
opacity: 0.001;
}
/* Give a remote user a caret */
.collaboration-cursor__caret {
border-left: 1px solid #0d0d0d;
border-right: 1px solid #0d0d0d;
margin-left: -1px;
margin-right: -1px;
pointer-events: none;
position: relative;
word-break: normal;
white-space: nowrap !important;
}
/* Render the username above the caret */
.collaboration-cursor__label {
border-radius: 3px 3px 3px 0;
color: #0d0d0d;
font-size: 12px;
font-style: normal;
font-weight: 600;
left: -1px;
line-height: normal;
padding: 0.1rem 0.3rem;
position: absolute;
top: -1.4em;
user-select: none;
white-space: nowrap;
}
/* .tableWrapper {
padding
} */
.bn-editor [data-content-type="table"] .tableWrapper {
position: relative;
top: -16px;
left: -16px;
/* padding: 16px; */
min-width: calc(100% + 16px);
padding-bottom: 16px;
overflow-y: hidden;
}
.bn-editor [data-content-type="table"] .tableWrapper-inner {
/* position: relative; */
/* top: -16px;
left: -16px; */
padding: 16px;
}
/* table related: */
.bn-editor [data-content-type="table"] table {
width: auto !important;
word-break: break-word;
}
.bn-editor [data-content-type="table"] th,
.bn-editor [data-content-type="table"] td {
border: 1px solid #ddd;
padding: 3px 5px;
}
.bn-editor [data-content-type="table"] th {
font-weight: bold;
text-align: left;
}
/* tiptap uses colwidth instead of data-colwidth, se we need to adjust this style from prosemirror-tables */
.ProseMirror td,
.ProseMirror th {
min-width: auto !important;
}
.ProseMirror td:not([colwidth]):not(.column-resize-dragging),
.ProseMirror th:not([colwidth]):not(.column-resize-dragging) {
/* if there's no explicit width set and the column is not being resized, set a default width */
min-width: var(--default-cell-min-width) !important;
}
.prosemirror-dropcursor-block {
transition-property: top, bottom;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
transition-duration: 0.15s;
}
.prosemirror-dropcursor-vertical {
transition-property: left, right;
}