@@ -425,7 +425,6 @@ main {
425425.container {
426426 @include respond-min (768px ) {
427427 margin : 0 auto ;
428- max-width : 1400px ;
429428 padding : 0 (32 / 768 ) * 100% ;
430429 }
431430
@@ -463,13 +462,10 @@ header {
463462
464463 .container {
465464 display : flex ;
466- flex-direction : row ;
467- @include respond-min (768px ) {
468- position : relative ;
469- }
465+ align-items : center ;
470466 }
471467
472- .mobile-toggle {margin-left : auto }
468+ .header- mobile-only {margin-left : auto }
473469
474470 .meta {
475471 @include font-size (13 );
@@ -479,7 +475,7 @@ header {
479475 margin : 8px 0 0 10px ;
480476 display : none ;
481477
482- @include respond-min (1150 px ) {
478+ @include respond-min (1080 px ) {
483479 width : 200px ;
484480 display : block ;
485481 }
@@ -490,19 +486,26 @@ header {
490486 .logo {
491487 @include font-size (40 );
492488 @include sans-serif ;
493- background : url (../img/logo-django.svg ) center center no-repeat ;
489+ // Small screens less than 500px use the dj logo. This gives more
490+ // horizontal space for a searchbar in the header.
491+ background : url (../img/logo-dj.svg ) center center no-repeat ;
494492 color : var (--white-color );
495493 display : block ;
496494 font-weight : 700 ;
497- margin : 10px ;
495+ margin : 10px 4 px ;
498496 overflow : hidden ;
499497 text-decoration : none ;
500498 text-indent : 100% ;
501- width : 104 px ;
499+ width : 45 px ;
502500 height : 36px ;
503501
504- @include respond-min (768px ) {
505- margin-left : 0 ;
502+ @include respond-min (500px ) {
503+ background : url (../img/logo-django.svg ) center center no-repeat ;
504+ width : 104px ;
505+ }
506+
507+ @include respond-min (1080px ) {
508+ margin-left : 10px ;
506509 }
507510 }
508511
@@ -514,13 +517,12 @@ header {
514517 cursor : pointer ;
515518 display : block ;
516519 height : 45px ;
517- line-height : 48px ;
518- margin : 4px 10px ;
520+ margin : 2px ;
519521 text-align : center ;
520522 text-decoration : none ;
521523 width : 45px ;
522524
523- @include respond-min (768 px ) {
525+ @include respond-min (1080 px ) {
524526 display : none ;
525527 }
526528
@@ -544,7 +546,7 @@ header {
544546 max-height : 580px ;
545547 }
546548
547- @include respond-min (768 px ) {
549+ @include respond-min (1080 px ) {
548550 width : auto ;
549551 max-height : none ; // always show menu on a desktop width
550552 }
@@ -553,7 +555,9 @@ header {
553555 margin : 10px 0 0 ;
554556 padding : 0 ;
555557
556- @include respond-min (768px ) {
558+ @include respond-min (1080px ) {
559+ display : flex ;
560+ align-items : center ;
557561 margin : 0 ;
558562 }
559563 }
@@ -568,14 +572,18 @@ header {
568572 text-transform : uppercase ;
569573 margin : 0 10px ;
570574 border-top : 1px solid lighten ($green-dark , 5% );
571- padding : 20px 0px ;
575+ > :not (.search ){
576+ padding : 20px 0px ;
577+ }
572578
573- @include respond-min (768 px ) {
579+ @include respond-min (1080 px ) {
574580 margin : 0 ;
575581 border : 0 ;
576582 float : left ;
577583 text-align : left ;
578- padding : 20px 10px ;
584+ > :not (.search ){
585+ padding : 10px ;
586+ }
579587 }
580588
581589 & .active a {
@@ -608,18 +616,11 @@ header {
608616 color : var (--secondary-accent );
609617 }
610618
611- @include respond-min (768 px ) {
619+ @include respond-min (1080 px ) {
612620 padding : 20px 10px ;
613621 }
614622 }
615623
616- .nav-primary {
617- @include respond-min (768px ) {
618- position : absolute ;
619- right : 0 ;
620- top : 45px ;
621- }
622- }
623624 }
624625}
625626
@@ -645,7 +646,7 @@ header {
645646 top : 0 ;
646647 max-width : 660px ;
647648
648- @include respond-min (768 px ) {
649+ @include respond-min (1080 px ) {
649650 position : static ;
650651 }
651652 }
@@ -3005,14 +3006,10 @@ form {
30053006 height : 40px ;
30063007 padding : 0 ;
30073008 position : absolute ;
3008- right : 2 % ;
3009+ right : 0 ;
30093010 top : 6% ;
30103011 width : 40px ;
30113012
3012- @include respond-min (768px ) {
3013- right : 1% ;
3014- }
3015-
30163013 i {
30173014 @include font-size (20 );
30183015 line-height : 1 ;
@@ -3054,16 +3051,15 @@ form {
30543051 }
30553052
30563053 & .search {
3057- @include respond-min (768px ) {
3058- flex : 0 0 40% ;
3059- margin : 10px 0 ;
3060- }
3061-
3062- flex : 0 0 100% ;
3063- margin : 0 0 10px 0 ;
3064-
3065- button {
3066- top : 19% ;
3054+ width : 20% ;
3055+ min-width : 200px ;
3056+ margin : 10px ;
3057+ margin-left : 0 ;
3058+ input {
3059+ margin : 0 ;
3060+ @include respond-min (1080px ) {
3061+ margin : 0 10px ;
3062+ }
30673063 }
30683064 }
30693065}
@@ -3602,7 +3598,7 @@ ul.corporate-members li {
36023598 justify-content : space-between ;
36033599 }
36043600
3605- @include respond-max (1200 px ) {
3601+ @include respond-max (1080 px ) {
36063602 .community-title {
36073603 text-align : center ;
36083604 }
0 commit comments