File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ ' hexo-theme-cupertino ' : minor
3+ ---
4+
5+ Add carousel component.
Original file line number Diff line number Diff line change @@ -163,6 +163,7 @@ builtin_components:
163163 button : true
164164 badge : true
165165 utilities : true
166+ carousel : true
166167
167168# smooth scroll powered by [darkroomengineering/lenis](https://github.com/darkroomengineering/lenis)
168169smooth_scroll : true
Original file line number Diff line number Diff line change 1+ .carousel {
2+ max-width : 100% ;
3+ overflow-x : scroll ;
4+ display : flex ;
5+ gap : 12px ;
6+ $paddingX : max (calc ((100% - 800px ) / 2 ), 16px );
7+ padding-left : $paddingX ;
8+ padding-right : $paddingX ;
9+
10+ .carousel-item {
11+ width : auto ;
12+ height : 320px ;
13+ max-height : 80 svh;
14+ margin : 0 ;
15+ padding : 0 ;
16+ border-radius : var (--radius-medium );
17+ }
18+
19+ & > figure {
20+ margin : 0 ;
21+ padding : 0 !important ;
22+ }
23+ }
You can’t perform that action at this time.
0 commit comments