diff --git a/src/javascript/site-preferences.js b/src/javascript/site-preferences.js index c4f41af..ca0a472 100644 --- a/src/javascript/site-preferences.js +++ b/src/javascript/site-preferences.js @@ -16,13 +16,13 @@ class SitePreferencesDialog extends HTMLElement {
- +

Preferences

-
+

Your preferences will be saved locally. For more information, see the privacy policy.

-
+
Site theme ${ Object diff --git a/src/sass/app.scss b/src/sass/app.scss index 5793726..f2cb52f 100644 --- a/src/sass/app.scss +++ b/src/sass/app.scss @@ -4,3 +4,4 @@ @use "base"; @use "components"; +@use "utilities"; diff --git a/src/sass/components/index.scss b/src/sass/components/index.scss index 46d614d..157b019 100644 --- a/src/sass/components/index.scss +++ b/src/sass/components/index.scss @@ -2,9 +2,7 @@ // This file is distributed under the MIT licence. For more information, // please refer to the accompanying "LICENCE" file. -@use "anchor"; @use "button"; -@use "collapsible"; @use "content"; @use "cta-download"; @use "cta-sharing"; @@ -18,7 +16,5 @@ @use "site-footer"; @use "site-preferences-dialog"; @use "skip-links"; -@use "stack"; @use "social-share-list"; @use "tag-list"; -@use "visually-hidden"; diff --git a/src/sass/components/_anchor.scss b/src/sass/utilities/_anchor.scss similarity index 94% rename from src/sass/components/_anchor.scss rename to src/sass/utilities/_anchor.scss index 50315a9..f6717d7 100644 --- a/src/sass/components/_anchor.scss +++ b/src/sass/utilities/_anchor.scss @@ -2,7 +2,7 @@ // This file is distributed under the MIT licence. For more information, // please refer to the accompanying "LICENCE" file. -.anchor { +.u-anchor { position: absolute; visibility: hidden; } diff --git a/src/sass/components/_collapsible.scss b/src/sass/utilities/_collapsible.scss similarity index 96% rename from src/sass/components/_collapsible.scss rename to src/sass/utilities/_collapsible.scss index f7232b3..2ac813c 100644 --- a/src/sass/components/_collapsible.scss +++ b/src/sass/utilities/_collapsible.scss @@ -4,7 +4,7 @@ @use "../mixins"; -.collapsible { +.u-collapsible { &--x-small-down { @include mixins.breakpoint-down(x-small) { display: none; diff --git a/src/sass/components/_stack.scss b/src/sass/utilities/_stack.scss similarity index 88% rename from src/sass/components/_stack.scss rename to src/sass/utilities/_stack.scss index f421649..0413d58 100644 --- a/src/sass/components/_stack.scss +++ b/src/sass/utilities/_stack.scss @@ -6,7 +6,9 @@ @use "../mixins"; @use "../variables"; -.stack { +.u-stack { + $s: &; + & > * + * { margin-top: math.div(variables.$base-line-height, 2); } @@ -19,8 +21,8 @@ & > h1 + *, & > h1 + h2, - & > * + .stack__widest, - & > .stack__widest + * { + & > * + #{$s}__widest, + & > #{$s}__widest + * { margin-top: variables.$base-line-height * 2; } @@ -38,7 +40,7 @@ margin-top: 0; } - & > * + .stack__hug { + & > * + #{$s}__hug { margin-top: 0; } } diff --git a/src/sass/components/_visually-hidden.scss b/src/sass/utilities/_visually-hidden.scss similarity index 87% rename from src/sass/components/_visually-hidden.scss rename to src/sass/utilities/_visually-hidden.scss index 8b63816..6bb2333 100644 --- a/src/sass/components/_visually-hidden.scss +++ b/src/sass/utilities/_visually-hidden.scss @@ -2,7 +2,7 @@ // This file is distributed under the MIT licence. For more information, // please refer to the accompanying "LICENCE" file. -.visually-hidden:not(:focus):not(:active) { +.u-visually-hidden:not(:focus):not(:active) { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; diff --git a/src/sass/utilities/index.scss b/src/sass/utilities/index.scss new file mode 100644 index 0000000..115ee1c --- /dev/null +++ b/src/sass/utilities/index.scss @@ -0,0 +1,4 @@ +@use "anchor"; +@use "collapsible"; +@use "stack"; +@use "visually-hidden"; diff --git a/src/yassg/.templates/base.html.twig b/src/yassg/.templates/base.html.twig index a3b1b19..c49b134 100644 --- a/src/yassg/.templates/base.html.twig +++ b/src/yassg/.templates/base.html.twig @@ -71,7 +71,7 @@
-
+
{% block heading %}

{{ title | smartypants | widont }}

{% endblock %} @@ -82,7 +82,7 @@ -
+
-
+
{{ renderedMarkdown | raw }}
diff --git a/src/yassg/.templates/partials/sharing-links.html.twig b/src/yassg/.templates/partials/sharing-links.html.twig index 658e734..7b955a9 100644 --- a/src/yassg/.templates/partials/sharing-links.html.twig +++ b/src/yassg/.templates/partials/sharing-links.html.twig @@ -1,5 +1,5 @@ -
+

Share this page:

diff --git a/src/yassg/git/index.html.twig b/src/yassg/git/index.html.twig index fe17506..77e690a 100644 --- a/src/yassg/git/index.html.twig +++ b/src/yassg/git/index.html.twig @@ -18,18 +18,18 @@

For more information on these repositories, see the projects page.

- - - - - - - - - - - - + + + + + + + + + + + +

Active repositories

https://www.robotinaponcho.net/git/adventofcode.git
 https://www.robotinaponcho.net/git/brainfuck.git
@@ -45,13 +45,13 @@ https://www.robotinaponcho.net/git/toolbox.git
 https://www.robotinaponcho.net/git/toolbox-sass.git
 https://www.robotinaponcho.net/git/yassg.git
- - - - - - - + + + + + + +

Archived repositories

https://www.robotinaponcho.net/git/bastardsnake.git
 https://www.robotinaponcho.net/git/knr-solutions.git
diff --git a/src/yassg/notes/index.html.twig b/src/yassg/notes/index.html.twig
index 104590f..2ff61d9 100644
--- a/src/yassg/notes/index.html.twig
+++ b/src/yassg/notes/index.html.twig
@@ -41,13 +41,13 @@
     {% for category, notes in collections | filter((v, k) => k != 'notes') %}
         

{{ categoryNames[category] ?? category | smartypants }}

-
    +
      {% for note in notes | sort((a, b) => a.metadata.title <=> b.metadata.title) %} {% set verb = note.metadata.git.createdAt == note.metadata.git.updatedAt ? 'Created' : 'Updated' %}
    • {{ note.metadata.title | smartypants }} - ({{ verb }} {{ note.metadata.git.updatedAt | date('d M, Y') }}) + ({{ verb }} {{ note.metadata.git.updatedAt | date('d M, Y') }})
    • {% endfor %}
    diff --git a/src/yassg/projects/flippywindow/index.html.twig b/src/yassg/projects/flippywindow/index.html.twig index 522df66..6c7039e 100644 --- a/src/yassg/projects/flippywindow/index.html.twig +++ b/src/yassg/projects/flippywindow/index.html.twig @@ -31,18 +31,18 @@ spotting visual issues.

    -
    +

    - Download - FlippyWindow from - itch.io + Download + FlippyWindow from + itch.io

    • It's free! Requires Windows 8 or later.
    • Nothing to - install: just unzip and run + install: just unzip and run the executable.
    • FlippyWindow is open-source.