mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-01-22 09:20:00 +00:00
⚒️ Resolves lighthouse issue (#398)
* Updates dependencies * Fixes tap target to resolve lighthouse * Merge conflicts
This commit is contained in:
parent
9e7aa0346b
commit
cfa36a5a52
@ -1,10 +1,7 @@
|
|||||||
{% macro renderAltWords(words, labels) %}
|
{% macro renderAltWords(words, labels) %}
|
||||||
{%- if words | isArray -%}
|
{%- if words | isArray -%}
|
||||||
{# Array #}
|
{# Array #}
|
||||||
<ul
|
<ul class="list-semicolon" {% if labels %} aria-labelledby="{{ labels | join(' ') }}" {% endif %}>
|
||||||
class="list-semicolon"
|
|
||||||
{% if labels %}aria-labelledby="{{ labels | join(' ') }}"{% endif %}
|
|
||||||
>
|
|
||||||
{%- for word in words -%}
|
{%- for word in words -%}
|
||||||
<li>
|
<li>
|
||||||
{{ word | linkIfExistsInCollection(collections.definedWords) | safe }}
|
{{ word | linkIfExistsInCollection(collections.definedWords) | safe }}
|
||||||
@ -15,8 +12,7 @@
|
|||||||
{# Object #}
|
{# Object #}
|
||||||
{# With class="", the list loses padding via the CSS reset style. #}
|
{# With class="", the list loses padding via the CSS reset style. #}
|
||||||
{# For multi-level category support, we may want an actual class. #}
|
{# For multi-level category support, we may want an actual class. #}
|
||||||
<ul class="">
|
<ul class=""> {%- for category, list in words -%}
|
||||||
{%- for category, list in words -%}
|
|
||||||
<li>
|
<li>
|
||||||
{% set categoryId = ("alt-words-" + category) | replace(' ', '-') %}
|
{% set categoryId = ("alt-words-" + category) | replace(' ', '-') %}
|
||||||
<strong id="{{ categoryId }}">{{ category }}</strong>
|
<strong id="{{ categoryId }}">{{ category }}</strong>
|
||||||
@ -26,7 +22,6 @@
|
|||||||
</ul>
|
</ul>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
<section class="definition-content">
|
<section class="definition-content">
|
||||||
<section class="definition-content__content">
|
<section class="definition-content__content">
|
||||||
{{ content | safe }}
|
{{ content | safe }}
|
||||||
@ -40,13 +35,13 @@
|
|||||||
{%- if reading -%}
|
{%- if reading -%}
|
||||||
<section class="definition-content__content">
|
<section class="definition-content__content">
|
||||||
<h2 id="further-reading">Further Reading</h2>
|
<h2 id="further-reading">Further Reading</h2>
|
||||||
<ul class="list-semicolon" aria-labelledby="further-reading">
|
<ul class="list-no-bullets" aria-labelledby="further-reading">
|
||||||
{% for link in reading %}
|
{% for link in reading %}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{link.href}}">{{ link.text }}</a>
|
<a href="{{ link.href }}">{{ link.text }}</a>
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</section>
|
</section>
|
@ -1,4 +1,5 @@
|
|||||||
ol, dl {
|
ol,
|
||||||
|
dl {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0 0 0 1em;
|
padding: 0 0 0 1em;
|
||||||
}
|
}
|
||||||
@ -25,18 +26,10 @@ dt {
|
|||||||
font-weight: $bold;
|
font-weight: $bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.list-semicolon {
|
.list-no-bullets {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
|
||||||
& > li {
|
|
||||||
display: inline;
|
|
||||||
|
|
||||||
&:not(:last-child)::after {
|
|
||||||
content: '; ';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.list-default {
|
.list-default {
|
||||||
|
@ -1,16 +1,16 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
ci: {
|
ci: {
|
||||||
upload: {
|
upload: {
|
||||||
target: 'temporary-public-storage',
|
target: 'temporary-public-storage'
|
||||||
},
|
},
|
||||||
assert: {
|
assert: {
|
||||||
preset: "lighthouse:no-pwa",
|
preset: 'lighthouse:no-pwa',
|
||||||
assertions: {
|
assertions: {
|
||||||
"font-display": "off",
|
'font-display': 'off',
|
||||||
"uses-rel-preconnect": "off",
|
'uses-rel-preconnect': 'off',
|
||||||
"render-blocking-resources": "off",
|
'render-blocking-resources': 'off',
|
||||||
"uses-long-cache-ttl": "off"
|
'uses-long-cache-ttl': 'off'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
};
|
};
|
||||||
|
11897
package-lock.json
generated
11897
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user