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