Format codebase with prettier

This commit is contained in:
Tristan Daniël Maat 2022-08-01 21:43:50 +01:00
parent af062715d9
commit 75c4ff6a80
Signed by: tlater
GPG key ID: 49670FD774E43268
12 changed files with 88 additions and 59 deletions

View file

@ -1,32 +1,29 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="description" content="tlater.net web server" />
<meta name="author" contnet="Tristan Daniël Maat" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" href="./icon.svg" type="image/x-icon" />
<link rel="stylesheet" href="~/src/lib/scss/main.scss" />
<head>
<meta charset="utf-8" />
<meta name="description" content="tlater.net web server" />
<meta name="author" contnet="Tristan Daniël Maat" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" href="./icon.svg" type="image/x-icon" />
<link rel="stylesheet" href="~/src/lib/scss/main.scss" />
<block name="stylesheets"></block>
<block name="stylesheets"></block>
<title>tlater.net</title>
</head>
<title>tlater.net</title>
</head>
<body>
<block name="navigation">
<include src="lib/html/navigation.html"></include>
</block>
<body>
<block name="navigation">
<include src="lib/html/navigation.html"></include>
</block>
<include src="lib/html/message-flash.html"></include>
<include src="lib/html/message-flash.html"></include>
<block name="content"></block>
<block name="footer">
<script type="module" src="lib/js/index.ts"></script>
</block>
</body>
<block name="content"></block>
<block name="footer">
<script type="module" src="lib/js/index.ts"></script>
</block>
</body>
</html>

View file

@ -1,7 +1,13 @@
<nav class="navbar is-dark" role="navigation" aria-label="main navigation">
<div class="navbar-brand">
<a class="navbar-item has-text-primary is-uppercase" href="/">tlater</a>
<a class="navbar-burger" role="button" aria-label="menu" aria-expanded="false" data-target="main-navigation">
<a
class="navbar-burger"
role="button"
aria-label="menu"
aria-expanded="false"
data-target="main-navigation"
>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
@ -9,15 +15,9 @@
</div>
<div id="main-navigation" class="navbar-menu">
<div class="navbar-start">
<a class="navbar-item" href="~/src/mail.html">
E-Mail
</a>
<a class="navbar-item" href="https://www.gitlab.com/tlater">
GitLab
</a>
<a class="navbar-item" href="https://www.github.com/TLATER">
GitHub
</a>
<a class="navbar-item" href="~/src/mail.html"> E-Mail </a>
<a class="navbar-item" href="https://www.gitlab.com/tlater"> GitLab </a>
<a class="navbar-item" href="https://www.github.com/TLATER"> GitHub </a>
</div>
</div>
</nav>

View file

@ -30,18 +30,16 @@ $weights: 300, 400, 500, 600, 700;
// a release since https://github.com/source-foundry/Hack/issues/467
// was resolved.
$variants:
regular 400 normal,
bold 700 normal,
italic 400 italic,
$variants: regular 400 normal, bold 700 normal, italic 400 italic,
bolditalic 700 italic;
@each $name, $weight, $style in $variants {
@font-face {
font-family: "Hack";
src:
url("npm:hack-font/build/web/fonts/hack-#{$name}-subset.woff2?sha=3114f1256") format("woff2"),
url("npm:hack-font/build/web/fonts/hack-#{$name}-subset.woff?sha=3114f1256") format("woff");
src: url("npm:hack-font/build/web/fonts/hack-#{$name}-subset.woff2?sha=3114f1256")
format("woff2"),
url("npm:hack-font/build/web/fonts/hack-#{$name}-subset.woff?sha=3114f1256")
format("woff");
font-weight: $weight;
font-style: $style;
}

View file

@ -11,7 +11,7 @@
}
& .navbar-start > .navbar-item {
color: rgba($white, .75);
color: rgba($white, 0.75);
&:hover {
background-color: $dark !important;

View file

@ -119,11 +119,15 @@
$delays: 69ms, 83ms, 49ms, 48ms, 52ms, 59ms, 40ms, 71ms, 80ms, 67ms;
@for $animation from 0 through $number {
$out: list.append($out, (
type-#{$id}-#{$animation},
$animation,
_sum(_round_robin($delays, $animation))
), $sep);
$out: list.append(
$out,
(
type-#{$id}-#{$animation},
$animation,
_sum(_round_robin($delays, $animation))
),
$sep
);
}
@return $out;