Class: Metanorma::Html::IccRenderer

Inherits:
IsoRenderer show all
Defined in:
lib/metanorma/html/icc_renderer.rb

Overview

Renders ICC (International Color Consortium) taste documents to HTML. ICC brand: color management — dark charcoal + steel blue + warm gray

Constant Summary

Constants inherited from BaseRenderer

BaseRenderer::CLASS_MAP, BaseRenderer::LOGO_DIR, BaseRenderer::METANORMA_LOGO, BaseRenderer::TEMPLATE_CACHE

Instance Attribute Summary

Attributes inherited from BaseRenderer

#footnote_collector, #index_term_collector

Instance Method Summary collapse

Methods inherited from IsoRenderer

doc_types, #extract_display_title, #extract_doctype, #extract_stage, #formatted_doc_id, registers_doc_type, #render, #render_inline_element, #render_term_origin

Methods inherited from StandardRenderer

#render

Methods inherited from BaseRenderer

#assemble_document, #build_footer, #build_header, #build_publisher_logos, #build_reader_controls, #build_scripts, #build_styles, #build_toc_html, #check_presentation_markers, #detect_publishers, #extract_plain_text, #extract_primary_doc_id, #flavor_css_module, #flavor_font_url, #flavor_js_module, #generate_full_document, #header_title_text, #html_title, #initialize, #language, #load_logo_svg, #register_figure_entry, #register_table_entry, #register_toc_entry, #render, #render_liquid, #to_html, #toc_entries, #validate_presentation_xml!

Constructor Details

This class inherits a constructor from Metanorma::Html::BaseRenderer

Instance Method Details

#flavor_publisher_nameObject



12
13
14
# File 'lib/metanorma/html/icc_renderer.rb', line 12

def flavor_publisher_name
  "ICC"
end

#flavor_publishers(_doc_id) ⇒ Object



8
9
10
# File 'lib/metanorma/html/icc_renderer.rb', line 8

def flavor_publishers(_doc_id)
  ["ICC"]
end

#publisher_logo_mapObject



16
17
18
# File 'lib/metanorma/html/icc_renderer.rb', line 16

def publisher_logo_map
  {}
end

#themeObject



20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'lib/metanorma/html/icc_renderer.rb', line 20

def theme
  @theme ||= Theme.new.tap do |t|
    t.primary        = "#3a3f47"
    t.accent         = "#4a90c4"
    t.accent_deep    = "#3a78a8"
    t.gradient       = "linear-gradient(135deg, #2a2e34 0%, #3a3f47 50%, #4a5464 100%)"
    t.primary_light  = "#eef0f2"
    t.accent_light   = "#e4eef6"
    t.warm           = "#c4956a"
    t.warm_light     = "#faf3ec"
    t.header_background = "linear-gradient(135deg, #2a2e34 0%, #3a3f47 40%, #4a5464 100%)"
    t.cover_background  = "linear-gradient(175deg, #1e2126 0%, #2a2e34 25%, #3a3f47 55%, #4a5464 85%, #4a90c4 100%)"
    t.cover_before_bg   = "background: radial-gradient(ellipse at 30% 20%, rgba(74,144,196,0.15) 0%, transparent 50%), radial-gradient(ellipse at 70% 80%, rgba(196,149,106,0.1) 0%, transparent 40%)"
    t.cover_after_bg    = "height: 3px; background: linear-gradient(90deg, transparent, #4a90c4, #c4956a, transparent)"
    t.progress_bar_color = "#4a90c4"
    t.note_border     = "#4a90c4"
    t.note_bg         = "#e4eef6"
    t.note_color      = "#4a90c4"
    t.example_border  = "#3a3f47"
    t.example_bg      = "#eef0f2"
    t.example_color   = "#3a3f47"
    t.admonition_border = "#c4956a"
    t.admonition_color  = "#c4956a"
    t.footer_border_color = "#4a90c4"
    t.cover_separator_color = "rgba(74,144,196,0.25)"
  end
end