njk-tool 0.0.19 → 0.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13477,7 +13477,7 @@ padding: 8px 30px;
13477
13477
  .njk-title-h1 {
13478
13478
  --align: left;
13479
13479
  --text-color: #606266;
13480
- --margin: 36px 0 20px;
13480
+ --margin: 40px 0 20px;
13481
13481
  position: relative;
13482
13482
  font-size: 28px;
13483
13483
  padding: 0 0 4.8px;
@@ -13488,7 +13488,7 @@ text-align: var(--align);
13488
13488
  .njk-title-h2 {
13489
13489
  --align: left;
13490
13490
  --text-color: #606266;
13491
- --margin: 24px 0 20px;
13491
+ --margin: 40px 0 20px;
13492
13492
  position: relative;
13493
13493
  font-size: 26.4px;
13494
13494
  padding: 0 0 4.8px;
@@ -13499,7 +13499,7 @@ text-align: var(--align);
13499
13499
  .njk-title-h3{
13500
13500
  --align: left;
13501
13501
  --text-color: #606266;
13502
- --margin: 18px 0 20px;
13502
+ --margin: 40px 0 20px;
13503
13503
  position: relative;
13504
13504
  padding: 0 0 4.8px;
13505
13505
  margin: var(--margin);
@@ -13828,7 +13828,6 @@ padding: 6px 16px;
13828
13828
  {% macro use_title(ctx) %}
13829
13829
  {% if ctx.type == "h1" %}
13830
13830
  {{ title_h1(ctx) }}
13831
- {{ title_h1(ctx) }}
13832
13831
  {% elif ctx.type == "h2" %}
13833
13832
  {{ title_h2(ctx) }}
13834
13833
  {% elif ctx.type == "h3" %}
@@ -14020,6 +14019,9 @@ display: block;
14020
14019
  {% endmacro %}
14021
14020
  <!-- /ContentTitle.njk -->
14022
14021
  <!-- Component.njk -->
14022
+ {% macro set_width(ctx) %}
14023
+ <div style="width:{{ ctx.width }};display:block;height:1px;background: transparent;;"></div>
14024
+ {% endmacro %}
14023
14025
  {% macro pick_component(ctx) %}
14024
14026
  {% if ctx.tag == "head" %}
14025
14027
  {{ use_head(ctx) }}
@@ -14043,6 +14045,8 @@ display: block;
14043
14045
  {{ use_divider(ctx) }}
14044
14046
  {% elif ctx.tag == "tag" %}
14045
14047
  {{ use_tag(ctx) }}
14048
+ {% elif ctx.tag == "width" %}
14049
+ {{ set_width(ctx) }}
14046
14050
  {% elif ctx.tag == "title_content" %}
14047
14051
  {{ use_content_title(ctx) }}
14048
14052
  {% else %}
@@ -14058,10 +14062,8 @@ display: block;
14058
14062
  {% endfor %}
14059
14063
  {% endif %}
14060
14064
  {% endmacro %}
14061
- <body style="margin: 0; padding: 0;overflow: auto;">
14062
- <div class="email-main-container" style="margin: 0 auto; padding: 0 3rem;;min-width:1000px;">
14065
+ <body style="margin: 0; padding: 0;">
14063
14066
  {{ use_component(ctx) }}
14064
- </div>
14065
14067
  </body>
14066
14068
  <!-- /Component.njk -->
14067
14069
  <!-- Text.njk -->