Skip to content

Commit

Permalink
update some formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
rmccar committed Feb 28, 2024
1 parent 3a7d08c commit 9164d64
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 59 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,3 +157,4 @@ yarn build
## Recommended Visual Studio Code settings for this project

- "render whitespace" set to "all"
- "insert spaces when pressing tab" checked
4 changes: 2 additions & 2 deletions src/components/download-resources/download-resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ Util.osHasReducedMotion = function () {
};

/*
Polyfills
Polyfills
*/

// Closest() method
Expand Down Expand Up @@ -226,7 +226,7 @@ if (typeof window.CustomEvent !== 'function') {
}

/*
Animation curves
Animation curves
*/

Math.easeInOutQuad = function (t, b, c, d) {
Expand Down
6 changes: 3 additions & 3 deletions src/components/icon/_macro.njk
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@
</svg>
{%- elif params.iconType == "twitter" -%}
<svg class="{% if params.iconSize %}ons-icon ons-icon--{{ params.iconSize }}{% else %}ons-icon{% endif %}{{ iconClasses }}" id="icon-twitter" viewBox="0 0 90.01 90.01" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true">
<polygon points="24.89,23.01 57.79,66.99 65.24,66.99 32.34,23.01"/>
<path d="M 45 0 L 45 0 C 20.147 0 0 20.147 0 45 v 0 c 0 24.853 20.147 45 45 45 h 0 c 24.853 0 45 -20.147 45 -45 v 0 C 90 20.147 69.853 0 45 0 z M 56.032 70.504 L 41.054 50.477 L 22.516 70.504 h -4.765 L 38.925 47.63 L 17.884 19.496 h 16.217 L 47.895 37.94 l 17.072 -18.444 h 4.765 L 50.024 40.788 l 22.225 29.716 H 56.032 z"/>
</svg>
<polygon points="24.89,23.01 57.79,66.99 65.24,66.99 32.34,23.01"/>
<path d="M 45 0 L 45 0 C 20.147 0 0 20.147 0 45 v 0 c 0 24.853 20.147 45 45 45 h 0 c 24.853 0 45 -20.147 45 -45 v 0 C 90 20.147 69.853 0 45 0 z M 56.032 70.504 L 41.054 50.477 L 22.516 70.504 h -4.765 L 38.925 47.63 L 17.884 19.496 h 16.217 L 47.895 37.94 l 17.072 -18.444 h 4.765 L 50.024 40.788 l 22.225 29.716 H 56.032 z"/>
</svg>
{%- elif params.iconType == "instagram" -%}
<svg class="{% if params.iconSize %}ons-icon ons-icon--{{ params.iconSize }}{% else %}ons-icon{% endif %}{{ iconClasses }}" id="icon-instagram" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true">
<path d="M21.34,9.46c0.66,0,1.2,0.54,1.2,1.2c0,0.66-0.54,1.2-1.2,1.2c-0.66,0-1.2-0.54-1.2-1.2C20.14,10,20.68,9.46,21.34,9.46z M16,12.67c-1.84,0-3.33,1.49-3.33,3.33c0,1.84,1.49,3.33,3.33,3.33c1.84,0,3.33-1.49,3.33-3.33C19.33,14.16,17.84,12.67,16,12.67z M16,10.86c2.84,0,5.14,2.3,5.14,5.14c0,2.84-2.3,5.14-5.14,5.14c-2.84,0-5.14-2.3-5.14-5.14C10.86,13.16,13.16,10.86,16,10.86z M16.56,7.8h-1.11c-2.17,0-2.51,0.01-3.49,0.06c-0.97,0.04-1.5,0.21-1.86,0.34C9.64,8.39,9.3,8.6,8.95,8.95C8.6,9.3,8.39,9.64,8.2,10.1c-0.14,0.35-0.3,0.88-0.34,1.86c-0.04,0.98-0.06,1.32-0.06,3.49v1.11c0,2.17,0.01,2.51,0.06,3.49c0.04,0.97,0.21,1.5,0.34,1.86c0.18,0.47,0.4,0.8,0.75,1.15c0.35,0.35,0.68,0.57,1.15,0.75c0.35,0.14,0.88,0.3,1.86,0.34c0.94,0.04,1.29,0.06,3.23,0.06h1.61c1.94,0,2.3-0.02,3.23-0.06c0.97-0.04,1.5-0.21,1.86-0.34c0.47-0.18,0.8-0.4,1.15-0.75c0.35-0.35,0.57-0.68,0.75-1.15c0.14-0.35,0.3-0.88,0.34-1.86c0.04-0.94,0.06-1.29,0.06-3.23v-1.61c0-1.94-0.02-2.3-0.06-3.23c-0.04-0.97-0.21-1.5-0.34-1.86c-0.18-0.47-0.4-0.8-0.75-1.15C22.7,8.6,22.36,8.39,21.9,8.2c-0.35-0.14-0.88-0.3-1.86-0.34C19.06,7.82,18.72,7.8,16.56,7.8z M17.03,6c1.8,0,2.18,0.02,3.1,0.06c1.06,0.05,1.79,0.22,2.43,0.46c0.66,0.26,1.22,0.6,1.77,1.15c0.56,0.56,0.9,1.11,1.15,1.77c0.25,0.64,0.42,1.36,0.46,2.43c0.05,0.99,0.06,1.35,0.06,3.58v1.09c0,2.22-0.01,2.59-0.06,3.58c-0.05,1.06-0.22,1.79-0.46,2.43c-0.26,0.66-0.6,1.22-1.15,1.77c-0.56,0.56-1.11,0.9-1.77,1.15c-0.64,0.25-1.36,0.42-2.43,0.46C19.13,25.99,18.77,26,16.55,26h-1.09c-2.22,0-2.59-0.01-3.58-0.06c-1.06-0.05-1.79-0.22-2.43-0.46c-0.66-0.26-1.22-0.6-1.77-1.15c-0.56-0.56-0.9-1.11-1.15-1.77c-0.25-0.64-0.42-1.36-0.46-2.43C6.02,19.21,6,18.83,6,17.03v-2.06c0-1.8,0.02-2.18,0.06-3.1c0.05-1.06,0.22-1.79,0.46-2.43c0.26-0.66,0.6-1.22,1.15-1.77c0.56-0.56,1.11-0.9,1.77-1.15c0.64-0.25,1.36-0.42,2.43-0.46C12.79,6.02,13.17,6,14.97,6H17.03z M16,0C7.16,0,0,7.16,0,16s7.16,16,16,16s16-7.16,16-16c0-4.24-1.69-8.31-4.69-11.31S20.24,0,16,0z"/>
Expand Down
62 changes: 31 additions & 31 deletions src/components/table-of-contents/_macro.njk
Original file line number Diff line number Diff line change
Expand Up @@ -4,40 +4,40 @@

<aside class="ons-toc-container" role="complementary">
{% if params.skipLink %}
{{
onsSkipToContent({
"url": params.skipLink.url,
"text": params.skipLink.text
})
}}
{{
onsSkipToContent({
"url": params.skipLink.url,
"text": params.skipLink.text
})
}}
{% endif %}

<nav class="ons-toc" aria-label="{{ params.ariaLabel | default('Table of contents') }}">
<h2 class="ons-toc__title ons-u-fs-r--b ons-u-mb-s">{{ params.title }}</h2>
{% if params.lists %}
{% for list in params.lists %}
{% if list.listHeading %}
<h3 class="ons-u-fs-r ons-u-mb-xs">{{ list.listHeading }}<span class="ons-u-vh"> {{ list.listHeadingHidden }}</span>:</h3>
{% endif %}
{{
onsList({
"element": 'ol',
"classes": 'ons-u-mb-m',
"variants": 'dashed',
"itemsList": list.itemsList
})
}}
{% endfor %}
{% elif params.itemsList %}
{{
onsList({
"element": 'ol',
"classes": 'ons-u-mb-m',
"variants": 'dashed',
"itemsList": params.itemsList
})
}}
{% endif %}
<h2 class="ons-toc__title ons-u-fs-r--b ons-u-mb-s">{{ params.title }}</h2>
{% if params.lists %}
{% for list in params.lists %}
{% if list.listHeading %}
<h3 class="ons-u-fs-r ons-u-mb-xs">{{ list.listHeading }}<span class="ons-u-vh"> {{ list.listHeadingHidden }}</span>:</h3>
{% endif %}
{{
onsList({
"element": 'ol',
"classes": 'ons-u-mb-m',
"variants": 'dashed',
"itemsList": list.itemsList
})
}}
{% endfor %}
{% elif params.itemsList %}
{{
onsList({
"element": 'ol',
"classes": 'ons-u-mb-m',
"variants": 'dashed',
"itemsList": params.itemsList
})
}}
{% endif %}
</nav>
</aside>
{% endmacro %}
46 changes: 23 additions & 23 deletions src/static/favicons/safari-pinned-tab.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9164d64

Please sign in to comment.