Skip to content

Commit 13d52ef

Browse files
authored
Merge pull request #994 from XAMPPRocky/highlightjs
Add syntax highlighting
2 parents d13ba06 + d95a32f commit 13d52ef

File tree

5 files changed

+99
-28
lines changed

5 files changed

+99
-28
lines changed

src/styles/app.scss

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -58,20 +58,6 @@ pre > code {
5858
white-space: pre;
5959
}
6060

61-
@mixin code-highlight-white {
62-
color: white;
63-
background-color: rgba(black, 0.3);
64-
border: 1px solid #e1e1e1;
65-
border-radius: $border-radius;
66-
}
67-
68-
@mixin code-highlight-black {
69-
color: black;
70-
background-color: rgba(black, 0.05);
71-
border: 1px solid rgba(black, 0.25);
72-
border-radius: $border-radius;
73-
}
74-
7561
.button,
7662
button {
7763
display: inline-block;
@@ -274,9 +260,6 @@ a.brand {
274260
border-color: white;
275261
}
276262
}
277-
code {
278-
@include code-highlight-white();
279-
}
280263
}
281264

282265
.green {
@@ -299,9 +282,6 @@ a.brand {
299282
border-color: white;
300283
}
301284
}
302-
code {
303-
@include code-highlight-white();
304-
}
305285
}
306286

307287
.white {
@@ -323,9 +303,6 @@ a.brand {
323303
border-color: $gray;
324304
}
325305
}
326-
code {
327-
@include code-highlight-black();
328-
}
329306
}
330307

331308
.purple {
@@ -348,9 +325,6 @@ a.brand {
348325
border-color: white;
349326
}
350327
}
351-
code {
352-
@include code-highlight-white();
353-
}
354328
}
355329

356330
h3 {

0 commit comments

Comments
 (0)