11.infoCard {
2- border : var (--border );
3- border-radius : 4px ;
4- padding : 30px ;
5- transition : background-color 0.3s , box-shadow 0.3s ;
6- box-sizing : border-box; /* Ensures padding is included in width/height */
7- box-shadow : none; /* Initial shadow */
2+ border : 1px solid var (--ifm-color-emphasis-200 );
3+ border-radius : 8px ;
4+ padding : 24px ;
5+ transition : all 0.3s ease;
6+ box-sizing : border-box;
7+ background : var (--ifm-background-color );
8+ cursor : pointer;
9+ height : 100% ;
10+ display : flex;
11+ flex-direction : column;
12+ }
13+
14+ .largeCard {
15+ grid-column : span 2 ; /* Makes the card span 2 columns */
816}
917
10- @media (max-width : 768px ) { /* For landscape phones and smaller tablets */
18+ @media (max-width : 768px ) {
1119 .infoCard {
12- padding : 20px ; /* Smaller padding on smaller screens */
20+ padding : 20px ;
21+ }
22+
23+ .largeCard {
24+ grid-column : span 1 ; /* Reset on mobile */
1325 }
1426}
1527
1628.infoCard : hover {
17- border : var (--selected-border ); /* Keep the initial border */
18- box-shadow : 0 4px 8px rgba (255 , 255 , 255 , 0.8 ); /* Elevation effect for light mode */
29+ border-color : var (--ifm-color-primary );
30+ box-shadow : 0 4px 12px rgba (0 , 0 , 0 , 0.1 );
31+ transform : translateY (-2px );
1932}
2033
2134@media (prefers-color-scheme : dark) {
35+ .infoCard {
36+ border-color : var (--card-border-light 100% );
37+ }
38+
2239 .infoCard : hover {
23- box-shadow : 0 4px 8px rgba (255 , 255 , 255 , 0.2 ); /* Elevation effect for dark mode */
40+ border-color : var (--ifm-color-primary );
41+ box-shadow : 0 4px 12px rgba (255 , 255 , 255 , 0.1 );
2442 }
2543}
2644
2745.infoCardIcon {
2846 font-size : 24px ;
29- margin-bottom : 10px ;
47+ margin-right : 12px ;
48+ color : var (--ifm-color-primary );
49+ display : flex;
50+ align-items : center;
3051}
3152
3253.infoCardTitle {
33- font-weight : bold;
34- font-size : 20px ;
54+ font-weight : 600 ;
55+ font-size : 18px ;
56+ color : var (--ifm-color-primary );
57+ margin : 0 ;
3558}
3659
3760.titleContainer {
3861 display : flex;
3962 align-items : center;
40- padding -bottom: 20 px ;
63+ margin -bottom: 16 px ;
4164}
4265
4366.logo {
44- height : 1.5em ; /* 1em typically equals the font-size of the parent, which is the h2 in this case */
67+ height : 1.5em ;
4568 padding-right : 10px ;
46- width : auto; /* Maintain the aspect ratio of the image */
69+ width : auto;
70+ }
71+
72+ .infoCardDescription {
73+ color : var (--ifm-color-content );
74+ font-size : 14px ;
75+ line-height : 1.5 ;
76+ margin : 0 ;
77+ flex-grow : 1 ;
4778}
4879
4980.infoCardLink {
50- display : flex;
51- color : var (--primary-texr );
81+ display : block;
82+ color : inherit;
83+ text-decoration : none;
5284}
5385
5486.infoCardLink : hover {
55- color : var ( --primary-texr ) ;
87+ color : inherit ;
5688 text-decoration : none;
5789}
0 commit comments