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