Sha256: cb3fab3176914fe5151cba4b72cd8b09ba77c437c97e6b5040b03e3c29a2a706

Contents?: true

Size: 1.76 KB

Versions: 3

Compression:

Stored size: 1.76 KB

Contents

- level = "#{@id}"[-1,1]
- blockminwidth = (attr? :min_width) ? (attr :min_width) : '30px'
- blockminheight = (attr? :min_height) ? (attr :min_height) : '30px'
- blockheight = (attr? :height) ? (attr :height) : 'auto'
- blockwidth = (attr? :width) ? (attr :width) : 'auto'
- blockleft = (attr? :left) ? (attr :left) : 'auto'
- blocktop = (attr? :top) ? (attr :top) : 'auto'
- blockbottom = (attr? :bottom) ? (attr :bottom) : 'auto'
- blockfontsize = (attr? :font_size) ? (attr :font_size) : '28px'
//- level_tag = "h#{level}"
- if "#{@id}".start_with?("cover")
  - if level == "1"
    // .sl-block data-block-type="text" style="width: 832px; left: 80px; top: 150px; height: auto;" class=role
    .sl-block data-block-type="text" style=[("min-width: #{blockminwidth}"),("min-height: #{blockminheight}"), ("width: #{blockwidth}"),("height: #{blockheight}"),("left: #{blockleft}"),("top: #{blocktop}"),("bottom: #{blockbottom}"),("font-size: #{blockfontsize}")].compact.join('; ') class=role
      .sl-block-content class=role
        h1 =content
  - else
    .sl-block data-block-type="text" style=[("min-width: #{blockminwidth}"),("min-height: #{blockminheight}"), ("width: #{blockwidth}"),("height: #{blockheight}"),("left: #{blockleft}"),("top: #{blocktop}"),("bottom: #{blockbottom}"),("font-size: #{blockfontsize}")].compact.join('; ') class=role
      .sl-block-content class=role
        h2 =content
- else
  - if "#{@id}".start_with?("block")
    .sl-block data-block-type="text" style=[("min-width: #{blockwidth}"),("min-height: #{blockheight}"),("left: #{blockleft}"),("top: #{blocktop}"),("bottom: #{blockbottom}")].compact.join('; ') class=role
      p style="font-size: #{blockfontsize};" =content
  - else
    .paragraph id=@id class=role
    - if title?
      .title=title
    p=content

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hyla-1.0.9 lib/resources/backends/slim/revealjs-redhat/block_paragraph.html.slim
hyla-1.0.9.pre.3 lib/resources/backends/slim/revealjs-redhat/block_paragraph.html.slim
hyla-1.0.9.pre.2 lib/resources/backends/slim/revealjs-redhat/block_paragraph.html.slim