From a9a679dc736c9df2657a8e92f651f66cb4032aae Mon Sep 17 00:00:00 2001 From: Volpeon <git@volpeon.ink> Date: Sun, 18 Apr 2021 16:03:51 +0200 Subject: Update --- assets/css/_utils.scss | 12 +++++++----- templates/base.html | 4 +++- templates/symbols.svg | 3 +-- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/assets/css/_utils.scss b/assets/css/_utils.scss index e8e98d2..2284cf5 100644 --- a/assets/css/_utils.scss +++ b/assets/css/_utils.scss @@ -52,15 +52,17 @@ } } -@include utility('my-auto') { - margin-top: auto; - margin-bottom: auto; -} - @include utility('db') { display: block; } +@include utility('vh') { + position: absolute; + width: 0; + height: 0; + overflow: hidden; +} + @include utility('ar') { text-align: right; } diff --git a/templates/base.html b/templates/base.html index 625b025..794f83f 100644 --- a/templates/base.html +++ b/templates/base.html @@ -78,7 +78,9 @@ ${layouts/page()} </footer> </main> - ${symbols.svg()} + <div class="u-vh" aria-hidden="true"> + ${symbols.svg()} + </div> </body> </html> diff --git a/templates/symbols.svg b/templates/symbols.svg index 958e271..e96fd50 100644 --- a/templates/symbols.svg +++ b/templates/symbols.svg @@ -1,5 +1,4 @@ -<svg style="position: absolute; width: 0; height: 0; overflow: hidden;" aria-hidden="true" version="1.1" - xmlns="http://www.w3.org/2000/svg"> +<svg version="1.1" xmlns="http://www.w3.org/2000/svg"> <defs> <symbol id="logo" viewBox="0 0 16 16" preserveAspectRatio="xMinYMid"> <path fill="currentColor" stroke="none" d="M 3.879982,13 H 6.0160181 L 2.6160361,3 H 0.48 Z" /> -- cgit v1.2.3-70-g09d2