Skip to content

Commit

Permalink
FIX: inherit color for button
Browse files Browse the repository at this point in the history
  • Loading branch information
agoose77 committed Feb 15, 2024
1 parent b0191ba commit bc99711
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"@babel/preset-env": "^7.0.0",
"@jupyterlab/builder": "^4.0.0",
"@jupyterlab/testutils": "^4.0.0",
"@myst-theme/styles": "^0.5.21",
"@myst-theme/styles": "^0.5.22",
"@tailwindcss/typography": "^0.5.8",
"@types/jest": "^29.2.0",
"@types/json-schema": "^7.0.11",
Expand Down
3 changes: 0 additions & 3 deletions style/jupyterlab-typography.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@
.myst {
@apply prose prose-stone dark:prose-invert break-words max-w-none w-full overflow-auto;

font-size: var(--jp-content-font-size1);
color: var(--jp-content-font-color1);

/* Comes from .jp-RenderedHTMLCommon */
padding-right: 20px;
}
Expand Down
16 changes: 16 additions & 0 deletions style/preflight.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@

/* This is a highly simplified version of https://tailwindcss.com/docs/preflight to work with JupyterLab */

.myst {
font-size: var(--jp-content-font-size1);
color: var(--jp-content-font-color1);
}

.myst
:where(*):not(
:where([class~='jp-RenderedHTMLCommon'], [class~='jp-RenderedHTMLCommon'] *)
Expand Down Expand Up @@ -47,3 +52,14 @@
display: block;
max-width: 100%;
}

.myst
:where(button,
input,
optgroup,
select,
textarea) {

color: inherit; /* 1 */

}

0 comments on commit bc99711

Please sign in to comment.