@@ -105,6 +105,8 @@ $color-social-icon-foreground: $color-light;
105105@include snapcraft-embedded-card-modal ;
106106@import " snapcraft_p-file-input" ;
107107@include snapcraft-p-file-input ;
108+ @import " snapcraft_p-navigation" ;
109+ @include snapcraft-p-navigation ;
108110@import " patterns_pagination" ;
109111@include snapcraft-p-pagination ;
110112@import " snapcraft_p-featured-snap" ;
@@ -506,101 +508,6 @@ html {
506508 position : relative ;
507509}
508510
509- @media (width < $breakpoint-navigation-threshold ) {
510- #navigation .p-navigation--sliding {
511- @property --right {
512- inherits : false;
513- initial-value : 0% ;
514- syntax : " <percentage>" ;
515- }
516-
517- .p-navigation__nav {
518- display : block ;
519- margin-top : 3.5rem ;
520- min-width : 100% ;
521- position : absolute ;
522- transform : translateX (var (--right ));
523-
524- // same function as for the global-nav dropdown
525- transition : transform 0.333s cubic-bezier (0.215 , 0.61 , 0.355 , 1 );
526-
527- // starts on the right outside of the screen
528- --right : 110% ;
529- }
530-
531- & .has-menu-open {
532- overflow-x : hidden ;
533- }
534-
535- & .has-menu-open .p-navigation__nav {
536- --right : 0% ;
537- }
538-
539- & .menu-closing .p-navigation__nav {
540- --right : 110% ;
541- }
542-
543- .p-navigation__items--section {
544- margin : 0 ;
545- padding : 0 ;
546- }
547- }
548- }
549-
550- @media (min-width : $breakpoint-navigation-threshold ) {
551- #navigation .p-navigation--sliding {
552- & .has-menu-open {
553- box-shadow : none ;
554- }
555-
556- @property --up {
557- inherits : false;
558- initial-value : 0% ;
559- syntax : " <percentage>" ;
560- }
561-
562- .p-navigation__items {
563- justify-content : space-between ;
564-
565- & --section {
566- display : flex ;
567- margin : 0 ;
568- padding : 0 ;
569- }
570- }
571-
572- .p-navigation__item--dropdown-toggle {
573- position : relative ;
574- }
575-
576- .p-navigation__dropdown--container {
577- // a bit extra % to be able to show the shadow of the box if present
578- clip-path : rect (0 105% 105% 0 );
579- display : block ;
580- min-width : 100% ;
581- position : absolute ;
582-
583- > .p-navigation__dropdown {
584- display : block ;
585- position : static ;
586- transform : translateY (calc (-1 * var (--up )));
587-
588- // same function as for the global-nav dropdown
589- transition : transform 0.333s cubic-bezier (0.215 , 0.61 , 0.355 , 1 );
590-
591- & [aria-hidden = " true" ] {
592- // extra 10% to not let the shadow show underneath the navbar
593- --up : 110% ;
594- }
595-
596- & [aria-hidden = " false" ] {
597- --up : 0% ;
598- }
599- }
600- }
601- }
602- }
603-
604511.read-only-dark {
605512 color : $colors--theme--text-muted ;
606513}
0 commit comments