-
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
feat: core-styles v2 header #1068
base: main
Are you sure you want to change the base?
Changes from all commits
8c05a71
72462cf
42cd448
03eba36
6e81a8a
f1a5945
6bc1e95
3befd83
551e9a2
ff7d2be
a44288b
d0bd73e
a1f2bfb
7641dca
4f96175
04fb98f
c7128e7
42508c9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@import url('@tacc/core-styles/src/lib/_imports/settings/color.css'); | ||
@import url('@tacc/core-styles/dist/settings/color.css'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
/* If Design doc uses color on the left, use color on the right | ||
(When design is updated to use the new colors, we can remove this) | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,9 +16,6 @@ | |
<link rel="canonical" href="{{request.get_full_path}}"> | ||
<base href="/"> | ||
{% block head_extra %}{% endblock %} | ||
<!-- Core CSS --> | ||
<link id="css-site-font" rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" /> | ||
<link id="css-site-header" rel="stylesheet" href="/static/site_cms/css/build/site.header.css" /> | ||
Comment on lines
-19
to
-21
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why? These are old solutions.
|
||
{% if settings.PORTAL_CSS_FILENAMES|length %} | ||
<!-- Project CSS --> | ||
{% for stylesheet in settings.PORTAL_CSS_FILENAMES %} | ||
|
@@ -27,6 +24,9 @@ | |
{% endif %} | ||
<!-- Vendor CSS --> | ||
<link id="css-bootstrap" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous"> | ||
<!-- Header CSS --> | ||
<link rel="stylesheet" href="/static/site_cms/css/build/core-styles.theme.default.css"> | ||
<link rel="stylesheet" href="/static/site_cms/css/build/core-styles.header.css"> | ||
|
||
{% block styles %}{% endblock %} | ||
</head> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,9 +21,9 @@ | |
|
||
|
||
|
||
{% include "includes/nav_cms.html" with className="navbar-nav" only %} | ||
{% include "includes/nav_cms.html" with className="navbar-nav me-auto" only %} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To match Core-CMS (which uses Bootstrap 4 |
||
|
||
{% include "includes/nav_search.html" with className="form-inline ml-auto" only %} | ||
{% include "includes/nav_search.html" with className="form-inline" only %} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To match Core-CMS (which stopped using a margin class here). |
||
{# FAQ: Unlike CMS and User Guide, we must pass `user` #} | ||
{% include "includes/nav_portal.html" with className="navbar-nav" user=user settings=settings only %} | ||
|
||
|
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.
What? This was backwards-compatibility we added that Bootstrap chose not to add. We will instead use their new class names,
me-auto
andms-auto
. Search diff forme-auto
.1Footnotes
which translate to
margin(-inline-)end: auto
andmargin(-inline-)start: auto
↩