-
Notifications
You must be signed in to change notification settings - Fork 0
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
fix(tup-231): move some core-styles back to core-cms #17
fix(tup-231): move some core-styles back to core-cms #17
Conversation
Some Core-CMS styles were in Core-Styles repo, because I moved too much. Cause: "FP-1496: CSS Build to Core-Styles" (v3.6.0 Core-Styles)
…ithub.com:TACC/Core-Styles into task/TUP-231-cms-css-from-styles-repo-to-cms-repo
c6f6e73
to
4039446
Compare
29bc1ac
to
67ebbb8
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.
notes for reviewers
/* | ||
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 | ||
*/ |
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.
(copied entire file to TACC/Core-CMS:/...)
/* | ||
Django CMS Components | ||
|
||
Components for [Django CMS](https://www.django-cms.org/) UI. No examples | ||
are provided, because the markup is dynamically generated by a third-party. | ||
|
||
Reference: | ||
|
||
- [Django CMS `.cms-` Class Components](https://github.com/divio/django-cms/tree/release/3.6.x/cms/static/cms/sass/components) | ||
|
||
Styleguide Components.DjangoCMS | ||
*/ | ||
|
||
/* Prevent excess scrollbar when logged into Django CMS */ | ||
/* NOTE: This code does NOT work */ | ||
/* | ||
.cms-ready body { | ||
/* FAQ: CMS dynamically adds `margin-top` to `head` to fit toolbar height *\/ | ||
/* WARNING: If the dynamic(!) header margin changes, then so should this *\/ | ||
/* RFC: Consider creating JavaScript snippet (via CMS?) to solve this *\/ | ||
height: calc(100vh - env(--cms-toolbar-height)); | ||
} | ||
*/ | ||
|
||
/* Prevent anchor links from scrolling behind Django CMS header */ | ||
.cms-ready :target { | ||
scroll-margin-top: env(--cms-toolbar-height); | ||
} | ||
|
||
/* Prevent top-sticking content from scrolling behind Django CMS header */ | ||
.cms-ready .sticky-top /* Bootstrap class */, | ||
.cms-ready .position-sticky.fixed-top /* Bootstrap class */ { | ||
top: env(--cms-toolbar-height); | ||
} |
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.
(copied entire file to TACC/Core-CMS:/...)
/* | ||
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 | ||
*/ |
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.
(copied entire file to TACC/Core-CMS:/...)
/* | ||
Fonts | ||
|
||
Load standard fonts for a TACC website. | ||
|
||
Usage: | ||
``` | ||
.something { | ||
// BentonSans-MediumItalic | ||
font-family: 'Benton Sans'; | ||
font-weight: 500; | ||
font-style: italic; | ||
} | ||
``` | ||
|
||
Reference: | ||
- [Keep Font CSS Simple](https://www.456bereastreet.com/archive/201012/font-face_tip_define_font-weight_and_font-style_to_keep_your_css_simple/) | ||
- [font-weight](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight) | ||
- [Shared UI - Constants - Font](https://confluence.tacc.utexas.edu/x/cYAZCg) | ||
|
||
Styleguide Generics.Fonts | ||
*/ | ||
|
||
@font-face { | ||
font-family: 'Benton Sans'; | ||
src: url("/static/frontera-cms/fonts/archive/BentonSans-Regular.otf") format("opentype"); | ||
font-weight: 400; | ||
font-style: normal; | ||
font-display: swap; | ||
} | ||
|
||
@font-face { | ||
font-family: 'Benton Sans'; | ||
src: url("/static/frontera-cms/fonts/archive/BentonSans-Bold.otf") format("opentype"); | ||
font-weight: 700; | ||
font-style: normal; | ||
font-display: swap; | ||
} | ||
|
||
@font-face { | ||
font-family: 'Benton Sans'; | ||
src: url("/static/frontera-cms/fonts/archive/BentonSans-Medium.otf") format("opentype"); | ||
font-weight: 500; | ||
font-style: normal; | ||
font-display: swap; | ||
} | ||
|
||
@font-face { | ||
font-family: 'Benton Sans'; | ||
src: url("/static/frontera-cms/fonts/archive/BentonSans-MediumItalic.otf") format("opentype"); | ||
font-weight: 500; | ||
font-style: italic; | ||
font-display: swap; | ||
} |
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.
(copied entire file to TACC/Core-CMS:/...)
|
||
/* Distinct Hues */ | ||
|
||
/* FAQ: This placeholder accent color came from Portal */ | ||
/* CAVEAT: A standard accent color definition is pending more designs */ | ||
/* NOTE: The new Frontera and TACC designs both have brown and blue accents */ | ||
--global-color-accent--normal: #877453; | ||
|
||
/* CAVEAT: Not accessible within paragraph text (edge case as of 2021-08) */ | ||
--global-color-link-on-light--normal: #003399; | ||
/* WARNING: This color is from Dev not Design (not rendered as of 2021-08) */ | ||
--global-color-link-on-dark--normal: #0088FF; |
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.
(copied these CMS-only properties to TACC/Core-CMS:/...)
|
||
|
||
|
||
/* Family */ | ||
|
||
--global-font-family--sans: "Benton Sans", "Roboto", sans-serif; | ||
--global-font-family--serif: Times, sans-serif; | ||
--global-font-family--mono: source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace; | ||
|
||
--global-font-family: var(--global-font-family--sans); | ||
|
||
/* Family: Overwrite Boostrap */ | ||
|
||
--font-family-sans-serif: var(--global-font-family--sans); | ||
/* CAVEAT: Ineffectual for <code>, <kbd>, <pre>, <samp> */ | ||
--font-family-monospace: var(--global-font-family--mono); | ||
|
||
|
||
|
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.
(copied these CMS-only properties to TACC/Core-CMS:/...)
@@ -32,5 +32,4 @@ Styleguide Settings.CustomProperties.Space | |||
|
|||
--global-space--list-indent: 40px; /* browser default (Firefox, Edge) */ | |||
--global-space--grid-gap: 15px; /* Bootstrap `.container` & `.row` */ | |||
--global-space--hr-margin: 30px; /* constant unit allows consistency */ |
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.
(copied this CMS-only properties to TACC/Core-CMS:/...)
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.
Merged in |
Overview / Changes
Move back CMS-specific styles from Core-Styles repo to Core-CMS repo.
Background
I moved all styles from Core-CMS to Core-Styles. That included some CMS-specific styles. Now I bring them back to CMS.
Also, better documented current1 state of
<tacc-search-bar>
.Related
Screenshots
N/A
Testing
See TACC/Core-CMS#482.
Footnotes
State changes (improves) via https://github.com/TACC/Core-CMS/issues/101. ↩