-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor: Rhombus CSS classes (#376)
- Loading branch information
Showing
7 changed files
with
64 additions
and
71 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<svg class="position-absolute"> | ||
<clipPath id="path-header" clipPathUnits="objectBoundingBox"> | ||
<path | ||
d="M0,0.081 C-0.001,0.051,0.007,0.026,0.018,0.026 L0.981,0 C0.992,0,1,0.025,1,0.055 L0.981,0.902 C0.981,0.928,0.973,0.949,0.963,0.95 L0.042,1 C0.033,1,0.025,0.98,0.024,0.953 L0,0.081" | ||
></path> | ||
</clipPath> | ||
</svg> |
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
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 |
---|---|---|
|
@@ -4,18 +4,17 @@ | |
title: Resources | ||
--- | ||
|
||
{% include clipped.html %} | ||
{% include clipped-header.html %} | ||
|
||
<div class="row justify-content-center"> | ||
<div class="clipped background-purple-4 rhombus-1 col-11 col-md-10 mt-4 mt-md-5 mb-4 py-4 py-md-5 px-4 px-md-0"> | ||
<div class="clipped-header background-purple-4 col-11 col-md-10 mt-4 mt-md-5 mb-4 py-4 py-md-5 px-4 px-md-0"> | ||
<div class="offset-md-2 col-md-8 py-3 py-md-5 px-2 px-md-2"> | ||
<h1 class="text-white mb-2">Resources</h1> | ||
<p class="text-white mb-3 pb-3">Below you’ll find information about Cal-ITP and our initiatives, including fact sheets, case studies, and more. Don’t see what you’re looking for? Reach out to us at | ||
<a | ||
rel="noreferrer" | ||
target="_blank" | ||
class="fw-bolder text-white" | ||
href="mailto:[email protected]">[email protected]</a>.</p> | ||
<p class="text-white mb-3 pb-3"> | ||
Below you’ll find information about Cal-ITP and our initiatives, including fact sheets, case studies, and more. Don’t see | ||
what you’re looking for? Reach out to us at | ||
<a rel="noreferrer" target="_blank" class="fw-bolder text-white" href="mailto:[email protected]">[email protected]</a>. | ||
</p> | ||
{% include pills.html tags=site.data.resource_tags %} | ||
</div> | ||
</div> | ||
|
@@ -24,44 +23,27 @@ <h1 class="text-white mb-2">Resources</h1> | |
<section class="row justify-content-center" id="resources"> | ||
<div class="col-10"> | ||
<div class="offset-md-2 col-md-8 mb-5 pb-5"> | ||
{% comment %} Jekyll sorts by the date field in ascending order by default {% endcomment %} | ||
{% assign all_resources = site.resources | reverse %} | ||
{% comment %} one more reverse when creating the groups to order ascending by name {% endcomment %} | ||
{% assign groups = all_resources | group_by: "category" | reverse %} | ||
{% comment %} Jekyll sorts by the date field in ascending order by default {% endcomment %} {% assign all_resources = | ||
site.resources | reverse %} {% comment %} one more reverse when creating the groups to order ascending by name {% endcomment | ||
%} {% assign groups = all_resources | group_by: "category" | reverse %} | ||
|
||
<div class="tab-content" id="pills-tabContent"> | ||
<div | ||
class="tab-pane fade active show" | ||
id="pills-all" | ||
role="tabpanel" | ||
tabindex="0"> | ||
<div class="tab-pane fade active show" id="pills-all" role="tabpanel" tabindex="0"> | ||
{% for group in groups %} | ||
<h2 class="mb-4 mt-5">{{ group.name }}</h2> | ||
{% assign items = group.items %} | ||
{% include articles.html items=items %} | ||
{% unless forloop.last %} | ||
<hr/> | ||
{% endunless %} | ||
{% endfor %} | ||
<h2 class="mb-4 mt-5">{{ group.name }}</h2> | ||
{% assign items = group.items %} {% include articles.html items=items %} {% unless forloop.last %} | ||
<hr /> | ||
{% endunless %} {% endfor %} | ||
</div> | ||
{% for tag in site.data.resource_tags %} | ||
<div | ||
class="tab-pane fade" | ||
id="pills-{{ tag.id }}" | ||
role="tabpanel" | ||
aria-labelledby="pills-{{ tag.id }}-tab" | ||
tabindex="0"> | ||
{% for group in groups %} | ||
{% assign items = group.items | where_exp: "item", "item.tags contains tag.name" %} | ||
{% unless items.size == 0 %} | ||
<h2 class="mb-4 mt-5">{{ group.name }}</h2> | ||
{% include articles.html items=items %} | ||
{% unless forloop.last %} | ||
<hr/> | ||
{% endunless %} | ||
{% endunless %} | ||
{% endfor %} | ||
</div> | ||
<div class="tab-pane fade" id="pills-{{ tag.id }}" role="tabpanel" aria-labelledby="pills-{{ tag.id }}-tab" tabindex="0"> | ||
{% for group in groups %} {% assign items = group.items | where_exp: "item", "item.tags contains tag.name" %} {% unless | ||
items.size == 0 %} | ||
<h2 class="mb-4 mt-5">{{ group.name }}</h2> | ||
{% include articles.html items=items %} {% unless forloop.last %} | ||
<hr /> | ||
{% endunless %} {% endunless %} {% endfor %} | ||
</div> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
|
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