so now we're on fly.io

This commit is contained in:
EGOIST
2022-05-16 14:13:44 +08:00
parent 358c6631cb
commit c3aa3fd967
116 changed files with 418 additions and 1828 deletions
+22
View File
@@ -0,0 +1,22 @@
.code {
@apply my-5;
@apply relative;
color: var(--code-fg);
}
.code pre {
@apply p-5;
@apply rounded-lg;
@apply whitespace-pre;
@apply font-mono;
background-color: var(--code-bg);
}
.code:before {
content: attr(data-lang);
color: var(--lang-color);
@apply absolute;
@apply right-3;
@apply top-2;
@apply text-xs;
}
+5
View File
@@ -0,0 +1,5 @@
@import "./variables.css";
@import "./tailwind.css";
@import "./prose.css";
@import "./code.css";
@import "./prism-dark.css";
+81
View File
@@ -0,0 +1,81 @@
/** based on prism tomorror */
.code {
--lang-color: #8d8c8c;
--code-bg: #2d2d2d;
--code-fg: #ccc;
}
.token.comment,
.token.block-comment,
.token.prolog,
.token.doctype,
.token.cdata {
color: #999;
}
.token.punctuation {
color: #ccc;
}
.token.tag,
.token.attr-name,
.token.namespace,
.token.deleted {
color: #e2777a;
}
.token.function-name {
color: #6196cc;
}
.token.boolean,
.token.number,
.token.function {
color: #f08d49;
}
.token.property,
.token.class-name,
.token.constant,
.token.symbol {
color: #f8c555;
}
.token.selector,
.token.important,
.token.atrule,
.token.keyword,
.token.builtin {
color: #cc99cd;
}
.token.string,
.token.char,
.token.attr-value,
.token.regex,
.token.variable {
color: #7ec699;
}
.token.operator,
.token.entity,
.token.url {
color: #67cdcc;
}
.token.important,
.token.bold {
font-weight: bold;
}
.token.italic {
font-style: italic;
}
.token.entity {
cursor: help;
}
.token.inserted {
color: green;
}
+55
View File
@@ -0,0 +1,55 @@
.prose > p {
@apply my-5;
}
.prose > *:first-child {
@apply mt-0;
}
.prose {
@apply text-lg;
}
.prose h2 {
@apply text-3xl font-semibold;
@apply my-5;
}
.prose h3 {
@apply text-2xl font-semibold;
}
.prose h4 {
@apply text-xl font-semibold;
}
.prose blockquote {
@apply border-l-4 border-indigo-300;
@apply pl-4;
@apply italic;
@apply text-zinc-600;
}
.prose ul {
@apply list-disc;
@apply pl-5;
}
.prose ol {
@apply list-decimal;
@apply pl-5;
}
.prose > ul,
.prose > ol {
@apply my-5;
}
.prose a {
@apply text-indigo-600;
@apply underline;
}
.prose pre {
@apply overflow-auto;
}
+162
View File
@@ -0,0 +1,162 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
*,
*:after,
*:before {
border-color: var(--border-color);
}
.container {
@apply max-w-screen-xl;
@apply mx-auto;
}
.button {
@apply inline-flex;
@apply items-center;
@apply justify-center;
@apply h-8;
@apply px-3;
@apply min-w-[100px];
@apply shadow-button;
@apply whitespace-nowrap;
@apply font-medium;
@apply transition-colors;
}
.button.is-loading {
@apply opacity-50;
}
.button[disabled] {
@apply opacity-50;
@apply cursor-not-allowed;
}
.button.is-loading:before {
margin-right: 0.5rem;
height: 1rem;
width: 1rem;
border-radius: 9999px;
border-width: 2px;
content: "";
border-top-color: transparent;
border-left-color: transparent;
border-bottom-color: currentColor;
border-right-color: currentColor;
@apply animate-spin;
}
.button.is-block {
@apply w-full;
}
.button.is-primary {
--shadow-color-button: theme("colors.indigo.700");
@apply bg-indigo-500 hover:bg-indigo-600 focus:bg-indigo-700;
@apply text-white;
}
.button.is-secondary {
@apply bg-gray-50 hover:bg-gray-100 focus:bg-gray-200;
@apply text-gray-500;
}
.button.is-text {
@apply shadow-none;
@apply text-gray-500;
@apply hover:bg-gray-50 focus:bg-gray-100;
}
.button.is-green {
--shadow-color-button: theme("colors.green.700");
@apply bg-green-500 hover:bg-green-600 focus:bg-green-700;
}
.button.is-red {
--shadow-color-button: theme("colors.red.700");
@apply bg-red-500 hover:bg-red-600 focus:bg-red-700;
}
.button.is-gray {
--shadow-color-button: theme("colors.gray.700");
@apply bg-gray-500 hover:bg-gray-600 focus:bg-gray-700;
}
.button.is-sm {
@apply h-7;
@apply px-2;
@apply text-xs;
@apply min-w-[auto];
}
.input {
@apply border;
@apply outline-none;
@apply rounded-lg;
@apply px-3;
@apply h-10;
@apply inline-flex;
@apply items-center;
@apply focus:ring-1;
@apply focus:ring-indigo-400;
@apply focus:border-indigo-400;
}
.input.is-block {
@apply w-full;
}
.input.has-addon {
@apply rounded-r-none;
}
textarea.input {
@apply h-auto;
@apply py-3;
@apply px-3;
}
.form-label {
@apply block;
@apply mb-2;
@apply text-sm;
@apply font-bold;
@apply text-gray-700;
}
.post-status-circle {
@apply h-[15px] w-[15px];
@apply bg-green-500;
@apply inline-block;
@apply rounded-full;
@apply relative;
}
.post-status-circle:before {
content: "";
@apply absolute;
@apply left-1/2;
@apply top-1/2;
@apply bg-white;
@apply h-[10px] w-[10px];
@apply rounded-full;
@apply -translate-x-1/2;
@apply -translate-y-1/2;
}
.post-status-circle.is-draft {
@apply bg-gray-300;
}
.post-status-circle.is-scheduled {
@apply bg-yellow-500;
}
.page-title {
@apply relative;
@apply text-3xl;
@apply font-extrabold;
}
+8
View File
@@ -0,0 +1,8 @@
:root {
--border-color: #eee;
--font-fans: theme("fontFamily.sans");
--shadow-color-button: theme("colors.gray.300");
--accent-color: theme("colors.indigo.500");
/* Accent color for form controls */
accent-color: var(--accent-color);
}