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.
@@ -13480,7 +13480,7 @@ padding: 8px 30px;
13480
13480
  .njk-title-h1 {
13481
13481
  --align: left;
13482
13482
  --text-color: #606266;
13483
- --margin: 36px 0 20px;
13483
+ --margin: 40px 0 20px;
13484
13484
  position: relative;
13485
13485
  font-size: 28px;
13486
13486
  padding: 0 0 4.8px;
@@ -13491,7 +13491,7 @@ text-align: var(--align);
13491
13491
  .njk-title-h2 {
13492
13492
  --align: left;
13493
13493
  --text-color: #606266;
13494
- --margin: 24px 0 20px;
13494
+ --margin: 40px 0 20px;
13495
13495
  position: relative;
13496
13496
  font-size: 26.4px;
13497
13497
  padding: 0 0 4.8px;
@@ -13502,7 +13502,7 @@ text-align: var(--align);
13502
13502
  .njk-title-h3{
13503
13503
  --align: left;
13504
13504
  --text-color: #606266;
13505
- --margin: 18px 0 20px;
13505
+ --margin: 40px 0 20px;
13506
13506
  position: relative;
13507
13507
  padding: 0 0 4.8px;
13508
13508
  margin: var(--margin);
@@ -13588,6 +13588,7 @@ font-size: 14px;
13588
13588
  color: #444444;
13589
13589
  }
13590
13590
  .thead-light th {
13591
+ white-space: nowrap;
13591
13592
  background-color: #f5f7fa;
13592
13593
  color: #333333;
13593
13594
  font-weight: 600;
@@ -13831,7 +13832,6 @@ padding: 6px 16px;
13831
13832
  {% macro use_title(ctx) %}
13832
13833
  {% if ctx.type == "h1" %}
13833
13834
  {{ title_h1(ctx) }}
13834
- {{ title_h1(ctx) }}
13835
13835
  {% elif ctx.type == "h2" %}
13836
13836
  {{ title_h2(ctx) }}
13837
13837
  {% elif ctx.type == "h3" %}
@@ -14023,6 +14023,9 @@ display: block;
14023
14023
  {% endmacro %}
14024
14024
  <!-- /ContentTitle.njk -->
14025
14025
  <!-- Component.njk -->
14026
+ {% macro set_width(ctx) %}
14027
+ <div style="width:{{ ctx.width }};display:block;height:1px;background: transparent;;"></div>
14028
+ {% endmacro %}
14026
14029
  {% macro pick_component(ctx) %}
14027
14030
  {% if ctx.tag == "head" %}
14028
14031
  {{ use_head(ctx) }}
@@ -14046,6 +14049,8 @@ display: block;
14046
14049
  {{ use_divider(ctx) }}
14047
14050
  {% elif ctx.tag == "tag" %}
14048
14051
  {{ use_tag(ctx) }}
14052
+ {% elif ctx.tag == "width" %}
14053
+ {{ set_width(ctx) }}
14049
14054
  {% elif ctx.tag == "title_content" %}
14050
14055
  {{ use_content_title(ctx) }}
14051
14056
  {% else %}
@@ -14061,10 +14066,8 @@ display: block;
14061
14066
  {% endfor %}
14062
14067
  {% endif %}
14063
14068
  {% endmacro %}
14064
- <body style="margin: 0; padding: 0;overflow: auto;">
14065
- <div class="email-main-container" style="margin: 0 auto; padding: 0 3rem;;min-width:1000px;">
14069
+ <body style="margin: 0; padding: 0;">
14066
14070
  {{ use_component(ctx) }}
14067
- </div>
14068
14071
  </body>
14069
14072
  <!-- /Component.njk -->
14070
14073
  <!-- Text.njk -->