| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| Interactive examples in the NumPy documentation | ||
| ----------------------------------------------- | ||
|
|
||
| The NumPy documentation includes a number of examples that | ||
| can now be run interactively in your browser using WebAssembly | ||
| and Pyodide. | ||
|
|
||
| Please note that the examples are currently experimental in | ||
| nature and may not work as expected for all methods in the | ||
| public API. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,11 @@ | ||
| @import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;0,900;1,400;1,700;1,900&family=Open+Sans:ital,wght@0,400;0,600;1,400;1,600&display=swap'); | ||
|
|
||
| .navbar-brand img { | ||
| height: 75px; | ||
| height: 75px; | ||
| } | ||
|
|
||
| .navbar-brand { | ||
| height: 75px; | ||
| height: 75px; | ||
| } | ||
|
Comment thread
Copy link
Copy Markdown
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityFor another time, do you believe it would be worth having a pre-comit to format the css in the numpy repo ?
Sorry, something went wrong.
All reactions
Copy link
Copy Markdown
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityI think so! I couldn't find many within the pre-commit framework that seem to be regularly maintained, but Node.js-based tools exist, such as https://github.com/stylelint/stylelint that one can use with npm, or better npx.
Sorry, something went wrong.
All reactions
Copy link
Copy Markdown
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Qualityprettier can lint HTML and CSS files. I think I can add it after this PR if this is still needed.
Sorry, something went wrong.
All reactions
Copy link
Copy Markdown
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityI'd prefer no pre-commit or new linting work as a result of this PR; lots of effort and bikeshedding involved for not enough gain.
Sorry, something went wrong.
agriyakhetarpal reacted with thumbs up emoji
All reactions
|
||
|
|
||
| body { | ||
| Expand Down Expand Up | @@ -71,4 +72,43 @@ div.admonition-legacy>.admonition-title::after { | |
|
|
||
| div.admonition-legacy>.admonition-title { | ||
| background-color: var(--pst-color-warning-bg); | ||
| } | ||
| } | ||
|
|
||
| /* Buttons for JupyterLite-enabled interactive examples */ | ||
|
|
||
| .try_examples_button { | ||
| color: white; | ||
| background-color: var(--pst-color-info); | ||
| border: none; | ||
| padding: 5px 10px; | ||
| border-radius: 0.25rem; | ||
| margin-top: 3px; /* better alignment under admonitions */ | ||
| margin-bottom: 5px !important; /* fix uneven button sizes under admonitions */ | ||
| box-shadow: 0 2px 5px rgba(108, 108, 108, 0.2); | ||
| font-weight: bold; | ||
| font-size: small; | ||
| } | ||
|
|
||
| /* Use more acccessible colours for text in dark mode */ | ||
| [data-theme=dark] .try_examples_button { | ||
| color: black; | ||
| } | ||
|
|
||
| .try_examples_button:hover { | ||
| transform: scale(1.02); | ||
| box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); | ||
| cursor: pointer; | ||
| } | ||
|
|
||
| .try_examples_button_container { | ||
| display: flex; | ||
| justify-content: flex-start; | ||
| gap: 10px; | ||
| margin-bottom: 20px; | ||
| } | ||
|
Comment thread
agriyakhetarpal marked this conversation as resolved.
|
||
|
|
||
| /* Better gaps for examples buttons under admonitions */ | ||
|
|
||
| .try_examples_outer_iframe { | ||
| margin-top: 0.4em; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "LiteBuildConfig": { | ||
| "no_sourcemaps": true | ||
| } | ||
| } |
| Back | FazBrowse Home | New Git URL |
Uh oh!
There was an error while loading. Please reload this page.