showoff 0.11.2 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (155) hide show
  1. checksums.yaml +4 -4
  2. data/bin/showoff +9 -0
  3. data/lib/showoff.rb +28 -19
  4. data/lib/showoff/version.rb +1 -1
  5. data/public/css/highlight/agate.css +22 -51
  6. data/public/css/highlight/androidstudio.css +25 -12
  7. data/public/css/highlight/arduino-light.css +88 -0
  8. data/public/css/highlight/arta.css +24 -89
  9. data/public/css/highlight/ascetic.css +19 -26
  10. data/public/css/highlight/atelier-cave-dark.css +83 -0
  11. data/public/css/highlight/atelier-cave-light.css +85 -0
  12. data/public/css/highlight/atelier-cave.dark.css +26 -56
  13. data/public/css/highlight/atelier-cave.light.css +27 -55
  14. data/public/css/highlight/atelier-dune-dark.css +69 -0
  15. data/public/css/highlight/atelier-dune-light.css +69 -0
  16. data/public/css/highlight/atelier-dune.dark.css +22 -47
  17. data/public/css/highlight/atelier-dune.light.css +22 -47
  18. data/public/css/highlight/atelier-estuary-dark.css +84 -0
  19. data/public/css/highlight/atelier-estuary-light.css +84 -0
  20. data/public/css/highlight/atelier-estuary.dark.css +26 -55
  21. data/public/css/highlight/atelier-estuary.light.css +26 -55
  22. data/public/css/highlight/atelier-forest-dark.css +69 -0
  23. data/public/css/highlight/atelier-forest-light.css +69 -0
  24. data/public/css/highlight/atelier-forest.dark.css +22 -47
  25. data/public/css/highlight/atelier-forest.light.css +22 -47
  26. data/public/css/highlight/atelier-heath-dark.css +69 -0
  27. data/public/css/highlight/atelier-heath-light.css +69 -0
  28. data/public/css/highlight/atelier-heath.dark.css +22 -47
  29. data/public/css/highlight/atelier-heath.light.css +22 -47
  30. data/public/css/highlight/atelier-lakeside-dark.css +69 -0
  31. data/public/css/highlight/atelier-lakeside-light.css +69 -0
  32. data/public/css/highlight/atelier-lakeside.dark.css +22 -47
  33. data/public/css/highlight/atelier-lakeside.light.css +22 -47
  34. data/public/css/highlight/atelier-plateau-dark.css +84 -0
  35. data/public/css/highlight/atelier-plateau-light.css +84 -0
  36. data/public/css/highlight/atelier-plateau.dark.css +26 -55
  37. data/public/css/highlight/atelier-plateau.light.css +26 -55
  38. data/public/css/highlight/atelier-savanna-dark.css +84 -0
  39. data/public/css/highlight/atelier-savanna-light.css +84 -0
  40. data/public/css/highlight/atelier-savanna.dark.css +26 -55
  41. data/public/css/highlight/atelier-savanna.light.css +26 -55
  42. data/public/css/highlight/atelier-seaside-dark.css +69 -0
  43. data/public/css/highlight/atelier-seaside-light.css +69 -0
  44. data/public/css/highlight/atelier-seaside.dark.css +22 -47
  45. data/public/css/highlight/atelier-seaside.light.css +22 -47
  46. data/public/css/highlight/atelier-sulphurpool-dark.css +69 -0
  47. data/public/css/highlight/atelier-sulphurpool-light.css +69 -0
  48. data/public/css/highlight/atelier-sulphurpool.dark.css +22 -47
  49. data/public/css/highlight/atelier-sulphurpool.light.css +22 -47
  50. data/public/css/highlight/brown-paper.css +64 -0
  51. data/public/css/highlight/brown-papersq.png +0 -0
  52. data/public/css/highlight/brown_paper.css +21 -60
  53. data/public/css/highlight/codepen-embed.css +22 -59
  54. data/public/css/highlight/color-brewer.css +19 -113
  55. data/public/css/highlight/dark.css +18 -58
  56. data/public/css/highlight/darkula.css +20 -98
  57. data/public/css/highlight/default.css +67 -123
  58. data/public/css/highlight/docco.css +22 -59
  59. data/public/css/highlight/dracula.css +76 -0
  60. data/public/css/highlight/far.css +25 -64
  61. data/public/css/highlight/foundation.css +21 -68
  62. data/public/css/highlight/github-gist.css +25 -165
  63. data/public/css/highlight/github.css +23 -47
  64. data/public/css/highlight/googlecode.css +29 -84
  65. data/public/css/highlight/grayscale.css +101 -0
  66. data/public/css/highlight/gruvbox-dark.css +108 -0
  67. data/public/css/highlight/gruvbox-light.css +108 -0
  68. data/public/css/highlight/hopscotch.css +83 -0
  69. data/public/css/highlight/hybrid.css +16 -78
  70. data/public/css/highlight/idea.css +23 -48
  71. data/public/css/highlight/ir-black.css +73 -0
  72. data/public/css/highlight/ir_black.css +24 -57
  73. data/public/css/highlight/kimbie.dark.css +24 -47
  74. data/public/css/highlight/kimbie.light.css +24 -47
  75. data/public/css/highlight/magula.css +17 -67
  76. data/public/css/highlight/mono-blue.css +22 -31
  77. data/public/css/highlight/monokai-sublime.css +83 -0
  78. data/public/css/highlight/monokai.css +19 -75
  79. data/public/css/highlight/monokai_sublime.css +20 -91
  80. data/public/css/highlight/obsidian.css +25 -89
  81. data/public/css/highlight/paraiso-dark.css +72 -0
  82. data/public/css/highlight/paraiso-light.css +72 -0
  83. data/public/css/highlight/paraiso.dark.css +23 -47
  84. data/public/css/highlight/paraiso.light.css +23 -47
  85. data/public/css/highlight/pojoaque.css +28 -51
  86. data/public/css/highlight/qtcreator_dark.css +83 -0
  87. data/public/css/highlight/qtcreator_light.css +83 -0
  88. data/public/css/highlight/railscasts.css +32 -110
  89. data/public/css/highlight/rainbow.css +33 -55
  90. data/public/css/highlight/school-book.css +72 -0
  91. data/public/css/highlight/school-book.png +0 -0
  92. data/public/css/highlight/school_book.css +24 -63
  93. data/public/css/highlight/solarized-dark.css +84 -0
  94. data/public/css/highlight/solarized-light.css +84 -0
  95. data/public/css/highlight/solarized_dark.css +29 -52
  96. data/public/css/highlight/solarized_light.css +29 -52
  97. data/public/css/highlight/sunburst.css +28 -87
  98. data/public/css/highlight/tomorrow-night-blue.css +24 -45
  99. data/public/css/highlight/tomorrow-night-bright.css +24 -45
  100. data/public/css/highlight/tomorrow-night-eighties.css +24 -45
  101. data/public/css/highlight/tomorrow-night.css +24 -45
  102. data/public/css/highlight/tomorrow.css +24 -45
  103. data/public/css/highlight/vs.css +32 -56
  104. data/public/css/highlight/xcode.css +28 -89
  105. data/public/css/highlight/zenburn.css +26 -64
  106. data/public/css/presenter.css +78 -157
  107. data/public/css/showoff.css +368 -398
  108. data/public/js/highlight.pack.js +6423 -1791
  109. data/public/js/jquery.cycle.all.js +0 -29
  110. data/public/js/presenter.js +26 -67
  111. data/public/js/showoff.js +175 -152
  112. data/views/header.erb +0 -4
  113. data/views/header_mini.erb +0 -2
  114. data/views/index.erb +58 -48
  115. data/views/onepage.erb +4 -4
  116. data/views/presenter.erb +17 -15
  117. metadata +59 -45
  118. data/public/css/fast.png +0 -0
  119. data/public/css/fg.menu.css +0 -114
  120. data/public/css/grippy-close.png +0 -0
  121. data/public/css/grippy.png +0 -0
  122. data/public/css/new_window-a.png +0 -0
  123. data/public/css/new_window-b.png +0 -0
  124. data/public/css/new_window-c.png +0 -0
  125. data/public/css/popdown.png +0 -0
  126. data/public/css/popout.png +0 -0
  127. data/public/css/slow.png +0 -0
  128. data/public/css/spinner.gif +0 -0
  129. data/public/css/theme/images/ui-bg_diagonals-small_100_f0efea_40x40.png +0 -0
  130. data/public/css/theme/images/ui-bg_flat_35_f0f0f0_40x100.png +0 -0
  131. data/public/css/theme/images/ui-bg_glass_55_fcf0ba_1x400.png +0 -0
  132. data/public/css/theme/images/ui-bg_glow-ball_25_2e2e28_600x600.png +0 -0
  133. data/public/css/theme/images/ui-bg_highlight-soft_100_f0efea_1x100.png +0 -0
  134. data/public/css/theme/images/ui-bg_highlight-soft_25_327E04_1x100.png +0 -0
  135. data/public/css/theme/images/ui-bg_highlight-soft_25_5A9D1A_1x100.png +0 -0
  136. data/public/css/theme/images/ui-bg_highlight-soft_95_ffedad_1x100.png +0 -0
  137. data/public/css/theme/images/ui-bg_inset-soft_22_3b3b35_1x100.png +0 -0
  138. data/public/css/theme/images/ui-icons_808080_256x240.png +0 -0
  139. data/public/css/theme/images/ui-icons_8DC262_256x240.png +0 -0
  140. data/public/css/theme/images/ui-icons_cd0a0a_256x240.png +0 -0
  141. data/public/css/theme/images/ui-icons_e7e6e4_256x240.png +0 -0
  142. data/public/css/theme/images/ui-icons_eeeeee_256x240.png +0 -0
  143. data/public/css/theme/images/ui-icons_ffffff_256x240.png +0 -0
  144. data/public/css/theme/ui.accordion.css +0 -9
  145. data/public/css/theme/ui.all.css +0 -2
  146. data/public/css/theme/ui.base.css +0 -9
  147. data/public/css/theme/ui.core.css +0 -37
  148. data/public/css/theme/ui.datepicker.css +0 -62
  149. data/public/css/theme/ui.dialog.css +0 -13
  150. data/public/css/theme/ui.progressbar.css +0 -4
  151. data/public/css/theme/ui.resizable.css +0 -13
  152. data/public/css/theme/ui.slider.css +0 -17
  153. data/public/css/theme/ui.tabs.css +0 -9
  154. data/public/css/theme/ui.theme.css +0 -245
  155. data/public/js/fg.menu.js +0 -645
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bf3f11c2a36f484d567097e7312545152e758920
4
- data.tar.gz: 447d937852f07103ef295e73bd154c450c17c3b3
3
+ metadata.gz: 172a00f574e54f000a40fad51bfeb2136ca176d0
4
+ data.tar.gz: f0702e207b967d9a6328de5a4b47a627553b45db
5
5
  SHA512:
6
- metadata.gz: aa297eaa454207bfcf81ccf32034a4843a5c49c5c056a18efad46277e9a99eac105f0c545dea0089d28e1d2c9c0a33e6fbdba348ee2698f0c69e84d6eabf6880
7
- data.tar.gz: dbeadddd37207e0cd5433e3726ee2e82aa0ca37398e03c828231c139ced71900fd6fb3533f1125b8597f9b55969dfa5ca3b15142bd8e0b0bf2a3005c5471faaa
6
+ metadata.gz: 6fab38a39045cd59cf80ee4acc9d29980d7d2f7693eb471207fdae0a5547ee82481152bd9522e658b33a23018f4e4382efb67b054878b2b89bcf075dec87d554
7
+ data.tar.gz: 14f92c4fc37add9e2f8eedacbc2c04b474acf71ddc3acc4526b11f53be1e469e94c1d3eee936e6cf2f23b85ab825935dae5c9d14efb8794057d5d82d299aa6f3
@@ -248,6 +248,15 @@ command [:static] do |c|
248
248
  end
249
249
  end
250
250
 
251
+ desc 'Generate PDF version of presentation'
252
+ arg_name 'name'
253
+ long_desc 'Creates a PDF version of the presentation as {name}.pdf'
254
+ command [:pdf] do |c|
255
+ c.action do |global_options,options,args|
256
+ ShowOff.do_static(['pdf'].concat args)
257
+ end
258
+ end
259
+
251
260
  pre do |global,command,options,args|
252
261
  # Pre logic here
253
262
  # Return true to proceed; false to abourt and not call the
@@ -72,7 +72,7 @@ class ShowOff < Sinatra::Application
72
72
  @root_path = "."
73
73
 
74
74
  # Load up the default keymap, then merge in any customizations
75
- keymapfile = File.expand_path(File.join('~', '.showoff', 'keymap.json'))
75
+ keymapfile = File.expand_path(File.join('~', '.showoff', 'keymap.json')) rescue nil
76
76
  @keymap = Keymap.default
77
77
  @keymap.merge! JSON.parse(File.read(keymapfile)) rescue {}
78
78
 
@@ -402,7 +402,7 @@ class ShowOff < Sinatra::Application
402
402
  end
403
403
 
404
404
  # scan for pagebreak tags. Should really only be used for handout notes or supplemental materials
405
- result.gsub!("~~~PAGEBREAK~~~", '<div class="break">continued...</div>')
405
+ result.gsub!("~~~PAGEBREAK~~~", '<div class="pagebreak">continued...</div>')
406
406
 
407
407
  # replace with form rendering placeholder
408
408
  result.gsub!(/~~~FORM:([^~]*)~~~/, '<div class="form wrapper" title="\1"></div>')
@@ -502,9 +502,19 @@ class ShowOff < Sinatra::Application
502
502
  content
503
503
  end
504
504
 
505
- # find any lines that start with a <p>.(something) and turn them into <p class="something">
506
- def update_p_classes(markdown)
507
- markdown.gsub(/<p>\.(.*?) /, '<p class="\1">')
505
+ # Find any lines that start with a <p>.(something), remove the ones tagged with
506
+ # .break and .comment, then turn the remainder into <p class="something">
507
+ # The perlism line noise is splitting multiple classes (.class1.class2) on the period.
508
+ #
509
+ # TODO: We really need to update this to use the DOM instead of text parsing :/
510
+ #
511
+ def update_p_classes(content)
512
+ # comment & break
513
+ content.gsub!(/<p>\.(?:break|comment)( .*)?<\/p>/, '')
514
+ # paragraph classes
515
+ content.gsub!(/<p>\.(.*?) /) { "<p class=\"#{$1.gsub('.', ' ')}\">" }
516
+ # image classes
517
+ content.gsub(/<img src="(.*)" alt="(\.\S*)\s*(.*)">/) { "<img src=\"#{$1}\" class=\"#{$2.gsub('.', ' ')}\" alt=\"#{$3}\">" }
508
518
  end
509
519
 
510
520
  # replace custom markup with html forms
@@ -966,13 +976,6 @@ class ShowOff < Sinatra::Application
966
976
  content
967
977
  end
968
978
 
969
- def onepage(static=false)
970
- @slides = get_slides_html(:static=>static, :toc=>true)
971
- @favicon = settings.showoff_config['favicon']
972
-
973
- erb :onepage
974
- end
975
-
976
979
  def print(static=false)
977
980
  @slides = get_slides_html(:static=>static, :toc=>true, :print=>true)
978
981
  @favicon = settings.showoff_config['favicon']
@@ -1021,12 +1024,11 @@ class ShowOff < Sinatra::Application
1021
1024
  erb :stats
1022
1025
  end
1023
1026
 
1024
- def pdf(static=true)
1025
- @slides = get_slides_html(:static=>static, :pdf=>true)
1027
+ def pdf(name)
1028
+ @slides = get_slides_html(:static=>true, :toc=>true, :print=>true)
1026
1029
  @inline = true
1027
1030
 
1028
1031
  html = erb :onepage
1029
- # TODO make a random filename
1030
1032
 
1031
1033
  # Process inline css and js for included images
1032
1034
  # The css uses relative paths for images and we prepend the file url
@@ -1034,14 +1036,17 @@ class ShowOff < Sinatra::Application
1034
1036
  "url(file://#{settings.pres_dir}/#{$1})"
1035
1037
  end
1036
1038
 
1037
- # Todo fix javascript path
1039
+ # remove the weird /files component, since that doesn't exist on the filesystem
1040
+ html.gsub!(/<img src=".\/file\/([^"]*)/) do |s|
1041
+ "<img src=\".\/#{$1}"
1042
+ end
1038
1043
 
1039
1044
  # PDFKit.new takes the HTML and any options for wkhtmltopdf
1040
1045
  # run `wkhtmltopdf --extended-help` for a full list of options
1041
1046
  kit = PDFKit.new(html, ShowOffUtils.showoff_pdf_options(settings.pres_dir))
1042
1047
 
1043
1048
  # Save the PDF to a file
1044
- file = kit.to_file('/tmp/preso.pdf')
1049
+ kit.to_file(name)
1045
1050
  end
1046
1051
 
1047
1052
  end
@@ -1060,14 +1065,18 @@ class ShowOff < Sinatra::Application
1060
1065
  path = showoff.instance_variable_get(:@root_path)
1061
1066
  logger = showoff.instance_variable_get(:@logger)
1062
1067
 
1063
- if what == 'supplemental'
1068
+ case what
1069
+ when 'supplemental'
1064
1070
  data = showoff.send(what, opt, true)
1071
+ when 'pdf'
1072
+ opt ||= "#{name}.pdf"
1073
+ data = showoff.send(what, opt)
1065
1074
  else
1066
1075
  data = showoff.send(what, true)
1067
1076
  end
1068
1077
 
1069
1078
  if data.is_a?(File)
1070
- FileUtils.cp(data.path, "#{name}.pdf")
1079
+ logger.warn "Generated PDF as #{opt}"
1071
1080
  else
1072
1081
  out = File.expand_path("#{path}/static")
1073
1082
  # First make a directory
@@ -1,3 +1,3 @@
1
1
  # No namespace here since ShowOff is a class and I'd have to inherit from
2
2
  # Sinatra::Application (which we don't want to load here)
3
- SHOWOFF_VERSION = '0.11.2'
3
+ SHOWOFF_VERSION = '0.12.0'
@@ -19,33 +19,29 @@
19
19
  .hljs {
20
20
  display: block;
21
21
  overflow-x: auto;
22
- padding: .5em;
22
+ padding: 0.5em;
23
23
  background: #333;
24
24
  color: white;
25
- -webkit-text-size-adjust: none;
26
25
  }
27
26
 
28
- .asciidoc .hljs-title,
29
- .hljs-label,
30
- .hljs-tag .hljs-title,
31
- .hljs-prompt,
32
- .http .hljs-request {
27
+ .hljs-name,
28
+ .hljs-strong {
33
29
  font-weight: bold;
34
30
  }
35
31
 
36
- .hljs-change,
37
- .hljs-code {
32
+ .hljs-code,
33
+ .hljs-emphasis {
38
34
  font-style: italic;
39
35
  }
40
36
 
41
- .hljs-tag,
42
- .ini .hljs-title {
37
+ .hljs-tag {
43
38
  color: #62c8f3;
44
39
  }
45
40
 
46
- .hljs-id,
47
- .hljs-cbracket,
48
- .hljs-tag .hljs-value {
41
+ .hljs-variable,
42
+ .hljs-template-variable,
43
+ .hljs-selector-id,
44
+ .hljs-selector-class {
49
45
  color: #ade5fc;
50
46
  }
51
47
 
@@ -55,63 +51,39 @@
55
51
  }
56
52
 
57
53
  .hljs-type,
58
- .hljs-variable,
59
- .hljs-name,
60
- .actionscript .hljs-title,
61
- .aspectj .hljs-annotation,
62
- .aspectj .hljs-title,
54
+ .hljs-title,
55
+ .hljs-section,
63
56
  .hljs-attribute,
64
- .hljs-change,
65
- .hljs-blockquote,
66
- .hljs-built_in {
57
+ .hljs-quote,
58
+ .hljs-built_in,
59
+ .hljs-builtin-name {
67
60
  color: #ffa;
68
61
  }
69
62
 
70
63
  .hljs-number,
71
- .hljs-hexcolor,
72
- .hljs-link_label,
73
- .hljs-link_reference {
64
+ .hljs-symbol,
65
+ .hljs-bullet {
74
66
  color: #d36363;
75
67
  }
76
68
 
77
69
  .hljs-keyword,
78
- .hljs-literal,
79
- .hljs-constant,
80
- .css .hljs-tag,
81
- .hljs-typename,
82
- .hljs-winutils {
70
+ .hljs-selector-tag,
71
+ .hljs-literal {
83
72
  color: #fcc28c;
84
73
  }
85
74
 
86
75
  .hljs-comment,
87
- .hljs-cdata,
88
- .hljs-preprocessor,
89
- .hljs-annotation,
90
- .hljs-decorator,
91
- .hljs-doctype,
92
76
  .hljs-deletion,
93
- .hljs-shebang,
94
- .apache .hljs-sqbracket,
95
- .tex .hljs-formula,
96
- .hljs-header,
97
- .hljs-horizontal_rule,
98
77
  .hljs-code {
99
78
  color: #888;
100
79
  }
101
80
 
102
81
  .hljs-regexp,
103
- .hljs-attr_selector {
82
+ .hljs-link {
104
83
  color: #c6b4f0;
105
84
  }
106
85
 
107
- .hljs-important,
108
- .hljs-doctype,
109
- .hljs-pi,
110
- .hljs-chunk,
111
- .actionscript .hljs-type,
112
- .hljs-shebang,
113
- .hljs-pragma,
114
- .http .hljs-attribute {
86
+ .hljs-meta {
115
87
  color: #fc9b9b;
116
88
  }
117
89
 
@@ -125,8 +97,7 @@
125
97
  color: #333;
126
98
  }
127
99
 
128
- .hljs a,
129
- .hljs-tag .hljs-attribute {
100
+ .hljs a {
130
101
  color: inherit;
131
102
  }
132
103
 
@@ -9,45 +9,58 @@ Author: Pedro Oliveira <kanytu@gmail . com>
9
9
  display: block;
10
10
  overflow-x: auto;
11
11
  padding: 0.5em;
12
- -webkit-text-size-adjust: none;
13
12
  }
14
13
 
15
- .hljs-number {
14
+ .hljs-number,
15
+ .hljs-literal,
16
+ .hljs-symbol,
17
+ .hljs-bullet {
16
18
  color: #6897BB;
17
19
  }
18
20
 
19
21
  .hljs-keyword,
22
+ .hljs-selector-tag,
20
23
  .hljs-deletion {
21
24
  color: #cc7832;
22
25
  }
23
26
 
24
- .hljs-comment {
27
+ .hljs-variable,
28
+ .hljs-template-variable,
29
+ .hljs-link {
30
+ color: #629755;
31
+ }
32
+
33
+ .hljs-comment,
34
+ .hljs-quote {
25
35
  color: #808080;
26
36
  }
27
37
 
28
- .hljs-annotation {
38
+ .hljs-meta {
29
39
  color: #bbb529;
30
40
  }
31
41
 
32
42
  .hljs-string,
43
+ .hljs-attribute,
33
44
  .hljs-addition {
34
45
  color: #6A8759;
35
46
  }
36
47
 
37
- .hljs-function .hljs-title,
38
- .hljs-change {
48
+ .hljs-section,
49
+ .hljs-title,
50
+ .hljs-type {
39
51
  color: #ffc66d;
40
52
  }
41
53
 
42
- .hljs-tag .hljs-title,
43
- .hljs-doctype {
54
+ .hljs-name,
55
+ .hljs-selector-id,
56
+ .hljs-selector-class {
44
57
  color: #e8bf6a;
45
58
  }
46
59
 
47
- .hljs-tag .hljs-attribute {
48
- color: #bababa;
60
+ .hljs-emphasis {
61
+ font-style: italic;
49
62
  }
50
63
 
51
- .hljs-tag .hljs-value {
52
- color: #a5c261;
64
+ .hljs-strong {
65
+ font-weight: bold;
53
66
  }
@@ -0,0 +1,88 @@
1
+ /*
2
+
3
+ Arduino® Light Theme - Stefania Mellai <s.mellai@arduino.cc>
4
+
5
+ */
6
+
7
+ .hljs {
8
+ display: block;
9
+ overflow-x: auto;
10
+ padding: 0.5em;
11
+ background: #FFFFFF;
12
+ }
13
+
14
+ .hljs,
15
+ .hljs-subst {
16
+ color: #434f54;
17
+ }
18
+
19
+ .hljs-keyword,
20
+ .hljs-attribute,
21
+ .hljs-selector-tag,
22
+ .hljs-doctag,
23
+ .hljs-name {
24
+ color: #00979D;
25
+ }
26
+
27
+ .hljs-built_in,
28
+ .hljs-literal,
29
+ .hljs-bullet,
30
+ .hljs-code,
31
+ .hljs-addition {
32
+ color: #D35400;
33
+ }
34
+
35
+ .hljs-regexp,
36
+ .hljs-symbol,
37
+ .hljs-variable,
38
+ .hljs-template-variable,
39
+ .hljs-link,
40
+ .hljs-selector-attr,
41
+ .hljs-selector-pseudo {
42
+ color: #00979D;
43
+ }
44
+
45
+ .hljs-type,
46
+ .hljs-string,
47
+ .hljs-selector-id,
48
+ .hljs-selector-class,
49
+ .hljs-quote,
50
+ .hljs-template-tag,
51
+ .hljs-deletion {
52
+ color: #005C5F;
53
+ }
54
+
55
+ .hljs-title,
56
+ .hljs-section {
57
+ color: #880000;
58
+ font-weight: bold;
59
+ }
60
+
61
+ .hljs-comment {
62
+ color: rgba(149,165,166,.8);
63
+ }
64
+
65
+ .hljs-meta-keyword {
66
+ color: #728E00;
67
+ }
68
+
69
+ .hljs-meta {
70
+ color: #728E00;
71
+ color: #434f54;
72
+ }
73
+
74
+ .hljs-emphasis {
75
+ font-style: italic;
76
+ }
77
+
78
+ .hljs-strong {
79
+ font-weight: bold;
80
+ }
81
+
82
+ .hljs-function {
83
+ color: #728E00;
84
+ }
85
+
86
+ .hljs-number {
87
+ color: #8A7B52;
88
+ }
@@ -8,40 +8,27 @@ Author: pumbur <pumbur@pumbur.net>
8
8
  overflow-x: auto;
9
9
  padding: 0.5em;
10
10
  background: #222;
11
- -webkit-text-size-adjust: none;
12
11
  }
13
12
 
14
- .profile .hljs-header *,
15
- .ini .hljs-title,
16
- .nginx .hljs-title {
13
+ .hljs,
14
+ .hljs-subst {
15
+ color: #aaa;
16
+ }
17
+
18
+ .hljs-section {
17
19
  color: #fff;
18
20
  }
19
21
 
20
22
  .hljs-comment,
21
- .hljs-preprocessor,
22
- .hljs-preprocessor .hljs-title,
23
- .hljs-pragma,
24
- .hljs-shebang,
25
- .profile .hljs-summary,
26
- .diff,
27
- .hljs-pi,
28
- .hljs-doctype,
29
- .hljs-tag,
30
- .css .hljs-rule,
31
- .tex .hljs-special {
23
+ .hljs-quote,
24
+ .hljs-meta {
32
25
  color: #444;
33
26
  }
34
27
 
35
28
  .hljs-string,
36
29
  .hljs-symbol,
37
- .diff .hljs-change,
38
- .hljs-regexp,
39
- .xml .hljs-attribute,
40
- .smalltalk .hljs-char,
41
- .xml .hljs-value,
42
- .ini .hljs-value,
43
- .clojure .hljs-attribute,
44
- .coffeescript .hljs-attribute {
30
+ .hljs-bullet,
31
+ .hljs-regexp {
45
32
  color: #ffcc33;
46
33
  }
47
34
 
@@ -51,88 +38,36 @@ Author: pumbur <pumbur@pumbur.net>
51
38
  }
52
39
 
53
40
  .hljs-built_in,
41
+ .hljs-builtin-name,
54
42
  .hljs-literal,
55
43
  .hljs-type,
56
- .hljs-typename,
57
- .go .hljs-constant,
58
- .ini .hljs-keyword,
59
- .lua .hljs-title,
60
- .perl .hljs-variable,
61
- .php .hljs-variable,
62
- .mel .hljs-variable,
63
- .django .hljs-variable,
64
- .css .funtion,
65
- .smalltalk .method,
66
- .hljs-hexcolor,
67
- .hljs-important,
68
- .hljs-flow,
69
- .hljs-inheritance,
70
- .hljs-name,
71
- .parser3 .hljs-variable {
44
+ .hljs-template-variable,
45
+ .hljs-attribute,
46
+ .hljs-link {
72
47
  color: #32aaee;
73
48
  }
74
49
 
75
50
  .hljs-keyword,
76
- .hljs-tag .hljs-title,
77
- .css .hljs-tag,
78
- .css .hljs-class,
79
- .css .hljs-id,
80
- .css .hljs-pseudo,
81
- .css .hljs-attr_selector,
82
- .hljs-winutils,
83
- .tex .hljs-command,
84
- .hljs-request,
85
- .hljs-status {
51
+ .hljs-selector-tag,
52
+ .hljs-name,
53
+ .hljs-selector-id,
54
+ .hljs-selector-class {
86
55
  color: #6644aa;
87
56
  }
88
57
 
89
58
  .hljs-title,
90
- .ruby .hljs-constant,
91
- .vala .hljs-constant,
92
- .hljs-parent,
59
+ .hljs-variable,
93
60
  .hljs-deletion,
94
- .hljs-template_tag,
95
- .css .hljs-keyword,
96
- .objectivec .hljs-class .hljs-id,
97
- .smalltalk .hljs-class,
98
- .lisp .hljs-keyword,
99
- .apache .hljs-tag,
100
- .nginx .hljs-variable,
101
- .hljs-envvar,
102
- .bash .hljs-variable,
103
- .go .hljs-built_in,
104
- .vbscript .hljs-built_in,
105
- .lua .hljs-built_in,
106
- .rsl .hljs-built_in,
107
- .tail,
108
- .avrasm .hljs-label,
109
- .tex .hljs-formula,
110
- .tex .hljs-formula * {
61
+ .hljs-template-tag {
111
62
  color: #bb1166;
112
63
  }
113
64
 
65
+ .hljs-section,
114
66
  .hljs-doctag,
115
- .profile .hljs-header,
116
- .ini .hljs-title,
117
- .apache .hljs-tag,
118
- .parser3 .hljs-title {
67
+ .hljs-strong {
119
68
  font-weight: bold;
120
69
  }
121
70
 
122
- .coffeescript .javascript,
123
- .javascript .xml,
124
- .tex .hljs-formula,
125
- .xml .javascript,
126
- .xml .vbscript,
127
- .xml .css,
128
- .xml .hljs-cdata {
129
- opacity: 0.6;
130
- }
131
-
132
- .hljs,
133
- .hljs-subst,
134
- .diff .hljs-chunk,
135
- .css .hljs-value,
136
- .css .hljs-attribute {
137
- color: #aaa;
71
+ .hljs-emphasis {
72
+ font-style: italic;
138
73
  }