Skip to content

Commit ce00cd7

Browse files
fix: reset styles to frappe ui
1 parent 3845044 commit ce00cd7

File tree

1 file changed

+2
-207
lines changed

1 file changed

+2
-207
lines changed

frontend/src/components/DocEditor/editor.css

Lines changed: 2 additions & 207 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,9 @@
11
.prose-sm {
2-
--tw-prose-body: #383838;
3-
--tw-prose-headings: #111827;
4-
--tw-prose-lead: #4b5563;
5-
--tw-prose-links: #111827;
6-
--tw-prose-bold: #111827;
7-
--tw-prose-counters: #6b7280;
8-
--tw-prose-bullets: #d1d5db;
9-
--tw-prose-hr: #e5e7eb;
10-
--tw-prose-quotes: #111827;
11-
--tw-prose-quote-borders: #e5e7eb;
12-
--tw-prose-captions: #6b7280;
13-
--tw-prose-kbd: #111827;
14-
--tw-prose-kbd-shadows: 17 24 39;
15-
--tw-prose-code: #111827;
16-
--tw-prose-pre-code: #e5e7eb;
17-
--tw-prose-pre-bg: #1f2937;
18-
--tw-prose-th-borders: #d1d5db;
19-
--tw-prose-td-borders: #e5e7eb;
20-
--tw-prose-invert-body: #d1d5db;
21-
--tw-prose-invert-headings: #fff;
22-
--tw-prose-invert-lead: #9ca3af;
23-
--tw-prose-invert-links: #fff;
24-
--tw-prose-invert-bold: #fff;
25-
--tw-prose-invert-counters: #9ca3af;
26-
--tw-prose-invert-bullets: #4b5563;
27-
--tw-prose-invert-hr: #374151;
28-
--tw-prose-invert-quotes: #f3f4f6;
29-
--tw-prose-invert-quote-borders: #374151;
30-
--tw-prose-invert-captions: #9ca3af;
31-
--tw-prose-invert-kbd: #fff;
32-
--tw-prose-invert-kbd-shadows: 255 255 255;
33-
--tw-prose-invert-code: #fff;
34-
--tw-prose-invert-pre-code: #d1d5db;
35-
--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);
36-
--tw-prose-invert-th-borders: #4b5563;
37-
--tw-prose-invert-td-borders: #374151;
382
min-width: 100%;
393
font-size: 15px;
404
line-height: 1.5;
415
letter-spacing: 0.02em;
42-
color: var(--tw-prose-body);
6+
color: #383838;
437
outline: none;
448
caret-color: theme("colors.blue.600");
459
word-break: break-word;
@@ -50,94 +14,6 @@
5014
background: white;
5115
}
5216

53-
.espresso-focused:focus-visible {
54-
outline: none;
55-
}
56-
57-
.prose-sm:focus-visible {
58-
outline: none !important;
59-
}
60-
61-
.prose-sm p {
62-
color: var(--tw-prose-body);
63-
}
64-
65-
.prose-sm a {
66-
padding-bottom: 0.1px;
67-
background-image: linear-gradient(
68-
var(--tw-prose-links),
69-
var(--tw-prose-links)
70-
);
71-
background-size: 100% 1.5px;
72-
background-position: center bottom;
73-
background-repeat: no-repeat;
74-
}
75-
76-
p.legacy {
77-
margin-top: 1.4rem !important;
78-
margin-bottom: 1.4rem !important;
79-
}
80-
81-
.prose-sm h1 {
82-
font-size: 1.8em;
83-
margin-top: 1.8em;
84-
margin-bottom: 0.8em;
85-
line-height: 1.2;
86-
font-weight: 600;
87-
}
88-
89-
.prose-sm h1:first-child {
90-
margin-top: 0;
91-
}
92-
93-
.prose-sm h2:first-child {
94-
margin-top: 0;
95-
}
96-
97-
.prose-sm h3:first-child {
98-
margin-top: 0;
99-
}
100-
101-
.prose-sm h2 {
102-
font-size: 1.42em;
103-
margin-top: 1.6em;
104-
margin-bottom: 0.65em;
105-
line-height: 1.4;
106-
font-weight: 600;
107-
}
108-
109-
.prose-sm h3 {
110-
font-size: 1.28em;
111-
margin-top: 1.55em;
112-
margin-bottom: 0.45em;
113-
line-height: 1.55;
114-
font-weight: 600;
115-
}
116-
117-
.prose-sm ol,
118-
.prose-sm ul,
119-
.prose-sm menu {
120-
margin: 0;
121-
padding: 0;
122-
padding-inline-start: 1.55em;
123-
}
124-
125-
.prose-sm ul > li::marker {
126-
color: var(--tw-prose-bullets);
127-
}
128-
129-
.prose-sm ul > li {
130-
padding-inline-start: 0.42em;
131-
}
132-
133-
.prose-sm ol > li::marker {
134-
color: var(--tw-prose-counters);
135-
}
136-
137-
.prose-sm ol > li {
138-
padding-inline-start: 0.42em;
139-
}
140-
14117
.prose-sm .tableWrapper {
14218
overflow-x: auto;
14319
}
@@ -156,7 +32,7 @@ p.legacy {
15632

15733
.prose-sm tr {
15834
border-bottom-width: 1px;
159-
border-bottom-color: var(--tw-prose-td-borders);
35+
border-bottom-color: #e5e7eb;
16036
}
16137

16238
.prose-sm th {
@@ -175,87 +51,6 @@ p.legacy {
17551
border-color: #e2e2e2;
17652
}
17753

178-
.prose-sm pre {
179-
white-space: pre-wrap;
180-
overflow-x: auto;
181-
padding-top: 0.5rem;
182-
padding-bottom: 0.5rem;
183-
padding-left: 1rem;
184-
padding-right: 1rem;
185-
margin-top: 1.25rem;
186-
margin-bottom: 1.25rem;
187-
border-radius: 0.5rem;
188-
border-width: 1px;
189-
border-color: rgb(226 226 226);
190-
font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
191-
monospace;
192-
color: #000000;
193-
font-size: 0.9em;
194-
background-color: rgb(248 248 248);
195-
}
196-
197-
.prose-sm strong {
198-
font-weight: 600;
199-
}
200-
201-
.prose-sm blockquote {
202-
padding-left: 0.5rem;
203-
border-left-width: 2px;
204-
border-color: #9ca3af;
205-
color: #000000;
206-
font-size: 0.9em;
207-
}
208-
209-
.prose-sm blockquote strong {
210-
font-weight: 500;
211-
}
212-
213-
.prose-sm :not(pre) > code {
214-
padding-left: 1px;
215-
padding-right: 1px;
216-
border-radius: 0.25rem;
217-
border-width: 1px;
218-
border-color: #d1d5db;
219-
font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
220-
monospace;
221-
background-color: #f9fafb;
222-
font-size: 0.85em;
223-
}
224-
225-
/* Task List */
226-
.prose-sm .my-task-item {
227-
display: flex;
228-
}
229-
230-
.prose-sm > ul > .my-task-item > *:first-child {
231-
margin-top: 0;
232-
}
233-
234-
.prose-sm .my-task-item input {
235-
border-radius: 4px;
236-
outline: none;
237-
margin-right: 10px;
238-
}
239-
.prose-sm .my-task-item input[type="checkbox"]:hover {
240-
outline: none;
241-
background-color: #d6d6d6;
242-
cursor: pointer;
243-
transition: background 0.2s ease, border 0.2s ease;
244-
}
245-
.prose-sm .my-task-item input[type="checkbox"]:focus {
246-
outline: none;
247-
border: none;
248-
background-color: #5b5b5b;
249-
}
250-
.prose-sm .my-task-item input[type="checkbox"]:active {
251-
outline: none;
252-
background-color: #5b5b5b;
253-
}
254-
.prose-sm .my-task-item input[type="checkbox"]:checked {
255-
outline: none;
256-
background-color: #000000;
257-
}
258-
25954
@media only screen and (max-width: 640px) {
26055
.prose-sm {
26156
display: block;

0 commit comments

Comments
 (0)