-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Migrate `branding_logos` CSS to `c-branding` & `c-logo`. - In `s-header` style `.c-logo` not `.navbar-brand` . - Update and format markup for `header_branding` and `header_logo`. - Comment on now-unused secrets values.
- Loading branch information
1 parent
9353538
commit 7b1a8cb
Showing
10 changed files
with
194 additions
and
97 deletions.
There are no files selected for viewing
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
69 changes: 0 additions & 69 deletions
69
taccsite_cms/static/site_cms/css/src/_imports/branding_logos.css
This file was deleted.
Oops, something went wrong.
91 changes: 91 additions & 0 deletions
91
taccsite_cms/static/site_cms/css/src/_imports/components/c-branding.css
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,91 @@ | ||
/* | ||
Branding | ||
A list of linked images for funders and affiliates. Project customization should be minimal. | ||
Markup: c-branding.twig.html | ||
Styleguide Components.Branding | ||
*/ | ||
@import url("_imports/tools/media-queries.css"); | ||
|
||
/* IDEA: Use multi-column (`column-*`) to simplify border, margin, separator */ | ||
|
||
|
||
|
||
/* Base */ | ||
|
||
.c-branding { | ||
--column-gap--side: 25px; | ||
--column-gap--center: 35px; | ||
|
||
display: flex; | ||
flex-direction: row; | ||
justify-content: center; | ||
align-items: center; | ||
|
||
/* This prevents header bar resize when branding is dynamically added */ | ||
/* CAVEAT: This is only for Portal and Docs which dynamically load content */ | ||
/* FAQ: Do not use `48.78px`, because Safari only accepts whole numbers */ | ||
height: 40px; | ||
|
||
background-color: var(--global-color-primary--xx-dark); | ||
color: var(--global-color-primary--xx-light); | ||
border-bottom: 1px solid #aaa; | ||
} | ||
|
||
/* A responsive column gap */ | ||
.c-branding__link:first-child .c-branding__image { | ||
margin-right: var(--column-gap--side); | ||
} | ||
.c-branding__link:not(:first-child):not(:last-child) .c-branding__image { | ||
margin-left: var(--column-gap--center); | ||
margin-right: var(--column-gap--center); | ||
} | ||
.c-branding__link:last-child .c-branding__image { | ||
margin-left: var(--column-gap--side); | ||
} | ||
@media (--x-narrow-and-below) { | ||
.c-branding { | ||
--column-gap--side: 10px; | ||
--column-gap--center: 10px; | ||
} | ||
} | ||
|
||
|
||
|
||
/* Elements */ | ||
|
||
.c-branding__link { | ||
--height: 90%; | ||
|
||
height: var(--height); | ||
} | ||
.c-branding__separator { | ||
/* To add border */ | ||
height: 25px; | ||
border-left: solid 1px #fff; | ||
|
||
/* To hide text */ | ||
width: 0; | ||
overflow: hidden; | ||
} | ||
.c-branding__image { | ||
/* To match parent height */ | ||
height: 100%; | ||
} | ||
|
||
/* Specific brands */ | ||
.c-branding__nsf-link { --height: 35px; } | ||
.c-branding__tacc-link { --height: 30px; } | ||
.c-branding__utexas-link { --height: 26px; } | ||
|
||
|
||
|
||
/* Modifiers */ | ||
|
||
/* Compact */ | ||
.c-branding--compact { | ||
--column-gap--side: 10px; | ||
--column-gap--center: 10px; | ||
} |
22 changes: 22 additions & 0 deletions
22
taccsite_cms/static/site_cms/css/src/_imports/components/c-branding.twig.html
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,22 @@ | ||
<div class="c-branding"> | ||
|
||
<a class="c-branding__link" href=""> | ||
<img class="c-branding__image c-branding__nsf-image" | ||
src="/static/site_cms/img/org_logos/nsf-white.png" alt="…" /> | ||
</a> | ||
|
||
<span class="c-branding__separator">|</span> | ||
|
||
<a class="c-branding__link" href=""> | ||
<img class="c-branding__image c-branding__tacc-image" | ||
src="/static/site_cms/img/org_logos/tacc-white.png" alt="…" /> | ||
</a> | ||
|
||
<span class="c-branding__separator">|</span> | ||
|
||
<a class="c-branding__link" href=""> | ||
<img class="c-branding__image c-branding__utexas-image" | ||
src="/static/site_cms/img/org_logos/utaustin-white.png" alt="…" /> | ||
</a> | ||
|
||
</div> |
27 changes: 27 additions & 0 deletions
27
taccsite_cms/static/site_cms/css/src/_imports/components/c-logo.css
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,27 @@ | ||
/* | ||
Logo | ||
The main website logo. Project customization should be minimal. | ||
Markup: c-logo.twig.html | ||
Styleguide Components.Logo | ||
*/ | ||
/* NOTE: All styles here are currently handled by Bootstrap `.navbar-brand` */ | ||
/* TODO: Abandon Bootstrap `.navbar-brand`. Implement minimum styles instead. */ | ||
|
||
|
||
|
||
/* Base */ | ||
|
||
.c-logo { | ||
/* … */ | ||
} | ||
|
||
|
||
|
||
/* Elements */ | ||
|
||
.c-logo__image { | ||
/* … */ | ||
} |
4 changes: 4 additions & 0 deletions
4
taccsite_cms/static/site_cms/css/src/_imports/components/c-logo.twig.html
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,4 @@ | ||
<a class="c-logo" href=""> | ||
<img class="c-logo__image" | ||
src="/static/site_cms/img/org_logos/anonorg-logo.png" alt="Logo" /> | ||
</a> |
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
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