@@ -373,20 +373,21 @@ body.docs-ndl .paragraph.footer-link {
373373
374374/* selectable cards */
375375
376- body .docs-ndl .cards . selectable .sect2 {
376+ body .docs-ndl .cards .sect2 . selectable {
377377 cursor : pointer;
378378}
379379
380- body .docs-ndl .cards . selectable .sect2 a {
380+ body .docs-ndl .cards .sect2 . selectable a {
381381 text-decoration : none;
382382}
383383
384- body .docs-ndl .cards .selectable .sect2 : hover {
385- transform : translateY (-0.25rem );
386- transition : 0.2s linear;
384+ body .docs-ndl .cards .sect2 .selectable a : hover {
385+ transform : scale (1.02 );
386+ transition : 0.1s linear;
387+ box-shadow : 0 4px 8px 0 rgba (12 , 26 , 37 , 0.08 );
387388}
388389
389- body .docs-ndl .cards . selectable .sect2 : hover div .description {
390+ body .docs-ndl .cards .sect2 . selectable : hover div .description {
390391 text-decoration : underline;
391392}
392393
@@ -474,6 +475,7 @@ body.docs-ndl.explainer .sectionbody > div.sect2 {
474475}
475476
476477body .docs-ndl .cards .sect2 > a ,
478+ body .docs-ndl .cards .sect2 .not-selectable ,
477479body .docs-ndl .cards : not (.selectable ) .sect2 ,
478480body .docs-ndl .lists .sect2 {
479481 overflow : hidden;
@@ -490,7 +492,40 @@ body.docs-ndl .lists .sect2 {
490492 background : var (--color-white );
491493}
492494
495+ /* styles for specific types of cards:
496+ - featured - for new and exciting items
497+ - labs
498+ - graph-academy
499+ */
500+
501+ /* this would give a background image on cards marked with [.ga-promo] */
502+ body .docs-ndl .cards .sectionbody > div .sect2 .graph-academy > a ,
503+ body .docs-ndl .cards .sectionbody > div .sect2 .graph-academy : not (.selectable ) {
504+ background : # fff url(../ img/ad-blob.svg) no-repeat 100% 100% ;
505+ border : 1px solid var (--success-color );
506+ box-shadow : 0 2px 4px 0 rgba (63 , 120 , 36 , 0.5 ), 0 1px 2px 0 rgba (63 , 120 , 36 , 0.2 );
507+ }
508+
509+ body .docs-ndl .cards .sectionbody > div .sect2 .labs > a ,
510+ body .docs-ndl .cards .sectionbody > div .sect2 .labs : not (.selectable ) {
511+ border : 1px solid var (--color-labs );
512+ box-shadow : 0 2px 4px 0 rgba (90 , 52 , 170 , 0.5 ), 0 1px 2px 0 rgba (90 , 52 , 170 , 0.2 );
513+ }
514+
515+ body .docs-ndl .cards .sectionbody > div .sect2 .featured > a ,
516+ body .docs-ndl .cards .sectionbody > div .sect2 .featured : not (.selectable ) {
517+ border : 1px solid var (--success-color );
518+ box-shadow : 0 2px 4px 0 rgba (63 , 120 , 36 , 0.5 ), 0 1px 2px 0 rgba (63 , 120 , 36 , 0.2 );
519+ }
520+
521+ /* add a labs label to a title in a card */
522+ body .docs-ndl .header-label-container > div .labels {
523+ display : inline-flex;
524+ margin-left : auto;
525+ }
526+
493527body .docs-ndl .cards .sect2 > a ,
528+ body .docs-ndl .cards .sect2 .not-selectable ,
494529body .docs-ndl .cards : not (.selectable ) .sect2 ,
495530body .docs-ndl .widget : not (.video ) {
496531 /* box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.06); */
@@ -539,6 +574,20 @@ body.docs-ndl .widget .icon {
539574 order : 1 ;
540575 padding : 0 ;
541576 margin : 0 ;
577+ width : 100% ;
578+ }
579+
580+ body .docs-ndl .cards .sect2 .icon p {
581+ display : flex;
582+ width : -webkit-fill-available;
583+ justify-content : space-between;
584+ }
585+
586+ body .docs-ndl .cards .sect2 .icon p div .labels {
587+ display : flex;
588+ flex-direction : row;
589+ gap : 0.25rem ;
590+ height : min-content;
542591}
543592
544593body .docs-ndl .cards .icon span {
@@ -578,6 +627,7 @@ body.docs-ndl .lists .sect2 h3 {
578627 order : 2 ;
579628 margin : 0 ;
580629 font-weight : var (--font-weight-semibold );
630+ width : -webkit-fill-available;
581631}
582632
583633body .docs-ndl .cards .sect2 h3 .anchor ::before {
@@ -601,7 +651,7 @@ body.docs-ndl .cards .sect2 .paragraph:not(.icon) {
601651 /* flex-grow: 1; */
602652}
603653
604- body .docs-ndl .cards . selectable .sect2 .paragraph .link {
654+ body .docs-ndl .cards .sect2 . selectable .paragraph .link {
605655 display : none;
606656}
607657
0 commit comments