Skip to content
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

feat(ecep-113): style news & related patterns #16

Merged
merged 59 commits into from
May 3, 2022

Conversation

wesleyboar
Copy link
Member

@wesleyboar wesleyboar commented Apr 26, 2022

Overview

Make changes to support ECEP News.

Related

Changes

  • style figures and captions
  • style bootstrap pagination
  • move blog css to TACC/Core-CMS
  • style more distance between paragraphs
  • style updates for offset content pattern

Screenshots & Testing

See TACC/Core-CMS#466.

Notes

This PR was broken into smaller ones to track isolated changes separately.

commit b77d983
Author: Wesley Bomar <wbomar@tacc.utexas.edu>
Date:   Mon Apr 11 13:23:41 2022 -0500

    fix(component): pagination
commit cec544c
Author: Wesley Bomar <wbomar@tacc.utexas.edu>
Date:   Mon Apr 11 13:24:15 2022 -0500

    fix(component): buttons
to avoid conflict with pagination --item-buffer
- new selector --article
- new property --row-one-areas
- hide * if `.app-blog.no-*`
even if it adds superfluous specificity
revert 21c3a2d which actually broke the selector
so that header can shrink on mobile
@wesleyboar wesleyboar force-pushed the task/ECEP-113-support-news branch from 2a2d42d to 54ebdac Compare April 26, 2022 22:55
Copy link
Member Author

@wesleyboar wesleyboar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

notes for reviewers

Comment on lines -1 to -11
/*
Django CMS Blog Components

Components for [Django CMS Blog](https://djangocms-blog.readthedocs.io) UI. These classes are authored in templates of third-party origin, but they have no third-party styles.

Reference:

- [Django CMS Blog `.blog-` Class Components](https://github.com/TACC/CORE-cms/tree/main/taccsite_cms/templates/djangocms_blog)

Styleguide Components.DjangoCMS.Blog
*/
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +113 to +116
p {
margin-bottom: 2rem; /* overwrite Bootstrap */
}

Copy link
Member Author

@wesleyboar wesleyboar Apr 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note. This style—and this whole file—could be considered CMS-specific, in which case it should move to Core-CMS via TACC/Core-CMS#482, but I just haven't confirmed whether either (this code or this whole file) is CMS-specific yet, because the Docs could also use such basic html element styles.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable to leave it here until you are sure. =)

Comment on lines -1 to -11
/*
Django CMS Blog Post Components

Components for [Django CMS Blog Post](https://djangocms-blog.readthedocs.io) UI. These classes are authored in templates of third-party origin, and expanded by us, but they have no third-party styles.

Reference:

- [Django CMS Blog `.post-` Class Components](https://github.com/TACC/CORE-cms/tree/main/taccsite_cms/templates/djangocms_blog)

Styleguide Components.DjangoCMS.Post
*/
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(merged file into TACC/Core-CMS:/taccsite_cms/static/site_cms/css/src/… which then split its styles into multiple stylesheets)

[class*="o-offset-content--"] {
max-width: 50%;
:--o-offset-content {
max-width: 560px;
}
Copy link
Member Author

@wesleyboar wesleyboar Apr 29, 2022

Copy link
Collaborator

@taoteg taoteg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (as I review the other 2 related PRs).


Styleguide Components.Bootstrap.Pagination
*/
@import url("@tacc/core-styles/source/_imports/components/c-page.css");
Copy link
Member Author

@wesleyboar wesleyboar May 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hint: This imported stylesheet was added in #5.

@wesleyboar
Copy link
Member Author

All related PR have been approved. I merge now.

@wesleyboar wesleyboar merged commit d4eaf1f into main May 3, 2022
@wesleyboar wesleyboar deleted the task/ECEP-113-support-news branch May 3, 2022 17:43
@wesleyboar wesleyboar changed the title ECEP-113: Style News & Related Patterns feat(ecep-113): style news & related patterns May 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants