File tree Expand file tree Collapse file tree 1 file changed +31
-25
lines changed
Expand file tree Collapse file tree 1 file changed +31
-25
lines changed Original file line number Diff line number Diff line change @@ -564,22 +564,40 @@ footer a:hover {
564564
565565@media (max-width : 768px ) {
566566 .burger-btn {
567- display : block;
568- position : absolute;
569- left : 20px ;
570- top : 20px ;
571- cursor : pointer;
572- padding : 10px ;
573- z-index : 3 ;
567+ width : 45px ;
568+ height : 45px ;
569+ display : flex;
570+ flex-direction : column;
571+ justify-content : center;
572+ align-items : center;
573+ background : transparent;
574+ border : none;
575+ outline : none;
574576 }
575577
576578 .burger-btn span {
577- display : block;
578- width : 25px ;
579- height : 3px ;
580- background-color : # 333 ;
581- margin : 5px 0 ;
582- transition : 0.3s ;
579+ display : block;
580+ width : 25px ;
581+ height : 3px ;
582+ background-color : # fff ;
583+ transition : all 0.3s ease;
584+ pointer-events : none;
585+ }
586+
587+ .burger-btn span + span {
588+ margin-top : 5px ;
589+ }
590+
591+ .burger-btn .active span : nth-child (1 ) {
592+ transform : rotate (-45deg ) translate (-5px , 6px );
593+ }
594+
595+ .burger-btn .active span : nth-child (2 ) {
596+ opacity : 0 ;
597+ }
598+
599+ .burger-btn .active span : nth-child (3 ) {
600+ transform : rotate (45deg ) translate (-5px , -6px );
583601 }
584602
585603 .project-grid {
@@ -657,18 +675,6 @@ footer a:hover {
657675 text-align : center;
658676 }
659677
660- .burger-btn .active span : nth-child (1 ) {
661- transform : rotate (-45deg ) translate (-5px , 6px );
662- }
663-
664- .burger-btn .active span : nth-child (2 ) {
665- opacity : 0 ;
666- }
667-
668- .burger-btn .active span : nth-child (3 ) {
669- transform : rotate (45deg ) translate (-5px , -6px );
670- }
671-
672678 .logo {
673679 margin-left : 50px ;
674680 }
You can’t perform that action at this time.
0 commit comments