-
Notifications
You must be signed in to change notification settings - Fork 1
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-191: Theme (for ProTX Light Header & TACC Blue Header) #192
GH-191: Theme (for ProTX Light Header & TACC Blue Header) #192
Conversation
- Restore missing line between search bar and portal nav - (Simplify CSS of line between search bar and portal nav) - Do not let background show through search bar. - (This happens now because of a color replacement.)
a2a5834
to
cde3be7
Compare
So that Portal and Docs need not reinvent the wheel.
So that Portal and Docs need not reinvent the wheel.
67149c2
to
a86a5e5
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.
Instead of having CSS's runtime variables (custom properties) use build-time variables to result in baking in the THEME
styles. Thus, Portal and User Guide need not load any script nor access any API.
3eb2f32
to
c3922e2
Compare
When I un-pause this PR, I will re-open it. |
Un-pausing. #222 both needs this and should be finished this year. |
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.
Notes for Reviewers
taccsite_cms/static/site_cms/css/src/_imports/components/bootstrap.form.css
Show resolved
Hide resolved
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.
Built and ran locally using this branch and all worked as expected.
Status
env
variables are available for Header Redesign → FP-1458 #101.To Do
Done
Use¹.env
.secrets.pysettings_custom.py.²Wait for https://github.com/TACC/protx/ to be updated.³Update PR screenshots.⁴Footnotes
1. Use Old Theme Management Code
Distinguish theme via396c018 changes this to use.env
file value.secrets.py
.2. Use New Theme Management Code
THEME
fromsettings.py
instead of.env
.THEME
change.sudo
access on server using Camino-based deployrequest for access to a server RT-19490server and access but no deploy RT-19292dev.cepcms
; options:3. TACC/ProTX Out of Date
/core/markup/nav
via https://github.com/TACC/Core-CMS/blob/main/taccsite_cms/templates/nav_portal.html#L16nav_portal.raw.html
via https://github.com/TACC/Core-Portal/blob/main/server/portal/urls.py#L52nav_portal.raw.html
(added 5 months ago at 64e93ef)4. Merged by Tester out of Urgency
Screenshots not updated, but code was deployed and testable.
The ProTX (Pre-Prod) use case—which I allowed to delay updated screenshots—had an issue that was related to Portal code, not CMS code. Tester did not need updated screenshots.
5. Research Tasks
env()
for fonts so we can remove import of global font vars that is redundant on Portal. https://github.com/TACC/Core-CMS/blob/3157107/taccsite_cms/static/site_cms/css/src/site.header.css#L13-L14Overview
env()
variablesTHEME
insecrets
Issues
Changes
env()
variables* to apply theme(complete changelog)
.env
file via new.env.sample
.settings.json
..env.sample
in README.env()
variables*.settings_to_json.py
beforenpm run build
._THEME
to secrets/settings.env()
variables* and dark logo.site.header.css
.Testing
Test that these
_THEME
values do not crash and result in the expected header theme:has-dark-logo
— new light header themedefault
— default (dark header) themebob
— unable to build CSSDetailed Walkthrough
No Theme — Default
THEME
tosecrets.py
.npm run build
.THEME
is not required.THEME
as a fallback.env()
variables.Empty Theme i.e. Default
THEME
setting withNone
value.npm run build
.THEME
may be empty.THEME
as a fallback.env()
variables.has-dark-logo
ThemeTHEME
setting tohas-dark-logo
.npm run build
.THEME
works with known value.env()
variables.default
ThemeTHEME
setting todefault
.npm run build
.THEME
as a choice.THEME
works with known value.env()
variables.Unknown
THEME
i.e. FailureTHEME
setting tobob
.npm run build
.THEME
as a choice.THEME
fails with unknown value.THEME
works with known value.env()
variables.Screenshots
CMS (Might be Out of Date)
Light Navbar For Dark Logo
Dark Navbar For Most Logos
Notes
Does Not Implement New Header Design
New header design comes via GH-101/FP-1458: Header Redesign #222, which relies on this PR.