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