22==========================================================================
33MASTHEAD
44
5- Layout of the top-level items within the masthead.
6- For styling of menu contents , see _pyos-dropdown.scss
5+ Layout and styling of the top-level items within the masthead.
6+ For dropdown menu functionality , see _pyos-dropdown.scss
77==========================================================================
88*/
99
1010.masthead {
1111 position : relative ;
1212 border-bottom : 1px solid $border-color ;
13+ padding-bottom : 0.15rem ; // Add space below navigation to prevent overlap
1314 -webkit-animation : $intro-transition ;
1415 animation : $intro-transition ;
1516 -webkit-animation-delay : 0.15s ;
@@ -22,19 +23,23 @@ For styling of menu contents, see _pyos-dropdown.scss
2223 margin : auto ;
2324 padding : 0 1em ;
2425 max-width : 100% ;
25- height : 3 rem ;
26+ height : 4 rem ; // Increased from 3rem to accommodate taller logo
2627 display : flex ;
2728 justify-content : space-between ;
2829 font-family : $sans-serif-narrow ;
2930 position : relative ;
3031 align-items : stretch ;
31- min-height : 2 em ;
32+ min-height : 3 rem ; // Increased from 2em to ensure adequate height
3233 background : #fff ;
3334
3435 & > * {
3536 margin : auto ;
3637 }
3738
39+ .nav__links {
40+ margin : 0 ;
41+ }
42+
3843 a {
3944 text-decoration : none ;
4045 }
@@ -63,19 +68,28 @@ For styling of menu contents, see _pyos-dropdown.scss
6368 justify-content : center ;
6469 align-items : center ;
6570 padding : 0.5em 0 ;
71+ margin-bottom : 0 ; // Ensure no extra margin causing overlap
72+ flex-shrink : 0 ; // Prevent logo from shrinking in flexbox
73+ flex-grow : 0 ; // Prevent logo from growing in flexbox
74+
75+ // Responsive adjustments for mobile
76+ @media (max-width : $medium ) {
77+ padding : 0.25em 0 ; // Reduce padding on mobile but keep logo size
78+ }
6679
6780 & ::after {
6881 display : none ;
6982 }
7083
7184 img {
7285 object-fit : contain ;
73- height : 2.5 em ;
86+ height : 2.5 rem ; // Use rem instead of em for consistent size across breakpoints
7487 width : auto ;
7588 margin : 0 ;
7689 display : block ;
7790 box-shadow : none ;
7891 align-self : center ;
92+ max-height : 2.5rem ; // Ensure it never exceeds this size
7993 }
8094}
8195
@@ -94,3 +108,80 @@ For styling of menu contents, see _pyos-dropdown.scss
94108 font-size : .8em ;
95109 color : $nav-font-color ;
96110}
111+
112+ /*
113+ ==========================================================================
114+ NAVIGATION LINKS STYLING
115+ ==========================================================================
116+ */
117+
118+ /* Donate button and search in navigation */
119+ .nav__links {
120+ display : flex ;
121+ align-items : stretch ;
122+ height : 100% ;
123+
124+ li {
125+ display : flex ;
126+ align-items : center ;
127+ }
128+
129+ .search__toggle {
130+ margin-left : 0 !important ;
131+ margin-right : 0.75em !important ;
132+ padding : 14px 12px ;
133+ background : transparent ;
134+ border : none ;
135+ color : $nav-font-color ;
136+ cursor : pointer ;
137+ display : flex ;
138+ align-items : center ;
139+ justify-content : center ;
140+ font-size : 1em ;
141+ height : 100% ;
142+ transition : color 0.2s ease ;
143+
144+ & :hover {
145+ color : $pyos-darkpurple ;
146+ }
147+
148+ i {
149+ font-size : 1em ;
150+ }
151+ }
152+
153+ .donate-btn {
154+ margin-left : 0 ;
155+ padding : 0.5em 0.75em ;
156+ font-size : 0.8em ;
157+ font-weight : 500 ;
158+ white-space : nowrap ;
159+ text-decoration : none ;
160+ display : inline-flex ;
161+ align-items : center ;
162+ justify-content : center ;
163+ height : auto ;
164+ line-height : 1.3 ;
165+ border : 1px solid $pyos-darkpurple ;
166+ box-shadow : 0 4px 6px rgba (0 , 0 , 0 , 0.1 ), 0 2px 4px rgba (0 , 0 , 0 , 0.06 );
167+ transition : box-shadow 0.3s ease , transform 0.2s ease , color 0.3s ease ;
168+ background-color : $pyos-darkpurple ;
169+ color : $pyos-white !important ;
170+
171+ & :hover {
172+ box-shadow : 0 10px 15px rgba (0 , 0 , 0 , 0.15 ), 0 4px 6px rgba (0 , 0 , 0 , 0.1 );
173+ transform : translateY (-1px );
174+ color : $pyos-lightpurple !important ;
175+ }
176+
177+ @include breakpoint ($medium ) {
178+ margin-left : 0 ;
179+ }
180+
181+ @media (max-width : $medium ) {
182+ margin-left : 0 ;
183+ width : 100% ;
184+ justify-content : center ;
185+ }
186+ }
187+ }
0 commit comments