@@ -190,6 +190,40 @@ code, pre, .code-block, .code-block * {
190190 transform : scale (1.02 ) !important ;
191191}
192192
193+ /* Shared gap animation for both buttons (creates the space between label and arrow on hover) */
194+ # navbar a [href ^= "https://app.photon.codes" ],
195+ # navbar li .navbar-link > a [href = "https://photon.codes/contact" ] {
196+ gap : 0 !important ;
197+ transition : box-shadow 0.35s ease,
198+ transform 0.35s cubic-bezier (0.34 , 1.56 , 0.64 , 1 ),
199+ gap 0.25s ease !important ;
200+ }
201+
202+ # navbar a [href ^= "https://app.photon.codes" ]: hover ,
203+ # navbar li .navbar-link > a [href = "https://photon.codes/contact" ]: hover {
204+ gap : 4px !important ;
205+ }
206+
207+ /* Arrow icon (slides in on hover) for both Dashboard and Contact */
208+ # navbar a [href ^= "https://app.photon.codes" ]::after ,
209+ # navbar li .navbar-link > a [href = "https://photon.codes/contact" ]::after {
210+ 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" );
211+ display : inline-block;
212+ width : 0 ;
213+ height : 20px ;
214+ opacity : 0 ;
215+ overflow : hidden;
216+ line-height : 0 ;
217+ transition : opacity 0.25s ease, width 0.25s ease;
218+ vertical-align : middle;
219+ }
220+
221+ # navbar a [href ^= "https://app.photon.codes" ]: hover ::after ,
222+ # navbar li .navbar-link > a [href = "https://photon.codes/contact" ]: hover ::after {
223+ opacity : 1 ;
224+ width : 20px ;
225+ }
226+
193227/* Dashboard = filled primary */
194228# navbar a [href ^= "https://app.photon.codes" ] {
195229 background-color : rgb (41 , 152 , 217 ) !important ;
@@ -228,6 +262,13 @@ code, pre, .code-block, .code-block * {
228262 padding : 0 !important ;
229263 margin : 0 !important ;
230264 z-index : 10 ;
265+ transition : right 0.25s ease !important ;
266+ }
267+
268+ /* When Dashboard is hovered (arrow slides in, button grows ~24px), shift Contact left
269+ so the two buttons don't collide. */
270+ # navbar : has (a [href ^= "https://app.photon.codes" ]: hover ) li .navbar-link : has (> a [href = "https://photon.codes/contact" ]) {
271+ right : calc (28px + 111px + 8px + 24px ) !important ;
231272}
232273
233274/* Inside the mobile popup, restore normal flow */
0 commit comments