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.
package/dist/bundle/app.min.cjs
CHANGED
|
@@ -13480,7 +13480,7 @@ padding: 8px 30px;
|
|
|
13480
13480
|
.njk-title-h1 {
|
|
13481
13481
|
--align: left;
|
|
13482
13482
|
--text-color: #606266;
|
|
13483
|
-
--margin:
|
|
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:
|
|
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:
|
|
13505
|
+
--margin: 40px 0 20px;
|
|
13506
13506
|
position: relative;
|
|
13507
13507
|
padding: 0 0 4.8px;
|
|
13508
13508
|
margin: var(--margin);
|
|
@@ -13831,7 +13831,6 @@ padding: 6px 16px;
|
|
|
13831
13831
|
{% macro use_title(ctx) %}
|
|
13832
13832
|
{% if ctx.type == "h1" %}
|
|
13833
13833
|
{{ title_h1(ctx) }}
|
|
13834
|
-
{{ title_h1(ctx) }}
|
|
13835
13834
|
{% elif ctx.type == "h2" %}
|
|
13836
13835
|
{{ title_h2(ctx) }}
|
|
13837
13836
|
{% elif ctx.type == "h3" %}
|
|
@@ -14023,6 +14022,9 @@ display: block;
|
|
|
14023
14022
|
{% endmacro %}
|
|
14024
14023
|
<!-- /ContentTitle.njk -->
|
|
14025
14024
|
<!-- Component.njk -->
|
|
14025
|
+
{% macro set_width(ctx) %}
|
|
14026
|
+
<div style="width:{{ ctx.width }};display:block;height:1px;background: transparent;;"></div>
|
|
14027
|
+
{% endmacro %}
|
|
14026
14028
|
{% macro pick_component(ctx) %}
|
|
14027
14029
|
{% if ctx.tag == "head" %}
|
|
14028
14030
|
{{ use_head(ctx) }}
|
|
@@ -14046,6 +14048,8 @@ display: block;
|
|
|
14046
14048
|
{{ use_divider(ctx) }}
|
|
14047
14049
|
{% elif ctx.tag == "tag" %}
|
|
14048
14050
|
{{ use_tag(ctx) }}
|
|
14051
|
+
{% elif ctx.tag == "width" %}
|
|
14052
|
+
{{ set_width(ctx) }}
|
|
14049
14053
|
{% elif ctx.tag == "title_content" %}
|
|
14050
14054
|
{{ use_content_title(ctx) }}
|
|
14051
14055
|
{% else %}
|
|
@@ -14061,10 +14065,8 @@ display: block;
|
|
|
14061
14065
|
{% endfor %}
|
|
14062
14066
|
{% endif %}
|
|
14063
14067
|
{% endmacro %}
|
|
14064
|
-
<body style="margin: 0; padding: 0;
|
|
14065
|
-
<div class="email-main-container" style="margin: 0 auto; padding: 0 3rem;;min-width:1000px;">
|
|
14068
|
+
<body style="margin: 0; padding: 0;">
|
|
14066
14069
|
{{ use_component(ctx) }}
|
|
14067
|
-
</div>
|
|
14068
14070
|
</body>
|
|
14069
14071
|
<!-- /Component.njk -->
|
|
14070
14072
|
<!-- Text.njk -->
|