Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions packages/web/docs/src/app/global.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.nextra-sidebar.nextra-sidebar {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The .nextra-sidebar.nextra-sidebar selector is overly specific and redundant. It's generally best to avoid repeating class names in CSS selectors unless absolutely necessary to override other styles. Consider simplifying this to just .nextra-sidebar.

While this isn't a critical issue, it can impact maintainability and readability. It's recommended to use the least specific selector that achieves the desired styling.

Suggested change
.nextra-sidebar.nextra-sidebar {
.nextra-sidebar {

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. This is intentional, please leave me alone corporatebot.

width: 300px;

& ul {
padding-left: 4px;
margin-left: 9px;

& .x\:text-gray-500 {
@apply text-gray-700 dark:text-neutral-300;
}
}
}

article.x\:min-h-\[calc\(100vh-var\(--nextra-navbar-height\)\)\] {
@apply md:pl-6 md:pr-8;
}
1 change: 1 addition & 0 deletions packages/web/docs/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import '../selection-styles.css';
import '../easing-functions.css';
import '../mermaid.css';
import { NarrowPages } from './narrow-pages';
import './global.css';

export const metadata = getDefaultMetadata({
productName: PRODUCTS.HIVE.name,
Expand Down
Loading