combine css into one file

This commit is contained in:
Ben Harris 2022-08-11 14:16:37 -04:00
parent f2ea2cc87a
commit ad23f12260
5 changed files with 43 additions and 44 deletions

View File

@ -1,13 +0,0 @@
:root {
--pagefind-ui-scale: 1;
--pagefind-ui-primary: #034ad8;
--pagefind-ui-text: #ebdbb2;
--pagefind-ui-background: #3c3836;
--pagefind-ui-border: #eeeeee;
--pagefind-ui-tag: #eeeeee;
--pagefind-ui-border-width: 2px;
--pagefind-ui-border-radius: 8px;
----pagefind-ui-image-border-radius: 8px;
--pagefind-ui-image-box-ratio: 3 / 2;
--pagefind-ui-font: inherit;
}

View File

@ -1,55 +1,69 @@
:root {
--pagefind-ui-scale: 1;
--pagefind-ui-primary: #034ad8;
--pagefind-ui-text: #ebdbb2;
--pagefind-ui-background: #3c3836;
--pagefind-ui-border: #eeeeee;
--pagefind-ui-tag: #034ad8;
--pagefind-ui-border-width: 2px;
--pagefind-ui-border-radius: 8px;
----pagefind-ui-image-border-radius: 8px;
--pagefind-ui-image-box-ratio: 3 / 2;
--pagefind-ui-font: inherit;
}
main {
-webkit-font-feature-settings: "liga" on, "calt" on;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
font-family: 'JetBrains Mono', 'Input Mono', monospace;
max-width: 38rem;
padding: 2rem;
margin: auto;
-webkit-font-feature-settings: "liga" on, "calt" on;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
font-family: 'JetBrains Mono', 'Input Mono', monospace;
max-width: 38rem;
padding: 2rem;
margin: auto;
}
@media only screen and (max-device-width: 736px) {
main {
padding: 0.2rem;
}
main {
padding: 0.2rem;
}
}
::selection {
background: #9c0018;
background: #9c0018;
}
body {
background: #282828;
color: #ebdbb2;
background: #282828;
color: #ebdbb2;
}
pre {
background-color: #3c3836;
padding: 1em;
border: 0;
overflow: auto;
white-space: pre-wrap;
background-color: #3c3836;
padding: 1em;
border: 0;
overflow: auto;
white-space: pre-wrap;
}
a, a:active, a:visited {
color: #e491b6;
background-color: #1d2021;
color: #e491b6;
background-color: #1d2021;
}
h1, h2, h3, h4, h5 {
margin-bottom: .1rem;
margin-bottom: .1rem;
}
blockquote {
border-left: 1px solid #bdae93;
margin: 0.5em 10px;
padding: 0.5em 10px;
border-left: 1px solid #bdae93;
margin: 0.5em 10px;
padding: 0.5em 10px;
}
footer {
align: center;
align: center;
}
img {
max-width: 100%;
max-width: 100%;
}

View File

@ -1,14 +1,12 @@
{{- $gruvbox := resources.Get "gruvbox.css" | resources.ToCSS }}
{{- $blogcss := resources.Get "blog.css" | resources.ToCSS }}
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>{{ $gruvbox.Content | safeCSS }}</style>
<link rel="stylesheet" type="text/css" href="{{ "_pagefind/pagefind-ui.css" | absURL }}">
<style>{{ $blogcss.Content | safeCSS }}</style>
<script type="text/javascript" src="{{ "_pagefind/pagefind-ui.js" | absURL }}"></script>
<style>{{ $gruvbox.Content | safeCSS }}</style>
<script>
window.addEventListener('DOMContentLoaded', (event) => { new PagefindUI({ element: "#search" }); });
</script>

View File

@ -1,7 +1,7 @@
{{ define "title" }}{{ .Title }}{{ end }}
{{ define "main" }}
<h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
<h1 data-pagefind-meta="title"><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
<time>{{ .Date.Format "Mon, 02 Jan 2006 15:04 MST" }}</time>
<p>tags:</p>

View File

@ -1,5 +1,5 @@
{{ $taxonomy := "tags" }} {{ with .Param $taxonomy }}
<ul>
<ul data-pagefind-meta="tags">
{{ range $index, $tag := .}} {{ with $.Site.GetPage (printf "/%s/%s" $taxonomy $tag) -}}
<li>
<a href="{{ .RelPermalink }}">{{ $tag | urlize }}</a>