Skip to content

Commit 19f4f9d

Browse files
committed
Code highlightjs toggle theme
1 parent e48f5d9 commit 19f4f9d

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
lines changed

resources/js/components/utils/CodeHighlight/CodeHighlight.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import 'highlight.js/styles/default.css'
1111
// import 'highlight.js/styles/mono-blue.min.css'
1212
1313
// Custom light
14-
import './css/mozilla-light.css'
14+
import './css/light/mozilla-light.css'
1515
1616
// Dark set from current dir css
1717
import './css/dark/mozilla-dark.css'

resources/js/components/utils/CodeHighlight/css/dark/mozilla-dark.css

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,21 @@
11
/*!
22
Theme: Mozilla
33
Description: Light theme as seen on Mozilla.com
4-
Author: Mozilla.com
4+
Author: Marcys
55
66
Current colors taken from Mozilla's CSS
77
*/
88

9-
/* Millenium Falcon */
109
.dark-theme .hljs {
1110
color: #dcc200 !important;
1211
background: #232629 !important;
1312
}
1413

15-
/* Death Star Comment */
1614
.dark-theme .hljs-comment,
1715
.dark-theme .hljs-quote {
1816
color: #6a737d !important;
1917
}
2018

21-
/* Darth Vader */
2219
.dark-theme .hljs-variable,
2320
.dark-theme .hljs-template-variable,
2421
.dark-theme .hljs-tag,
@@ -30,7 +27,6 @@
3027
color: #0069c2 !important;
3128
}
3229

33-
/* Threepio */
3430
.dark-theme .hljs-number,
3531
.dark-theme .hljs-built_in,
3632
.dark-theme .hljs-literal,
@@ -41,12 +37,10 @@
4137
color: #e7ce56;
4238
}
4339

44-
/* Luke Skywalker */
4540
.dark-theme .hljs-attribute {
4641
color: #ee7c2b;
4742
}
4843

49-
/* Obi Wan Kenobi */
5044
.dark-theme .hljs-string,
5145
.dark-theme .hljs-regexp,
5246
.dark-theme .hljs-symbol,
@@ -56,17 +50,15 @@
5650
background-image: none;
5751
}
5852

59-
.hljs-doctag {
53+
.dark-theme .hljs-doctag {
6054
color: #ff6600 !important;
6155
}
6256

63-
/* Yoda */
6457
.dark-theme .hljs-title,
6558
.dark-theme .hljs-section {
6659
color: #007936 !important;
6760
}
6861

69-
/* Mace Windu */
7062
.dark-theme .hljs-keyword,
7163
.dark-theme .hljs-selector-tag {
7264
color: #0099ff !important;

resources/js/components/utils/CodeHighlight/css/mozilla-light.css renamed to resources/js/components/utils/CodeHighlight/css/light/mozilla-light.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
22
Theme: Mozilla
33
Description: Light theme as seen on Mozilla.com
4-
Author: Mozilla.com
4+
Author: Marcys
55
66
Current colors taken from Mozilla's CSS
77
*/

0 commit comments

Comments
 (0)