@@ -208,9 +208,25 @@ body.docs-ndl .widget .sectionbody {
208208 border : none;
209209 padding : 1rem ;
210210 row-gap : 0 ;
211+ column-gap : 2rem ;
212+ }
213+
214+ body .docs-ndl .widget .banner .sectionbody {
215+ background : rgba (var (--colors-baltic-60 ));
216+ background-repeat : no-repeat;
217+ background-position : right;
218+ background-size : contain;
219+ border-radius : 1rem ;
220+ border : none;
221+ padding : 2rem ;
222+ row-gap : 0 ;
211223 column-gap : 0 ;
212224}
213225
226+ body .docs-ndl .widget .banner .start .sectionbody {
227+ background-image : url(../ img/start.svg);
228+ }
229+
214230body .docs-ndl .sub .widget .sectionbody {
215231 background : transparent;
216232 padding : 0 ;
@@ -219,6 +235,14 @@ body.docs-ndl.sub .widget .sectionbody {
219235 column-gap : 1rem ;
220236}
221237
238+ body .docs-ndl .sub .widget .banner .sectionbody {
239+ background : transparent;
240+ padding : 0 ;
241+ justify-content : flex-start;
242+ row-gap : 1rem ;
243+ column-gap : 1rem ;
244+ }
245+
222246body .docs-ndl .sub .widget .sectionbody .sect2 {
223247 border-radius : 1rem ;
224248 flex : 0 0 32% ;
@@ -356,26 +380,39 @@ body.docs-ndl.explainer .sect1 {
356380 flex-wrap : wrap;
357381}
358382
359- body .docs-ndl .paragraph .caption ,
360- body .docs-ndl .paragraph .footer-link {
383+ body .docs-ndl .paragraph .caption {
361384 display : flex;
362385 width : 100% ;
363386 padding : 1rem ;
364387 margin : 0 ;
365388 color : var (--neutral-color );
366- }
367-
368- body .docs-ndl .paragraph .caption {
369389 font-family : var (--header-font-family );
370390 font-size : var (--doc-font-size-h2 );
371391 font-weight : var (--font-weight-normal );
372392}
373393
374394body .docs-ndl .paragraph .footer-link {
395+ display : flex;
396+ width : 100% ;
397+ padding : 0 ;
398+ margin : 0 ;
399+ color : var (--neutral-color );
375400 justify-content : flex-end;
376401 padding-right : 0 ;
377402}
378403
404+ body .docs-ndl .banner .paragraph {
405+ display : flex;
406+ width : 100% ;
407+ padding : 0 ;
408+ margin : 1rem ;
409+ color : var (--color-white );
410+ }
411+
412+ body .docs-ndl .banner .paragraph .description {
413+ padding-right : 2rem ;
414+ }
415+
379416/* selectable cards */
380417
381418body .docs-ndl .cards .sect2 .selectable {
@@ -396,15 +433,81 @@ body.docs-ndl .cards .sect2.selectable:hover div.description {
396433 text-decoration : underline;
397434}
398435
436+ /* banner */
437+
438+ body .docs-ndl .hub .banner .sectionbody ,
439+ body .docs-ndl .explainer .banner .sectionbody {
440+ justify-content : space-between;
441+ }
442+
443+ body .docs-ndl .banner .sectionbody > div .openblock {
444+ flex : 0 0 50% ;
445+ }
446+
447+ body .docs-ndl .banner .sectionbody > div .icon {
448+ flex : 0 0 40% ;
449+ padding : 0 ;
450+ object-fit : cover;
451+ border-radius : 0.25rem ;
452+ margin-bottom : 0 ;
453+ }
454+
455+ body .docs-ndl .banner .icon img {
456+ height : 100% ;
457+ padding : 0 ;
458+ margin : 0 ;
459+ }
460+
461+ body .docs-ndl .banner .button {
462+ border-radius : 0.25rem ;
463+ padding : 0.5em 1.5em ;
464+ font-weight : 400 ;
465+ text-align : center;
466+ /* margin-left: 24px; */
467+ }
468+
469+ @media screen and (max-width : 1240px ) {
470+ body .docs-ndl .widget .banner .sectionbody {
471+ background-image : none !important ;
472+ }
473+
474+ body .docs-ndl .widget .banner .sectionbody > div .openblock {
475+ flex : 0 0 100% ;
476+ }
477+ }
478+
479+ @media screen and (min-width : 1024px ) {
480+ .banner .banner-item .button-cta {
481+ padding-right : 0 1rem 0 ;
482+ }
483+ }
484+
485+ .banner .button : hover {
486+ background : rgba (var (--banner-background-color ));
487+ color : var (--colors-baltic-25 );
488+ }
489+
490+ .description2 {
491+ color : var (--color-white );
492+ font-size : var (--doc-font-size--desktop );
493+ line-height : var (--doc-line-height );
494+ margin : var (--doc-margin );
495+ max-width : var (--doc-max-width );
496+ padding : 12px 24px 12px ;
497+ }
498+
399499/* highlights */
400500
401501body .docs-ndl .highlights .sectionbody > div .openblock {
402- flex : 0 1 40% ;
502+ flex : 1 1 40% ;
403503}
404504
405505body .docs-ndl .highlights .sectionbody > div .icon {
406- flex : 0 1 60% ;
407- padding : 0 6rem ;
506+ flex : 0 1 52% ;
507+ padding-top : 1rem ;
508+ padding-bottom : 1rem ;
509+ padding-left : 4rem ;
510+ padding-right : 5.438rem ;
408511 align-self : center;
409512}
410513
@@ -421,6 +524,16 @@ body.docs-ndl .highlights .list ul li {
421524 padding-bottom : 0.5rem ;
422525}
423526
527+ body .docs-ndl .highlights .list2 {
528+ padding : 0 ;
529+ }
530+
531+ body .docs-ndl .highlights .list2 ul li {
532+ border-bottom : 1px solid rgba (var (--colors-neutral-20 ));
533+ padding-bottom : 0.5rem ;
534+ list-style-type : none;
535+ }
536+
424537body .docs-ndl .widget .highlights .footer-link {
425538 text-align : end;
426539}
@@ -440,7 +553,7 @@ body.docs-ndl .widget.highlights .icon img {
440553/* lists */
441554
442555body .docs-ndl .lists .sectionbody > div .sect2 {
443- flex : 0 0 25 % ;
556+ flex : 0 0 22 % ;
444557}
445558
446559body .docs-ndl .widget .sectionbody > div .sect2 .ulist {
@@ -576,6 +689,13 @@ body.docs-ndl .sect2 a > h3 {
576689
577690body .docs-ndl .cards .sect2 .icon ,
578691body .docs-ndl .widget .icon {
692+ padding : 0 ;
693+ margin : 0 ;
694+ width : 100% ;
695+ }
696+
697+ body .docs-ndl .cards .sect2 .icon ,
698+ body .docs-ndl .widget .banner .icon {
579699 order : 1 ;
580700 padding : 0 ;
581701 margin : 0 ;
@@ -603,7 +723,22 @@ body.docs-ndl .widget.highlights .icon {
603723 padding : 2rem ;
604724}
605725
606- body .docs-ndl .cards .sect2 .icon img {
726+ /* For the 1st, 3rd etc highlights, move the image to the right */
727+ body .docs-ndl .widget .highlights : nth-of-type (odd ) .icon {
728+ order : 1 ;
729+ }
730+
731+ /* We can use this rule to apply styles to the 2nd, 4th highlights etc widget */
732+ body .docs-ndl .widget .highlights : nth-of-type (even ) .openblock {
733+ /* margin-right:40px; */
734+ }
735+
736+ /* For the bottom cards */
737+ body .docs-ndl .cards : nth-last-child (-n+2) .sectionbody {
738+ flex : 0 0 152% ;
739+ }
740+
741+ body .docs-ndl body .docs-ndl .cards .sect2 .icon img {
607742 width : 4rem ;
608743 height : 4rem ;
609744 padding : 0 ;
@@ -758,6 +893,15 @@ body.docs-ndl .cards .sect2 .ulist ul li {
758893 justify-content : center;
759894 }
760895
896+ body .docs-ndl .widget .banner .sectionbody {
897+ row-gap : 2rem ;
898+ }
899+
900+ /* body.docs-ndl .widget.banner .sectionbody > div {
901+ flex: 0 1 100%;
902+ justify-content: center;
903+ } */
904+
761905 body .docs-ndl .lists ul {
762906 /* text-align: center; */
763907 }
0 commit comments