File tree Expand file tree Collapse file tree 2 files changed +8
-32
lines changed
apps/developer-hub/src/components Expand file tree Collapse file tree 2 files changed +8
-32
lines changed Original file line number Diff line number Diff line change 1111}
1212
1313.cards {
14- display : grid ;
15- grid-template-columns : 1fr ;
16- gap : 1.5rem ;
17- margin-top : 2rem ;
18-
19- @media (width >= 768px ) {
20- grid-template-columns : repeat (auto-fit , minmax (20rem , 28rem ));
21- gap : 2rem ;
22- justify-content : center ;
23- }
24-
25- @media (width >= 1024px ) {
26- grid-template-columns : repeat (auto-fit , minmax (20rem , 28rem ));
27- justify-content : flex-start ;
14+ display : flex ;
15+ gap : theme .spacing (10 );
16+ flex-direction : column ;
17+ @include theme .breakpoint (" md" ) {
18+ flex-direction : row ;
2819 }
2920}
Original file line number Diff line number Diff line change 11@use " @pythnetwork/component-library/theme" ;
22
33.card {
4- position : relative ;
5- display : flex ;
6- flex-direction : column ;
7- height : 100% ;
8- max-width : 28rem ;
9- padding : 1.5rem ; // 24px
4+ flex : 1 ;
5+ padding : theme .spacing (6 );
106 border : 1px solid var (--color-fd-border );
11- border-radius : 1.5 rem ; // 24px
7+ border-radius : theme . border-radius ( " 3xl " );
128 background-color : var (--color-fd-card );
139 box-shadow : 0 1px 2px 0 rgb (0 0 0 / 5% );
14- overflow : hidden ;
15-
16- & ::after {
17- content : " " ;
18- position : absolute ;
19- inset : 0 ;
20- pointer-events : none ;
21- box-shadow : inset 0 4px 5.8px 0 var (--color-fd-background , #f6f3f3 );
22- border-radius : 1.5rem ; // 24px
23- }
2410}
2511
2612.content {
9177 letter-spacing : -0.01em ; // -0.16px
9278 color : var (--color-fd-foreground );
9379 opacity : 0.9 ;
94- max-width : 20rem ;
9580 overflow : visible ;
9681 display : -webkit-box ;
9782 -webkit-line-clamp : 3 ;
You can’t perform that action at this time.
0 commit comments