-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat/tup-635: Add header demo to core-styles (#258)
* Added header demo to core-styles * Added additional header varients to demo * Made changes requested in PR * renaming to better header components * fix: update import based on latest changes --------- Co-authored-by: Wesley Bomar <wbomar@tacc.utexas.edu>
- Loading branch information
1 parent
58a3574
commit f054695
Showing
13 changed files
with
83 additions
and
55 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
context: | ||
shouldLoadBootstrap: true | ||
shouldLoadCMS: true | ||
supportStyles: | ||
- ../../assets/core-styles.header.css | ||
- ../../assets/core-styles.theme.default.css | ||
variants: | ||
- name: with-branding | ||
label: With Branding | ||
- name: default | ||
label: Without Branding |
32 changes: 32 additions & 0 deletions
32
src/lib/_imports/trumps/s-header/s-header--with-branding.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<!-- FAQ: | ||
This is the markup of the #s-header, as of 2020-03-11, | ||
from https://frontera-portal.tacc.utexas.edu/. It has: | ||
- Bootstrap class names | ||
(also via `./s-portal-nav.html`) | ||
(also via `./s-cms-nav.html`) | ||
- Bootstrap attributes | ||
(also via `./s-portal-nav.html`) | ||
- multiple internal scope (`s-`) classes | ||
(only via `./s-portal-nav.html`) | ||
(only via `./s-cms-nav.html`) | ||
- FontAwesome class names | ||
(only via `./s-portal-nav.html`) | ||
- illegally-nested markup (`ul > div > li`) | ||
(only via `./s-portal-nav.html`) | ||
--> | ||
<div class="branding-header"> | ||
<a href="https://www.nsf.gov/" target="_blank"> | ||
<img class="branding-logo branding-nsf" src="http://tacc.utexas.edu/static/site_cms/img/org_logos/nsf-white.png" alt="NSF Logo"> | ||
</a> | ||
<span class="branding-seperator"></span> | ||
<a href="https://www.tacc.utexas.edu/" target="_blank"> | ||
<img class="branding-logo branding-tacc" src="http://tacc.utexas.edu/static/site_cms/img/org_logos/tacc-white.png" alt="TACC Logo"> | ||
</a> | ||
<span class="branding-seperator"></span> | ||
<a href="https://www.utexas.edu/" target="_blank"> | ||
<img class="branding-logo branding-utaustin" src="http://tacc.utexas.edu/static/site_cms/img/org_logos/utaustin-white.png" alt="University of Texas at Austin Logo"> | ||
</a> | ||
</div> | ||
{{> @s-header}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
:root { | ||
--global-font-family: var(--global-font-family--sans); | ||
--font-family-sans-serif: var(--global-font-family--sans); | ||
--font-family-monospace: var(--global-font-family--mono); | ||
} | ||
|
||
main { | ||
padding-block: unset; | ||
width: unset; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<nav id="s-header" class="s-header navbar navbar-expand-lg navbar-dark"> | ||
<a class="navbar-brand" href="/"> | ||
<img src="http://tacc.utexas.edu/static/site_cms/img/org_logos/portal.png" alt="Portal Logo" | ||
class="nav-logo-double nav-logo-frontera-double" /> | ||
</a> | ||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExpandTarget" | ||
aria-controls="navbarsExpandTarget" aria-expanded="false" aria-label="Toggle navigation"> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
|
||
<div class="collapse navbar-collapse" id="navbarsExpandTarget"> | ||
{{> @s-cms-nav}} {{> @s-portal-nav}} | ||
</div> | ||
</nav> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters