397397}
398398
399399// -----------------------------
400- // Result list and Sidebar - USE
400+ // Result list - USE
401401// -----------------------------
402402
403403#content-wrapper {
428428 flex-grow : 1 ;
429429 }
430430
431- #results-sidebar {
432- flex : 0 0 360px ;
433-
434- display : flex ;
435- flex-direction : column ;
436- gap : 32px ;
437-
438- > div {
439- display : flex ;
440- gap : 12px ;
441-
442- i {
443- font-size : 2rem ;
444- margin-top : 1px ;
445- }
446- }
447-
448- @media (max-width : 1140px ) {
449- flex-basis : 280px ;
450- }
451-
452- p {
453- line-height : 1.4 ;
454- }
455-
456- a {
457- @include underlinedLinks ;
458- font-weight : $fw-medium ;
459- }
460- }
461-
462431 // Put the sidebar below the results when the screen is narrower than 1024px
463432 @media (max-width : $bp-screen-lg ) {
464433 flex-direction : column ;
465- gap : 32px ;
466-
467- // Put the sidebar items side by side when space is available
468- #results-sidebar {
469- flex-direction : row ;
470- padding-bottom : 40px ;
471- gap : 12px ;
472- flex-basis : auto ;
473-
474- > div {
475- padding-right : 24px ;
476- }
477- }
478-
479- #callout-wrapper {
480- margin-bottom : 0 ;
481- }
482- }
483-
484- // Put sidebar items in a column below 768px
485- @media (max-width : $bp-screen-md ) {
486-
487- #results-sidebar {
488- flex-direction : column ;
489- gap : 32px ;
490- }
491-
434+ gap : 0px ;
492435 }
493- }
494-
495436}
496437
497438// ----------------------------
498439// Result callout boxes
499440// ----------------------------
500441
501- # callout-wrapper {
442+ . callout-wrapper {
502443 display : flex ;
503444 gap : 12px ;
504445 margin-bottom : 32px ;
514455 i {
515456 font-size : 2rem ;
516457 margin-top : 1px ;
458+ flex : 0 0 20px ;
517459 }
518460
519461 p {
529471 flex-direction : column ;
530472 }
531473}
474+
475+ // Callout box responsive behavior
476+ // SIDEBAR COLLAPSES BELOW RESULTS
477+ @media (max-width : $bp-screen-lg ) {
478+ // Hide the bordered callouts
479+ #results > .callout-wrapper {
480+ display : none ;
481+ }
482+ }
483+
484+
485+ // -----------------------------
486+ // Result sidebar
487+ // -----------------------------
488+
489+ #results-layout-wrapper #results-sidebar {
490+ flex : 0 0 360px ;
491+
492+ display : flex ;
493+ flex-direction : column ;
494+ gap : 32px ;
495+
496+ .core-sidebar-items {
497+ display : flex ;
498+ flex-direction : column ;
499+ gap : 32px ;
500+
501+ > div {
502+ display : flex ;
503+ gap : 12px ;
504+
505+ i {
506+ font-size : 2rem ;
507+ margin-top : 1px ;
508+ flex : 0 0 20px ;
509+ }
510+ }
511+ }
512+
513+ @media (max-width : 1140px ) {
514+ flex-basis : 280px ;
515+ }
516+
517+ p {
518+ line-height : 1.4 ;
519+ }
520+
521+ a {
522+ @include underlinedLinks ;
523+ font-weight : $fw-medium ;
524+ }
525+
526+ // Override some of the styling of the callout boxes when they're in the sidebar.
527+ .callout-wrapper {
528+ aside {
529+ border : none ;
530+ padding : 0 ;
531+
532+ a {
533+ text-decoration : none ;
534+ }
535+ }
536+
537+ flex-direction : column ;
538+ gap : 32px ;
539+ border-bottom : 1px solid $color-border-default ;
540+ padding-bottom : 32px ;
541+ margin-bottom : 0 ;
542+ }
543+
544+ // Re-layout the sidebar contents when below results on smaller screens
545+ @media (max-width : $bp-screen-lg ) {
546+
547+ flex-direction : column ;
548+
549+ .callout-wrapper {
550+ flex-direction : row ;
551+ }
552+
553+ .core-sidebar-items {
554+ flex-direction : row ;
555+ }
556+
557+ }
558+
559+ @media (max-width : $bp-screen-sm2 ) {
560+ .callout-wrapper {
561+ flex-direction : column ;
562+ }
563+
564+ .core-sidebar-items {
565+ flex-direction : column ;
566+ }
567+ }
568+ }
569+ }
0 commit comments