@forsakringskassan/docs-generator 3.7.0 → 3.8.0
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/index.mjs +52 -39
- package/dist/index.mjs.map +1 -1
- package/dist/runtime-internal.mjs +95 -126
- package/dist/style/core.css +127 -163
- package/dist/style/index.css +397 -172
- package/dist/style/site.css +360 -10
- package/dist/style/theme/fkui.css +6 -2
- package/package.json +1 -1
- package/templates/base.template.html +3 -1
- package/templates/macro/menu.html +6 -1
- package/templates/macro/mobile-menu.html +71 -0
- package/templates/partials/header.html +11 -9
- package/templates/partials/mobile-nav.html +24 -0
- package/templates/partials/spritesheet.html +12 -0
- package/templates/partials/topnav.html +0 -22
package/dist/style/site.css
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
1
2
|
:root {
|
|
2
3
|
--docs-background-color: #ffffff;
|
|
3
4
|
--docs-font-family: "Inter Variable", sans-serif;
|
|
@@ -46,6 +47,7 @@
|
|
|
46
47
|
--docs-header-text-color-discrete: #5f6165;
|
|
47
48
|
--docs-header-background-color: transparent;
|
|
48
49
|
--docs-header-border-color: #ddddde;
|
|
50
|
+
--docs-focus-box-shadow: 0 0 0 2px #1b1e23, 0 0 0 4px #ffffff,0 0 0 6px #1b1e23;
|
|
49
51
|
--docs-footer-text-color-default: #1b1e23;
|
|
50
52
|
--docs-footer-text-color-discrete: #5f6165;
|
|
51
53
|
--docs-footer-background-color: transparent;
|
|
@@ -384,8 +386,11 @@ kbd {
|
|
|
384
386
|
box-shadow: none;
|
|
385
387
|
cursor: text;
|
|
386
388
|
min-height: 2.5rem;
|
|
387
|
-
padding: 0 0.75rem;
|
|
388
389
|
width: 100%;
|
|
390
|
+
display: inline-flex;
|
|
391
|
+
align-items: center;
|
|
392
|
+
gap: 0.5rem;
|
|
393
|
+
padding-inline-end: 0;
|
|
389
394
|
}
|
|
390
395
|
|
|
391
396
|
#search button:hover {
|
|
@@ -402,11 +407,11 @@ kbd {
|
|
|
402
407
|
#search .search__icon {
|
|
403
408
|
display: inline-block;
|
|
404
409
|
height: 1rem;
|
|
405
|
-
margin-right: 0.5rem;
|
|
406
410
|
max-height: 100%;
|
|
407
411
|
max-width: 100%;
|
|
408
412
|
pointer-events: none;
|
|
409
413
|
width: 1rem;
|
|
414
|
+
flex-shrink: 0;
|
|
410
415
|
}
|
|
411
416
|
|
|
412
417
|
#search-dialog {
|
|
@@ -476,6 +481,353 @@ kbd {
|
|
|
476
481
|
outline: 3px solid transparent;
|
|
477
482
|
}
|
|
478
483
|
|
|
484
|
+
.loading .docs-page-header {
|
|
485
|
+
visibility: hidden;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
header .docs-page-header {
|
|
489
|
+
display: flex;
|
|
490
|
+
flex-wrap: wrap;
|
|
491
|
+
width: 100%;
|
|
492
|
+
color: var(--docs-header-text-color-default);
|
|
493
|
+
padding: 1rem 2rem;
|
|
494
|
+
align-items: center;
|
|
495
|
+
overflow: hidden;
|
|
496
|
+
background-color: var(--docs-header-background-color);
|
|
497
|
+
border-bottom: 1px solid var(--docs-header-border-color);
|
|
498
|
+
gap: 1rem;
|
|
499
|
+
max-width: 100vw;
|
|
500
|
+
--docs-text-color-default: var(--docs-header-text-color-default);
|
|
501
|
+
--docs-text-color-discrete: var(--docs-header-text-color-discrete);
|
|
502
|
+
}
|
|
503
|
+
header .docs-page-header__left {
|
|
504
|
+
flex-grow: 0;
|
|
505
|
+
flex-basis: auto;
|
|
506
|
+
display: flex;
|
|
507
|
+
align-items: center;
|
|
508
|
+
gap: 10px;
|
|
509
|
+
}
|
|
510
|
+
header .docs-page-header__right {
|
|
511
|
+
display: flex;
|
|
512
|
+
align-items: center;
|
|
513
|
+
white-space: nowrap;
|
|
514
|
+
font-size: var(--f-font-size-standard);
|
|
515
|
+
min-width: 0;
|
|
516
|
+
gap: 2.5rem;
|
|
517
|
+
margin-left: 0;
|
|
518
|
+
}
|
|
519
|
+
header .docs-page-header.is-single-row .docs-page-header__right {
|
|
520
|
+
flex-basis: auto;
|
|
521
|
+
justify-content: flex-end;
|
|
522
|
+
margin-left: auto;
|
|
523
|
+
}
|
|
524
|
+
header .docs-page-header.is-multi-row .docs-page-header__right {
|
|
525
|
+
flex-basis: 100%;
|
|
526
|
+
justify-content: space-between;
|
|
527
|
+
margin-left: 0;
|
|
528
|
+
}
|
|
529
|
+
header .docs-page-header__logo {
|
|
530
|
+
display: flex;
|
|
531
|
+
margin: 0;
|
|
532
|
+
padding: 0;
|
|
533
|
+
align-items: center;
|
|
534
|
+
box-sizing: border-box;
|
|
535
|
+
}
|
|
536
|
+
header .docs-page-header__logo--pipe {
|
|
537
|
+
background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzEiIGhlaWdodD0iMzEiIHZpZXdCb3g9IjAgMCAzMSAzMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3QgeD0iMC41IiB5PSIwLjU4Mzk4NCIgd2lkdGg9IjI5LjM1MzUiIGhlaWdodD0iMjkuMzUzNSIgcng9IjEuNSIgZmlsbD0iIzI5Nzk1MiIgc3Ryb2tlPSIjMjk3OTUyIi8+CjxwYXRoIGQ9Ik0yLjA1MDk2IDMuMTM0NzdDMi4wNTA5NiAyLjU4MjQ4IDIuNDk4NjggMi4xMzQ3NyAzLjA1MDk2IDIuMTM0NzdIMjguMzAyNkwyMC41OTQxIDkuNzIwOThDMjAuNDA3IDkuOTA1MDcgMjAuMTU1MSAxMC4wMDgyIDE5Ljg5MjYgMTAuMDA4MkgxMS4xMzg0QzEwLjU4NjEgMTAuMDA4MiAxMC4xMzg0IDEwLjQ1NiAxMC4xMzg0IDExLjAwODJWMTkuMjA2MkMxMC4xMzg0IDE5LjQ3NDYgMTAuMDMwNSAxOS43MzE3IDkuODM5IDE5LjkxOThMMi4wNTA5NiAyNy41NjYxVjMuMTM0NzdaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNMTEuODk1NCAxMi45NzkyQzExLjg5NTQgMTIuNDI3IDEyLjM0MzEgMTEuOTc5MiAxMi44OTU0IDExLjk3OTJIMTkuNzAwNkMxOS45NTY0IDExLjk3OTIgMjAuMjAyNiAxMi4wNzczIDIwLjM4ODMgMTIuMjUzM0wyNy45OTA0IDE5LjQ1NTVDMjguMTg5OCAxOS42NDQzIDI4LjMwMjcgMTkuOTA2OCAyOC4zMDI3IDIwLjE4MTRWMjcuMzg2NUMyOC4zMDI3IDI3LjkzODggMjcuODU1IDI4LjM4NjUgMjcuMzAyNyAyOC4zODY1SDIwLjUxMzJDMjAuMjQ4IDI4LjM4NjUgMTkuOTkzNyAyOC4yODEyIDE5LjgwNjEgMjguMDkzNkwxMi4xODgzIDIwLjQ3NThDMTIuMDAwNyAyMC4yODgzIDExLjg5NTQgMjAuMDMzOSAxMS44OTU0IDE5Ljc2ODdWMTIuOTc5MloiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPg==");
|
|
538
|
+
background-repeat: no-repeat;
|
|
539
|
+
background-position: center;
|
|
540
|
+
background-size: contain;
|
|
541
|
+
display: inline-block;
|
|
542
|
+
padding: 0.8rem;
|
|
543
|
+
}
|
|
544
|
+
header .docs-page-header__logo::after {
|
|
545
|
+
background-color: #116a3e;
|
|
546
|
+
content: " ";
|
|
547
|
+
height: 1.38rem;
|
|
548
|
+
padding: 0.5px;
|
|
549
|
+
margin: 0 1rem 0.155rem;
|
|
550
|
+
}
|
|
551
|
+
header .docs-page-header__app-name {
|
|
552
|
+
color: #116a3e;
|
|
553
|
+
width: auto;
|
|
554
|
+
margin: 0;
|
|
555
|
+
font-size: var(--f-font-size-h3);
|
|
556
|
+
font-weight: var(--f-font-weight-medium);
|
|
557
|
+
white-space: nowrap;
|
|
558
|
+
overflow: hidden;
|
|
559
|
+
text-overflow: ellipsis;
|
|
560
|
+
min-width: 9rem;
|
|
561
|
+
text-decoration: none;
|
|
562
|
+
}
|
|
563
|
+
header .docs-page-header__logo > a {
|
|
564
|
+
display: inline-flex;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
@media screen and (width < 1024px) {
|
|
568
|
+
#search button kbd {
|
|
569
|
+
display: none;
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
@media (width < 640px) {
|
|
573
|
+
header .docs-page-header {
|
|
574
|
+
padding: 1rem;
|
|
575
|
+
}
|
|
576
|
+
header .docs-page-header__right {
|
|
577
|
+
width: 100%;
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
.docs-mobile-nav {
|
|
581
|
+
width: 100%;
|
|
582
|
+
display: inline;
|
|
583
|
+
}
|
|
584
|
+
.is-mobile .docs-mobile-nav {
|
|
585
|
+
display: inline;
|
|
586
|
+
}
|
|
587
|
+
.docs-mobile-nav-wrapper ul ul {
|
|
588
|
+
background-color: var(--docs-menu-background-color);
|
|
589
|
+
}
|
|
590
|
+
.docs-mobile-nav-label {
|
|
591
|
+
display: inline-flex;
|
|
592
|
+
align-items: center;
|
|
593
|
+
cursor: pointer;
|
|
594
|
+
gap: 8px;
|
|
595
|
+
}
|
|
596
|
+
.docs-mobile-nav-label .docs-icon {
|
|
597
|
+
min-width: var(--docs-icon-size);
|
|
598
|
+
min-height: var(--docs-icon-size);
|
|
599
|
+
}
|
|
600
|
+
.docs-mobile-nav__toggle {
|
|
601
|
+
position: sticky;
|
|
602
|
+
height: min-content;
|
|
603
|
+
width: min-content;
|
|
604
|
+
padding: 0.5rem;
|
|
605
|
+
cursor: pointer;
|
|
606
|
+
appearance: none;
|
|
607
|
+
display: none;
|
|
608
|
+
justify-content: center;
|
|
609
|
+
}
|
|
610
|
+
.docs-mobile-nav__close {
|
|
611
|
+
display: inline-flex;
|
|
612
|
+
align-items: center;
|
|
613
|
+
gap: 4px;
|
|
614
|
+
cursor: pointer;
|
|
615
|
+
font-weight: bold;
|
|
616
|
+
color: var(--docs-text-color-default);
|
|
617
|
+
}
|
|
618
|
+
.docs-mobile-nav__close__text {
|
|
619
|
+
line-height: 1;
|
|
620
|
+
}
|
|
621
|
+
.docs-mobile-nav__close .docs-icon {
|
|
622
|
+
display: block;
|
|
623
|
+
}
|
|
624
|
+
.docs-mobile-nav__header {
|
|
625
|
+
display: flex;
|
|
626
|
+
justify-content: flex-end;
|
|
627
|
+
padding: 0.5rem;
|
|
628
|
+
box-sizing: border-box;
|
|
629
|
+
}
|
|
630
|
+
.docs-mobile-nav__list {
|
|
631
|
+
list-style: none;
|
|
632
|
+
margin: 0;
|
|
633
|
+
}
|
|
634
|
+
.docs-mobile-nav__list:not(details *) {
|
|
635
|
+
padding: 0;
|
|
636
|
+
}
|
|
637
|
+
.docs-mobile-nav__list a {
|
|
638
|
+
display: flex;
|
|
639
|
+
justify-content: space-between; /* Text till vänster, pil till höger */
|
|
640
|
+
align-items: center;
|
|
641
|
+
padding: 20px;
|
|
642
|
+
text-decoration: none;
|
|
643
|
+
color: var(--docs-header-text-color-default);
|
|
644
|
+
font-size: 16px;
|
|
645
|
+
}
|
|
646
|
+
.docs-mobile-nav__list ul {
|
|
647
|
+
padding-left: 1.5rem;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
@media (width >= 640px) {
|
|
651
|
+
.docs-mobile-nav {
|
|
652
|
+
display: none;
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
/* navigering vänster */
|
|
656
|
+
#sidenav {
|
|
657
|
+
background-color: var(--docs-menu-background-color);
|
|
658
|
+
width: auto;
|
|
659
|
+
display: flex;
|
|
660
|
+
justify-content: space-between;
|
|
661
|
+
flex-direction: row-reverse;
|
|
662
|
+
--header-footer-visible-height: 4.5rem;
|
|
663
|
+
overflow: auto;
|
|
664
|
+
max-height: calc(100vh - var(--header-footer-visible-height));
|
|
665
|
+
scrollbar-gutter: stable;
|
|
666
|
+
position: sticky;
|
|
667
|
+
top: 0;
|
|
668
|
+
grid-area: sidenav;
|
|
669
|
+
}
|
|
670
|
+
@media (width < 640px) {
|
|
671
|
+
#sidenav {
|
|
672
|
+
display: none;
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
@media (width < 1024px) {
|
|
676
|
+
.is-mobile #sidenav {
|
|
677
|
+
display: none;
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
.sidenav__toggle {
|
|
682
|
+
height: min-content;
|
|
683
|
+
width: min-content;
|
|
684
|
+
padding: 0.5rem;
|
|
685
|
+
cursor: pointer;
|
|
686
|
+
appearance: none;
|
|
687
|
+
display: flex;
|
|
688
|
+
justify-content: center;
|
|
689
|
+
opacity: 0;
|
|
690
|
+
pointer-events: none;
|
|
691
|
+
}
|
|
692
|
+
.sidenav__toggle-label {
|
|
693
|
+
display: flex;
|
|
694
|
+
justify-content: center;
|
|
695
|
+
align-items: center;
|
|
696
|
+
width: 3rem;
|
|
697
|
+
height: 3rem;
|
|
698
|
+
cursor: pointer;
|
|
699
|
+
}
|
|
700
|
+
.sidenav__toggle-label:hover {
|
|
701
|
+
background-color: #ddddde;
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
.docs-icon.icon-back {
|
|
705
|
+
display: none;
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
.sidenav__toggle:checked + label .docs-icon.icon-menu {
|
|
709
|
+
display: none;
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
.sidenav__toggle:checked + label .docs-icon.icon-back {
|
|
713
|
+
display: block;
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
.sidenav__toggle:checked {
|
|
717
|
+
justify-content: flex-end;
|
|
718
|
+
margin-top: 0;
|
|
719
|
+
margin-right: 0;
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
#nav-toggle:focus-visible + label {
|
|
723
|
+
box-shadow: var(--docs-focus-box-shadow);
|
|
724
|
+
outline: 3px solid transparent;
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
.sidenav__toggle:checked ~ .navigation {
|
|
728
|
+
display: block;
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
@media screen and (width >= 1024px) {
|
|
732
|
+
.sidenav__toggle {
|
|
733
|
+
display: none;
|
|
734
|
+
}
|
|
735
|
+
.docs-icon.icon-menu {
|
|
736
|
+
display: none;
|
|
737
|
+
}
|
|
738
|
+
.sidenav__toggle-label {
|
|
739
|
+
display: none;
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
#mobile-sidenav {
|
|
743
|
+
--header-footer-visible-height: 4.5rem;
|
|
744
|
+
overflow: auto;
|
|
745
|
+
max-height: calc(100vh - var(--header-footer-visible-height));
|
|
746
|
+
scrollbar-gutter: stable;
|
|
747
|
+
position: sticky;
|
|
748
|
+
top: 0;
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
#mobile-toggle:focus-visible ~ .docs-mobile-nav-label,
|
|
752
|
+
#mobile-toggle:focus-visible ~ .docs-mobile-navigation .docs-mobile-nav-close {
|
|
753
|
+
box-shadow: var(--docs-focus-box-shadow);
|
|
754
|
+
outline: 3px solid transparent;
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
#mobile-toggle:checked ~ .docs-mobile-navigation {
|
|
758
|
+
display: flex;
|
|
759
|
+
flex-direction: column;
|
|
760
|
+
width: 100%;
|
|
761
|
+
max-width: 100vw;
|
|
762
|
+
height: 100%;
|
|
763
|
+
position: fixed;
|
|
764
|
+
gap: 1.5rem;
|
|
765
|
+
top: 0;
|
|
766
|
+
left: 0;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
.docs-mobile-navigation {
|
|
770
|
+
--highlight-width: 4px;
|
|
771
|
+
background-color: var(--docs-background-color);
|
|
772
|
+
display: none;
|
|
773
|
+
padding: 1.5rem;
|
|
774
|
+
height: max-content;
|
|
775
|
+
z-index: 2;
|
|
776
|
+
}
|
|
777
|
+
.docs-mobile-navigation ul {
|
|
778
|
+
padding: 0;
|
|
779
|
+
}
|
|
780
|
+
.docs-mobile-navigation li {
|
|
781
|
+
list-style: none;
|
|
782
|
+
border-left: var(--highlight-width) solid transparent;
|
|
783
|
+
}
|
|
784
|
+
.docs-mobile-navigation li.link.highlight {
|
|
785
|
+
font-weight: bold;
|
|
786
|
+
border-color: var(--docs-navigation-highlight-color);
|
|
787
|
+
background-color: var(--docs-topnav-border-color-highlight-background-color);
|
|
788
|
+
}
|
|
789
|
+
.docs-mobile-navigation li.link a {
|
|
790
|
+
display: block;
|
|
791
|
+
color: var(--docs-text-color-default);
|
|
792
|
+
padding: 0.5rem calc(0.25rem + var(--highlight-width)) 0.5rem 0.25rem;
|
|
793
|
+
line-height: 1.2;
|
|
794
|
+
text-decoration: none;
|
|
795
|
+
text-overflow: ellipsis;
|
|
796
|
+
overflow: hidden;
|
|
797
|
+
}
|
|
798
|
+
.docs-mobile-navigation li.link a:hover {
|
|
799
|
+
background: var(--docs-navigation-hover-color);
|
|
800
|
+
border-color: var(--docs-navigation-highlight-color);
|
|
801
|
+
}
|
|
802
|
+
.docs-mobile-navigation summary {
|
|
803
|
+
cursor: pointer;
|
|
804
|
+
display: flex;
|
|
805
|
+
justify-content: space-between;
|
|
806
|
+
line-height: 1.5;
|
|
807
|
+
padding: 0.5rem calc(0.25rem + var(--highlight-width)) 0.5rem 0.25rem;
|
|
808
|
+
align-items: center;
|
|
809
|
+
}
|
|
810
|
+
.docs-mobile-navigation summary:hover {
|
|
811
|
+
background: var(--docs-navigation-hover-color);
|
|
812
|
+
border-color: var(--docs-navigation-highlight-color);
|
|
813
|
+
}
|
|
814
|
+
.docs-mobile-navigation .docs-icon {
|
|
815
|
+
transition: transform 0.2s ease-in-out;
|
|
816
|
+
}
|
|
817
|
+
.docs-mobile-navigation details[open] > summary {
|
|
818
|
+
font-weight: 700;
|
|
819
|
+
}
|
|
820
|
+
.docs-mobile-navigation details[open] > summary .docs-icon {
|
|
821
|
+
transform: rotate(180deg);
|
|
822
|
+
}
|
|
823
|
+
.docs-mobile-navigation details > ul {
|
|
824
|
+
margin-bottom: 0;
|
|
825
|
+
margin-left: 1rem;
|
|
826
|
+
}
|
|
827
|
+
.docs-mobile-navigation details summary::-webkit-details-marker {
|
|
828
|
+
display: none;
|
|
829
|
+
}
|
|
830
|
+
|
|
479
831
|
#version button {
|
|
480
832
|
padding: 0;
|
|
481
833
|
background: transparent;
|
|
@@ -556,13 +908,11 @@ body {
|
|
|
556
908
|
-webkit-font-smoothing: antialiased;
|
|
557
909
|
}
|
|
558
910
|
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
.page-header__app-name {
|
|
565
|
-
text-decoration: none;
|
|
911
|
+
body:has(#mobile-toggle:checked) {
|
|
912
|
+
overflow: hidden;
|
|
913
|
+
height: 100vh;
|
|
914
|
+
height: 100dvh;
|
|
915
|
+
touch-action: none;
|
|
566
916
|
}
|
|
567
917
|
|
|
568
918
|
.sr-only {
|
|
@@ -583,11 +933,11 @@ body {
|
|
|
583
933
|
}
|
|
584
934
|
.docs-icon {
|
|
585
935
|
display: inline-block;
|
|
936
|
+
width: var(--docs-icon-size);
|
|
586
937
|
height: var(--docs-icon-size);
|
|
587
938
|
max-height: 100%;
|
|
588
939
|
max-width: 100%;
|
|
589
940
|
pointer-events: none;
|
|
590
|
-
width: var(--docs-icon-size);
|
|
591
941
|
}
|
|
592
942
|
.docs-icon-stack {
|
|
593
943
|
display: inline-block;
|
|
@@ -17,6 +17,9 @@
|
|
|
17
17
|
--docs-font-line-height: var(--f-line-height-large);
|
|
18
18
|
--docs-font-size: var(--f-font-size-default-rem);
|
|
19
19
|
--docs-font-family: var(--f-font-family);
|
|
20
|
+
--docs-focus-box-shadow:
|
|
21
|
+
0 0 0 2px var(--fkds-focus-indicator-color-background), 0 0 0 4px var(--fkds-focus-indicator-color),
|
|
22
|
+
0 0 0 6px var(--fkds-focus-indicator-color-background);
|
|
20
23
|
--docs-heading-font-family: var(--f-font-family);
|
|
21
24
|
--docs-heading-font-weight-h1: var(--f-font-weight-bold);
|
|
22
25
|
--docs-heading-font-weight-h2: var(--f-font-weight-medium);
|
|
@@ -38,12 +41,13 @@
|
|
|
38
41
|
--docs-header-background-color: var(--fkds-color-background-primary);
|
|
39
42
|
--docs-header-border-color: var(--fkds-color-border-weak);
|
|
40
43
|
--docs-topnav-background-color: var(--fkds-color-background-primary);
|
|
41
|
-
--docs-menu-background-color: var(--fkds-color-background-secondary);
|
|
42
44
|
--docs-topnav-link-color-default: var(--fkds-color-text-primary);
|
|
43
45
|
--docs-topnav-link-color-hover: var(--fkds-color-text-primary);
|
|
44
46
|
--docs-topnav-link-color-highlight: var(--fkds-color-text-primary);
|
|
45
47
|
--docs-topnav-border-color-hover: var(--fkds-color-select-background-secondary-hover);
|
|
46
|
-
--docs-topnav-border-color-
|
|
48
|
+
--docs-topnav-border-color-highlight: var(--fkds-color-select-background-secondary-default);
|
|
49
|
+
--docs-topnav-border-color-highlight-background-color: var(--fkds-color-background-tertiary);
|
|
50
|
+
--docs-menu-background-color: var(--fkds-color-background-secondary);
|
|
47
51
|
--docs-code-background-color: var(--fkds-color-background-secondary);
|
|
48
52
|
--docs-code-border-color: var(--fkds-color-border-weak);
|
|
49
53
|
--docs-code-optional-background-color: var(--fkds-color-background-tertiary);
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<!doctype html>
|
|
2
|
-
<html lang="{{ site.lang }}" class="{{ layoutClass }}" data-root-url="{{ rootUrl(doc) }}">
|
|
2
|
+
<html lang="{{ site.lang }}" class="{{ layoutClass }} loading" data-root-url="{{ rootUrl(doc) }}">
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="utf-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
@@ -48,6 +48,8 @@
|
|
|
48
48
|
<header>
|
|
49
49
|
<!-- prettier-ignore -->
|
|
50
50
|
{%- include "partials/header.html" -%}
|
|
51
|
+
{%- block mobilenav %}
|
|
52
|
+
{%- endblock %}
|
|
51
53
|
</header>
|
|
52
54
|
|
|
53
55
|
<div id="primary">
|
|
@@ -40,6 +40,11 @@
|
|
|
40
40
|
{% endmacro %}
|
|
41
41
|
|
|
42
42
|
{% macro sidenav(doc, node, label) %}
|
|
43
|
-
|
|
43
|
+
|
|
44
|
+
<input id="nav-toggle" type="checkbox" class="sidenav__toggle" aria-label="Open/close navigation" />
|
|
45
|
+
<label for="nav-toggle" class="sidenav__toggle-label">
|
|
46
|
+
<svg class="docs-icon icon-menu"><use href="#docs-icon-menu"></use></svg>
|
|
47
|
+
<svg class="docs-icon icon-back"><use href="#docs-icon-chevrons-left"></use></svg>
|
|
48
|
+
</label>
|
|
44
49
|
<nav class="navigation" aria-label="{{ label }}">{{ sidenav_item(doc, node) }}</nav>
|
|
45
50
|
{% endmacro %}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{% macro sidenav_item(doc, node) %}
|
|
2
|
+
<ul class="docs-mobile-nav__list">
|
|
3
|
+
{%- for item in node.children -%}
|
|
4
|
+
{# section node #}
|
|
5
|
+
{% set normalizedCurrent = doc.fileInfo.fullPath | lower %}
|
|
6
|
+
{% set highLight = doc.id == item.id %}
|
|
7
|
+
{%- if item.children -%}
|
|
8
|
+
{% if item.visible %}
|
|
9
|
+
{% set currentRef = item.path or item.key %}
|
|
10
|
+
{% set folderPath = currentRef | replace("./", "") | replace(".html", "") | replace(".md", "") %}
|
|
11
|
+
{% set open = folderPath != "" and folderPath in normalizedCurrent %}
|
|
12
|
+
|
|
13
|
+
<li class="expandable">
|
|
14
|
+
<details {% if open %}open{% endif %}>
|
|
15
|
+
<summary>{{ item.title }} <svg focusable="false" class="docs-icon" aria-hidden="true"> <use href="#docs-icon-arrow-down"></use></svg></summary>
|
|
16
|
+
{% if item.children.length > 0 %}
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
{# Verify if parent link is already registered as a child. #}
|
|
20
|
+
{% set alreadyExists = false %}
|
|
21
|
+
{% for child in item.children %}
|
|
22
|
+
{% if child.path == item.path %}
|
|
23
|
+
{% set alreadyExists = true %}
|
|
24
|
+
{% endif %}
|
|
25
|
+
{% endfor %}
|
|
26
|
+
|
|
27
|
+
{# Only create the link if it does NOT already exist among the children #}
|
|
28
|
+
{% if item.path and not alreadyExists %}
|
|
29
|
+
<ul class="docs-mobile-nav__list docs-mobile-nav__list--main-link-wrapper">
|
|
30
|
+
<li class="link {% if highLight %}highlight{% endif %}">
|
|
31
|
+
<a href="{{ item.path | relative(doc) }}">
|
|
32
|
+
{{ item.title }}
|
|
33
|
+
</a>
|
|
34
|
+
</li>
|
|
35
|
+
</ul>
|
|
36
|
+
{% endif %}
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
{{ sidenav_item(doc, item) }}
|
|
40
|
+
{% endif %}
|
|
41
|
+
</details>
|
|
42
|
+
</li>
|
|
43
|
+
{% endif %}
|
|
44
|
+
{%- endif -%}
|
|
45
|
+
{# leaf node #}
|
|
46
|
+
{%- if not item.children -%}
|
|
47
|
+
<li class="link {% if highLight %}highlight{% endif %}">
|
|
48
|
+
<a
|
|
49
|
+
href="{{ item.path | relative(doc) }}"
|
|
50
|
+
{% if item.external %}
|
|
51
|
+
target="_blank"
|
|
52
|
+
rel="external"
|
|
53
|
+
{% endif %}
|
|
54
|
+
{% if item.path.startsWith('/') %}
|
|
55
|
+
data-path="{{ item.path.slice(1) }}"
|
|
56
|
+
{% endif %}
|
|
57
|
+
{% if item.path.startsWith('./') %}
|
|
58
|
+
data-path="{{ item.path.slice(2) }}"
|
|
59
|
+
{% endif %}
|
|
60
|
+
>
|
|
61
|
+
{{ item.title }}
|
|
62
|
+
</a>
|
|
63
|
+
</li>
|
|
64
|
+
{%- endif -%}
|
|
65
|
+
{%- endfor -%}
|
|
66
|
+
</ul>
|
|
67
|
+
{% endmacro %}
|
|
68
|
+
|
|
69
|
+
{% macro mobile_sidenav(doc, node) %}
|
|
70
|
+
<div class="docs-mobile-nav-wrapper" >{{ sidenav_item(doc, node) }}</div>
|
|
71
|
+
{% endmacro %}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
<div class="page-header__root">
|
|
2
|
-
<div class="page-header">
|
|
3
|
-
<
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
<div class="docs-page-header__root">
|
|
2
|
+
<div class="docs-page-header">
|
|
3
|
+
<div class="docs-page-header__left">
|
|
4
|
+
<a class="docs-page-header__logo" href="{{ './index.html' | relative(doc) }}">
|
|
5
|
+
<span aria-label="{{ site.name }}" role="img" class="docs-page-header__logo--pipe"> </span>
|
|
6
|
+
</a>
|
|
7
|
+
<a class="docs-page-header__app-name" href="{{ './index.html' | relative(doc) }}"> {{ site.name }} </a>
|
|
8
|
+
</div>
|
|
9
|
+
<div class="docs-page-header__right">
|
|
10
|
+
{%- include "partials/mobile-nav.html" %} {%- include "partials/topnav.html" %}
|
|
11
|
+
<div class="docs-page-header__right-slot">
|
|
10
12
|
<div class="toolbar">{% container "toolbar" %}</div>
|
|
11
13
|
</div>
|
|
12
14
|
</div>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<!-- prettier-ignore -->
|
|
2
|
+
{% import "macro/mobile-menu.html" as menu with context %}
|
|
3
|
+
|
|
4
|
+
<div class="docs-mobile-nav">
|
|
5
|
+
<input id="mobile-toggle" type="checkbox" class="sr-only" aria-label="{{$t('mobile-nav.aria-label')}}" />
|
|
6
|
+
<label for="mobile-toggle" class="docs-mobile-nav-label">
|
|
7
|
+
<svg class="docs-icon"><use href="#docs-icon-menu"></use></svg>
|
|
8
|
+
<span>{{$t("mobile-nav.menu")}}</span>
|
|
9
|
+
</label>
|
|
10
|
+
<nav id="nav-container" class="docs-mobile-navigation" aria-label="{{$t('mobile-nav.nav')}}">
|
|
11
|
+
<div class="docs-mobile-nav__header">
|
|
12
|
+
<label for="mobile-toggle" class="docs-mobile-nav__close">
|
|
13
|
+
<span class="docs-mobile-nav__close__text">{{$t("mobile-nav.close")}}</span>
|
|
14
|
+
<svg class="docs-icon" focusable="false" aria-hidden="true">
|
|
15
|
+
<use href="#docs-icon-close"></use>
|
|
16
|
+
</svg>
|
|
17
|
+
</label>
|
|
18
|
+
</div>
|
|
19
|
+
<!-- prettier-ignore -->
|
|
20
|
+
{% block mobilenav %}
|
|
21
|
+
<div id="mobile-sidenav">{%- if topnav -%} {{ menu.mobile_sidenav(doc, topnav) }} {%- endif -%}</div>
|
|
22
|
+
{% endblock %}
|
|
23
|
+
</nav>
|
|
24
|
+
</div>
|
|
@@ -19,6 +19,18 @@
|
|
|
19
19
|
d="M239.373 380.982 45.03 186.638c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04l154.746 154.021L411.089 129.99c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L273.315 380.982c-9.373 9.372-24.569 9.372-33.942 0"
|
|
20
20
|
></path>
|
|
21
21
|
</symbol>
|
|
22
|
+
<symbol id="docs-icon-chevrons-left" viewBox="0 0 512 512">
|
|
23
|
+
<path
|
|
24
|
+
fill="currentColor"
|
|
25
|
+
d="M111.3 256L281.2 78.4c17.3-18.1 16.8-46.9-1.4-64.3-18.1-17.3-46.9-16.7-64.3 1.4l-200 209.1C7.2 233.4 3 244.7 3 256c0 11.3 4.2 22.6 12.6 31.4l200 209.1c17.4 18.1 46.1 18.8 64.3 1.4 18.1-17.3 18.7-46.1 1.4-64.3L111.3 256z M329.5 256L499.4 78.4c17.3-18.1 16.8-46.9-1.4-64.3-18.1-17.3-46.9-16.7-64.3 1.4l-200 209.1c-8.4 8.8-12.6 20.1-12.6 31.4c0 11.3 4.2 22.6 12.6 31.4l200 209.1c17.4 18.1 46.1 18.8 64.3 1.4 18.1-17.3 18.8-46.1 1.4-64.3L329.5 256z"
|
|
26
|
+
/>
|
|
27
|
+
</symbol>
|
|
28
|
+
<symbol id="docs-icon-menu" viewBox="0 0 512 512">
|
|
29
|
+
<path
|
|
30
|
+
fill="currentColor"
|
|
31
|
+
d="M475.4 209.6H36.6C16.4 209.6 0 225.9 0 246.1s16.4 36.6 36.6 36.6h438.9c20.2 0 36.6-16.4 36.6-36.6s-16.4-36.5-36.6-36.5zM475.4 392.4H36.6C16.4 392.4 0 408.8 0 429s16.4 36.6 36.6 36.6h438.9c20.2 0 36.6-16.4 36.6-36.6s-16.4-36.6-36.6-36.6zM475.4 26.7H36.6C16.4 26.7 0 43.1 0 63.3s16.4 36.6 36.6 36.6h438.9c20.2 0 36.6-16.4 36.6-36.6s-16.4-36.6-36.6-36.6z"
|
|
32
|
+
></path>
|
|
33
|
+
</symbol>
|
|
22
34
|
<symbol id="docs-icon-circle" xml:space="preserve" viewBox="0 0 512 512">
|
|
23
35
|
<path
|
|
24
36
|
d="M489.5 256c0 129-104.6 233.5-233.5 233.5C127 489.5 22.5 385 22.5 256S127 22.5 256 22.5 489.5 127 489.5 256"
|
|
@@ -10,27 +10,5 @@
|
|
|
10
10
|
<a class="docs-topnav__anchor" href="{{ nav.path | relative(doc) }}"> {{ nav.title }} </a>
|
|
11
11
|
</li>
|
|
12
12
|
{% endif %} {%- endfor -%}
|
|
13
|
-
<li class="docs-topnav__item docs-topnav__item--more" style="visibility: hidden">
|
|
14
|
-
<button type="button" class="docs-topnav__anchor" aria-expanded="false">
|
|
15
|
-
<span>Mer</span>
|
|
16
|
-
<svg class="docs-icon" focusable="false" aria-hidden="true">
|
|
17
|
-
<use xlink:href="#docs-icon-arrow-down"></use>
|
|
18
|
-
</svg>
|
|
19
|
-
</button>
|
|
20
|
-
<div class="docs-contextmenu">
|
|
21
|
-
<ul class="docs-contextmenu__list">
|
|
22
|
-
<!-- prettier-ignore -->
|
|
23
|
-
{%- for nav in topnav.children -%}
|
|
24
|
-
{% set navPath = nav.path | replace("html", "") %}
|
|
25
|
-
{% set navPath = navPath | replace(".", "") %}
|
|
26
|
-
{% set activePage = navPath in doc.fileInfo.fullPath %}
|
|
27
|
-
{% if nav.visible %}
|
|
28
|
-
<li class="docs-contextmenu__item {% if activePage %}highlight{% endif %}" style="display: none">
|
|
29
|
-
<a class="docs-contextmenu__anchor" href="{{ nav.path | relative(doc) }}"> {{ nav.title }} </a>
|
|
30
|
-
</li>
|
|
31
|
-
{% endif %} {%- endfor -%}
|
|
32
|
-
</ul>
|
|
33
|
-
</div>
|
|
34
|
-
</li>
|
|
35
13
|
</ul>
|
|
36
14
|
</nav>
|