1+ /* Offsets the anchor scroll so the header doesn't cover the title */
2+ h1 [id ], h2 [id ], h3 [id ], h4 [id ], h5 [id ], h6 [id ] {
3+ scroll-margin-top : 80px ; /* Adjust based on your header height */
4+ }
5+
6+
7+
8+ /* Documentation style card grid */
9+
10+ #coding_cards .feature__wrapper {
11+ display : grid !important ;
12+ grid-template-columns : repeat (auto-fit , minmax (250px , 1fr ));
13+ gap : 1.5rem ;
14+ }
15+
16+ /* Card container */
17+
18+ #coding_cards .feature__item {
19+ display : flex ;
20+ }
21+
22+ #coding_cards .archive__item {
23+ display : flex ;
24+ flex-direction : column ;
25+ justify-content : space-between ;
26+ background : #ffffff ;
27+ border-radius : 10px ;
28+ padding : 1.5rem ;
29+ border : 1px solid #e5e7eb ;
30+ height : 100% ;
31+ transition : transform 0.2s ease , box-shadow 0.2s ease ;
32+ }
33+
34+ /* Hover animation */
35+
36+ #coding_cards .archive__item :hover {
37+ transform : translateY (-5px );
38+ box-shadow : 0 10px 25px rgba (0 ,0 ,0 ,0.08 );
39+ }
40+
41+ /* Title */
42+
43+ #coding_cards .archive__item-title {
44+ font-size : 1.25rem ;
45+ margin-bottom : 0.5rem ;
46+ color :#555 ;
47+ }
48+
49+ /* Description */
50+
51+ #coding_cards .archive__item-excerpt {
52+ flex-grow : 1 ;
53+ color : #555 ;
54+ }
55+
56+ /* Icon styling */
57+
58+ #coding_cards .archive__item-teaser img {
59+ width : 48px ;
60+ height : 48px ;
61+ margin-bottom : 1rem ;
62+ }
63+
64+ /* search styling */
65+
66+ .search-hits {
67+ margin-top : 2rem ;
68+ }
69+
70+ /* Individual result */
71+
72+ .doc-search-hit {
73+ border-bottom : 1px solid #e5e7eb ;
74+ padding : 1rem 0 ;
75+ }
76+
77+ .doc-search-link {
78+ text-decoration : none ;
79+ display : block ;
80+ }
81+
82+ /* Breadcrumb */
83+
84+ .doc-search-breadcrumb {
85+ font-size : 0.8rem ;
86+ color : #6b7280 ;
87+ margin-bottom : 0.25rem ;
88+ }
89+
90+ /* Result title */
91+
92+ .doc-search-title {
93+ font-size : 1.1rem ;
94+ font-weight : 600 ;
95+ color : #699ea0 ;
96+ }
97+
98+ /* Result snippet */
99+
100+ .doc-search-snippet {
101+ font-size : 0.9rem ;
102+
103+ margin-top : 0.25rem ;
104+ }
105+
106+ /* Highlight */
107+
108+ mark {
109+ background : #fde68a ;
110+ padding : 0 2px ;
111+ }
112+
113+ /* Ensure coding_cards stays visible when the search overlay is active */
114+ .search-content--active #coding_cards ,
115+ body .search-active #coding_cards {
116+ display : block !important ;
117+ visibility : visible !important ;
118+ opacity : 1 !important ;
119+ }
120+
121+ /* Optional: Ensure it doesn't overlap or look messy under the search results */
122+ .search-content--active #coding_cards {
123+ filter : blur (2px ); /* Slight blur to keep focus on search while still visible */
124+ pointer-events : none ; /* Prevents clicking cards while search is open */
125+ }
126+ /* Force the main container to stay visible even when search is active */
127+ body .search-active .initial-content ,
128+ body .search-active #main ,
129+ body .search-active #coding_cards {
130+ display : block !important ;
131+ visibility : visible !important ;
132+ opacity : 1 !important ;
133+ }
134+
135+ /* Ensure the search overlay doesn't completely cover the background */
136+ .search-content {
137+ background-color : rgba (0 , 0 , 0 , 0.6 ) !important ; /* Makes overlay semi-transparent */
138+ }
0 commit comments