@@ -2721,3 +2721,208 @@ html[data-theme="dark"] div[class^="sidebar_"] > nav > ul > li > .menu__list-ite
27212721 line-height : 1.4 ;
27222722 }
27232723}
2724+
2725+ /* ===== CONSISTENT SPACING FOR DOCUMENTATION PAGES ===== */
2726+ /* Fix inconsistent vertical spacing in documentation content */
2727+ article header + * {
2728+ margin-top : 2rem !important ; /* Consistent space after page title */
2729+ }
2730+
2731+ article h1 {
2732+ margin-bottom : 1.5rem !important ; /* Consistent space after H1 */
2733+ }
2734+
2735+ article h2 {
2736+ margin-top : 2.5rem !important ; /* Consistent space before H2 */
2737+ margin-bottom : 1rem !important ; /* Consistent space after H2 */
2738+ }
2739+
2740+ article h3 {
2741+ margin-top : 2rem !important ; /* Consistent space before H3 */
2742+ margin-bottom : 0.75rem !important ; /* Consistent space after H3 */
2743+ }
2744+
2745+ article p {
2746+ margin-bottom : 1rem !important ; /* Consistent space after paragraphs */
2747+ }
2748+
2749+ article img {
2750+ margin-top : 1.5rem !important ; /* Consistent space before images */
2751+ margin-bottom : 1.5rem !important ; /* Consistent space after images */
2752+ }
2753+
2754+ article \u003e div[style *= 'backgroundColor' ] {
2755+ margin-top : 1.5rem !important ; /* Consistent space before styled divs */
2756+ margin-bottom : 1.5rem !important ; /* Consistent space after styled divs */
2757+ }
2758+
2759+
2760+ /* Override Tailwind prose spacing for better consistency */
2761+ .prose .md\\ : prose-md {
2762+ margin-top : 1.5rem !important ;
2763+ margin-bottom : 1.5rem !important ;
2764+ }
2765+
2766+ /* More specific overrides for prose elements */
2767+ .prose p {
2768+ margin-top : 1rem !important ;
2769+ margin-bottom : 1rem !important ;
2770+ }
2771+
2772+ .prose h1 {
2773+ margin-top : 0 !important ;
2774+ margin-bottom : 1.5rem !important ;
2775+ }
2776+
2777+ .prose h2 {
2778+ margin-top : 2rem !important ;
2779+ margin-bottom : 1rem !important ;
2780+ }
2781+
2782+ .prose h3 {
2783+ margin-top : 1.5rem !important ;
2784+ margin-bottom : 0.75rem !important ;
2785+ }
2786+
2787+ .prose img {
2788+ margin-top : 1.5rem !important ;
2789+ margin-bottom : 1.5rem !important ;
2790+ }
2791+
2792+ /* Fix the large top margin on first element after header */
2793+ .markdown \u 003e * : first-child ,
2794+ article \u003e .markdown \u 003e * : first-child {
2795+ margin-top : 1.5rem !important ;
2796+ }
2797+
2798+
2799+ /* Fix clipped descenders in headings (y, g, p, q, j) */
2800+ article h1 ,
2801+ .prose h1 {
2802+ line-height : 1.3 !important ; /* Increase line-height to prevent clipping */
2803+ padding-bottom : 0.2rem !important ; /* Add padding to ensure descenders are visible */
2804+ overflow : visible !important ; /* Ensure text isn't clipped */
2805+ }
2806+
2807+ article h2 ,
2808+ .prose h2 {
2809+ line-height : 1.4 !important ;
2810+ padding-bottom : 0.15rem !important ;
2811+ overflow : visible !important ;
2812+ }
2813+
2814+ article h3 ,
2815+ .prose h3 {
2816+ line-height : 1.4 !important ;
2817+ padding-bottom : 0.1rem !important ;
2818+ overflow : visible !important ;
2819+ }
2820+
2821+
2822+ /* Reduce excessive spacing - fine-tuned values */
2823+ article h1 ,
2824+ .prose h1 {
2825+ margin-bottom : 1rem !important ; /* Reduced from 1.5rem */
2826+ }
2827+
2828+ /* Reduce top margin on first paragraph after title */
2829+ article h1 + p ,
2830+ .prose h1 + p {
2831+ margin-top : 1rem !important ; /* Consistent spacing after H1 */
2832+ }
2833+
2834+ /* Adjust H2 spacing to be less aggressive */
2835+ article h2 ,
2836+ .prose h2 {
2837+ margin-top : 1.75rem !important ; /* Reduced from 2rem */
2838+ margin-bottom : 0.75rem !important ; /* Reduced from 1rem */
2839+ }
2840+
2841+ /* Adjust paragraph spacing */
2842+ article p ,
2843+ .prose p {
2844+ margin-top : 0.75rem !important ; /* Reduced */
2845+ margin-bottom : 0.75rem !important ; /* Reduced */
2846+ }
2847+
2848+ /* Adjust image spacing */
2849+ article img ,
2850+ .prose img {
2851+ margin-top : 1.25rem !important ; /* Reduced from 1.5rem */
2852+ margin-bottom : 1.25rem !important ; /* Reduced from 1.5rem */
2853+ }
2854+
2855+
2856+ /* Reduce top padding/margin above page title across all docs pages */
2857+ article ,
2858+ .markdown ,
2859+ [class *= 'docItemContainer' ] article {
2860+ padding-top : 1rem !important ; /* Reduced top padding */
2861+ }
2862+
2863+ /* Reduce margin-top on the H1 title itself */
2864+ article h1 : first-of-type ,
2865+ .prose h1 : first-of-type ,
2866+ .markdown h1 : first-of-type {
2867+ margin-top : 0.5rem !important ; /* Minimal top margin for first H1 */
2868+ }
2869+
2870+ /* Remove excessive top margin from article header */
2871+ article header {
2872+ margin-top : 0 !important ;
2873+ padding-top : 0 !important ;
2874+ }
2875+
2876+ /* Reduce top margin on first element after breadcrumbs */
2877+ .theme-doc-breadcrumbs + * {
2878+ margin-top : 1rem !important ;
2879+ }
2880+
2881+
2882+ /* OVERRIDE: Reduce top margin/padding on markdown container - more specific selectors */
2883+ div .theme-doc-markdown .markdown ,
2884+ .theme-doc-markdown ,
2885+ [class *= 'theme-doc-markdown' ] {
2886+ margin-top : 0 !important ;
2887+ padding-top : 0.5rem !important ; /* Minimal top padding */
2888+ }
2889+
2890+ /* Target the prose container specifically */
2891+ .prose .md\\ : prose-md .prose-auto .my-12 {
2892+ margin-top : 1rem !important ; /* Override my-12 class */
2893+ margin-bottom : 1rem !important ;
2894+ }
2895+
2896+ /* Remove large top margin from article/main content */
2897+ main article ,
2898+ [class *= 'docItemContainer' ] {
2899+ margin-top : 0 !important ;
2900+ padding-top : 0.5rem !important ;
2901+ }
2902+
2903+
2904+ /* EQUAL SPACING: Make top and bottom spacing around H1 consistent */
2905+ /* This creates better visual balance for documentation pages */
2906+
2907+ /* Set consistent spacing after breadcrumbs */
2908+ nav .theme-doc-breadcrumbs {
2909+ margin-bottom : 1.5rem !important ; /* Equal to H1 bottom margin */
2910+ }
2911+
2912+ /* Ensure H1 has equal spacing on both sides */
2913+ article h1 : first-of-type ,
2914+ .prose h1 : first-of-type {
2915+ margin-top : 0 !important ; /* No extra top margin */
2916+ margin-bottom : 1.5rem !important ; /* Match breadcrumb spacing */
2917+ }
2918+
2919+ /* Remove any extra padding from containers */
2920+ .theme-doc-markdown .markdown {
2921+ padding-top : 0 !important ;
2922+ }
2923+
2924+ /* Table header vertical alignment - align headers to top of cells */
2925+ table th {
2926+ vertical-align : top !important ;
2927+ }
2928+
0 commit comments