-
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
…design--mobile-nav-layout-2
- Loading branch information
Showing
8 changed files
with
135 additions
and
6 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
69 changes: 69 additions & 0 deletions
69
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,69 @@ | ||
/* | ||
Breadcrumbs | ||
A list of links to ancestor navigation (pages or sections that are a parent, grandparent, et cetera of the current page or section) and the current page or section itself. | ||
Notice: A scope class is used to enforce appropriate semantic HTML. | ||
Markup: | ||
<!-- Major Navigation --> | ||
<!-- FAQ: Use this major navigation markup for global breadcrumbs --> | ||
<!-- SEE: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/nav#usage_notes --> | ||
<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 */ | ||
|
||
/* To undo default list styles ONLY for major breadcrumbs */ | ||
/* FAQ: Minor breadcrumbs have not been designed, so we should not unstyle it */ | ||
nav.s-breadcrumbs ol { | ||
list-style: none; /* overwrite browser styles */ | ||
padding-left: 0; /* overwrite html-elements.css */ | ||
|
||
font-weight: var(--global-font-weight--medium); | ||
} | ||
|
||
ol.s-breadcrumbs li, | ||
nav.s-breadcrumbs ol li { | ||
display: inline-block; | ||
} | ||
|
||
ol.s-breadcrumbs li + li::before, | ||
nav.s-breadcrumbs ol li + li::before { | ||
content: ' > '; | ||
} | ||
|
||
nav.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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{% extends "base.html" %} | ||
{% load cms_tags %} | ||
|
||
{% block title %}{% page_attribute "page_title" %}{% endblock title %} |