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

GH-245/FP-1097: v1–v2 Migration Stylesheet #59

Merged
merged 29 commits into from
Aug 13, 2021

Conversation

wesleyboar
Copy link
Member

@wesleyboar wesleyboar commented Jul 9, 2021

Related

TACC/Core-CMS#274 relies on this PR.

To Do

Done

Overview

  • Support loading v1 styles for CMS migrations.
  • Update migrated CMS to use v1 stylesheet.

Changes

  • New: Add _shared pseudo-project.
  • Docs: Describe migrate.*.css and _migrations/.
  • New: Migrate Frontera migration CSS to _shared/.../_migrations/.
  • New: Update Frontera, 3Dem, and A2CPS accordingly.
  • New: Update Example CMS to have commented code to load migrations CSS.

Issues, Screenshots, Testing, Notes

See TACC/Core-CMS#274.

Avoid this error that occurred on A2CPS

```
AttributeError: module 'taccsite_custom._shared' has no attribute 'default_app_config'
```

via Core-Portal-Deployments 91966f8.

Previous attempt to avoid this was TACC/Core-CMS @ e8d864e3 — it failed
@wesleyboar wesleyboar linked an issue Jul 9, 2021 that may be closed by this pull request
@import url("_imports/components/tacc.c-footer.css");
/* … */
Copy link
Member Author

@wesleyboar wesleyboar Jul 9, 2021

Choose a reason for hiding this comment

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

Explanation
Moved code from tacc.c-footer.css code to _migrations/v1_v2/main.portal.css.

Comment on lines +26 to +29
footer {
/* … */
margin-top: 1em;
}
Copy link
Member Author

@wesleyboar wesleyboar Jul 9, 2021

Choose a reason for hiding this comment

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

Notice
Moved from tacc.c-footer.css to here.

Comment on lines -1 to -7
/* TACC COMPONENTS: Footer */

.c-footer {
/* Mimic strange style from old design ported for 2020-02 launch */
/* FP-459: After the redesign of Frontera, remove these */
margin-top: 1em;
}
Copy link
Member Author

@wesleyboar wesleyboar Jul 9, 2021

Choose a reason for hiding this comment

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

Explanation
Moved to _migrations/v1_v2/main.portal.css from here.

Comment on lines -140 to +144
font-size:10px;
/* Disabled by TACC */
/* FAQ: Let TACC handle influence `rem`; this and more may be deleted anyway */
/* font-size:10px; */
Copy link
Member Author

Choose a reason for hiding this comment

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

Explanation
This style has been being overwritten anyway for more than a year.

The code undone here is from "GH-73: …" commits which do not belong:
- 702e0a1
- 39457c8
- 2848d6d
- 9c2a2f7
- 4fe6ad7
- 25f3575
- 03154f9
wesleyboar added a commit that referenced this pull request Jul 12, 2021
This adds template, but not v1 styles. For v1 styles see #59.
@wesleyboar
Copy link
Member Author

Merging based on approval of TACC/Core-CMS#274.

@wesleyboar wesleyboar merged commit 23ab68f into main Aug 13, 2021
@wesleyboar wesleyboar deleted the task/GH-245-aka-GH-56-fix-cepv1-style-migration branch August 13, 2021 00:27
@wesleyboar wesleyboar changed the title Task/gh 245 aka gh 56 fix cepv1 style migration GH-245/FP-1097: v1–v2 Migration Stylesheet Sep 2, 2021
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.

Fix CEPv1 Migration Style Discrepancies
1 participant