njk-tool 0.0.14 → 0.0.16
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 +51 -54
- package/dist/bundle/app.min.cjs.map +1 -1
- package/dist/bundle/app.min.js +51 -54
- package/dist/bundle/app.min.js.map +1 -1
- package/package.json +1 -1
package/dist/bundle/app.min.js
CHANGED
|
@@ -13464,79 +13464,57 @@ 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);
|
|
13481
|
+
font-size: 2.5rem
|
|
13487
13482
|
}
|
|
13488
|
-
h2 {
|
|
13489
|
-
--align: left;
|
|
13490
|
-
--text-color: #606266;
|
|
13491
|
-
--margin: 36px 0 20px;
|
|
13492
|
-
position: relative;
|
|
13493
|
-
font-size: 26.4px;
|
|
13483
|
+
.njk-title-h2 {
|
|
13494
13484
|
padding: 0 0 4.8px;
|
|
13495
|
-
|
|
13496
|
-
|
|
13497
|
-
|
|
13485
|
+
position: var(--njk-title-position);
|
|
13486
|
+
margin: var(--njk-title-margin);
|
|
13487
|
+
color: var(--njk-title-color);
|
|
13488
|
+
text-align: var(--njk-title-align);
|
|
13489
|
+
font-size: 2rem
|
|
13498
13490
|
}
|
|
13499
|
-
h3{
|
|
13500
|
-
--align: left;
|
|
13501
|
-
--text-color: #606266;
|
|
13502
|
-
--margin: 36px 0 20px;
|
|
13503
|
-
position: relative;
|
|
13491
|
+
.njk-title-h3 {
|
|
13504
13492
|
padding: 0 0 4.8px;
|
|
13505
|
-
margin: var(--margin);
|
|
13493
|
+
margin: var(--njk-title-margin);
|
|
13494
|
+
position: var(--njk-title-position);
|
|
13506
13495
|
color: var(--text-color);
|
|
13507
|
-
text-align: var(--align);
|
|
13496
|
+
text-align: var(--njk-title-align);
|
|
13497
|
+
font-size: 1rem
|
|
13508
13498
|
}
|
|
13509
|
-
h2::before,
|
|
13510
|
-
h1::before {
|
|
13499
|
+
.njk-title-h2::before,
|
|
13500
|
+
.njk-title-h1::before {
|
|
13511
13501
|
display: none;
|
|
13512
13502
|
position: absolute;
|
|
13513
13503
|
content: "#";
|
|
13514
13504
|
color: #007bff;
|
|
13515
13505
|
}
|
|
13516
|
-
h1::before {
|
|
13506
|
+
.njk-title-h1::before {
|
|
13517
13507
|
left: -26px;
|
|
13518
13508
|
top: 5px;
|
|
13519
13509
|
}
|
|
13520
|
-
h2::before {
|
|
13510
|
+
.njk-title-h2::before {
|
|
13521
13511
|
left: -18px;
|
|
13522
13512
|
top: 5px;
|
|
13523
13513
|
}
|
|
13524
|
-
h1:hover::before,
|
|
13525
|
-
h2:hover::before {
|
|
13514
|
+
.njk-title-h1:hover::before,
|
|
13515
|
+
.njk-title-h2:hover::before {
|
|
13526
13516
|
display: inline-block;
|
|
13527
13517
|
}
|
|
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
13518
|
.title-center {
|
|
13541
13519
|
text-align: center;
|
|
13542
13520
|
}
|
|
@@ -13622,7 +13600,7 @@ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
|
13622
13600
|
.code-block pre {
|
|
13623
13601
|
margin: 0;
|
|
13624
13602
|
padding: 1rem;
|
|
13625
|
-
background-color:
|
|
13603
|
+
background-color: silver;
|
|
13626
13604
|
font-family: 'Courier New', monospace;
|
|
13627
13605
|
font-size: 14px;
|
|
13628
13606
|
line-height: 1.5;
|
|
@@ -13681,6 +13659,19 @@ margin: 0;
|
|
|
13681
13659
|
padding: 0;
|
|
13682
13660
|
font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
|
|
13683
13661
|
}
|
|
13662
|
+
/* PC端样式 */
|
|
13663
|
+
@media (min-width: 900px) {
|
|
13664
|
+
.email-main-container {
|
|
13665
|
+
width: 40rem;
|
|
13666
|
+
border: solid 1px silver
|
|
13667
|
+
}
|
|
13668
|
+
}
|
|
13669
|
+
/* 移动端样式 */
|
|
13670
|
+
@media (min-width: 1304px) {
|
|
13671
|
+
.email-main-container {
|
|
13672
|
+
width: 80rem;
|
|
13673
|
+
}
|
|
13674
|
+
}
|
|
13684
13675
|
a {
|
|
13685
13676
|
text-decoration: none;
|
|
13686
13677
|
}
|
|
@@ -13689,9 +13680,15 @@ color: #409EFF;
|
|
|
13689
13680
|
}
|
|
13690
13681
|
.email-main-container {
|
|
13691
13682
|
margin: 0;
|
|
13692
|
-
min-width: 1000px;
|
|
13683
|
+
/* min-width: 1000px; */
|
|
13693
13684
|
padding: 0 5rem;
|
|
13694
13685
|
}
|
|
13686
|
+
:root {
|
|
13687
|
+
--njk-title-color: #606266;
|
|
13688
|
+
--njk-title-align: left;
|
|
13689
|
+
--njk-title-position: relative;
|
|
13690
|
+
--njk-title-margin: 36px 0 20px;
|
|
13691
|
+
}
|
|
13695
13692
|
/* END-Base.css */
|
|
13696
13693
|
</style>`;
|
|
13697
13694
|
|
|
@@ -13799,22 +13796,22 @@ padding: 6px 16px;
|
|
|
13799
13796
|
<h1 style="text-align: center">{{ ctx.text }}</h1>
|
|
13800
13797
|
{% endmacro %}
|
|
13801
13798
|
{% macro title_h1(ctx) %}
|
|
13802
|
-
<h1 id="{{ ctx.text }}" style="{{ ctx.style }}">
|
|
13799
|
+
<h1 class="njk-title-h1" id="{{ ctx.text }}" style="{{ ctx.style }}">
|
|
13803
13800
|
{{ ctx.text }}
|
|
13804
13801
|
</h1>
|
|
13805
13802
|
{% endmacro %}
|
|
13806
13803
|
{% macro title_h2(ctx) %}
|
|
13807
|
-
<h2 id="{{ ctx.text }}" class="" style="{{ ctx.style }}">
|
|
13804
|
+
<h2 class="njk-title-h2" id="{{ ctx.text }}" class="" style="{{ ctx.style }}">
|
|
13808
13805
|
{{ ctx.text }}
|
|
13809
13806
|
</h2>
|
|
13810
13807
|
{% endmacro %}
|
|
13811
13808
|
{% macro title_h3(ctx) %}
|
|
13812
|
-
<h3 id="{{ ctx.text }}" class="" style="{{ ctx.style }}">
|
|
13809
|
+
<h3 class="njk-title-h3" id="{{ ctx.text }}" class="" style="{{ ctx.style }}">
|
|
13813
13810
|
{{ ctx.text }}
|
|
13814
13811
|
</h3>
|
|
13815
13812
|
{% endmacro %}
|
|
13816
13813
|
{% macro title_table_default(ctx) %}
|
|
13817
|
-
<h3 id="{{ ctx.text }}" class="title_table_default" style="{{ ctx.style }}">
|
|
13814
|
+
<h3 class="njk-title-h3" id="{{ ctx.text }}" class="title_table_default" style="{{ ctx.style }}">
|
|
13818
13815
|
{{ ctx.text }}
|
|
13819
13816
|
</h3>
|
|
13820
13817
|
{% endmacro %}
|
|
@@ -14052,7 +14049,7 @@ display: block;
|
|
|
14052
14049
|
{% endif %}
|
|
14053
14050
|
{% endmacro %}
|
|
14054
14051
|
<body style="margin: 0; padding: 0;">
|
|
14055
|
-
<div class="email-main-container" style="margin: 0 auto; padding: 0 3rem;box-sizing: border-box
|
|
14052
|
+
<div class="email-main-container" style="margin: 0 auto; padding: 0 3rem;box-sizing: border-box">
|
|
14056
14053
|
{{ use_component(ctx) }}
|
|
14057
14054
|
</div>
|
|
14058
14055
|
</body>
|