5252 padding-left : 0 ;
5353 padding-right : 0 ;
5454 }
55+
5556 .td-sidebar {
5657 background-color : $td-sidebar-bg-color ;
5758 }
6263 background-color : $td-sidebar-bg-color ;
6364 height : unset ;
6465 }
66+
6567 .td-sidebar ,
6668 .td-sidebar-toc {
6769 background-color : unset ;
6870 }
71+
6972 .td-main {
7073 padding-left : 0 ;
7174 padding-right : 0 ;
7275 }
76+
7377 main {
7478 background-color : $body-bg ;
7579 }
101105 // - there is a left sidebar for md and above
102106 // - there is a right sidebar for xl and above
103107 margin-left : 0 ;
108+
104109 @include media-breakpoint-up (xl) {
105110 margin-right : 0 ;
106111 }
@@ -247,6 +252,7 @@ footer {
247252 @include media-breakpoint-down (md) {
248253 padding-left : 0.75rem ;
249254 padding-right : 0.75rem ;
255+
250256 .td-search {
251257 padding-right : 0.25rem ;
252258 }
@@ -255,6 +261,7 @@ footer {
255261 @include media-breakpoint-up (md) {
256262 padding-left : 0 ;
257263 padding-right : 0 ;
264+
258265 .td-search {
259266 padding-right : 0.5rem ;
260267 }
@@ -304,8 +311,10 @@ nav.foldable-nav .without-child {
304311
305312// style the sidebar like a folder tree
306313nav .foldable-nav {
314+
307315 // apply styles to the main sidebar sections
308316 .ul-1 {
317+
309318 // reduce padding of the sidebar links
310319 .with-child {
311320 padding-left : 1.5rem ;
@@ -324,12 +333,12 @@ nav.foldable-nav {
324333 }
325334
326335 // bold the chain of pages leading to the active page
327- .with-child.active-path > label a {
336+ .with-child.active-path > label a {
328337 font-weight : 700 ;
329338 }
330339
331340 // show a border on the left of open sections
332- .with-child > input :checked ~ ul {
341+ .with-child > input :checked ~ ul {
333342 border-left : 0.1rem dotted $td-sidebar-left-stroke-color ;
334343
335344 // round the bottom left corner
@@ -342,29 +351,29 @@ nav.foldable-nav {
342351 }
343352
344353 // color the border for the active path
345- .with-child.active-path > ul {
354+ .with-child.active-path > ul {
346355 border-left : 0.1rem solid $td-sidebar-left-stroke-active-color !important ;
347356 }
348357
349358 // make the arrow for the non-active sections gray
350- .with-child > label :before {
359+ .with-child > label :before {
351360 color : $td-sidebar-closed-color ;
352361 }
353362
354363 // make the arrow for open non-active sections gray
355- .with-child > input :checked ~ label :before {
364+ .with-child > input :checked ~ label :before {
356365 color : $td-sidebar-closed-color ;
357366 }
358367
359368 // make the arrow for open active sections blue
360- .with-child.active-path > input :checked ~ label :before {
369+ .with-child.active-path > input :checked ~ label :before {
361370 color : $primary ;
362371 }
363372 }
364373}
365374
366375// prevent overflow of long names in sidebar
367- .td-sidebar-nav__section > ul {
376+ .td-sidebar-nav__section > ul {
368377 overflow-wrap : break-word ;
369378}
370379
@@ -373,11 +382,11 @@ nav.foldable-nav {
373382// --------------------------------------------------
374383@media (hover : hover) and (pointer : fine) {
375384 nav .foldable-nav {
376- .ul-1 .with-child > label :hover :before {
385+ .ul-1 .with-child > label :hover :before {
377386 transition : transform 0.3s ;
378387 }
379388
380- .ul-1 .with-child > input :checked ~ label :hover :before {
389+ .ul-1 .with-child > input :checked ~ label :hover :before {
381390 transition : transform 0.3s ;
382391 }
383392 }
@@ -402,7 +411,8 @@ nav.foldable-nav {
402411 background-color : rgba (255 , 255 , 255 , 0.3 );
403412 align-self : center ;
404413 margin : 0 0.5rem ;
405- @include media-breakpoint-down (md){
414+
415+ @include media-breakpoint-down (md) {
406416 rotate : 90deg ;
407417 }
408418 }
@@ -497,6 +507,7 @@ nav.foldable-nav {
497507// Home page
498508// --------------------------------------------------
499509.td-home {
510+
500511 // make sure kubeflow title is white
501512 .display-1 {
502513 color : $white ;
@@ -603,10 +614,59 @@ nav.foldable-nav {
603614 margin : 0 0 1.5em 1.5em ;
604615 }
605616
606- #overview , #pageContent , #cncf , #community , #adopters {
617+ #overview ,
618+ #pageContent ,
619+ #cncf ,
620+ #community ,
621+ #adopters {
607622 padding : 4rem 0 4rem 0 !important ;
608623 }
609624
625+ #pageContent {
626+ .argo-github-btn {
627+ display : inline-flex ;
628+ align-items : center ;
629+ gap : 0.5rem ;
630+ color : #f8f9fa !important ;
631+ text-decoration : none !important ;
632+ transition : all 0.2s ease-in-out ;
633+ font-weight : 600 ;
634+ font-size : 1.1rem ;
635+ border-bottom : none !important ;
636+
637+ i {
638+ transition : inherit ;
639+ }
640+
641+ .fa-github {
642+ font-size : 1.4rem ;
643+ }
644+
645+ .fa-star {
646+ font-size : 1.1rem ;
647+ margin-left : 0.2rem ;
648+ margin-right : -0.2rem ;
649+ }
650+
651+ & :hover {
652+ color : #ef7b4d !important ;
653+ transform : translateY (-2px );
654+ }
655+ }
656+
657+ .project-github-link {
658+ transition : all 0.2s ease ;
659+ display : inline-block ;
660+ border-bottom : none !important ;
661+
662+ & :hover {
663+ transform : scale (1.2 );
664+ color : #ffffff !important ;
665+ border-bottom : none !important ;
666+ }
667+ }
668+ }
669+
610670 #overview {
611671 padding : 3rem 0 3rem 0 !important ;
612672 }
@@ -718,26 +778,29 @@ nav.foldable-nav {
718778 margin : 0 1.5em 3em 1.5em ;
719779 }
720780
721- #pageContent .lead > .image {
781+ #pageContent .lead > .image {
722782 padding : 0 1.5em ;
723783 max-width : 60% ;
724784 margin-bottom : 1.5em ;
725785 }
726786
727- #pageContent .lead > .text p {
787+ #pageContent .lead > .text p {
728788 font-size : 1em ;
729789 }
730790
731791 @include media-breakpoint-up (sm) {
792+
732793 #overview ,
733794 #community {
734795 font-size : 1.125em ;
735796 }
736- #pageContent .lead > .image {
797+
798+ #pageContent .lead >.image {
737799 max-width : 35% ;
738800 margin-bottom : 3em ;
739801 }
740- #pageContent .lead > .text p {
802+
803+ #pageContent .lead >.text p {
741804 font-size : 1em ;
742805 }
743806 }
@@ -756,28 +819,34 @@ nav.foldable-nav {
756819 -ms-flex-align : stretch ;
757820 align-items : stretch ;
758821 }
759- #pageContent .lead > * {
822+
823+ #pageContent .lead >* {
760824 -ms-flex : 0 1 auto ;
761825 flex : 0 1 auto ;
762826 }
763- #pageContent .lead > .image {
827+
828+ #pageContent .lead >.image {
764829 display : block ;
765830 margin : 0 auto ;
766831 max-width : 100% ;
767832 }
768- #pageContent .lead > .image > img {
833+
834+ #pageContent .lead >.image >img {
769835 max-width : 80% ;
770836 margin : 0 auto ;
771837 }
772- #pageContent .lead > .text {
838+
839+ #pageContent .lead >.text {
773840 -ms-flex-preferred-size : 70% ;
774841 flex-basis : 70% ;
775842 }
776- #pageContent .lead :nth-child (2 n + 0 ) > .image {
843+
844+ #pageContent .lead :nth-child (2 n + 0 )>.image {
777845 -ms-flex-order : 2 ;
778846 order : 2 ;
779847 }
780- #pageContent .lead :nth-child (2 n + 0 ) > .text {
848+
849+ #pageContent .lead :nth-child (2 n + 0 )>.text {
781850 -ms-flex-order : 1 ;
782851 order : 1 ;
783852 }
@@ -835,8 +904,8 @@ nav.foldable-nav {
835904 border-bottom : none !important ;
836905}
837906
838- .td-content > ul li ,
839- .td-content > ol li .nav-item {
907+ .td-content > ul li ,
908+ .td-content > ol li .nav-item {
840909 margin-bottom : 0px ;
841910}
842911
@@ -879,9 +948,10 @@ nav.foldable-nav {
879948// code styling
880949// --------------------------------------------------
881950.td-content {
951+
882952 // set the background color of inline code
883953 p code ,
884- li > code ,
954+ li > code ,
885955 table code {
886956 background-color : $code-inline-bg ;
887957 }
@@ -892,7 +962,7 @@ nav.foldable-nav {
892962 }
893963
894964 // ensure links with code in them have the correct color
895- a > code {
965+ a > code {
896966 color : unset ;
897967 }
898968}
@@ -902,4 +972,4 @@ nav.foldable-nav {
902972// --------------------------------------------------
903973.alert {
904974 background-color : $alert-bg ;
905- }
975+ }
0 commit comments