8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0023dee commit 94ced62Copy full SHA for 94ced62
lib/coderay/encoders/html/css.rb
@@ -11,13 +11,12 @@ def style
11
@style ||= CodeRay::Styles[@style_name]
12
end
13
14
- def css
+ def stylesheet
15
@css ||= [
16
style::CSS_MAIN_STYLES,
17
style::TOKEN_COLORS.gsub(/^(?!$)/, '.CodeRay ')
18
].join("\n")
19
20
- alias stylesheet css
21
22
def get_style_for_css_classes css_classes
23
cl = styles[css_classes.first]
lib/coderay/encoders/html/output.rb
@@ -24,7 +24,7 @@ def extended o # :nodoc:
24
25
26
def make_stylesheet css, in_tag = false # :nodoc:
27
- sheet = css.css
+ sheet = css.stylesheet
28
sheet = <<-'CSS' if in_tag
29
<style type="text/css">
30
#{sheet}
0 commit comments