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