|
59 | 59 | justify-content: center;
|
60 | 60 | width: 100vw;
|
61 | 61 | z-index: 1;
|
62 |
| - border-color: hsl(214.3 31.8% 91.4%); |
| 62 | + // |
63 | 63 | }
|
64 | 64 |
|
65 | 65 | .navgation-menu-list {
|
66 | 66 | display: flex;
|
67 | 67 | justify-content: center;
|
68 |
| - background-color: white; |
| 68 | + background-color: $navigation-background-secondary; |
69 | 69 | padding: 4px;
|
70 | 70 | border-radius: 6px;
|
71 | 71 | list-style: none;
|
72 |
| - // box-shadow: 0 2px 10px var(--blackA7); |
73 | 72 | margin: 0;
|
74 | 73 | }
|
75 | 74 |
|
|
80 | 79 | font-weight: 500;
|
81 | 80 | line-height: 1;
|
82 | 81 | border-radius: 4px;
|
| 82 | + border: none; |
83 | 83 | font-size: 15px;
|
84 |
| - color: black; |
| 84 | + color: $navigation-text-primary; |
85 | 85 | display: flex;
|
86 | 86 | align-items: center;
|
87 | 87 | justify-content: space-between;
|
| 88 | + background-color: $navigation-background-secondary; |
88 | 89 | gap: 2px;
|
89 |
| - :focus { |
| 90 | + &:focus { |
90 | 91 | outline: 0;
|
91 |
| - box-shadow: 0 0 0 2px red; |
92 | 92 | }
|
93 |
| - :hover { |
94 |
| - background-color: gray; |
| 93 | + &:hover { |
| 94 | + background-color: $navigation-hover-primary; |
95 | 95 | }
|
96 |
| - :disabled { |
| 96 | + &:disabled { |
97 | 97 | pointer-events: none;
|
98 | 98 | opacity: 0.5;
|
99 | 99 | }
|
| 100 | + &[data-state="open"] > svg { |
| 101 | + transform: rotate(180deg); |
| 102 | + } |
100 | 103 | .chevrondown {
|
101 | 104 | position: relative;
|
102 | 105 | margin-left: 0.25rem;
|
|
106 | 109 | width: 0.75rem;
|
107 | 110 | height: 0.75rem;
|
108 | 111 | top: 1px;
|
109 |
| - &[data-state="open"] > svg { |
110 |
| - transform: rotate(180deg); |
111 |
| - } |
112 | 112 | }
|
113 | 113 | }
|
114 | 114 |
|
|
120 | 120 | line-height: 1;
|
121 | 121 | border-radius: 4px;
|
122 | 122 | font-size: 15px;
|
123 |
| - color: black; |
| 123 | + color: $navigation-text-primary; |
124 | 124 | display: block;
|
125 | 125 | text-decoration: none;
|
126 | 126 | font-size: 15px;
|
127 | 127 | line-height: 1;
|
128 |
| - :focus { |
| 128 | + &:focus { |
129 | 129 | outline: 0;
|
130 |
| - box-shadow: 0 0 0 2px red; |
131 | 130 | }
|
132 |
| - :hover { |
133 |
| - background-color: gray; |
| 131 | + &:hover { |
| 132 | + background-color: $navigation-hover-primary; |
134 | 133 | }
|
135 | 134 | }
|
136 | 135 |
|
137 | 136 | .navigation-menu-content {
|
138 | 137 | //animation
|
139 | 138 | position: absolute;
|
140 | 139 | top: 0;
|
141 |
| - left: 0; |
142 |
| - width: 100%; |
| 140 | + // left: 0; |
| 141 | + width: 25%; |
143 | 142 | animation-duration: 250ms;
|
144 | 143 | animation-timing-function: ease;
|
| 144 | + // background-color: red; |
145 | 145 | &[data-motion="from-start"] {
|
146 | 146 | animation-name: enterFromLeft;
|
147 | 147 | }
|
|
165 | 165 | position: absolute;
|
166 | 166 | display: flex;
|
167 | 167 | justify-content: center;
|
168 |
| - width: 100%; |
| 168 | + width: 40%; |
169 | 169 | top: 100%;
|
170 |
| - left: 0; |
| 170 | + // left: 0; |
171 | 171 | perspective: 2000px;
|
172 | 172 | .navigation-menu-primitive-viewport {
|
173 | 173 | // animate. datastate,media
|
| 174 | + border: 2px; |
| 175 | + border-style: solid; |
| 176 | + border-color: $navigation-border-primary; // #e2e8f0 |
174 | 177 | position: relative;
|
175 | 178 | transform-origin: top center;
|
176 | 179 | margin-top: 10px;
|
177 | 180 | width: 100%;
|
178 |
| - background-color: white; |
| 181 | + background-color: $navigation-background-secondary; |
179 | 182 | border-radius: 6px;
|
180 | 183 | overflow: hidden;
|
181 |
| - box-shadow: hsl(206 22% 7% / 35%) 0px 10px 38px -10px, |
182 |
| - hsl(206 22% 7% / 20%) 0px 10px 20px -15px; |
183 |
| - height: var(--radix-navigation-menu-viewport-height); |
| 184 | + height: 300px; |
184 | 185 | transition: width, height, 300ms ease;
|
185 | 186 | [data-state="open"] {
|
186 | 187 | animation: scaleIn 200ms ease;
|
|
212 | 213 | --transform-rotate: 45deg;
|
213 | 214 | width: 0.5rem;
|
214 | 215 | height: 0.5rem;
|
215 |
| - border-top-left-radius: 0.125rem; |
216 |
| - box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), |
217 |
| - 0 2px 4px -1px rgba(0, 0, 0, 0.06); |
218 |
| - top: 60%; |
219 | 216 | }
|
220 | 217 | }
|
221 | 218 |
|
|
240 | 237 | display: flex;
|
241 | 238 | justify-content: flex-end;
|
242 | 239 | flex-direction: column;
|
243 |
| - width: 100%; |
244 |
| - height: 100%; |
245 |
| - background: linear-gradient(135deg, var(--purple9) 0%, var(--indigo9) 100%); |
| 240 | + width: 75%; |
| 241 | + height: 75%; |
| 242 | + background: $navigation-background-primary; |
246 | 243 | border-radius: 6px;
|
247 | 244 | padding: 25px;
|
248 | 245 | text-decoration: none;
|
|
253 | 250 | .demo-menu-logo {
|
254 | 251 | width: 1.5rem;
|
255 | 252 | height: 1.5rem;
|
256 |
| - .demo-menu-icons { |
257 |
| - color: white; |
258 |
| - font-size: 18px; |
259 |
| - font-weight: 500; |
260 |
| - line-height: 1.2; |
261 |
| - margin-top: 16px; |
262 |
| - margin-bottom: 7px; |
263 |
| - } |
264 |
| - .demo-menu-para { |
265 |
| - color: pink; |
266 |
| - font-size: 14px; |
267 |
| - line-height: 1.3; |
268 |
| - } |
| 253 | + color: $navigation-icon-color; |
| 254 | + padding-bottom: 10px; |
| 255 | + } |
| 256 | + .demo-menu-icons { |
| 257 | + font-size: 18px; |
| 258 | + font-weight: 500; |
| 259 | + line-height: 1.2; |
| 260 | + margin-top: 16px; |
| 261 | + margin-bottom: 7px; |
| 262 | + color: $navigation-text-secondary; |
| 263 | + } |
| 264 | + .demo-menu-para { |
| 265 | + color: $navigation-text-danger; |
| 266 | + font-size: 14px; |
| 267 | + line-height: 1.3; |
269 | 268 | }
|
270 | 269 | }
|
271 | 270 |
|
|
292 | 291 | outline: none;
|
293 | 292 | text-decoration: none;
|
294 | 293 | user-select: none;
|
295 |
| - padding: 12px; |
| 294 | + padding: 3px; |
296 | 295 | border-radius: 6px;
|
297 | 296 | font-size: 15px;
|
298 | 297 | line-height: 1;
|
299 |
| - :focus { |
300 |
| - box-shadow: 0 0 0 2px violet; |
301 |
| - } |
302 |
| - :hover { |
303 |
| - background-color: red; |
| 298 | + flex-direction: column; |
| 299 | + justify-content: space-between; |
| 300 | + &:hover { |
| 301 | + background-color: $navigation-hover-primary; |
| 302 | + color: $navigation-text-primary; |
304 | 303 | }
|
305 | 304 | .demo-menu-title {
|
306 | 305 | font-weight: 500;
|
307 | 306 | line-height: 1.2;
|
308 |
| - margin-bottom: 5px; |
309 |
| - color: violet; |
| 307 | + margin-bottom: 3px; |
| 308 | + color: $navigation-text-secondary; |
| 309 | + &:hover { |
| 310 | + color: $navigation-text-primary; |
| 311 | + } |
310 | 312 | }
|
311 | 313 | .demo-menu-children {
|
312 |
| - color: yellow; |
| 314 | + color: $navigation-text-danger; |
313 | 315 | line-height: 1.4;
|
314 | 316 | font-weight: initial;
|
315 | 317 | }
|
|
0 commit comments