Class: Metanorma::Html::IecRenderer
- Inherits:
-
IsoRenderer
- Object
- BaseRenderer
- StandardRenderer
- IsoRenderer
- Metanorma::Html::IecRenderer
- Defined in:
- lib/metanorma/html/iec_renderer.rb
Overview
IEC brand: #0061a9 blue from logo
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
- #flavor_publisher_name ⇒ Object
- #flavor_publishers(_doc_id) ⇒ Object
- #publisher_logo_map ⇒ Object
- #theme ⇒ Object
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
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_name ⇒ Object
13 14 15 |
# File 'lib/metanorma/html/iec_renderer.rb', line 13 def flavor_publisher_name "IEC" end |
#flavor_publishers(_doc_id) ⇒ Object
9 10 11 |
# File 'lib/metanorma/html/iec_renderer.rb', line 9 def flavor_publishers(_doc_id) ["IEC"] end |
#publisher_logo_map ⇒ Object
17 18 19 |
# File 'lib/metanorma/html/iec_renderer.rb', line 17 def publisher_logo_map { "IEC" => "iec-logo.svg" } end |
#theme ⇒ Object
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 47 48 49 50 51 |
# File 'lib/metanorma/html/iec_renderer.rb', line 21 def theme @theme ||= Theme.new.tap do |t| t.font_body = '"Crimson Pro", "Georgia", "Times New Roman", serif' t.font_sans = '"IBM Plex Sans", "Helvetica Neue", Arial, sans-serif' t.font_mono = '"IBM Plex Mono", "Fira Code", monospace' t.font_url = "https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap" t.primary = "#004a83" t.accent = "#0061a9" t.accent_deep = "#004a83" t.gradient = "linear-gradient(135deg, #00305a 0%, #004a83 50%, #0061a9 100%)" t.primary_light = "#ebf3f9" t.accent_light = "#d9ecf7" t.warm = "#d4a017" t.warm_light = "#fdf6e8" t.header_background = "linear-gradient(135deg, #00305a 0%, #004a83 40%, #0061a9 100%)" t.cover_background = "linear-gradient(175deg, #001f3d 0%, #00305a 25%, #004a83 55%, #0061a9 85%, #3391c4 100%)" t.cover_before_bg = "background: radial-gradient(ellipse at 20% 10%, rgba(0,97,169,0.2) 0%, transparent 50%), radial-gradient(ellipse at 80% 90%, rgba(212,160,23,0.1) 0%, transparent 40%)" t.cover_after_bg = "height: 3px; background: linear-gradient(90deg, transparent, #0061a9, #d4a017, transparent)" t. = "#0061a9" t.note_border = "#0061a9" t.note_bg = "#d9ecf7" t.note_color = "#0061a9" t.example_border = "#004a83" t.example_bg = "#ebf3f9" t.example_color = "#004a83" t.admonition_border = "#d4a017" t.admonition_color = "#b8860b" t. = "#0061a9" t.cover_separator_color = "rgba(0,97,169,0.25)" end end |