File tree Expand file tree Collapse file tree 1 file changed +31
-8
lines changed
Expand file tree Collapse file tree 1 file changed +31
-8
lines changed Original file line number Diff line number Diff line change 77/* Header styling */
88.md-header {
99 background-color : # 000000 !important ;
10- top : 32px ;
1110}
1211
1312.md-header__title {
@@ -289,23 +288,47 @@ html .md-nav__button.md-logo img {
289288 box-shadow : inset 0 -3px 0 0 # 76B900 ;
290289}
291290
292- /* Top banner */
293- .banner {
291+ /* Fix background flicker */
292+ html , body {
293+ margin : 0 ;
294+ padding : 0 ;
295+ background-color : # fff ;
296+ }
297+
298+ /* Banner at top */
299+ .banner {
294300 position : fixed;
295301 top : 0 ;
296302 left : 0 ;
297303 width : 100% ;
298- z-index : 9999 ; /* Ensure it's above the header */
304+ height : 36 px ;
299305 background-color : # 76B900 ;
300- padding : 8 px 16 px ;
306+ color : white ;
301307 font-family : 'Roboto' , sans-serif;
302308 font-weight : 600 ;
303309 font-size : 14px ;
304- color : white;
305- text-align : center;
310+ display : flex;
311+ align-items : center;
312+ justify-content : center;
313+ z-index : 9999 ;
314+ box-shadow : 0 1px 2px rgba (0 , 0 , 0 , 0.1 );
306315 }
307316
308- /* Remove old .banner a styles */
317+ /* Header sits below the banner */
318+ .md-header {
319+ position : fixed !important ;
320+ top : 36px !important ; /* match banner height */
321+ width : 100% ;
322+ z-index : 9998 ;
323+ background-color : # 000000 !important ;
324+ }
325+
326+ /* Push main content below both */
327+ .md-main {
328+ margin-top : 92px !important ; /* 36px banner + 56px header */
329+ }
330+
331+
309332
310333
311334/* Sidebar: Default all links to black */
You can’t perform that action at this time.
0 commit comments