mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-04-24 18:19:15 +00:00
Reformat codebase
This commit is contained in:
parent
89c9114a27
commit
067767e333
@ -11,7 +11,7 @@
|
||||
}
|
||||
|
||||
.hll {
|
||||
background-color: var(--base02);
|
||||
background: var(--base02);
|
||||
}
|
||||
|
||||
// Comment
|
||||
|
@ -3,7 +3,7 @@ $tooltip-size: 5em;
|
||||
$line-height: 1.45;
|
||||
|
||||
:root {
|
||||
--accented-border-style: var(--foreground) solid .1vw;
|
||||
--accented-border-style: var(--foreground) solid 0.1vw;
|
||||
|
||||
--body-family: "Source Serif Pro", "IBM Plex Serif", "Noto Serif", serif;
|
||||
--header-family: "Source Sans Pro", "IBM Plex Sans", "Noto Sans", sans-serif;
|
||||
@ -11,7 +11,9 @@ $line-height: 1.45;
|
||||
}
|
||||
|
||||
// Base styles.
|
||||
a:hover { color: var(--base0B); }
|
||||
a:hover {
|
||||
color: var(--base0B);
|
||||
}
|
||||
|
||||
hr {
|
||||
border-color: var(--foreground);
|
||||
@ -57,7 +59,8 @@ article.post {
|
||||
width: var(--size);
|
||||
fill: var(--base0C);
|
||||
position: relative;
|
||||
animation: rainbow 3s infinite, pulse 2s alternate infinite, bounce 0.6s ease-in-out alternate infinite;
|
||||
animation: rainbow 3s infinite, pulse 2s alternate infinite,
|
||||
bounce 0.6s ease-in-out alternate infinite;
|
||||
}
|
||||
}
|
||||
|
||||
@ -65,16 +68,22 @@ article.post {
|
||||
$baseSize: 3em;
|
||||
$baseRotation: 20deg;
|
||||
from {
|
||||
transform: rotate($baseRotation) translateX($baseSize) translateY(-#{$baseSize / 5});
|
||||
transform: rotate($baseRotation) translateX($baseSize)
|
||||
translateY(-#{$baseSize / 5});
|
||||
}
|
||||
to {
|
||||
transform: rotate(-$baseRotation) translateX(-$baseSize) translateY(-#{$baseSize / 5});
|
||||
transform: rotate(-$baseRotation) translateX(-$baseSize)
|
||||
translateY(-#{$baseSize / 5});
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes pulse {
|
||||
from { width: #{$tooltip-size / 2}; }
|
||||
to { width: #{$tooltip-size}; }
|
||||
from {
|
||||
width: #{$tooltip-size / 2};
|
||||
}
|
||||
to {
|
||||
width: #{$tooltip-size};
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes rainbow {
|
||||
@ -96,7 +105,8 @@ article.post {
|
||||
font-size: 0.8em;
|
||||
padding: 0.5em;
|
||||
position: absolute;
|
||||
transform: translateY(var(--translate-y, -#{round($tooltip-size / 2)})) scale(var(--scale));
|
||||
transform: translateY(var(--translate-y, -#{round($tooltip-size / 2)}))
|
||||
scale(var(--scale));
|
||||
transform-origin: bottom center;
|
||||
width: max-content;
|
||||
max-width: 100%;
|
||||
@ -157,7 +167,8 @@ sup.footnote {
|
||||
margin: 1rem;
|
||||
}
|
||||
|
||||
[class$="block"], :is(.admonitionblock) {
|
||||
[class$="block"],
|
||||
:is(.admonitionblock) {
|
||||
margin: 1rem 0;
|
||||
|
||||
.title > code {
|
||||
@ -193,7 +204,9 @@ p.tableblock {
|
||||
font-size: 0.9em;
|
||||
padding: 0.5em;
|
||||
|
||||
code { background: unset; }
|
||||
code {
|
||||
background: unset;
|
||||
}
|
||||
}
|
||||
|
||||
> .content pre {
|
||||
@ -234,6 +247,11 @@ p.tableblock {
|
||||
|
||||
.content > pre {
|
||||
max-height: 100vh;
|
||||
border: unset;
|
||||
}
|
||||
|
||||
.title {
|
||||
display: none;
|
||||
}
|
||||
|
||||
> .listingblock__btn-row {
|
||||
@ -241,8 +259,8 @@ p.tableblock {
|
||||
}
|
||||
|
||||
&::backdrop {
|
||||
--color1: var(--base09);
|
||||
--color2: var(--base08);
|
||||
--color1: var(--base08);
|
||||
--color2: var(--base0C);
|
||||
--threshold1: 9px;
|
||||
--threshold2: 24px;
|
||||
background: repeating-linear-gradient(
|
||||
@ -250,7 +268,7 @@ p.tableblock {
|
||||
var(--color1) 0px,
|
||||
var(--color1) var(--threshold1),
|
||||
var(--color2) var(--threshold1),
|
||||
var(--color2) var(--threshold2),
|
||||
var(--color2) var(--threshold2)
|
||||
);
|
||||
}
|
||||
}
|
||||
@ -262,7 +280,10 @@ p.tableblock {
|
||||
margin: unset;
|
||||
|
||||
tbody {
|
||||
tr + tr, tr:first-child { border-top: unset; }
|
||||
tr + tr,
|
||||
tr:first-child {
|
||||
border-top: unset;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -320,8 +341,10 @@ p {
|
||||
}
|
||||
|
||||
// This setup will use asciidoctor-rouge.
|
||||
.rouge.highlight, code[data-lang] {
|
||||
&::selection, ::selection {
|
||||
.rouge.highlight,
|
||||
code[data-lang] {
|
||||
&::selection,
|
||||
::selection {
|
||||
background: var(--selection-color);
|
||||
color: unset;
|
||||
}
|
||||
|
@ -34,7 +34,8 @@ in
|
||||
${replaceSecretBin} '#mailboxSecurityKey#' '${secretsPath "dns/${domain}/mailbox-security-key"}' '${domainZoneFile'}'
|
||||
${replaceSecretBin} '#mailboxSecurityKeyRecord#' '${secretsPath "dns/${domain}/mailbox-security-key-record"}' '${domainZoneFile'}'
|
||||
'';
|
||||
serviceConfig.LoadCredential = let
|
||||
serviceConfig.LoadCredential =
|
||||
let
|
||||
certDirectory = config.security.acme.certs."${dnsDomainName}".directory;
|
||||
in
|
||||
[
|
||||
|
@ -7,7 +7,8 @@ in
|
||||
systemd.services.gitea = {
|
||||
# Gitea service module will have to set up certain things first which is
|
||||
# why we have to go first.
|
||||
preStart = let
|
||||
preStart =
|
||||
let
|
||||
psqlBin = "${lib.getBin config.services.postgresql.package}/bin/psql";
|
||||
giteaBin = "${lib.getBin config.services.gitea.package}/bin/gitea";
|
||||
giteaAdminUsername = lib.escapeShellArg "foodogsquared";
|
||||
|
@ -11,7 +11,8 @@
|
||||
let
|
||||
systems = inputs.flake-utils.lib.defaultSystems;
|
||||
overlays = [ inputs.ruby-nix.overlays.ruby ];
|
||||
in inputs.flake-utils.lib.eachSystem systems (system:
|
||||
in
|
||||
inputs.flake-utils.lib.eachSystem systems (system:
|
||||
let
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
@ -21,7 +22,8 @@
|
||||
})
|
||||
];
|
||||
};
|
||||
in {
|
||||
in
|
||||
{
|
||||
devShells.default = import ./shell.nix { inherit pkgs; };
|
||||
|
||||
formatter = pkgs.treefmt;
|
||||
|
@ -1,2 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require 'asciidoctor/foodogsquared-extensions'
|
||||
|
Loading…
Reference in New Issue
Block a user