njk-tool 0.0.21 → 0.0.23
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 +22 -24
- package/dist/bundle/app.min.cjs.map +1 -1
- package/dist/bundle/app.min.js +22 -24
- package/dist/bundle/app.min.js.map +1 -1
- package/package.json +1 -1
package/dist/bundle/app.min.cjs
CHANGED
|
@@ -13478,30 +13478,34 @@ font-size: var(--font-size);
|
|
|
13478
13478
|
padding: 8px 30px;
|
|
13479
13479
|
}
|
|
13480
13480
|
.njk-title-h1 {
|
|
13481
|
+
font-size: 26px;
|
|
13482
|
+
font-weight: bolder;
|
|
13481
13483
|
--align: left;
|
|
13482
13484
|
--text-color: #606266;
|
|
13483
13485
|
--margin: 40px 0 20px;
|
|
13484
13486
|
position: relative;
|
|
13485
|
-
font-size: 28px;
|
|
13486
13487
|
padding: 0 0 4.8px;
|
|
13487
13488
|
margin: var(--margin);
|
|
13488
13489
|
color: var(--text-color);
|
|
13489
13490
|
text-align: var(--align);
|
|
13490
13491
|
}
|
|
13491
13492
|
.njk-title-h2 {
|
|
13493
|
+
font-size: 24px;
|
|
13494
|
+
font-weight: bolder;
|
|
13492
13495
|
--align: left;
|
|
13493
13496
|
--text-color: #606266;
|
|
13494
13497
|
--margin: 40px 0 20px;
|
|
13495
13498
|
position: relative;
|
|
13496
|
-
font-size: 26.4px;
|
|
13497
13499
|
padding: 0 0 4.8px;
|
|
13498
13500
|
margin: var(--margin);
|
|
13499
13501
|
color: var(--text-color);
|
|
13500
13502
|
text-align: var(--align);
|
|
13501
13503
|
}
|
|
13502
13504
|
.njk-title-h3{
|
|
13505
|
+
font-size: 20px;
|
|
13503
13506
|
--align: left;
|
|
13504
13507
|
--text-color: #606266;
|
|
13508
|
+
font-weight: bolder;
|
|
13505
13509
|
--margin: 40px 0 20px;
|
|
13506
13510
|
position: relative;
|
|
13507
13511
|
padding: 0 0 4.8px;
|
|
@@ -13509,25 +13513,23 @@ margin: var(--margin);
|
|
|
13509
13513
|
color: var(--text-color);
|
|
13510
13514
|
text-align: var(--align);
|
|
13511
13515
|
}
|
|
13512
|
-
.njk-title-h2::before,
|
|
13516
|
+
/* .njk-title-h2::before,
|
|
13513
13517
|
.njk-title-h1::before {
|
|
13514
13518
|
display: none;
|
|
13515
13519
|
position: absolute;
|
|
13516
|
-
content: "#";
|
|
13520
|
+
content: "# ";
|
|
13517
13521
|
color: #007bff;
|
|
13518
13522
|
}
|
|
13519
13523
|
.njk-title-h1::before {
|
|
13520
13524
|
left: -26px;
|
|
13521
|
-
top: 5px;
|
|
13522
13525
|
}
|
|
13523
13526
|
.njk-title-h2::before {
|
|
13524
13527
|
left: -18px;
|
|
13525
|
-
top: 5px;
|
|
13526
13528
|
}
|
|
13527
13529
|
.njk-title-h1:hover::before,
|
|
13528
13530
|
.njk-title-h2:hover::before {
|
|
13529
13531
|
display: inline-block;
|
|
13530
|
-
}
|
|
13532
|
+
} */
|
|
13531
13533
|
.title-main {
|
|
13532
13534
|
--align: left;
|
|
13533
13535
|
--text-color: black;
|
|
@@ -13810,24 +13812,24 @@ padding: 6px 16px;
|
|
|
13810
13812
|
<h1 style="text-align: center">{{ ctx.text }}</h1>
|
|
13811
13813
|
{% endmacro %}
|
|
13812
13814
|
{% macro title_h1(ctx) %}
|
|
13813
|
-
<
|
|
13815
|
+
<div class="njk-title-h1" id="{{ ctx.text }}" style="{{ ctx.style }}">
|
|
13814
13816
|
{{ ctx.text }}
|
|
13815
|
-
</
|
|
13817
|
+
</div>
|
|
13816
13818
|
{% endmacro %}
|
|
13817
13819
|
{% macro title_h2(ctx) %}
|
|
13818
|
-
<
|
|
13820
|
+
<div class="njk-title-h2" id="{{ ctx.text }}" class="" style="{{ ctx.style }}">
|
|
13819
13821
|
{{ ctx.text }}
|
|
13820
|
-
</
|
|
13822
|
+
</div>
|
|
13821
13823
|
{% endmacro %}
|
|
13822
13824
|
{% macro title_h3(ctx) %}
|
|
13823
|
-
<
|
|
13825
|
+
<div class="njk-title-h3" id="{{ ctx.text }}" class="" style="{{ ctx.style }}">
|
|
13824
13826
|
{{ ctx.text }}
|
|
13825
|
-
</
|
|
13827
|
+
</div>
|
|
13826
13828
|
{% endmacro %}
|
|
13827
13829
|
{% macro title_table_default(ctx) %}
|
|
13828
|
-
<
|
|
13830
|
+
<div class="njk-title-h3" id="{{ ctx.text }}">
|
|
13829
13831
|
{{ ctx.text }}
|
|
13830
|
-
</
|
|
13832
|
+
</div>
|
|
13831
13833
|
{% endmacro %}
|
|
13832
13834
|
{% macro use_title(ctx) %}
|
|
13833
13835
|
{% if ctx.type == "h1" %}
|
|
@@ -13921,8 +13923,9 @@ padding: 6px 16px;
|
|
|
13921
13923
|
</table>
|
|
13922
13924
|
{% endmacro %}
|
|
13923
13925
|
{% macro use_table(ctx) %}
|
|
13924
|
-
{% if ctx.
|
|
13925
|
-
{{
|
|
13926
|
+
{% if ctx.title %}
|
|
13927
|
+
{{ title_table_default(ctx.title) }}
|
|
13928
|
+
{{ table_default(ctx) }}
|
|
13926
13929
|
{% else %}
|
|
13927
13930
|
{{ table_default(ctx) }}
|
|
13928
13931
|
{% endif %}
|
|
@@ -14023,9 +14026,6 @@ display: block;
|
|
|
14023
14026
|
{% endmacro %}
|
|
14024
14027
|
<!-- /ContentTitle.njk -->
|
|
14025
14028
|
<!-- Component.njk -->
|
|
14026
|
-
{% macro set_width(ctx) %}
|
|
14027
|
-
<div style="width:{{ ctx.width }};display:block;height:1px;background: transparent;;"></div>
|
|
14028
|
-
{% endmacro %}
|
|
14029
14029
|
{% macro pick_component(ctx) %}
|
|
14030
14030
|
{% if ctx.tag == "head" %}
|
|
14031
14031
|
{{ use_head(ctx) }}
|
|
@@ -14049,8 +14049,6 @@ display: block;
|
|
|
14049
14049
|
{{ use_divider(ctx) }}
|
|
14050
14050
|
{% elif ctx.tag == "tag" %}
|
|
14051
14051
|
{{ use_tag(ctx) }}
|
|
14052
|
-
{% elif ctx.tag == "width" %}
|
|
14053
|
-
{{ set_width(ctx) }}
|
|
14054
14052
|
{% elif ctx.tag == "title_content" %}
|
|
14055
14053
|
{{ use_content_title(ctx) }}
|
|
14056
14054
|
{% else %}
|
|
@@ -14066,9 +14064,9 @@ display: block;
|
|
|
14066
14064
|
{% endfor %}
|
|
14067
14065
|
{% endif %}
|
|
14068
14066
|
{% endmacro %}
|
|
14069
|
-
<
|
|
14067
|
+
<div style="margin: 0; padding: 0 8px 0 0;">
|
|
14070
14068
|
{{ use_component(ctx) }}
|
|
14071
|
-
</
|
|
14069
|
+
</div>
|
|
14072
14070
|
<!-- /Component.njk -->
|
|
14073
14071
|
<!-- Text.njk -->
|
|
14074
14072
|
{% macro text_default(ctx) %}
|