@@ -157,58 +157,83 @@ code, pre, .code-block, .code-block * {
157157 display : none;
158158}
159159
160- /* Navbar CTA button */
161- a [href = "https://photon.codes/contact" ] {
162- --border-color : rgba (12 , 138 , 176 , 0.55 );
160+ /* Shared pill-button visual for the marketing-site CTA pair (Dashboard + Contact).
161+ Mirrors the Framer styling on https://photon.codes/spectrum:
162+ - 1.5px translucent border matching bg hue
163+ - inset white glow (box-shadow) that shifts on hover
164+ - subtle scale(1.02) hover transform */
165+ # navbar a [href ^= "https://app.photon.codes" ],
166+ # navbar li .navbar-link > a [href = "https://photon.codes/contact" ] {
163167 --corner-shape-fallback : 0.945 ;
164168 position : relative !important ;
165169 display : inline-flex !important ;
166170 align-items : center !important ;
167- gap : 0px !important ;
168- background-color : rgb (23 , 181 , 230 ) !important ;
171+ justify-content : center !important ;
169172 corner-shape : superellipse (1.1 );
170173 border-radius : calc (40px * var (--one-if-corner-shape-supported , var (--corner-shape-fallback , 1 ))) !important ;
171174 box-shadow : rgba (255 , 255 , 255 , 0.5 ) 0px 0px 5px 2px inset !important ;
172- border : 1.5px solid var (--border-color ) !important ;
175+ border-style : solid !important ;
176+ border-width : 1.5px !important ;
173177 padding : 8px 14px !important ;
174178 color : rgb (255 , 255 , 255 ) !important ;
175179 font-family : 'Inter' , sans-serif !important ;
176180 font-size : 14px !important ;
177181 font-weight : 500 !important ;
178182 text-shadow : rgba (128 , 128 , 128 , 0.25 ) 0px 0px 4px ;
179- margin-left : 8px !important ;
180- transition : gap 0.2s ease, transform 0.45s cubic-bezier (0.34 , 1.56 , 0.64 , 1 ) !important ;
183+ transition : box-shadow 0.35s ease, transform 0.35s cubic-bezier (0.34 , 1.56 , 0.64 , 1 ) !important ;
181184 transform : scale (1 );
182185}
183186
184- a [href = "https://photon.codes/contact" ]: hover {
185- gap : 4px !important ;
186- transform : scale (1.05 ) !important ;
187+ # navbar a [href ^= "https://app.photon.codes" ]: hover ,
188+ # navbar li .navbar-link > a [href = "https://photon.codes/contact" ]: hover {
189+ box-shadow : rgba (255 , 255 , 255 , 0.5 ) 0px -2.77px 7.82px 2px inset !important ;
190+ transform : scale (1.02 ) !important ;
187191}
188192
189- /* Arrow icon (slides in on hover) */
190- a [href = "https://photon.codes/contact" ]::after {
191- content : url ("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='20' height='20'%3E%3Cpath d='M 0 0 L 5.5 5.25 L 0 10.5' fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' stroke='white' transform='translate(13.75 6.75)'/%3E%3Cpath d='M 14.25 0 L 0 0' fill='none' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' stroke='white' transform='translate(4.75 12)'/%3E%3C/svg%3E" );
192- display : inline-block;
193- width : 0 ;
194- height : 20px ;
195- opacity : 0 ;
196- overflow : hidden;
197- line-height : 0 ;
198- transition : opacity 0.2s ease, width 0.2s ease;
199- vertical-align : middle;
193+ /* Dashboard = filled primary */
194+ # navbar a [href ^= "https://app.photon.codes" ] {
195+ background-color : rgb (41 , 152 , 217 ) !important ;
196+ border-color : rgba (41 , 152 , 217 , 0.62 ) !important ;
197+ margin-left : 8px !important ;
200198}
201199
202- a [href = "https://photon.codes/contact" ]: hover ::after {
203- opacity : 1 ;
204- width : 20px ;
200+ /* Contact = black outlined */
201+ # navbar li .navbar-link > a [href = "https://photon.codes/contact" ] {
202+ background-color : rgb (0 , 0 , 0 ) !important ;
203+ border-color : rgba (255 , 255 , 255 , 0.62 ) !important ;
205204}
206205
207- /* Hide vertical line and extra margin when button is inside mobile popup */
208- [data-headlessui-portal ] a [href = "https://photon.codes/contact" ] {
206+ /* Hide vertical link divider and extra margins when Dashboard renders inside the
207+ mobile popup (its own layout rules take over there). */
208+ [data-headlessui-portal ] a [href ^= "https://app.photon.codes" ] {
209209 margin-left : 0 !important ;
210210}
211211
212- [data-headlessui-portal ] a [href = "https://photon.codes/contact " ]::before {
212+ [data-headlessui-portal ] a [href ^ ="https://app. photon.codes" ]::before {
213213 display : none;
214214}
215+
216+ /* Pin the Contact <li> to the right edge of the navbar, next to the Dashboard CTA.
217+ Dashboard is `position: fixed; right: 28px` in the Mintlify Almond theme, so we
218+ use the same coordinate space for Contact. */
219+ # navbar li .navbar-link : has (> a [href = "https://photon.codes/contact" ]) {
220+ position : fixed !important ;
221+ right : calc (28px + 111px + 8px ) !important ;
222+ top : 0 !important ;
223+ height : 56px !important ;
224+ display : flex !important ;
225+ align-items : center !important ;
226+ border : none !important ;
227+ background : transparent !important ;
228+ padding : 0 !important ;
229+ margin : 0 !important ;
230+ z-index : 10 ;
231+ }
232+
233+ /* Inside the mobile popup, restore normal flow */
234+ [data-headlessui-portal ] li .navbar-link : has (> a [href = "https://photon.codes/contact" ]) {
235+ position : static !important ;
236+ top : auto !important ;
237+ right : auto !important ;
238+ transform : none !important ;
239+ }
0 commit comments