-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
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
[general] remark_admonition + upgrade sphinx-proof and quantecon-book-theme #493
Conversation
Dear John, This pull request is for #442. I use the geom_series.md lecture as an example to test the current admonition style. Best, Longye
✅ Deploy Preview for taupe-gaufre-c4e660 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
thanks @longye-tian this will be a big help. We can work on updating Are you familiar with any |
Hi Matt, No worries. I'm not familiar with the Best, |
thanks @longye-tian. This is what the current styling is. @jstac I propose that |
@jstac is this closer to what you're thinking? I will see if I can match the icon colour to the line colour as well. I have setup executablebooks/sphinx-proof#106 to do a full review so that we can make all admonitions follow a similar |
Looks great @mmcky , many thanks. |
|
|
@DrDrij can I get your advise here. I have just updated instead of Our theme has
and it makes sense for it to be the main "style" here but it is quite general. Is the best solution here to update Otherwise, we could update our own theme to use a transparent background for |
@mmcky Hey Matt I notice that the admonition has the proof class So we could style it specifically such as:
Not sure if I have answered your question correctly though. :) |
thanks @DrDrij so this is what we have in
but the title in this preview has a background colour that I think is coming from maybe transaparent is allowing the |
Ah I see! Yes I made a mistake.
Will override the CSS I wrote above. CSS weighting is sequentially - element, id, class, then order. So I am adjusting the CSS I wrote from:
To:
This way it will override regardless of order loaded on client side since it has 1 more class of specificity. |
@DrDrij my target is to get no background colour -- as a |
@DrDrij I made the suggested change in executablebooks/sphinx-proof#109 but it is still showing the blue background from |
@mmcky I hope this is a reasonable request to make small changes to quantecon-book-theme and sphinx-proof to allow the styling of the admonition title background without having to force styles (using !important). I think it is best to do it properly. executablebooks/sphinx-proof#111 QuantEcon/quantecon-book-theme#248 So what these changes involve is having each stylesheet (pydata, qe theme, and sphinx proof) all style the admonition title the same way. This means the ultimate background colour style will come from whichever stylesheet is loaded last in the chain. Which looks like proof.css. |
love your work @DrDrij I will make new releases of:
then we will have |
This CSS tweak adjust the styling so that styles can be overriden without having to be forced. They will cascade from py_data -> quantecon_book_theme -> sphinx_proof. QuantEcon/lecture-python-intro#493
thanks @longye-tian -- Would you mind to update the other lectures with remark admonitions and then we can merge this PR. |
Add remark admonition for money_inflation.md
Add remark admonition to unpleasent.md
Add remark admonition for money_inflation_nonlinear.md
Hi Matt @mmcky , I have updated the remark admonitions for these lectures. Best, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @longye-tian for your work on this.
Dear John @jstac, Matt @mmcky
This pull request is for #442.
I reviewed all current QuantEcon intro lecture series. There are four lectures that contain remarks. Here is a summary:
This pull request uses the geom_series.md lecture as an example to test the current admonition style.
Best ❤️
Longye
Update: 25th Sep 2024 This PR also updates to latest version of
quantecon-book-theme==0.7.2
andsphinx_proof==0.2.0
to enable support for the minimal styling.