-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Ready case studies shortcode for Docsy #50983
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
base: main
Are you sure you want to change the base?
Ready case studies shortcode for Docsy #50983
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
✅ Pull request preview available for checkingBuilt without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
This changes the HTML on the site landing page(s), not the rendering within the Case Studies section.
db2d75a
to
94de6f5
Compare
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.
Great work! I checked how it renders in Firefox and Chrome, and it looks good. I have a couple of minor suggestions for improving CSS for smaller screens.
> .case-study-item { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-between; |
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.
Centering the text makes it look better (e.g. relative to the logo above), especially for small screens (tablets/phones).
justify-content: space-between; | |
justify-content: space-between; | |
text-align: center; |
display: block; | ||
text-align: right; | ||
} | ||
padding-bottom: 2em; |
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.
Moving this to an upper level (list instead of the item) keeps the same padding below the whole section, yet doesn't add unnecessary paddings when the items are displayed in 2 or 4 rows (it happens on smaller screens).
padding-bottom: 2em; |
text-align: right; | ||
} | ||
padding-bottom: 2em; | ||
} |
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.
} | |
} | |
padding-bottom: 2em; |
Revise a shortcode that renders a selection of case studies. Also update the SCSS to make it look about right.
This changes the HTML on the site landing page(s), not the rendering within the Case Studies section.
Here's a preview
Helps with issue #41171
Supersedes PR #48560
/area web-development