njk-tool 0.0.19 → 0.0.21

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);
@@ -13585,6 +13585,7 @@ font-size: 14px;
13585
13585
  color: #444444;
13586
13586
  }
13587
13587
  .thead-light th {
13588
+ white-space: nowrap;
13588
13589
  background-color: #f5f7fa;
13589
13590
  color: #333333;
13590
13591
  font-weight: 600;
@@ -13828,7 +13829,6 @@ padding: 6px 16px;
13828
13829
  {% macro use_title(ctx) %}
13829
13830
  {% if ctx.type == "h1" %}
13830
13831
  {{ title_h1(ctx) }}
13831
- {{ title_h1(ctx) }}
13832
13832
  {% elif ctx.type == "h2" %}
13833
13833
  {{ title_h2(ctx) }}
13834
13834
  {% elif ctx.type == "h3" %}
@@ -14020,6 +14020,9 @@ display: block;
14020
14020
  {% endmacro %}
14021
14021
  <!-- /ContentTitle.njk -->
14022
14022
  <!-- Component.njk -->
14023
+ {% macro set_width(ctx) %}
14024
+ <div style="width:{{ ctx.width }};display:block;height:1px;background: transparent;;"></div>
14025
+ {% endmacro %}
14023
14026
  {% macro pick_component(ctx) %}
14024
14027
  {% if ctx.tag == "head" %}
14025
14028
  {{ use_head(ctx) }}
@@ -14043,6 +14046,8 @@ display: block;
14043
14046
  {{ use_divider(ctx) }}
14044
14047
  {% elif ctx.tag == "tag" %}
14045
14048
  {{ use_tag(ctx) }}
14049
+ {% elif ctx.tag == "width" %}
14050
+ {{ set_width(ctx) }}
14046
14051
  {% elif ctx.tag == "title_content" %}
14047
14052
  {{ use_content_title(ctx) }}
14048
14053
  {% else %}
@@ -14058,10 +14063,8 @@ display: block;
14058
14063
  {% endfor %}
14059
14064
  {% endif %}
14060
14065
  {% 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;">
14066
+ <body style="margin: 0; padding: 0;">
14063
14067
  {{ use_component(ctx) }}
14064
- </div>
14065
14068
  </body>
14066
14069
  <!-- /Component.njk -->
14067
14070
  <!-- Text.njk -->