mirror of
https://github.com/imfing/hextra.git
synced 2025-08-23 13:26:54 -04:00

* refactor(navbar): add hextra prefix to navbar and hamburger menu classes - Updated CSS class names from `nav-container` to `hextra-nav-container` and `hamburger-menu` to `hextra-hamburger-menu` for improved clarity and consistency across the project. - Adjusted related JavaScript and documentation to reflect the new class names. * refactor(search): update class names for search components - Renamed CSS classes from `search-wrapper`, `search-input`, `active`, `no-result`, `prefix`, `excerpt`, and `match` to `hextra-search-wrapper`, `hextra-search-input`, `hextra-search-active`, `hextra-search-no-result`, `hextra-search-prefix`, `hextra-search-excerpt`, and `hextra-search-match` for improved clarity and consistency. - Updated JavaScript selectors to match the new class names, ensuring functionality remains intact. - Adjusted HTML structure to reflect the new class naming convention. * refactor(search): update search component class names for consistency - Renamed existing search-related CSS classes to include the `hextra` prefix for improved clarity and consistency. - Added optional nested classes for enhanced customization of the search UI, including titles, active states, and result snippets. - Removed outdated breadcrumb section as no specific class is available. * refactor(sidebar): rename sidebar classes for consistency - Updated CSS and JavaScript to replace `sidebar-container` with `hextra-sidebar-container` and `sidebar-active-item` with `hextra-sidebar-active-item` for improved clarity and consistency across the project. - Adjusted related documentation to reflect the new class names. * refactor(language & theme): update class names for consistency - Renamed language switcher and theme toggle classes to include the `hextra` prefix for improved clarity and consistency across the project. - Updated related JavaScript selectors and documentation to reflect the new class names. * refactor(css & html): rename classes for consistency and clarity - Updated various CSS class names to include the `hextra` prefix, enhancing consistency across the project. This includes renaming classes such as `content` to `hextra-content`, `filename` to `hextra-code-filename`, and `steps` to `hextra-steps`. - Adjusted related HTML and JavaScript to reflect the new class names, ensuring functionality and styling remain intact. - Updated documentation to include the new class names for better clarity. * refactor(language): update class names for language options - Renamed the `language-options` class to `hextra-language-options` for consistency with the existing `hextra` prefix convention. - Updated the corresponding HTML to reflect the new class name, ensuring clarity and uniformity across the project. * refactor(css & html): rename classes for consistency and clarity - Renamed CSS classes to include the `hextra` prefix, such as changing `subheading-anchor` to `hextra-subheading-anchor` and `footnotes` to `hextra-footnotes`, enhancing consistency across the project. - Updated related HTML and documentation to reflect the new class names, ensuring clarity and uniformity. * feat(typography): add styling for horizontal lines - Introduced new styles for horizontal lines to enhance visual separation in content. The styles apply margin and border color adjustments, ensuring consistency with the overall design. * feat(blog): add draft release announcement for Hextra v0.10.0 - Created a new markdown file for the draft release announcement of Hextra v0.10.0, including upgrade instructions and author details. - The announcement is currently marked as a draft and may be updated before the official release. * refactor(css & html): rename `hextra-content` class to `content` for consistency - Updated the `hextra-content` class to simply `content` across various HTML files and CSS, enhancing clarity and consistency in the codebase. - Adjusted the `package.json` script for the development server to include the `-F` flag for better functionality. * refactor(typography & markdown): enhance table styling and markdown syntax - Updated CSS for tables to improve styling, including adjustments to margins, borders, and text properties for better readability. - Revised markdown documentation to standardize table formatting and improve clarity, including consistent syntax for headers and lists. - Enhanced examples in the documentation to reflect the updated styling and ensure accurate representation of output. * fix(blog): update text color for improved accessibility - Modified the text color in the blog single layout to enhance readability in dark mode by adding a dark text color class. - Ensured consistency in styling for better user experience across different themes. * docs(blog): update draft release announcement for Hextra v0.10.0 - Revised the "What's New" section to include a TODO placeholder for future updates. - Added a comprehensive migration guide detailing the CSS class prefix changes to enhance consistency and avoid conflicts. - Updated the announcement to reflect the new class naming conventions for various components. * chore: rebuild css
144 lines
5.8 KiB
CSS
144 lines
5.8 KiB
CSS
.content {
|
|
:where(h1):not(:where([class~=not-prose],[class~=not-prose] *)) {
|
|
@apply hx:mt-2 hx:text-4xl hx:font-bold hx:tracking-tight hx:text-slate-900 hx:dark:text-slate-100;
|
|
}
|
|
:where(h2):not(:where([class~=not-prose],[class~=not-prose] *)) {
|
|
@apply hx:font-semibold hx:tracking-tight hx:text-slate-900 hx:dark:text-slate-100 hx:mt-10 hx:border-b hx:pb-1 hx:text-3xl hx:border-neutral-200/70 hx:contrast-more:border-neutral-400 hx:dark:border-primary-100/10 hx:contrast-more:dark:border-neutral-400;
|
|
}
|
|
:where(h3):not(:where([class~=not-prose],[class~=not-prose] *)) {
|
|
@apply hx:font-semibold hx:tracking-tight hx:text-slate-900 hx:dark:text-slate-100 hx:mt-8 hx:text-2xl;
|
|
}
|
|
:where(h4):not(:where([class~=not-prose],[class~=not-prose] *)) {
|
|
@apply hx:font-semibold hx:tracking-tight hx:text-slate-900 hx:dark:text-slate-100 hx:mt-8 hx:text-xl;
|
|
}
|
|
:where(h5):not(:where([class~=not-prose],[class~=not-prose] *)) {
|
|
@apply hx:font-semibold hx:tracking-tight hx:text-slate-900 hx:dark:text-slate-100 hx:mt-8 hx:text-lg;
|
|
}
|
|
:where(h6):not(:where([class~=not-prose],[class~=not-prose] *)) {
|
|
@apply hx:font-semibold hx:tracking-tight hx:text-slate-900 hx:dark:text-slate-100 hx:mt-8 hx:text-base;
|
|
}
|
|
:where(p):not(:where([class~=not-prose],[class~=not-prose] *)) {
|
|
@apply hx:mt-6 hx:leading-7 hx:first:mt-0;
|
|
}
|
|
:where(a):not(:where([class~=not-prose],[class~=not-prose] *)) {
|
|
@apply hx:text-primary-600 hx:underline hx:decoration-from-font;
|
|
}
|
|
:where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)) {
|
|
@apply hx:mt-6 hx:border-gray-300 hx:italic hx:text-gray-700 hx:dark:border-gray-700 hx:dark:text-gray-400 hx:first:mt-0 hx:ltr:border-l-2 hx:ltr:pl-6 hx:rtl:border-r-2 hx:rtl:pr-6;
|
|
}
|
|
:where(pre):not(:where(.hextra-code-block pre, [class~=not-prose],[class~=not-prose] *)) {
|
|
@apply hx:bg-primary-700/5 hx:mb-4 hx:overflow-x-auto hx:rounded-xl hx:font-medium hx:subpixel-antialiased hx:dark:bg-primary-300/10 hx:text-[.9em] hx:contrast-more:border hx:contrast-more:border-primary-900/20 hx:contrast-more:contrast-150 hx:contrast-more:dark:border-primary-100/40 hx:py-4;
|
|
}
|
|
:where(code):not(:where(.hextra-code-block code, [class~=not-prose],[class~=not-prose] *)) {
|
|
@apply hx:border-black/4 hx:bg-black/3 hx:break-words hx:rounded-md hx:border hx:py-0.5 hx:px-[.25em] hx:text-[.9em] hx:dark:border-white/10 hx:dark:bg-white/10;
|
|
}
|
|
:where(table):not(:where(.hextra-code-block table, [class~=not-prose],[class~=not-prose] *)) {
|
|
@apply hx:block hx:overflow-x-auto hx:my-6 hx:p-0 hx:first:mt-0 hx:w-full hx:text-sm hx:leading-5;
|
|
|
|
thead {
|
|
@apply hx:border-b hx:border-gray-200 hx:dark:border-neutral-800;
|
|
}
|
|
tbody tr {
|
|
@apply hx:m-0 hx:border-b hx:border-gray-100 hx:dark:border-neutral-800/50;
|
|
}
|
|
th {
|
|
@apply hx:m-0 hx:p-2 hx:font-semibold hx:first:pl-0 hx:last:pr-0;
|
|
}
|
|
td {
|
|
@apply hx:m-0 hx:p-2 hx:first:pl-0 hx:last:pr-0;
|
|
}
|
|
}
|
|
:where(ol):not(:where([class~=not-prose],[class~=not-prose] *)) {
|
|
@apply hx:mt-6 hx:list-decimal hx:first:mt-0 hx:ltr:ml-6 hx:rtl:mr-6;
|
|
li {
|
|
@apply hx:my-2;
|
|
}
|
|
}
|
|
:where(ul):not(:where([class~=not-prose],[class~=not-prose] *)) {
|
|
@apply hx:mt-6 hx:list-disc hx:first:mt-0 hx:ltr:ml-6 hx:rtl:mr-6;
|
|
li {
|
|
@apply hx:my-2;
|
|
}
|
|
}
|
|
/* This CSS rule targets the first nested unordered (ul) or ordered (ol) list
|
|
inside the list item (li) of any parent ul or ol.
|
|
The rule sets the top margin of the selected list to zero. */
|
|
:where(ul, ol) > li > :where(ul, ol):not(:where([class~=not-prose],[class~=not-prose] *)) {
|
|
@apply hx:mt-0;
|
|
}
|
|
:where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)) {
|
|
@apply hx:border-black/4 hx:bg-black/3 hx:break-words hx:rounded-md hx:border hx:py-0.5 hx:px-[.25em] hx:text-[.9em] hx:dark:border-white/10 hx:dark:bg-white/10;
|
|
}
|
|
:where(pre.mermaid):not(:where(.hextra-code-block pre, [class~=not-prose],[class~=not-prose] *)) {
|
|
@apply hx:bg-transparent hx:rounded-none hx:dark:bg-transparent;
|
|
}
|
|
:where(img):not(:where([class~=not-prose],[class~=not-prose] *)) {
|
|
@apply hx:mx-auto hx:my-4 hx:rounded-md;
|
|
}
|
|
:where(figure):not(:where([class~=not-prose],[class~=not-prose] *)) {
|
|
figcaption {
|
|
@apply hx:text-sm hx:text-gray-500 hx:dark:text-gray-400 hx:mt-2 hx:block hx:text-center;
|
|
}
|
|
}
|
|
/* Definition list */
|
|
:where(dl):not(:where([class~=not-prose],[class~=not-prose] *)) {
|
|
dt {
|
|
@apply hx:mt-6 hx:font-semibold;
|
|
}
|
|
dd {
|
|
@apply hx:my-2 hx:ps-6;
|
|
}
|
|
}
|
|
/* Horizontal line */
|
|
:where(hr):not(:where([class~=not-prose],[class~=not-prose] *)) {
|
|
@apply hx:my-10 hx:first:mt-0 hx:last:mb-0 hx:border-gray-200 hx:dark:border-neutral-800;
|
|
}
|
|
.footnotes {
|
|
@apply hx:mt-12 hx:text-sm;
|
|
|
|
hr {
|
|
@apply hx:border-gray-200 hx:dark:border-neutral-800;
|
|
}
|
|
}
|
|
.subheading-anchor {
|
|
@apply hx:opacity-0 hx:transition-opacity hx:ltr:ml-1 hx:rtl:mr-1;
|
|
|
|
span:target + &,
|
|
:hover > &,
|
|
&:focus {
|
|
@apply hx:opacity-100;
|
|
}
|
|
|
|
span + &,
|
|
:hover > & {
|
|
@apply hx:no-underline!;
|
|
}
|
|
|
|
@apply hx:after:text-gray-300 hx:dark:after:text-neutral-700;
|
|
&:after {
|
|
@apply hx:content-['#'] hx:px-1;
|
|
span:target + & {
|
|
@apply hx:text-gray-400;
|
|
@apply hx:dark:text-neutral-500;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
article details > summary {
|
|
&::-webkit-details-marker {
|
|
@apply hx:hidden;
|
|
}
|
|
&::before {
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='hx:h-5 hx:w-5' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z' clip-rule='evenodd' /%3E%3C/svg%3E");
|
|
height: 1.2em;
|
|
width: 1.2em;
|
|
vertical-align: -4px;
|
|
padding: 0 0.6em;
|
|
}
|
|
}
|
|
|
|
:lang(fa) ol {
|
|
list-style-type: persian;
|
|
}
|