njk-tool 0.0.21 → 0.0.22

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.
@@ -13478,30 +13478,34 @@ font-size: var(--font-size);
13478
13478
  padding: 8px 30px;
13479
13479
  }
13480
13480
  .njk-title-h1 {
13481
+ font-size: 26px;
13482
+ font-weight: bolder;
13481
13483
  --align: left;
13482
13484
  --text-color: #606266;
13483
13485
  --margin: 40px 0 20px;
13484
13486
  position: relative;
13485
- font-size: 28px;
13486
13487
  padding: 0 0 4.8px;
13487
13488
  margin: var(--margin);
13488
13489
  color: var(--text-color);
13489
13490
  text-align: var(--align);
13490
13491
  }
13491
13492
  .njk-title-h2 {
13493
+ font-size: 24px;
13494
+ font-weight: bolder;
13492
13495
  --align: left;
13493
13496
  --text-color: #606266;
13494
13497
  --margin: 40px 0 20px;
13495
13498
  position: relative;
13496
- font-size: 26.4px;
13497
13499
  padding: 0 0 4.8px;
13498
13500
  margin: var(--margin);
13499
13501
  color: var(--text-color);
13500
13502
  text-align: var(--align);
13501
13503
  }
13502
13504
  .njk-title-h3{
13505
+ font-size: 20px;
13503
13506
  --align: left;
13504
13507
  --text-color: #606266;
13508
+ font-weight: bolder;
13505
13509
  --margin: 40px 0 20px;
13506
13510
  position: relative;
13507
13511
  padding: 0 0 4.8px;
@@ -13509,25 +13513,23 @@ margin: var(--margin);
13509
13513
  color: var(--text-color);
13510
13514
  text-align: var(--align);
13511
13515
  }
13512
- .njk-title-h2::before,
13516
+ /* .njk-title-h2::before,
13513
13517
  .njk-title-h1::before {
13514
13518
  display: none;
13515
13519
  position: absolute;
13516
- content: "#";
13520
+ content: "# ";
13517
13521
  color: #007bff;
13518
13522
  }
13519
13523
  .njk-title-h1::before {
13520
13524
  left: -26px;
13521
- top: 5px;
13522
13525
  }
13523
13526
  .njk-title-h2::before {
13524
13527
  left: -18px;
13525
- top: 5px;
13526
13528
  }
13527
13529
  .njk-title-h1:hover::before,
13528
13530
  .njk-title-h2:hover::before {
13529
13531
  display: inline-block;
13530
- }
13532
+ } */
13531
13533
  .title-main {
13532
13534
  --align: left;
13533
13535
  --text-color: black;
@@ -13810,24 +13812,24 @@ padding: 6px 16px;
13810
13812
  <h1 style="text-align: center">{{ ctx.text }}</h1>
13811
13813
  {% endmacro %}
13812
13814
  {% macro title_h1(ctx) %}
13813
- <h1 class="njk-title-h1" id="{{ ctx.text }}" style="{{ ctx.style }}">
13815
+ <div class="njk-title-h1" id="{{ ctx.text }}" style="{{ ctx.style }}">
13814
13816
  {{ ctx.text }}
13815
- </h1>
13817
+ </div>
13816
13818
  {% endmacro %}
13817
13819
  {% macro title_h2(ctx) %}
13818
- <h2 class="njk-title-h2" id="{{ ctx.text }}" class="" style="{{ ctx.style }}">
13820
+ <div class="njk-title-h2" id="{{ ctx.text }}" class="" style="{{ ctx.style }}">
13819
13821
  {{ ctx.text }}
13820
- </h2>
13822
+ </div>
13821
13823
  {% endmacro %}
13822
13824
  {% macro title_h3(ctx) %}
13823
- <h3 class="njk-title-h3" id="{{ ctx.text }}" class="" style="{{ ctx.style }}">
13825
+ <div class="njk-title-h3" id="{{ ctx.text }}" class="" style="{{ ctx.style }}">
13824
13826
  {{ ctx.text }}
13825
- </h3>
13827
+ </div>
13826
13828
  {% endmacro %}
13827
13829
  {% macro title_table_default(ctx) %}
13828
- <h3 class="njk-title-h3" id="{{ ctx.text }}" class="title_table_default" style="{{ ctx.style }}">
13830
+ <div class="njk-title-h3" id="{{ ctx.text }}" class="title_table_default" style="{{ ctx.style }}">
13829
13831
  {{ ctx.text }}
13830
- </h3>
13832
+ </div>
13831
13833
  {% endmacro %}
13832
13834
  {% macro use_title(ctx) %}
13833
13835
  {% if ctx.type == "h1" %}
@@ -13924,7 +13926,7 @@ padding: 6px 16px;
13924
13926
  {% if ctx.type == "h1" %}
13925
13927
  {{ title_h1(ctx) }}
13926
13928
  {% else %}
13927
- {{ table_default(ctx) }}
13929
+ {{ title_h3(ctx) }}
13928
13930
  {% endif %}
13929
13931
  {% endmacro %}
13930
13932
  <!-- /Table.njk -->
@@ -14066,7 +14068,7 @@ display: block;
14066
14068
  {% endfor %}
14067
14069
  {% endif %}
14068
14070
  {% endmacro %}
14069
- <body style="margin: 0; padding: 0;">
14071
+ <body style="margin: 0; padding: 0 8px 0 0;">
14070
14072
  {{ use_component(ctx) }}
14071
14073
  </body>
14072
14074
  <!-- /Component.njk -->