njk-tool 0.0.13 → 0.0.15
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 +61 -79
- package/dist/bundle/app.min.cjs.map +1 -1
- package/dist/bundle/app.min.js +61 -79
- package/dist/bundle/app.min.js.map +1 -1
- package/package.json +1 -1
package/dist/bundle/app.min.js
CHANGED
|
@@ -13464,79 +13464,54 @@ font-size: 0.9rem;
|
|
|
13464
13464
|
/* END-Text.css */
|
|
13465
13465
|
/* Title.css */
|
|
13466
13466
|
.title-base {
|
|
13467
|
-
--align: left;
|
|
13468
|
-
--text-color: black;
|
|
13469
13467
|
--font-weight: 800;
|
|
13470
13468
|
--font-size: 18px;
|
|
13471
|
-
color: var(--
|
|
13472
|
-
text-align: var(--align);
|
|
13469
|
+
color: var(--njk-title-color);
|
|
13470
|
+
text-align: var(--njk-title-align);
|
|
13473
13471
|
font-weight: var(--font-weight);
|
|
13474
13472
|
font-size: var(--font-size);
|
|
13475
13473
|
padding: 8px 30px;
|
|
13476
13474
|
}
|
|
13477
|
-
h1 {
|
|
13478
|
-
--align: left;
|
|
13479
|
-
--text-color: #606266;
|
|
13480
|
-
--margin: 36px 0 20px;
|
|
13481
|
-
position: relative;
|
|
13482
|
-
font-size: 35.2px;
|
|
13475
|
+
.njk-title-h1 {
|
|
13483
13476
|
padding: 0 0 4.8px;
|
|
13484
|
-
|
|
13485
|
-
|
|
13486
|
-
|
|
13477
|
+
position: var(--njk-title-position);
|
|
13478
|
+
margin: var(--njk-title-margin);
|
|
13479
|
+
color: var(--njk-title-color);
|
|
13480
|
+
text-align: var(--njk-title-align);
|
|
13487
13481
|
}
|
|
13488
|
-
h2 {
|
|
13489
|
-
--align: left;
|
|
13490
|
-
--text-color: #606266;
|
|
13491
|
-
--margin: 36px 0 20px;
|
|
13492
|
-
position: relative;
|
|
13493
|
-
font-size: 26.4px;
|
|
13482
|
+
.njk-title-h2 {
|
|
13494
13483
|
padding: 0 0 4.8px;
|
|
13495
|
-
|
|
13496
|
-
|
|
13497
|
-
|
|
13484
|
+
position: var(--njk-title-position);
|
|
13485
|
+
margin: var(--njk-title-margin);
|
|
13486
|
+
color: var(--njk-title-color);
|
|
13487
|
+
text-align: var(--njk-title-align);
|
|
13498
13488
|
}
|
|
13499
|
-
h3{
|
|
13500
|
-
--align: left;
|
|
13501
|
-
--text-color: #606266;
|
|
13502
|
-
--margin: 36px 0 20px;
|
|
13503
|
-
position: relative;
|
|
13489
|
+
.njk-title-h3 {
|
|
13504
13490
|
padding: 0 0 4.8px;
|
|
13505
|
-
margin: var(--margin);
|
|
13491
|
+
margin: var(--njk-title-margin);
|
|
13492
|
+
position: var(--njk-title-position);
|
|
13506
13493
|
color: var(--text-color);
|
|
13507
|
-
text-align: var(--align);
|
|
13494
|
+
text-align: var(--njk-title-align);
|
|
13508
13495
|
}
|
|
13509
|
-
h2::before,
|
|
13510
|
-
h1::before {
|
|
13496
|
+
.njk-title-h2::before,
|
|
13497
|
+
.njk-title-h1::before {
|
|
13511
13498
|
display: none;
|
|
13512
13499
|
position: absolute;
|
|
13513
13500
|
content: "#";
|
|
13514
13501
|
color: #007bff;
|
|
13515
13502
|
}
|
|
13516
|
-
h1::before {
|
|
13503
|
+
.njk-title-h1::before {
|
|
13517
13504
|
left: -26px;
|
|
13518
13505
|
top: 5px;
|
|
13519
13506
|
}
|
|
13520
|
-
h2::before {
|
|
13507
|
+
.njk-title-h2::before {
|
|
13521
13508
|
left: -18px;
|
|
13522
13509
|
top: 5px;
|
|
13523
13510
|
}
|
|
13524
|
-
h1:hover::before,
|
|
13525
|
-
h2:hover::before {
|
|
13511
|
+
.njk-title-h1:hover::before,
|
|
13512
|
+
.njk-title-h2:hover::before {
|
|
13526
13513
|
display: inline-block;
|
|
13527
13514
|
}
|
|
13528
|
-
.title-main {
|
|
13529
|
-
--align: left;
|
|
13530
|
-
--text-color: black;
|
|
13531
|
-
--font-weight: 800;
|
|
13532
|
-
--font-size: 28px;
|
|
13533
|
-
color: var(--text-color);
|
|
13534
|
-
text-align: var(--align);
|
|
13535
|
-
font-weight: var(--font-weight);
|
|
13536
|
-
font-size: var(--font-size);
|
|
13537
|
-
padding: 8px 30px;
|
|
13538
|
-
margin-bottom: 20px;
|
|
13539
|
-
}
|
|
13540
13515
|
.title-center {
|
|
13541
13516
|
text-align: center;
|
|
13542
13517
|
}
|
|
@@ -13573,33 +13548,8 @@ background-color: #fff2f0;
|
|
|
13573
13548
|
border-left: 4px solid #f5222d;
|
|
13574
13549
|
}
|
|
13575
13550
|
/* END-Notice.css */
|
|
13576
|
-
/* Block.css */
|
|
13577
|
-
/* Block.njk */
|
|
13578
|
-
.code-block {
|
|
13579
|
-
--block-margin: 0px
|
|
13580
|
-
margin: var(--block-margin) 0;
|
|
13581
|
-
border-radius: 4px;
|
|
13582
|
-
overflow: hidden;
|
|
13583
|
-
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
13584
|
-
}
|
|
13585
|
-
.code-block pre {
|
|
13586
|
-
margin: 0;
|
|
13587
|
-
padding: 1rem;
|
|
13588
|
-
background-color: #f5f5f5;
|
|
13589
|
-
font-family: 'Courier New', monospace;
|
|
13590
|
-
font-size: 14px;
|
|
13591
|
-
line-height: 1.5;
|
|
13592
|
-
white-space: pre-wrap;
|
|
13593
|
-
}
|
|
13594
|
-
.code-block code {
|
|
13595
|
-
display: block;
|
|
13596
|
-
overflow-x: auto;
|
|
13597
|
-
}
|
|
13598
|
-
/* END-Block.css */
|
|
13599
|
-
/* Date.css */
|
|
13600
|
-
/* END-Date.css */
|
|
13601
13551
|
/* Table.css */
|
|
13602
|
-
.default
|
|
13552
|
+
.my-daframe-default {
|
|
13603
13553
|
margin: 0;
|
|
13604
13554
|
width: 80%;
|
|
13605
13555
|
border-collapse: collapse;
|
|
@@ -13635,6 +13585,31 @@ color: #444;
|
|
|
13635
13585
|
background-color: transparent;
|
|
13636
13586
|
}
|
|
13637
13587
|
/* END-Table.css */
|
|
13588
|
+
/* Block.css */
|
|
13589
|
+
/* Block.njk */
|
|
13590
|
+
.code-block {
|
|
13591
|
+
--block-margin: 0px
|
|
13592
|
+
margin: var(--block-margin) 0;
|
|
13593
|
+
border-radius: 4px;
|
|
13594
|
+
overflow: hidden;
|
|
13595
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
13596
|
+
}
|
|
13597
|
+
.code-block pre {
|
|
13598
|
+
margin: 0;
|
|
13599
|
+
padding: 1rem;
|
|
13600
|
+
background-color: #f5f5f5;
|
|
13601
|
+
font-family: 'Courier New', monospace;
|
|
13602
|
+
font-size: 14px;
|
|
13603
|
+
line-height: 1.5;
|
|
13604
|
+
white-space: pre-wrap;
|
|
13605
|
+
}
|
|
13606
|
+
.code-block code {
|
|
13607
|
+
display: block;
|
|
13608
|
+
overflow-x: auto;
|
|
13609
|
+
}
|
|
13610
|
+
/* END-Block.css */
|
|
13611
|
+
/* Date.css */
|
|
13612
|
+
/* END-Date.css */
|
|
13638
13613
|
/* Tab.css */
|
|
13639
13614
|
/* Tab 容器 */
|
|
13640
13615
|
.tab-container {
|
|
@@ -13692,6 +13667,12 @@ margin: 0;
|
|
|
13692
13667
|
min-width: 1000px;
|
|
13693
13668
|
padding: 0 5rem;
|
|
13694
13669
|
}
|
|
13670
|
+
:root {
|
|
13671
|
+
--njk-title-color-default: #606266;
|
|
13672
|
+
--njk-title-align-default: left;
|
|
13673
|
+
--njk-title-position: relative;
|
|
13674
|
+
--njk-title-margin: 36px 0 20px;
|
|
13675
|
+
}
|
|
13695
13676
|
/* END-Base.css */
|
|
13696
13677
|
</style>`;
|
|
13697
13678
|
|
|
@@ -13799,28 +13780,29 @@ padding: 6px 16px;
|
|
|
13799
13780
|
<h1 style="text-align: center">{{ ctx.text }}</h1>
|
|
13800
13781
|
{% endmacro %}
|
|
13801
13782
|
{% macro title_h1(ctx) %}
|
|
13802
|
-
<h1 id="{{ ctx.text }}" style="{{ ctx.style }}">
|
|
13783
|
+
<h1 class="njk-title-h1" id="{{ ctx.text }}" style="{{ ctx.style }}">
|
|
13803
13784
|
{{ ctx.text }}
|
|
13804
13785
|
</h1>
|
|
13805
13786
|
{% endmacro %}
|
|
13806
13787
|
{% macro title_h2(ctx) %}
|
|
13807
|
-
<h2 id="{{ ctx.text }}" class="" style="{{ ctx.style }}">
|
|
13788
|
+
<h2 class="njk-title-h2" id="{{ ctx.text }}" class="" style="{{ ctx.style }}">
|
|
13808
13789
|
{{ ctx.text }}
|
|
13809
13790
|
</h2>
|
|
13810
13791
|
{% endmacro %}
|
|
13811
13792
|
{% macro title_h3(ctx) %}
|
|
13812
|
-
<h3 id="{{ ctx.text }}" class="" style="{{ ctx.style }}">
|
|
13793
|
+
<h3 class="njk-title-h3" id="{{ ctx.text }}" class="" style="{{ ctx.style }}">
|
|
13813
13794
|
{{ ctx.text }}
|
|
13814
13795
|
</h3>
|
|
13815
13796
|
{% endmacro %}
|
|
13816
13797
|
{% macro title_table_default(ctx) %}
|
|
13817
|
-
<h3 id="{{ ctx.text }}" class="title_table_default" style="{{ ctx.style }}">
|
|
13798
|
+
<h3 class="njk-title-h3" id="{{ ctx.text }}" class="title_table_default" style="{{ ctx.style }}">
|
|
13818
13799
|
{{ ctx.text }}
|
|
13819
13800
|
</h3>
|
|
13820
13801
|
{% endmacro %}
|
|
13821
13802
|
{% macro use_title(ctx) %}
|
|
13822
13803
|
{% if ctx.type == "h1" %}
|
|
13823
13804
|
{{ title_h1(ctx) }}
|
|
13805
|
+
{{ title_h1(ctx) }}
|
|
13824
13806
|
{% elif ctx.type == "h2" %}
|
|
13825
13807
|
{{ title_h2(ctx) }}
|
|
13826
13808
|
{% elif ctx.type == "h3" %}
|
|
@@ -13884,7 +13866,7 @@ padding: 6px 16px;
|
|
|
13884
13866
|
{% set title = {text:ctx.title} %}
|
|
13885
13867
|
{{ title_h2(title) }}
|
|
13886
13868
|
{% endif %}
|
|
13887
|
-
<table class="default
|
|
13869
|
+
<table class="my-daframe-default">
|
|
13888
13870
|
<thead class="thead-light">
|
|
13889
13871
|
<tr>
|
|
13890
13872
|
{% for column in columns %}
|
|
@@ -14051,7 +14033,7 @@ display: block;
|
|
|
14051
14033
|
{% endif %}
|
|
14052
14034
|
{% endmacro %}
|
|
14053
14035
|
<body style="margin: 0; padding: 0;">
|
|
14054
|
-
<div class="email-main-container" style="margin: 0 auto; padding: 0 3rem;
|
|
14036
|
+
<div class="email-main-container" style="margin: 0 auto; padding: 0 3rem;box-sizing: border-box; max-width: 1000px;">
|
|
14055
14037
|
{{ use_component(ctx) }}
|
|
14056
14038
|
</div>
|
|
14057
14039
|
</body>
|