5252 padding-left : 0 ;
5353 padding-right : 0 ;
5454 }
55-
5655 .td-sidebar {
5756 background-color : $td-sidebar-bg-color ;
5857 }
6362 background-color : $td-sidebar-bg-color ;
6463 height : unset ;
6564 }
66-
6765 .td-sidebar ,
6866 .td-sidebar-toc {
6967 background-color : unset ;
7068 }
71-
7269 .td-main {
7370 padding-left : 0 ;
7471 padding-right : 0 ;
7572 }
76-
7773 main {
7874 background-color : $body-bg ;
7975 }
105101 // - there is a left sidebar for md and above
106102 // - there is a right sidebar for xl and above
107103 margin-left : 0 ;
108-
109104 @include media-breakpoint-up (xl) {
110105 margin-right : 0 ;
111106 }
@@ -252,7 +247,6 @@ footer {
252247 @include media-breakpoint-down (md) {
253248 padding-left : 0.75rem ;
254249 padding-right : 0.75rem ;
255-
256250 .td-search {
257251 padding-right : 0.25rem ;
258252 }
@@ -261,7 +255,6 @@ footer {
261255 @include media-breakpoint-up (md) {
262256 padding-left : 0 ;
263257 padding-right : 0 ;
264-
265258 .td-search {
266259 padding-right : 0.5rem ;
267260 }
@@ -311,10 +304,8 @@ nav.foldable-nav .without-child {
311304
312305// style the sidebar like a folder tree
313306nav .foldable-nav {
314-
315307 // apply styles to the main sidebar sections
316308 .ul-1 {
317-
318309 // reduce padding of the sidebar links
319310 .with-child {
320311 padding-left : 1.5rem ;
@@ -333,12 +324,12 @@ nav.foldable-nav {
333324 }
334325
335326 // bold the chain of pages leading to the active page
336- .with-child.active-path > label a {
327+ .with-child.active-path > label a {
337328 font-weight : 700 ;
338329 }
339330
340331 // show a border on the left of open sections
341- .with-child > input :checked ~ ul {
332+ .with-child > input :checked ~ ul {
342333 border-left : 0.1rem dotted $td-sidebar-left-stroke-color ;
343334
344335 // round the bottom left corner
@@ -351,29 +342,29 @@ nav.foldable-nav {
351342 }
352343
353344 // color the border for the active path
354- .with-child.active-path > ul {
345+ .with-child.active-path > ul {
355346 border-left : 0.1rem solid $td-sidebar-left-stroke-active-color !important ;
356347 }
357348
358349 // make the arrow for the non-active sections gray
359- .with-child > label :before {
350+ .with-child > label :before {
360351 color : $td-sidebar-closed-color ;
361352 }
362353
363354 // make the arrow for open non-active sections gray
364- .with-child > input :checked ~ label :before {
355+ .with-child > input :checked ~ label :before {
365356 color : $td-sidebar-closed-color ;
366357 }
367358
368359 // make the arrow for open active sections blue
369- .with-child.active-path > input :checked ~ label :before {
360+ .with-child.active-path > input :checked ~ label :before {
370361 color : $primary ;
371362 }
372363 }
373364}
374365
375366// prevent overflow of long names in sidebar
376- .td-sidebar-nav__section > ul {
367+ .td-sidebar-nav__section > ul {
377368 overflow-wrap : break-word ;
378369}
379370
@@ -382,11 +373,11 @@ nav.foldable-nav {
382373// --------------------------------------------------
383374@media (hover : hover) and (pointer : fine) {
384375 nav .foldable-nav {
385- .ul-1 .with-child > label :hover :before {
376+ .ul-1 .with-child > label :hover :before {
386377 transition : transform 0.3s ;
387378 }
388379
389- .ul-1 .with-child > input :checked ~ label :hover :before {
380+ .ul-1 .with-child > input :checked ~ label :hover :before {
390381 transition : transform 0.3s ;
391382 }
392383 }
@@ -411,8 +402,7 @@ nav.foldable-nav {
411402 background-color : rgba (255 , 255 , 255 , 0.3 );
412403 align-self : center ;
413404 margin : 0 0.5rem ;
414-
415- @include media-breakpoint-down (md) {
405+ @include media-breakpoint-down (md){
416406 rotate : 90deg ;
417407 }
418408 }
@@ -507,7 +497,6 @@ nav.foldable-nav {
507497// Home page
508498// --------------------------------------------------
509499.td-home {
510-
511500 // make sure kubeflow title is white
512501 .display-1 {
513502 color : $white ;
@@ -614,61 +603,67 @@ nav.foldable-nav {
614603 margin : 0 0 1.5em 1.5em ;
615604 }
616605
617- #overview ,
618- #pageContent ,
619- #cncf ,
620- #community ,
621- #adopters {
606+ #overview , #pageContent , #cncf , #community , #adopters {
622607 padding : 4rem 0 4rem 0 !important ;
623608 }
624609
625610 #pageContent {
626- .argo-github-btn {
611+ // make card body a flex coloumn so github badge can sit at the bottom
612+ .card-deck .card-body ,
613+ .card-columns .card-body {
614+ display : flex ;
615+ flex-direction : column ;
616+ }
617+
618+ .card-footer-github {
619+ margin-top : auto ;
620+ padding-top : 0.75rem ;
621+ }
622+
623+ .kf-github-btn {
627624 display : inline-flex ;
628625 align-items : center ;
629- gap : 0.5 rem ;
630- color : #f8f9fa !important ;
631- text-decoration : none !important ;
626+ gap : 0.4 rem ;
627+ color : rgba ( 255 , 255 , 255 , 0.55 ) ;
628+ text-decoration : none ;
632629 transition : all 0.2s ease-in-out ;
633630 font-weight : 600 ;
634- font-size : 1.1 rem ;
635- border-bottom : none !important ;
631+ font-size : 0.95 rem ;
632+ border-bottom : none ;
636633
637634 i {
638635 transition : inherit ;
639636 }
640637
641638 .fa-github {
642- font-size : 1.4 rem ;
639+ font-size : 1.2 rem ;
643640 }
644641
645642 .fa-star {
646- font-size : 1.1rem ;
647- margin-left : 0.2rem ;
648- margin-right : -0.2rem ;
643+ font-size : 0.85rem ;
644+ margin-left : 0.1rem ;
649645 }
650646
651647 & :hover {
652- color : #ef7b4d !important ;
653- transform : translateY (-2px );
648+ color : $kf-blue !important ;
654649 }
655650 }
656651
657652 .project-github-link {
658653 transition : all 0.2s ease ;
659654 display : inline-block ;
660- border-bottom : none !important ;
655+ border-bottom : none ;
661656
662657 & :hover {
663658 transform : scale (1.2 );
664- color : #ffffff !important ;
665- border-bottom : none !important ;
659+ color : $kf-blue !important ;
660+ border-bottom : none ;
666661 }
667662 }
668663 }
669664
670665 #overview {
671- padding : 3rem 0 3rem 0 !important ;
666+ padding : 3rem 0 3rem 0 ;
672667 }
673668
674669 #overview p ,
@@ -778,29 +773,26 @@ nav.foldable-nav {
778773 margin : 0 1.5em 3em 1.5em ;
779774 }
780775
781- #pageContent .lead > .image {
776+ #pageContent .lead > .image {
782777 padding : 0 1.5em ;
783778 max-width : 60% ;
784779 margin-bottom : 1.5em ;
785780 }
786781
787- #pageContent .lead > .text p {
782+ #pageContent .lead > .text p {
788783 font-size : 1em ;
789784 }
790785
791786 @include media-breakpoint-up (sm) {
792-
793787 #overview ,
794788 #community {
795789 font-size : 1.125em ;
796790 }
797-
798- #pageContent .lead >.image {
791+ #pageContent .lead > .image {
799792 max-width : 35% ;
800793 margin-bottom : 3em ;
801794 }
802-
803- #pageContent .lead >.text p {
795+ #pageContent .lead > .text p {
804796 font-size : 1em ;
805797 }
806798 }
@@ -819,34 +811,28 @@ nav.foldable-nav {
819811 -ms-flex-align : stretch ;
820812 align-items : stretch ;
821813 }
822-
823- #pageContent .lead >* {
814+ #pageContent .lead > * {
824815 -ms-flex : 0 1 auto ;
825816 flex : 0 1 auto ;
826817 }
827-
828- #pageContent .lead >.image {
818+ #pageContent .lead > .image {
829819 display : block ;
830820 margin : 0 auto ;
831821 max-width : 100% ;
832822 }
833-
834- #pageContent .lead >.image >img {
823+ #pageContent .lead > .image > img {
835824 max-width : 80% ;
836825 margin : 0 auto ;
837826 }
838-
839- #pageContent .lead >.text {
827+ #pageContent .lead > .text {
840828 -ms-flex-preferred-size : 70% ;
841829 flex-basis : 70% ;
842830 }
843-
844- #pageContent .lead :nth-child (2 n + 0 )>.image {
831+ #pageContent .lead :nth-child (2 n + 0 ) > .image {
845832 -ms-flex-order : 2 ;
846833 order : 2 ;
847834 }
848-
849- #pageContent .lead :nth-child (2 n + 0 )>.text {
835+ #pageContent .lead :nth-child (2 n + 0 ) > .text {
850836 -ms-flex-order : 1 ;
851837 order : 1 ;
852838 }
@@ -904,8 +890,8 @@ nav.foldable-nav {
904890 border-bottom : none !important ;
905891}
906892
907- .td-content > ul li ,
908- .td-content > ol li .nav-item {
893+ .td-content > ul li ,
894+ .td-content > ol li .nav-item {
909895 margin-bottom : 0px ;
910896}
911897
@@ -948,10 +934,9 @@ nav.foldable-nav {
948934// code styling
949935// --------------------------------------------------
950936.td-content {
951-
952937 // set the background color of inline code
953938 p code ,
954- li > code ,
939+ li > code ,
955940 table code {
956941 background-color : $code-inline-bg ;
957942 }
@@ -962,7 +947,7 @@ nav.foldable-nav {
962947 }
963948
964949 // ensure links with code in them have the correct color
965- a > code {
950+ a > code {
966951 color : unset ;
967952 }
968953}
0 commit comments