Files
hextra/assets/css/compiled/main.css

3 lines
109 KiB
CSS
Raw Normal View History

/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */
refactor(a11y): comprehensive WCAG 2.2 AA accessibility improvements (#924) * refactor(a11y): comprehensive WCAG 2.2 AA accessibility improvements Add skip-to-content link, landmark regions, ARIA attributes, keyboard navigation, focus styles, reduced-motion support, and i18n keys across all layouts, partials, shortcodes, and JS components. - Add skip nav link in baseof.html and id="content" on all <main> tags - Fix 404 page lang/dir attributes and add <main> landmark - Add aria-label to banner close, PDF iframe, search input/results - Remove aria-hidden from back-to-top button - Add aria-hidden to decorative external link icon - Add role="tablist" to tabs, aria-expanded to filetree/dropdowns - Wrap mermaid diagrams in role="img", asciinema in role="region" - Change theme toggle <p> items to <button role="menuitem"> with full keyboard navigation (Arrow/Home/End/Escape) - Add arrow-key keyboard navigation to tabs component - Separate sidebar collapsible button from link for independent keyboard access with aria-expanded sync - Sync aria-expanded on all dropdown toggles (theme, lang, navbar, hamburger, page context menu) - Add aria-live search status announcements - Add 13 new i18n keys, replace hardcoded aria-label strings - Add prefers-reduced-motion CSS override and focus-visible base styles - Add aria-label swap on code copy ("Copied!" feedback for AT) - Add aria-current to active TOC links - Wrap filetree in <ul> container for proper list semantics - Add unique aria-label to blog "Read more" links - Document accessibility guidelines in AGENTS.md * feat(a11y): enhance focus styles and accessibility for various components - Add focus-visible styles to badges, buttons, and links for improved keyboard navigation. - Update breadcrumb, sidebar, and TOC components to include focus-visible outlines. - Introduce new classes for focus states in the badge and tabs shortcodes. - Ensure consistent focus styles across all interactive elements to meet WCAG 2.2 AA standards. * feat(a11y): implement new focus-visible utilities and enhance accessibility styles - Introduce new utility classes for focus-visible states to improve keyboard navigation. - Update various components including badges, buttons, and search inputs to utilize new focus-visible styles. - Refactor existing focus styles to ensure consistency and compliance with accessibility standards. - Enhance breadcrumb, sidebar, and TOC components with updated focus-visible classes for better user experience. * chore: add .gitattributes to collapse generated files in PR diffs * fix: enhance accessibility and improve documentation - Added alt attributes to images in multiple language documentation files for better accessibility. - Updated the navbar title partial to remove unnecessary title attribute. - Improved search input accessibility by adding autocomplete="off". - Enhanced search partials in both navbar and sidebar with location context. - Updated SVG icons in various components to include aria-hidden and focusable attributes for improved accessibility compliance. * fix: improve giscus theme toggle functionality - Updated the theme toggle options selector to use a data attribute for better specificity. - Modified the event listener to use a setTimeout for the theme update, ensuring smoother transitions when the theme switcher is clicked. * fix: resolve axe-core WCAG AA violations across docs pages Add aria-labels to Hugo task list checkboxes, fix asciinema player timer accessible names, make Jupyter output cells keyboard-focusable, and add missing heading hierarchy in shortcodes docs for fa/ja/zh-cn. * feat: integrate accessibility testing with Playwright and enhance CI workflow - Added Playwright configuration for accessibility testing. - Implemented accessibility tests using axe-core for all English pages. - Created a GitHub Actions workflow to automate accessibility tests on pull requests. - Updated package dependencies to include @axe-core/playwright and @playwright/test. - Enhanced sidebar component with data attributes for improved accessibility styling. * fix: update base URL and improve accessibility labels across multiple languages - Changed the base URL in Playwright configuration and CI workflow from localhost:3000 to localhost:1313. - Added accessibility labels for screen readers in various language files, enhancing user experience for visually impaired users. - Updated the Asciinema script to dynamically set the playback time label for better accessibility compliance. * refactor: reorganize accessibility tests and update test directory structure - Moved accessibility tests from the e2e directory to a new tests directory for better organization. - Updated the test directory path in Playwright configuration. - Refactored the accessibility test implementation to improve code clarity and maintainability. * chore: update .gitignore to include Playwright test output directories - Added entries for 'playwright-report/' and 'test-results/' to the .gitignore file to prevent cluttering the repository with test artifacts. * refactor: enhance accessibility and improve focus styles across components - Removed unused utility for focus visibility in CSS and consolidated focus-visible styles for better maintainability. - Updated various components to use `role` attributes for improved accessibility, including menu items and buttons. - Enhanced theme toggle and language switch components with appropriate ARIA roles and attributes for better screen reader support. - Improved the handling of focus states in the navigation and context menus to ensure a consistent user experience. * chore: update dependencies and enhance accessibility features - Updated the 'serve' package version in package.json and package-lock.json for improved performance. - Removed unused 'xml2js' dependency to streamline the project. - Enhanced the Playwright configuration to better manage the web server setup for testing. - Improved accessibility in the language switcher and navigation menu by refining focus management and keyboard interactions. - Updated the back-to-top button to manage tabindex for better accessibility compliance. * feat: enhance mobile menu accessibility and keyboard interactions - Added ARIA attributes to manage visibility of the sidebar on mobile devices. - Implemented focus management for the sidebar when the menu is toggled. - Introduced keyboard support to close the menu with the Escape key. - Improved overall accessibility for the hamburger menu and sidebar interactions. * fix: refine mobile menu keyboard interaction and enhance navbar accessibility - Updated the Escape key functionality to close the menu only on mobile devices. - Added a new ARIA attribute to the hamburger menu button for improved accessibility.
2026-02-14 20:06:35 +00:00
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-ease:initial;--tw-content:"";--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial}}}@layer theme{:root,:host{--hx-font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--hx-font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--hx-color-red-100:oklch(93.6% .032 17.717);--hx-color-red-200:oklch(88.5% .062 18.334);--hx-color-red-900:oklch(39.6% .141 25.723);--hx-color-orange-50:oklch(98% .016 73.684);--hx-color-orange-100:oklch(95.4% .038 75.164);--hx-color-orange-300:oklch(83.7% .128 66.29);--hx-color-orange-400:oklch(75% .183 55.934);--hx-color-orange-800:oklch(47% .157 37.304);--hx-color-amber-100:oklch(96.2% .059 95.617);--hx-color-amber-200:oklch(92.4% .12 95.746);--hx-color-amber-900:oklch(41.4% .112 45.904);--hx-color-yellow-50:oklch(98.7% .026 102.212);--hx-color-yellow-100:oklch(97.3% .071 103.193);--hx-color-yellow-200:oklch(94.5% .129 101.54);--hx-color-yellow-700:oklch(55.4% .135 66.442);--hx-color-yellow-900:oklch(42.1% .095 57.708);--hx-color-green-100:oklch(96.2% .044 156.743);--hx-color-green-200:oklch(92.5% .084 155.995);--hx-color-green-900:oklch(39.3% .095 152.535);--hx-color-blue-100:oklch(93.2% .032 255.585);--hx-color-blue-200:oklch(88.2% .059 254.128);--hx-color-blue-900:oklch(37.9% .146 265.522);--hx-color-indigo-100:oklch(93% .034 272.788);--hx-color-indigo-200:oklch(87% .065 274.039);--hx-color-indigo-900:oklch(35.9% .144 278.697);--hx-color-purple-100:oklch(94.6% .033 307.174);--hx-color-purple-200:oklch(90.2% .063 306.703);--hx-color-purple-900:oklch(38.1% .176 304.987);--hx-color-slate-50:oklch(98.4% .003 247.858);--hx-color-slate-100:oklch(96.8% .007 247.896);--hx-color-slate-900:oklch(20.8% .042 265.755);--hx-color-gray-50:oklch(98.5% .002 247.839);--hx-color-gray-100:oklch(96.7% .003 264.542);--hx-color-gray-200:oklch(92.8% .006 264.531);--hx-color-gray-300:oklch(87.2% .01 258.338);--hx-color-gray-400:oklch(70.7% .022 261.325);--hx-color-gray-500:oklch(55.1% .027 264.364);--hx-color-gray-600:oklch(44.6% .03 256.802);--hx-color-gray-700:oklch(37.3% .034 259.733);--hx-color-gray-800:oklch(27.8% .033 256.848);--hx-color-gray-900:oklch(21% .034 264.665);--hx-color-neutral-50:oklch(98.5% 0 0);--hx-color-neutral-200:oklch(92.2% 0 0);--hx-color-neutral-300:oklch(87% 0 0);--hx-color-neutral-400:oklch(70.8% 0 0);--hx-color-neutral-500:oklch(55.6% 0 0);--hx-colo