@@ -399,6 +399,93 @@ footer svg {
399399
400400/* Docs */
401401
402+ /* Responsive helpers and utilities
403+ - container, grid, responsive images, type scaling
404+ - accessible focus, reduced-motion support
405+ Usage: wrap content with `.container` or use `.grid` for responsive columns.
406+ */
407+ : root {
408+ --bp-sm : 640px ;
409+ --bp-md : 768px ;
410+ --bp-lg : 1024px ;
411+ --bp-xl : 1280px ;
412+ --container-max : 1200px ;
413+ --container-padding : 1rem ;
414+ }
415+
416+ .container {
417+ width : 100% ;
418+ max-width : var (--container-max );
419+ padding-left : var (--container-padding );
420+ padding-right : var (--container-padding );
421+ margin-left : auto;
422+ margin-right : auto;
423+ box-sizing : border-box;
424+ }
425+
426+ .grid {
427+ display : grid;
428+ gap : 1rem ;
429+ grid-template-columns : repeat (auto-fit, minmax (220px , 1fr ));
430+ }
431+
432+ .img-responsive , img .responsive {
433+ max-width : 100% ;
434+ height : auto;
435+ display : block;
436+ }
437+
438+ .lead {
439+ font-size : 1.125rem ;
440+ line-height : 1.6 ;
441+ }
442+
443+ .visually-hidden {
444+ position : absolute !important ;
445+ width : 1px ; height : 1px ;
446+ padding : 0 ; margin : -1px ;
447+ overflow : hidden; clip : rect (0 0 0 0 );
448+ white-space : nowrap; border : 0 ;
449+ }
450+
451+ /* Simple two-column layout utility */
452+ .two-cols {
453+ display : grid;
454+ gap : 1rem ;
455+ grid-template-columns : 1fr ;
456+ }
457+ @media (min-width : var (--bp-md )) {
458+ .two-cols { grid-template-columns : 1fr 1fr ; }
459+ }
460+
461+ /* Heading responsive scaling */
462+ h1 { font-size : clamp (1.45rem , 2.5vw + 0.5rem , 2.5rem ); }
463+ h2 { font-size : clamp (1.25rem , 2vw + 0.4rem , 1.75rem ); }
464+
465+ /* Focus visible for keyboard users */
466+ : focus-visible {
467+ outline : 3px solid var (--ifm-color-primary );
468+ outline-offset : 2px ;
469+ }
470+
471+ /* Respect users who prefer reduced motion */
472+ @media (prefers-reduced-motion : reduce) {
473+ * { animation-duration : 0.001ms !important ; animation-iteration-count : 1 !important ; transition-duration : 0.001ms !important ; scroll-behavior : auto !important ; }
474+ }
475+
476+ /* Small usage example (HTML)
477+ <div class="container">
478+ <header class="two-cols">
479+ <div>Brand / Title</div>
480+ <nav>Navigation</nav>
481+ </header>
482+ <main class="grid">
483+ <article class="lead">Your main content</article>
484+ <aside>Sidebar content (stacked on small screens)</aside>
485+ </main>
486+ </div>
487+ */
488+
402489.docusaurus-highlight-code-line {
403490 background-color : rgb (72 , 77 , 91 );
404491 display : block;
0 commit comments