-
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.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
4322513
commit b9a1a93
Showing
10 changed files
with
143 additions
and
8 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
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
62 changes: 62 additions & 0 deletions
62
taccsite_cms/static/site_cms/css/src/_imports/trumps/s-breadcrumbs.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,62 @@ | ||
/* | ||
Breadcrumbs | ||
A list of links and to ancestor navigation (pages or sections that are a parent, grandparent, et cetera of the current page or section). | ||
Notice: A scope class is used to enforce appropriate semantic HTML. | ||
Markup: | ||
<!-- major navigation --> | ||
<nav class="s-breadcrumbs"> | ||
<ol> | ||
<li><a href="/"><span>Home</span></a></li> | ||
<li><a href="/"><span>Science</span></a></li> | ||
<li><span>Publications</span></li> | ||
</ol> | ||
</nav> | ||
<!-- minor navigation --> | ||
<ol class="s-breadcrumbs"> | ||
<li><a href="/"><span>Home</span></a></li> | ||
<li><a href="/"><span>Science</span></a></li> | ||
<li><span>Publications</span></li> | ||
</ol> | ||
Styleguide Trumps.Scopes.Breadcrumbs | ||
*/ | ||
@import url("_imports/tools/x-truncate.css"); | ||
|
||
|
||
|
||
|
||
|
||
/* Base i.e. Container */ | ||
|
||
nav.s-breadcrumbs { | ||
padding-top: 15px; | ||
|
||
font-size: var(--global-font-size--x-small); | ||
|
||
text-transform: uppercase; | ||
} | ||
|
||
|
||
|
||
/* Elements i.e. Content */ | ||
|
||
nav.s-breadcrumbs ol { | ||
list-style: none; | ||
} | ||
|
||
ol.s-breadcrumbs li, | ||
.s-breadcrumbs ol li { | ||
display: inline-block; | ||
} | ||
|
||
ol.s-breadcrumbs li + li::before, | ||
.s-breadcrumbs ol li + li::before { | ||
content: ' > '; | ||
} | ||
|
||
.s-breadcrumbs ol li:last-child span { | ||
font-weight: var(--bold); | ||
} |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{# SEE: https://github.com/django-cms/django-cms/blob/release/3.6.x/menus/templates/menu/breadcrumb.html #} | ||
{% for ance in ancestors %} | ||
|
||
{# To support structured data, item* attributes are used #} | ||
{# SEE: https://confluence.tacc.utexas.edu/x/5yMFDg #} | ||
<li itemscope itemprop="itemListElement" | ||
itemtype="https://schema.org/ListItem"> | ||
|
||
{% if not forloop.last %} | ||
|
||
<a href="{{ ance.get_absolute_url }}" itemprop="item"> | ||
<span itemprop="name">{{ ance.get_menu_title }}</span> | ||
</a> | ||
|
||
{% else %} | ||
|
||
<span itemprop="name">{{ ance.get_menu_title }}</span> | ||
|
||
{% endif %} | ||
|
||
<meta itemprop="position" content="{{ forloop.counter }}" /> | ||
</li> | ||
|
||
{% endfor %} |
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,16 @@ | ||
{# @var className #} | ||
{% load menu_tags %} | ||
|
||
<nav class="s-breadcrumbs {{className}}"> | ||
|
||
{# To support structured data, item* attributes are used #} | ||
{# SEE: https://confluence.tacc.utexas.edu/x/5yMFDg #} | ||
<ol itemscope itemtype="https://schema.org/BreadcrumbList"> | ||
|
||
{# To include pages marked to not show in menu, attributes are added #} | ||
{# SEE: https://docs.django-cms.org/en/release-3.6.x/reference/navigation.html#show-breadcrumb #} | ||
{% show_breadcrumb 0 "menu/breadcrumb.html" 0 %} | ||
|
||
</ol> | ||
|
||
</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
Submodule taccsite_custom
updated
25 files