-
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
Task/gh 35 redesign home page #39
Changes from all commits
a85f3c0
7f84fc0
715be2c
767c3dd
faeebee
0ed6556
2ce77d2
a932529
4991fe7
c9252b9
07e18bb
69d7837
c5d02a5
52c2e5d
7a786dd
ed9b716
e0d6672
2c6303d
15e6139
3c07435
c41dca2
0f7722f
a4d2480
f7f56b6
8643627
c758241
bcd0d0b
bd30be2
a998d52
786416c
eabaa7d
601339d
8abeb61
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/* SETTINGS: Color */ | ||
|
||
:root { | ||
/* Distinct Hues */ | ||
--global-color-accent--normal: #877453; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
/* TACC TRUMPS: Home (Page) */ | ||
@import url("../../../../../../../../taccsite_cms/static/site_shared/css/src/_imports/tools/x-center.css"); | ||
@import url("../../../../../../../../taccsite_cms/static/site_shared/css/src/_imports/tools/media-queries.css"); | ||
|
||
|
||
|
||
/* Banner */ | ||
/* Introduction */ | ||
|
||
.s-home__banner, | ||
.s-home__intro { | ||
--banner-margin-horz: 25px; | ||
} | ||
|
||
|
||
|
||
/* Banner */ | ||
|
||
.s-home__banner { | ||
position: relative; /* for `position: absolute` children */ | ||
} | ||
@media (--medium-and-below) { | ||
.s-home__banner { height: auto; } | ||
} | ||
@media (--medium-and-above) { | ||
.s-home__banner { height: 40.5rem; } | ||
} | ||
|
||
.s-home__banner .o-section__banner-overlay { | ||
font-size: 2.4rem; | ||
font-weight: var(--bold); | ||
|
||
padding: 1em 3.0rem; /* GH-99: Use standard spacing value */ | ||
margin: 0 var(--banner-margin-horz); | ||
|
||
@extend .x-center--vert-inline-multiline--flex; | ||
} | ||
.s-home__banner .o-section__banner-overlay p { | ||
@extend .x-truncate--many-lines; | ||
--lines: 11 !important; /* WARNING: Fixing unclear specificity issue */ | ||
} | ||
@media (--wide-and-above) { | ||
.s-home__banner .o-section__banner-image { | ||
/* The offset is to align image at 1200px to position in design */ | ||
top: calc(50% - 6%); /* overwrite `.o-section__banner-image` */ | ||
} | ||
} | ||
|
||
|
||
|
||
/* Introduction */ | ||
|
||
.s-home__intro p { | ||
font-size: 1.8rem; | ||
font-weight: var(--bold); | ||
} | ||
@media (--wide-and-above) { | ||
.s-home__intro p { | ||
/* Forces width to match design */ | ||
padding-right: 3.0rem; /* GH-99: Use standard spacing value */ | ||
} | ||
} | ||
|
||
.s-home__intro .s-sysmon { | ||
align-self: center; | ||
|
||
display: flex; | ||
align-items: center; | ||
justify-items: center; | ||
|
||
overflow-x: auto; | ||
} | ||
@media (--narrow-and-below) { | ||
.s-home__intro .s-sysmon { | ||
padding-top: 0.5rem; /* GH-99: Use standard spacing value */ | ||
padding-bottom: 0.5rem; /* GH-99: Use standard spacing value */ | ||
} | ||
} | ||
@media (--narrow-and-above) { | ||
.s-home__intro div { | ||
/* Forces smaller width, like design */ | ||
/* Uses consistent space, unlike design */ | ||
padding: 1.0rem; /* GH-99: Use standard spacing value */ | ||
|
||
margin: 0 var(--banner-margin-horz); | ||
} | ||
} | ||
|
||
|
||
|
||
/* News */ | ||
|
||
.s-home__news { | ||
padding-top: 2.0rem; | ||
padding-bottom: 2.5rem; | ||
} | ||
.s-home__news article { | ||
margin-bottom: 3.0rem; | ||
} | ||
|
||
|
||
|
||
/* Other */ | ||
|
||
.s-home__other [class*="s-article-list--"] { | ||
min-height: 45.0rem; | ||
} | ||
|
||
/* To make user guides links take entire row when layout is 50/50 */ | ||
@media (--narrow-to-medium), (--x-narrow-to-narrow) { | ||
.s-home__other > :first-child { grid-column: 1 / -1; } | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/* DO NOT ADD STYLES HERE; ONLY IMPORT OTHER STYLESHEETS */ | ||
|
||
|
||
/* NOTE: This file exists so that the Portal and User Guide can load isolated header styles */ | ||
|
||
/* Organize via ITCSS */ | ||
/* SEE: https://confluence.tacc.utexas.edu/x/IAA9Cw */ | ||
|
||
/* TRUMPS */ | ||
@import url("_imports/trumps/s-home.css"); | ||
@import url("../../../../../../taccsite_cms/static/site_cms/css/src/_imports/trumps/s-article-list.css"); | ||
@import url("../../../../../../taccsite_cms/static/site_cms/css/src/_imports/trumps/s-article-preview.css"); | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{% extends "./fullwidth.html" %} | ||
{% load cms_tags staticfiles %} | ||
|
||
{% block assets_custom %} | ||
<link rel="stylesheet" href="{% static 'frontera-cms/css/build/site.css' %}"> | ||
<link rel="stylesheet" href="{% static 'frontera-cms/css/build/site.header.css' %}"> | ||
Comment on lines
+5
to
+6
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 Not Make |
||
|
||
<style> | ||
/* To simplify calculation of `rem` values */ | ||
/* WARNING: This MUST ONLY be loaded on homepage */ | ||
/* FAQ: The Core and the rest of Frontera is NOT ready for this change */ | ||
html { font-size: 62.5%; /* 1rem = 10px */ } | ||
|
||
/* To hide `.o-section--style-…` and `.o-section__banner-image` overflow */ | ||
/* FAQ: Isolate from Core and Frontera to avoid unexpected side-effects */ | ||
main, | ||
/* HACK: Using ID until upstream updates markup via `quick/create-and-document-element-stylesheets` */ | ||
#content-wrap { overflow: hidden; } | ||
</style> | ||
<link rel="stylesheet" href="{% static 'frontera-cms/css/build/template.home.css' %}"> | ||
{% endblock assets_custom %} | ||
|
||
{# FAQ: Common practice but unused, and template is unnecessary long-term #} | ||
{# {% block page_type_class %}s-home{% endblock page_type_class %} #} | ||
Comment on lines
+23
to
+24
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 Unnecessary Logn-Term? |
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.
Short-Term vs. Long-Term
s-
styles, which makes them "trumps" that overwrite any existing styles).c-
styles, which makes them more easily re-usable).