Skip to content
Merged
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
3 changes: 2 additions & 1 deletion packages/components/biome.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"linter": {
"rules": {
"style": {
"useConsistentTypeDefinitions": "off"
"useConsistentTypeDefinitions": "off",
"noDescendingSpecificity": "off"
},
"performance": {
"noBarrelFile": "off"
Expand Down
6 changes: 0 additions & 6 deletions packages/components/src/code.css
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ html:not(.dark) .codeblock-light {
}

/* Lines of code outside code blocks. Generated when you use single ticks: `example` */
/* biome-ignore lint/style/noDescendingSpecificity: TODO */
:not(pre) > code {
@apply wrap-break-word rounded-md px-2 py-0.5 text-stone-600 dark:text-stone-200 dark:border-stone-800 bg-stone-100/50 dark:bg-white/5;
}
Expand Down Expand Up @@ -209,7 +208,6 @@ html:not(.dark) .codeblock-light {

/* line highlighting (without line numbers) */
[data-component-part="code-block-root"]:not(.has-line-numbers) {
/* biome-ignore lint/style/noDescendingSpecificity: TODO */
.line-highlight {
background: color-mix(
in srgb,
Expand Down Expand Up @@ -327,18 +325,15 @@ html:not(.dark) .codeblock-light {
}

/* line numbers + highlighting */
/* biome-ignore lint/style/noDescendingSpecificity: TODO */
.has-line-numbers .line-highlight {
width: 100%;
display: inline-block;
position: relative;

/* biome-ignore lint/style/noDescendingSpecificity: TODO */
&::before {
display: none;
}

/* biome-ignore lint/style/noDescendingSpecificity: TODO */
&::after {
content: "";
position: absolute;
Expand All @@ -356,7 +351,6 @@ html:not(.dark) .codeblock-light {
}
}

/* biome-ignore lint/style/noDescendingSpecificity: TODO */
.has-line-numbers .line-diff {
width: 100%;
display: inline-block;
Expand Down