@@ -308,4 +308,117 @@ td > .xref {
308308
309309.question-answer .revealed * {
310310 opacity : 1 ;
311- }
311+ }
312+
313+ /*******************************************************************************
314+ *** Section: Carousel for docs landing page
315+ *******************************************************************************/
316+ .carousel {
317+ margin-bottom : 3rem ;
318+ border : 1px solid;
319+ border-color : var (--bs-body-color );
320+ border-radius : .5rem ;
321+ overflow : hidden;
322+ }
323+
324+ .carousel-item {
325+ height : 400px ;
326+ position : relative;
327+ }
328+
329+ .carousel-item img {
330+ width : 100% ;
331+ height : 100% ;
332+ object-fit : cover;
333+ object-position : center;
334+ }
335+
336+ .carousel-item ::after {
337+ content : '' ;
338+ position : absolute;
339+ top : 0 ;
340+ left : 0 ;
341+ right : 0 ;
342+ bottom : 0 ;
343+ background : linear-gradient (to right, rgba (0 , 0 , 0 , 0.7 ) 0% , rgba (0 , 0 , 0 , 0.4 ) 30% , rgba (0 , 0 , 0 , 0 ) 50% );
344+ pointer-events : none;
345+ }
346+
347+ .carousel-caption {
348+ bottom : 0 ;
349+ left : 0 ;
350+ right : auto;
351+ text-align : left;
352+ padding : 3rem ;
353+ z-index : 10 ;
354+ max-width : 600px ;
355+ color : white;
356+ }
357+
358+ .carousel-caption h1 {
359+ margin-top : 0 ;
360+ font-weight : 700 ;
361+ color : white;
362+ text-shadow : 2px 2px 4px rgba (0 , 0 , 0 , 0.8 );
363+ }
364+
365+ .carousel-caption p {
366+ color : white;
367+ text-shadow : 1px 1px 2px rgba (0 , 0 , 0 , 0.8 );
368+ margin-bottom : 1.5rem ;
369+ }
370+
371+ .carousel-caption .btn {
372+ background-color : var (--mg-orange-primary );
373+ border-color : var (--mg-orange-primary );
374+ color : white;
375+ font-weight : 600 ;
376+ padding : 0.75rem 2rem ;
377+ box-shadow : 0 4px 8px 0 rgba (0 , 0 , 0 , 0.3 );
378+ transition : all 0.2s ease-in-out;
379+ }
380+
381+ .carousel-caption .btn : hover ,
382+ .carousel-caption .btn : focus {
383+ background-color : var (--mg-orange-secondary );
384+ border-color : var (--mg-orange-secondary );
385+ transform : translateY (-2px );
386+ box-shadow : 0 6px 12px 0 rgba (0 , 0 , 0 , 0.4 );
387+ }
388+
389+ .carousel-indicators {
390+ margin-bottom : 1rem ;
391+ }
392+
393+ .carousel-indicators [data-bs-target ] {
394+ background-color : var (--mg-orange-secondary ) !important ;
395+ opacity : 0.6 ;
396+ width : 12px ;
397+ height : 12px ;
398+ border-radius : 50% ;
399+ border : none;
400+ }
401+
402+ .carousel-indicators .active {
403+ opacity : 1 ;
404+ background-color : var (--mg-orange-primary ) !important ;
405+ }
406+
407+ @media (max-width : 768px ) {
408+ .carousel-item {
409+ height : 300px ;
410+ }
411+
412+ .carousel-caption {
413+ padding : 2rem 1rem ;
414+ max-width : 100% ;
415+ }
416+
417+ .carousel-caption h1 {
418+ font-size : 1.75rem ;
419+ }
420+
421+ .carousel {
422+ margin-bottom : 3rem ;
423+ }
424+ }
0 commit comments