@triptease/tt-navbar 0.0.7 → 0.0.8
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/src/styles.js +135 -3
- package/dist/src/styles.js.map +1 -1
- package/dist/web/TtNavbar.js +136 -4
- package/dist/web/TtNavbar.js.map +2 -2
- package/dist/web/index.js +136 -4
- package/dist/web/index.js.map +2 -2
- package/dist/web/styles.js +136 -4
- package/dist/web/styles.js.map +2 -2
- package/dist/web/tt-navbar.js +136 -4
- package/dist/web/tt-navbar.js.map +2 -2
- package/package.json +1 -1
- package/src/styles.ts +135 -3
package/dist/web/styles.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @triptease/tt-navbar v0.0.
|
|
2
|
+
* @triptease/tt-navbar v0.0.8
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
// ../../node_modules/@lit/reactive-element/css-tag.js
|
|
@@ -553,15 +553,29 @@ o4?.({ LitElement: i4 });
|
|
|
553
553
|
// src/styles.ts
|
|
554
554
|
var styles = i`
|
|
555
555
|
:host {
|
|
556
|
+
--nav-bar-width: 260px;
|
|
557
|
+
|
|
556
558
|
display: block;
|
|
557
559
|
height: 100vh;
|
|
558
|
-
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
* {
|
|
563
|
+
box-sizing: border-box;
|
|
559
564
|
}
|
|
560
565
|
|
|
561
566
|
nav {
|
|
567
|
+
min-width: var(--nav-bar-width);
|
|
568
|
+
width: var(--nav-bar-width);
|
|
569
|
+
min-height: 100vh;
|
|
570
|
+
height: max-content;
|
|
562
571
|
display: flex;
|
|
572
|
+
align-items: start;
|
|
573
|
+
gap: var(--space-scale-3-5);
|
|
563
574
|
flex-direction: column;
|
|
564
|
-
|
|
575
|
+
background-color: var(--color-surface-inverted-100);
|
|
576
|
+
color: var(--color-text-inverted-400);
|
|
577
|
+
padding-top: var(--space-scale-2);
|
|
578
|
+
padding-bottom: var(--space-scale-2);
|
|
565
579
|
}
|
|
566
580
|
|
|
567
581
|
nav details div {
|
|
@@ -570,11 +584,129 @@ var styles = i`
|
|
|
570
584
|
}
|
|
571
585
|
|
|
572
586
|
hr {
|
|
573
|
-
background: black;
|
|
574
587
|
width: 100%;
|
|
575
588
|
height: 1px;
|
|
589
|
+
background-color: var(--color-surface-inverted-200);
|
|
576
590
|
border: none;
|
|
577
591
|
}
|
|
592
|
+
|
|
593
|
+
#tertiary-nav {
|
|
594
|
+
display: flex;
|
|
595
|
+
flex-direction: column;
|
|
596
|
+
margin-top: auto;
|
|
597
|
+
gap: var(--space-scale-2);
|
|
598
|
+
width: 100%;
|
|
599
|
+
|
|
600
|
+
.external-link {
|
|
601
|
+
font-size: var(--font-size-100);
|
|
602
|
+
line-height: var(--font-line-height-100);
|
|
603
|
+
|
|
604
|
+
.icon {
|
|
605
|
+
width: var(--space-scale-2);
|
|
606
|
+
height: var(--space-scale-2);
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
.icon {
|
|
612
|
+
width: var(--space-scale-3);
|
|
613
|
+
height: var(--space-scale-3);
|
|
614
|
+
display: inline;
|
|
615
|
+
color: var(--nav-item-color);
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
a {
|
|
619
|
+
font-size: var(--font-size-100);
|
|
620
|
+
line-height: var(--font-line-height-100);
|
|
621
|
+
gap: var(--space-scale-1-5);
|
|
622
|
+
border-radius: var(--border-radius-100);
|
|
623
|
+
color: var(--nav-item-color);
|
|
624
|
+
text-decoration: none;
|
|
625
|
+
padding: var(--space-scale-1);
|
|
626
|
+
width: 100%;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
details {
|
|
630
|
+
width: 100%;
|
|
631
|
+
border-radius: var(--border-radius-100);
|
|
632
|
+
|
|
633
|
+
summary {
|
|
634
|
+
font-size: var(--font-size-100);
|
|
635
|
+
line-height: var(--font-line-height-100);
|
|
636
|
+
position: relative;
|
|
637
|
+
display: flex;
|
|
638
|
+
align-items: baseline;
|
|
639
|
+
|
|
640
|
+
&::marker {
|
|
641
|
+
content: '';
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
svg.chevron {
|
|
646
|
+
margin-left: auto;
|
|
647
|
+
margin-right: var(--space-scale-1);
|
|
648
|
+
width: var(--space-scale-2);
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
&[open] svg.chevron {
|
|
652
|
+
transform: rotate(180deg);
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
.dropdown-items {
|
|
656
|
+
display: flex;
|
|
657
|
+
flex-direction: column;
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
details > summary {
|
|
662
|
+
display: flex;
|
|
663
|
+
gap: var(--space-scale-1-5);
|
|
664
|
+
padding: var(--space-scale-1);
|
|
665
|
+
border-radius: var(--border-radius-100);
|
|
666
|
+
color: var(--nav-item-color);
|
|
667
|
+
align-items: center;
|
|
668
|
+
|
|
669
|
+
a {
|
|
670
|
+
color: var(--nav-item-color);
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
&:hover,
|
|
674
|
+
&:focus-visible {
|
|
675
|
+
background-color: var(--color-surface-inverted-200);
|
|
676
|
+
border-radius: var(--border-radius-100);
|
|
677
|
+
text-decoration: none;
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
.sub-nav-item {
|
|
682
|
+
padding-left: 44px;
|
|
683
|
+
padding-top: 10px;
|
|
684
|
+
padding-bottom: 10px;
|
|
685
|
+
color: var(--color-text-inverted-400);
|
|
686
|
+
font-size: var(--font-size-100);
|
|
687
|
+
line-height: var(--font-line-height-100);
|
|
688
|
+
|
|
689
|
+
button {
|
|
690
|
+
color: var(--color-text-inverted-400);
|
|
691
|
+
padding: 0;
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
.sub-nav-item:hover,
|
|
696
|
+
.sub-nav-item:focus-visible,
|
|
697
|
+
a:hover,
|
|
698
|
+
a:focus-visible {
|
|
699
|
+
background-color: var(--color-surface-inverted-200);
|
|
700
|
+
border-radius: var(--border-radius-100);
|
|
701
|
+
text-decoration: none;
|
|
702
|
+
color: var(--color-text-inverted-400);
|
|
703
|
+
|
|
704
|
+
.icon {
|
|
705
|
+
color: var(--color-text-inverted-400);
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
|
|
578
710
|
`;
|
|
579
711
|
export {
|
|
580
712
|
styles
|