-
Notifications
You must be signed in to change notification settings - Fork 29
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
Replace qiskit-card-item
directive with simpler qiskit-card
directive
#415
Merged
Eric-Arellano
merged 16 commits into
Qiskit:main
from
Eric-Arellano:simplify-qiskit-card
Jun 23, 2023
Merged
Replace qiskit-card-item
directive with simpler qiskit-card
directive
#415
Eric-Arellano
merged 16 commits into
Qiskit:main
from
Eric-Arellano:simplify-qiskit-card
Jun 23, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This makes a slight difference. The card no longer takes up as much space. But it's pretty close. And it doesn't matter since we plan to switch to Furo anyways.
To avoid specificity wars, we now use div in front of the .qiskit-card class always
javabster
approved these changes
Jun 23, 2023
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.
LGTM 🚀
Eric-Arellano
added a commit
that referenced
this pull request
Jun 29, 2023
#415 accidentally broke `qiskit-card` being clickable. But the code wasn't accessible, to begin with. It's an antipattern to make a `<div>` clickable. Instead, we should use the semantic web with an `<a>` element. Pytorch renders the same as before: ![Screenshot 2023-06-29 at 2 38 53 PM](https://github.com/Qiskit/qiskit_sphinx_theme/assets/14852634/c9d66f39-cfc8-4b18-bcad-3daebee9eee4)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
With
qiskit-card-item
, we expected you to have raw HTML in your RST file with specific CSS classes so that everything would work correctly. That was an antipattern, and not necessary since a card is an independent visual unit that doesn't depend on its siblings.Now, users only specify
qiskit-card
in their RST.This PR also simplifies the HTML and CSS structure for the element:
tags
option for the directive. It was unused in production.qiskit-card-x
..card-body
that won't exist in Furo.This will make #327 simpler.
Before:
After (my viewport changes a little):