Skip to content

Commit

Permalink
dedupe style rules
Browse files Browse the repository at this point in the history
  • Loading branch information
dlqqq committed Nov 12, 2024
1 parent 4e3047c commit cb74788
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions packages/jupyter-ai/style/rendermime-markdown.css
Original file line number Diff line number Diff line change
@@ -1,38 +1,4 @@
/* ************************************** */

/*
* Styles below are for JupyterLab >=4.0.0,<4.3.0.
*/

/* ************************************** */

.jp-ai-rendermime-markdown .jp-RenderedHTMLCommon {
padding-right: 0;
}

.jp-ai-rendermime-markdown pre {
background-color: var(--jp-cell-editor-background);
overflow-x: auto;
white-space: pre;
margin: 0;
padding: 4px 2px 0 6px;
border: var(--jp-border-width) solid var(--jp-cell-editor-border-color);
}

.jp-ai-rendermime-markdown pre > code {
background-color: inherit;
overflow-x: inherit;
white-space: inherit;
}

.jp-ai-rendermime-markdown mjx-container {
font-size: 119%;
}

/* ************************************** */

/*
* Styles below are for JupyterLab >=4.3.0.
*
* Selectors must be nested in `.jp-ThemedContainer` to have a higher
* specificity than selectors in rules provided by JupyterLab.
Expand All @@ -41,8 +7,6 @@
* See also: https://github.com/jupyterlab/jupyter-ai/issues/1090
*/

/* ************************************** */

.jp-ThemedContainer .jp-ai-rendermime-markdown .jp-RenderedHTMLCommon {
padding-right: 0;
}
Expand Down

0 comments on commit cb74788

Please sign in to comment.