@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/package.json
CHANGED
package/src/styles.ts
CHANGED
|
@@ -2,15 +2,29 @@ import { css } from 'lit';
|
|
|
2
2
|
|
|
3
3
|
export const styles = css`
|
|
4
4
|
:host {
|
|
5
|
+
--nav-bar-width: 260px;
|
|
6
|
+
|
|
5
7
|
display: block;
|
|
6
8
|
height: 100vh;
|
|
7
|
-
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
* {
|
|
12
|
+
box-sizing: border-box;
|
|
8
13
|
}
|
|
9
14
|
|
|
10
15
|
nav {
|
|
16
|
+
min-width: var(--nav-bar-width);
|
|
17
|
+
width: var(--nav-bar-width);
|
|
18
|
+
min-height: 100vh;
|
|
19
|
+
height: max-content;
|
|
11
20
|
display: flex;
|
|
21
|
+
align-items: start;
|
|
22
|
+
gap: var(--space-scale-3-5);
|
|
12
23
|
flex-direction: column;
|
|
13
|
-
|
|
24
|
+
background-color: var(--color-surface-inverted-100);
|
|
25
|
+
color: var(--color-text-inverted-400);
|
|
26
|
+
padding-top: var(--space-scale-2);
|
|
27
|
+
padding-bottom: var(--space-scale-2);
|
|
14
28
|
}
|
|
15
29
|
|
|
16
30
|
nav details div {
|
|
@@ -19,9 +33,127 @@ export const styles = css`
|
|
|
19
33
|
}
|
|
20
34
|
|
|
21
35
|
hr {
|
|
22
|
-
background: black;
|
|
23
36
|
width: 100%;
|
|
24
37
|
height: 1px;
|
|
38
|
+
background-color: var(--color-surface-inverted-200);
|
|
25
39
|
border: none;
|
|
26
40
|
}
|
|
41
|
+
|
|
42
|
+
#tertiary-nav {
|
|
43
|
+
display: flex;
|
|
44
|
+
flex-direction: column;
|
|
45
|
+
margin-top: auto;
|
|
46
|
+
gap: var(--space-scale-2);
|
|
47
|
+
width: 100%;
|
|
48
|
+
|
|
49
|
+
.external-link {
|
|
50
|
+
font-size: var(--font-size-100);
|
|
51
|
+
line-height: var(--font-line-height-100);
|
|
52
|
+
|
|
53
|
+
.icon {
|
|
54
|
+
width: var(--space-scale-2);
|
|
55
|
+
height: var(--space-scale-2);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.icon {
|
|
61
|
+
width: var(--space-scale-3);
|
|
62
|
+
height: var(--space-scale-3);
|
|
63
|
+
display: inline;
|
|
64
|
+
color: var(--nav-item-color);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
a {
|
|
68
|
+
font-size: var(--font-size-100);
|
|
69
|
+
line-height: var(--font-line-height-100);
|
|
70
|
+
gap: var(--space-scale-1-5);
|
|
71
|
+
border-radius: var(--border-radius-100);
|
|
72
|
+
color: var(--nav-item-color);
|
|
73
|
+
text-decoration: none;
|
|
74
|
+
padding: var(--space-scale-1);
|
|
75
|
+
width: 100%;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
details {
|
|
79
|
+
width: 100%;
|
|
80
|
+
border-radius: var(--border-radius-100);
|
|
81
|
+
|
|
82
|
+
summary {
|
|
83
|
+
font-size: var(--font-size-100);
|
|
84
|
+
line-height: var(--font-line-height-100);
|
|
85
|
+
position: relative;
|
|
86
|
+
display: flex;
|
|
87
|
+
align-items: baseline;
|
|
88
|
+
|
|
89
|
+
&::marker {
|
|
90
|
+
content: '';
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
svg.chevron {
|
|
95
|
+
margin-left: auto;
|
|
96
|
+
margin-right: var(--space-scale-1);
|
|
97
|
+
width: var(--space-scale-2);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&[open] svg.chevron {
|
|
101
|
+
transform: rotate(180deg);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.dropdown-items {
|
|
105
|
+
display: flex;
|
|
106
|
+
flex-direction: column;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
details > summary {
|
|
111
|
+
display: flex;
|
|
112
|
+
gap: var(--space-scale-1-5);
|
|
113
|
+
padding: var(--space-scale-1);
|
|
114
|
+
border-radius: var(--border-radius-100);
|
|
115
|
+
color: var(--nav-item-color);
|
|
116
|
+
align-items: center;
|
|
117
|
+
|
|
118
|
+
a {
|
|
119
|
+
color: var(--nav-item-color);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&:hover,
|
|
123
|
+
&:focus-visible {
|
|
124
|
+
background-color: var(--color-surface-inverted-200);
|
|
125
|
+
border-radius: var(--border-radius-100);
|
|
126
|
+
text-decoration: none;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.sub-nav-item {
|
|
131
|
+
padding-left: 44px;
|
|
132
|
+
padding-top: 10px;
|
|
133
|
+
padding-bottom: 10px;
|
|
134
|
+
color: var(--color-text-inverted-400);
|
|
135
|
+
font-size: var(--font-size-100);
|
|
136
|
+
line-height: var(--font-line-height-100);
|
|
137
|
+
|
|
138
|
+
button {
|
|
139
|
+
color: var(--color-text-inverted-400);
|
|
140
|
+
padding: 0;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.sub-nav-item:hover,
|
|
145
|
+
.sub-nav-item:focus-visible,
|
|
146
|
+
a:hover,
|
|
147
|
+
a:focus-visible {
|
|
148
|
+
background-color: var(--color-surface-inverted-200);
|
|
149
|
+
border-radius: var(--border-radius-100);
|
|
150
|
+
text-decoration: none;
|
|
151
|
+
color: var(--color-text-inverted-400);
|
|
152
|
+
|
|
153
|
+
.icon {
|
|
154
|
+
color: var(--color-text-inverted-400);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
|
|
27
159
|
`;
|