Skip to content

Commit 6d2ab5a

Browse files
authored
Merge pull request #4651 from nextcloud/backport/4645/stable27
[stable27] fix(css): Move code highlighting CSS to `prosemirror.scss`
2 parents 555fa38 + c2088ac commit 6d2ab5a

16 files changed

Lines changed: 75 additions & 81 deletions

β€Žcss/prosemirror.scssβ€Ž

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,60 @@ div.ProseMirror {
174174
border-radius: var(--border-radius);
175175
padding: 1em 1.3em;
176176
margin-bottom: 1em;
177+
178+
&::before {
179+
content: attr(data-language);
180+
text-transform: uppercase;
181+
display: block;
182+
text-align: right;
183+
font-weight: bold;
184+
font-size: 0.6rem;
185+
}
186+
code {
187+
.hljs-comment,
188+
.hljs-quote {
189+
color: #999999;
190+
}
191+
.hljs-variable,
192+
.hljs-template-variable,
193+
.hljs-attribute,
194+
.hljs-tag,
195+
.hljs-name,
196+
.hljs-regexp,
197+
.hljs-link,
198+
.hljs-selector-id,
199+
.hljs-selector-class {
200+
color: #f2777a;
201+
}
202+
.hljs-number,
203+
.hljs-meta,
204+
.hljs-built_in,
205+
.hljs-builtin-name,
206+
.hljs-literal,
207+
.hljs-type,
208+
.hljs-params {
209+
color: #f99157;
210+
}
211+
.hljs-string,
212+
.hljs-symbol,
213+
.hljs-bullet {
214+
color: #99cc99;
215+
}
216+
.hljs-title,
217+
.hljs-section {
218+
color: #ffcc66;
219+
}
220+
.hljs-keyword,
221+
.hljs-selector-tag {
222+
color: #6699cc;
223+
}
224+
.hljs-emphasis {
225+
font-style: italic;
226+
}
227+
.hljs-strong {
228+
font-weight: 700;
229+
}
230+
}
177231
}
178232

179233
pre.frontmatter {

β€Žjs/editor.jsβ€Ž

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žjs/editor.js.mapβ€Ž

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žjs/files-modal.jsβ€Ž

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žjs/files-modal.js.mapβ€Ž

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žjs/text-editors.jsβ€Ž

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žjs/text-editors.js.mapβ€Ž

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žjs/text-files.jsβ€Ž

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žjs/text-files.js.mapβ€Ž

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žjs/text-public.jsβ€Ž

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
Β (0)