[ci] yarn format
This commit is contained in:
parent
07e533402e
commit
50f82e1a53
46 changed files with 666 additions and 632 deletions
2
.github/ISSUE_TEMPLATE/---01-bug-report.yml
vendored
2
.github/ISSUE_TEMPLATE/---01-bug-report.yml
vendored
|
@ -45,5 +45,5 @@ body:
|
||||||
- type: input
|
- type: input
|
||||||
attributes:
|
attributes:
|
||||||
label: Link to Minimal Reproducible Example (Optional)
|
label: Link to Minimal Reproducible Example (Optional)
|
||||||
description: "Issues with easy reproductions are more likely to get fixed, faster."
|
description: 'Issues with easy reproductions are more likely to get fixed, faster.'
|
||||||
placeholder: 'https://github.com/username/repo'
|
placeholder: 'https://github.com/username/repo'
|
||||||
|
|
|
@ -41,7 +41,7 @@ body:
|
||||||
- type: checkboxes
|
- type: checkboxes
|
||||||
attributes:
|
attributes:
|
||||||
label: Help make it happen!
|
label: Help make it happen!
|
||||||
description: "Tip: RFCs with contributing authors are much more likely to get done!"
|
description: 'Tip: RFCs with contributing authors are much more likely to get done!'
|
||||||
options:
|
options:
|
||||||
- label: I am willing to submit a PR to implement this change.
|
- label: I am willing to submit a PR to implement this change.
|
||||||
- label: I am willing to submit a PR to implement this change, but would need some guidance.
|
- label: I am willing to submit a PR to implement this change, but would need some guidance.
|
||||||
|
|
2
.github/ISSUE_TEMPLATE/config.yml
vendored
2
.github/ISSUE_TEMPLATE/config.yml
vendored
|
@ -5,4 +5,4 @@ contact_links:
|
||||||
about: Our Discord server is active, come join us!
|
about: Our Discord server is active, come join us!
|
||||||
- name: 💁 Support
|
- name: 💁 Support
|
||||||
url: https://astro.build/chat
|
url: https://astro.build/chat
|
||||||
about: "This issue tracker is not for support questions. Join us on Discord for assistance!"
|
about: 'This issue tracker is not for support questions. Join us on Discord for assistance!'
|
||||||
|
|
|
@ -4,25 +4,25 @@
|
||||||
color: #fd9170;
|
color: #fd9170;
|
||||||
}
|
}
|
||||||
|
|
||||||
[class*="language-"] .namespace {
|
[class*='language-'] .namespace {
|
||||||
opacity: 0.7;
|
opacity: 0.7;
|
||||||
}
|
}
|
||||||
|
|
||||||
.token.plain-text,
|
.token.plain-text,
|
||||||
[class*="language-bash"] span.token,
|
[class*='language-bash'] span.token,
|
||||||
[class*="language-shell"] span.token {
|
[class*='language-shell'] span.token {
|
||||||
color: var(--color-gray-200);
|
color: var(--color-gray-200);
|
||||||
}
|
}
|
||||||
|
|
||||||
[class*="language-bash"] span.token,
|
[class*='language-bash'] span.token,
|
||||||
[class*="language-shell"] span.token {
|
[class*='language-shell'] span.token {
|
||||||
font-style: bold;
|
font-style: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.token.prolog,
|
.token.prolog,
|
||||||
.token.comment,
|
.token.comment,
|
||||||
[class*="language-bash"] span.token.comment,
|
[class*='language-bash'] span.token.comment,
|
||||||
[class*="language-shell"] span.token.comment {
|
[class*='language-shell'] span.token.comment {
|
||||||
color: var(--color-gray-400);
|
color: var(--color-gray-400);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@
|
||||||
.token.variable,
|
.token.variable,
|
||||||
.token.entity,
|
.token.entity,
|
||||||
.token.deleted {
|
.token.deleted {
|
||||||
color: #FA5E5B;
|
color: #fa5e5b;
|
||||||
}
|
}
|
||||||
|
|
||||||
.token.boolean,
|
.token.boolean,
|
||||||
|
@ -62,8 +62,7 @@
|
||||||
.token.symbol,
|
.token.symbol,
|
||||||
.token.function,
|
.token.function,
|
||||||
.token.id,
|
.token.id,
|
||||||
.token.important
|
.token.important {
|
||||||
{
|
|
||||||
color: var(--color-blue);
|
color: var(--color-blue);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -72,11 +71,10 @@
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.token.cdata,
|
.token.cdata,
|
||||||
.token.char,
|
.token.char,
|
||||||
.token.property {
|
.token.property {
|
||||||
color: #23B1AF;
|
color: #23b1af;
|
||||||
}
|
}
|
||||||
|
|
||||||
.token.inserted {
|
.token.inserted {
|
||||||
|
@ -84,7 +82,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.token.keyword {
|
.token.keyword {
|
||||||
color: #FF657C;
|
color: #ff657c;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,10 @@
|
||||||
--font-fallback: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial,
|
--font-fallback: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial,
|
||||||
sans-serif, Apple Color Emoji, Segoe UI Emoji;
|
sans-serif, Apple Color Emoji, Segoe UI Emoji;
|
||||||
--font-body: system-ui, var(--font-fallback);
|
--font-body: system-ui, var(--font-fallback);
|
||||||
--font-mono: "IBM Plex Mono", Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace;
|
--font-mono: 'IBM Plex Mono', Consolas, 'Andale Mono WT', 'Andale Mono',
|
||||||
|
'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu Sans Mono',
|
||||||
|
'Bitstream Vera Sans Mono', 'Liberation Mono', 'Nimbus Mono L', Monaco,
|
||||||
|
'Courier New', Courier, monospace;
|
||||||
|
|
||||||
--color-white: #fff;
|
--color-white: #fff;
|
||||||
--color-black: #000014;
|
--color-black: #000014;
|
||||||
|
@ -56,7 +59,10 @@
|
||||||
--theme-navbar-height: 3.5rem;
|
--theme-navbar-height: 3.5rem;
|
||||||
--theme-sidebar-offset: var(--theme-navbar-height);
|
--theme-sidebar-offset: var(--theme-navbar-height);
|
||||||
--theme-selection-color: var(--color-orange);
|
--theme-selection-color: var(--color-orange);
|
||||||
--theme-selection-bg: rgba(var(--color-orange-rgb), var(--theme-accent-opacity));
|
--theme-selection-bg: rgba(
|
||||||
|
var(--color-orange-rgb),
|
||||||
|
var(--theme-accent-opacity)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
|
@ -87,7 +93,10 @@ body {
|
||||||
--theme-code-text: var(--color-white);
|
--theme-code-text: var(--color-white);
|
||||||
--theme-navbar-bg: var(--color-gray-900);
|
--theme-navbar-bg: var(--color-gray-900);
|
||||||
--theme-selection-color: var(--color-white);
|
--theme-selection-color: var(--color-white);
|
||||||
--theme-selection-bg: rgba(var(--color-purple-rgb), var(--theme-accent-opacity));
|
--theme-selection-bg: rgba(
|
||||||
|
var(--color-purple-rgb),
|
||||||
|
var(--theme-accent-opacity)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
::selection {
|
::selection {
|
||||||
|
|
|
@ -11,7 +11,5 @@ export default {
|
||||||
// port: 3000, // The port to run the dev server on.
|
// port: 3000, // The port to run the dev server on.
|
||||||
// tailwindConfig: '', // Path to tailwind.config.js if used, e.g. './tailwind.config.js'
|
// tailwindConfig: '', // Path to tailwind.config.js if used, e.g. './tailwind.config.js'
|
||||||
},
|
},
|
||||||
renderers: [
|
renderers: ['@astrojs/renderer-preact'],
|
||||||
'@astrojs/renderer-preact'
|
|
||||||
]
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -11,7 +11,5 @@ export default {
|
||||||
// port: 3000, // The port to run the dev server on.
|
// port: 3000, // The port to run the dev server on.
|
||||||
// tailwindConfig: '', // Path to tailwind.config.js if used, e.g. './tailwind.config.js'
|
// tailwindConfig: '', // Path to tailwind.config.js if used, e.g. './tailwind.config.js'
|
||||||
},
|
},
|
||||||
renderers: [
|
renderers: ['@astrojs/renderer-preact'],
|
||||||
'@astrojs/renderer-preact'
|
|
||||||
]
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,36 +1,34 @@
|
||||||
:root {
|
:root {
|
||||||
--font-fallback: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;
|
--font-fallback: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;
|
||||||
--font-body: "IBM Plex Sans", var(--font-fallback);
|
--font-body: 'IBM Plex Sans', var(--font-fallback);
|
||||||
--font-mono: "IBM Plex Mono", Consolas, "Andale Mono WT", "Andale Mono",
|
--font-mono: 'IBM Plex Mono', Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono',
|
||||||
"Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono",
|
'Liberation Mono', 'Nimbus Mono L', Monaco, 'Courier New', Courier, monospace;
|
||||||
"Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco,
|
|
||||||
"Courier New", Courier, monospace;
|
|
||||||
|
|
||||||
--color-white: #FFF;
|
--color-white: #fff;
|
||||||
--color-black: #000014;
|
--color-black: #000014;
|
||||||
|
|
||||||
--color-gray-50: #F9FAFB;
|
--color-gray-50: #f9fafb;
|
||||||
--color-gray-100: #F3F4F6;
|
--color-gray-100: #f3f4f6;
|
||||||
--color-gray-200: #E5E7EB;
|
--color-gray-200: #e5e7eb;
|
||||||
--color-gray-300: #D1D5DB;
|
--color-gray-300: #d1d5db;
|
||||||
--color-gray-400: #9CA3AF;
|
--color-gray-400: #9ca3af;
|
||||||
--color-gray-500: #6B7280;
|
--color-gray-500: #6b7280;
|
||||||
--color-gray-600: #4B5563;
|
--color-gray-600: #4b5563;
|
||||||
--color-gray-700: #374151;
|
--color-gray-700: #374151;
|
||||||
--color-gray-800: #1F2937;
|
--color-gray-800: #1f2937;
|
||||||
--color-gray-900: #111827;
|
--color-gray-900: #111827;
|
||||||
|
|
||||||
--color-blue: #3894FF;
|
--color-blue: #3894ff;
|
||||||
--color-blue-rgb: 56, 148, 255;
|
--color-blue-rgb: 56, 148, 255;
|
||||||
--color-green: #17C083;
|
--color-green: #17c083;
|
||||||
--color-green-rgb: 23, 192, 131;
|
--color-green-rgb: 23, 192, 131;
|
||||||
--color-orange: #FF5D01;
|
--color-orange: #ff5d01;
|
||||||
--color-orange-rgb: 255, 93, 1;
|
--color-orange-rgb: 255, 93, 1;
|
||||||
--color-purple: #882DE7;
|
--color-purple: #882de7;
|
||||||
--color-purple-rgb: 136, 45, 231;
|
--color-purple-rgb: 136, 45, 231;
|
||||||
--color-red: #FF1639;
|
--color-red: #ff1639;
|
||||||
--color-red-rgb: 255, 22, 57;
|
--color-red-rgb: 255, 22, 57;
|
||||||
--color-yellow: #FFBE2D;
|
--color-yellow: #ffbe2d;
|
||||||
--color-yellow-rgb: 255, 190, 45;
|
--color-yellow-rgb: 255, 190, 45;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -140,30 +138,31 @@ nav ul {
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
font-size: clamp(2.488rem, 1.9240rem + 1.4100vw, 3.052rem);
|
font-size: clamp(2.488rem, 1.924rem + 1.41vw, 3.052rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
font-size: clamp(2.074rem, 1.7070rem + 0.9175vw, 2.441rem);
|
font-size: clamp(2.074rem, 1.707rem + 0.9175vw, 2.441rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
font-size: clamp(1.728rem, 1.5030rem + 0.5625vw, 1.953rem);
|
font-size: clamp(1.728rem, 1.503rem + 0.5625vw, 1.953rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
h4 {
|
h4 {
|
||||||
font-size: clamp(1.44rem, 1.3170rem + 0.3075vw, 1.563rem);
|
font-size: clamp(1.44rem, 1.317rem + 0.3075vw, 1.563rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
h5 {
|
h5 {
|
||||||
font-size: clamp(1.2rem, 1.1500rem + 0.1250vw, 1.25rem);
|
font-size: clamp(1.2rem, 1.15rem + 0.125vw, 1.25rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
color: var(--theme-text-light);
|
color: var(--theme-text-light);
|
||||||
}
|
}
|
||||||
|
|
||||||
small, .text_small {
|
small,
|
||||||
|
.text_small {
|
||||||
font-size: 0.833rem;
|
font-size: 0.833rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -176,14 +175,14 @@ a {
|
||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
a > code:not([class*="language"]) {
|
a > code:not([class*='language']) {
|
||||||
position: relative;
|
position: relative;
|
||||||
color: var(--theme-accent);
|
color: var(--theme-accent);
|
||||||
background: transparent;
|
background: transparent;
|
||||||
text-underline-offset: var(--padding-block);
|
text-underline-offset: var(--padding-block);
|
||||||
}
|
}
|
||||||
|
|
||||||
a > code:not([class*="language"])::before {
|
a > code:not([class*='language'])::before {
|
||||||
content: '';
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
@ -213,13 +212,13 @@ strong {
|
||||||
|
|
||||||
/* Supporting Content */
|
/* Supporting Content */
|
||||||
|
|
||||||
code:not([class*="language"]) {
|
code:not([class*='language']) {
|
||||||
--border-radius: 3px;
|
--border-radius: 3px;
|
||||||
--padding-block: 0.2rem;
|
--padding-block: 0.2rem;
|
||||||
--padding-inline: 0.33rem;
|
--padding-inline: 0.33rem;
|
||||||
|
|
||||||
font-family: var(--font-mono);
|
font-family: var(--font-mono);
|
||||||
font-size: .85em;
|
font-size: 0.85em;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
background-color: var(--theme-code-inline-bg);
|
background-color: var(--theme-code-inline-bg);
|
||||||
padding: var(--padding-block) var(--padding-inline);
|
padding: var(--padding-block) var(--padding-inline);
|
||||||
|
@ -227,7 +226,7 @@ code:not([class*="language"]) {
|
||||||
border-radius: var(--border-radius);
|
border-radius: var(--border-radius);
|
||||||
}
|
}
|
||||||
|
|
||||||
pre > code:not([class*="language"]) {
|
pre > code:not([class*='language']) {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
|
@ -1,9 +1,7 @@
|
||||||
:root {
|
:root {
|
||||||
--font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
--font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
||||||
--font-mono: "IBM Plex Mono", Consolas, "Andale Mono WT", "Andale Mono",
|
--font-mono: 'IBM Plex Mono', Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono',
|
||||||
"Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono",
|
'Liberation Mono', 'Nimbus Mono L', Monaco, 'Courier New', Courier, monospace;
|
||||||
"Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco,
|
|
||||||
"Courier New", Courier, monospace;
|
|
||||||
--color-green: #17c083;
|
--color-green: #17c083;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,16 +17,13 @@ html {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background-color: #000014;
|
background-color: #000014;
|
||||||
}
|
}
|
||||||
html, body {
|
html,
|
||||||
|
body {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
font-size: clamp(14px, calc(1rem + (3vw - 1.2rem)), 20px);
|
font-size: clamp(14px, calc(1rem + (3vw - 1.2rem)), 20px);
|
||||||
font-family: var(--font-sans);
|
font-family: var(--font-sans);
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
background-image: radial-gradient(
|
background-image: radial-gradient(87.7% 87.7% at 85.6% 18.14%, #111827 0%, #000014 100%);
|
||||||
87.7% 87.7% at 85.6% 18.14%,
|
|
||||||
#111827 0%,
|
|
||||||
#000014 100%
|
|
||||||
);
|
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
color: #f3f4f6;
|
color: #f3f4f6;
|
||||||
}
|
}
|
||||||
|
@ -56,7 +51,7 @@ a {
|
||||||
color: var(--color-green);
|
color: var(--color-green);
|
||||||
padding: 0.05em 0.125em;
|
padding: 0.05em 0.125em;
|
||||||
margin: -0.05em -0.125em;
|
margin: -0.05em -0.125em;
|
||||||
transition: color 120ms cubic-bezier(0.23, 1, 0.320, 1);
|
transition: color 120ms cubic-bezier(0.23, 1, 0.32, 1);
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
|
||||||
|
@ -92,8 +87,7 @@ a {
|
||||||
background: var(--color-green);
|
background: var(--color-green);
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
transform: scaleY(0.05);
|
transform: scaleY(0.05);
|
||||||
transition: transform 120ms cubic-bezier(0.23, 1, 0.320, 1),
|
transition: transform 120ms cubic-bezier(0.23, 1, 0.32, 1), background 120ms cubic-bezier(0.23, 1, 0.32, 1);
|
||||||
background 120ms cubic-bezier(0.23, 1, 0.320, 1);
|
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,5 @@ export default {
|
||||||
// port: 3000, // The port to run the dev server on.
|
// port: 3000, // The port to run the dev server on.
|
||||||
// tailwindConfig: '', // Path to tailwind.config.js if used, e.g. './tailwind.config.js'
|
// tailwindConfig: '', // Path to tailwind.config.js if used, e.g. './tailwind.config.js'
|
||||||
},
|
},
|
||||||
renderers: [
|
renderers: ['@astrojs/renderer-preact'],
|
||||||
'@astrojs/renderer-preact'
|
|
||||||
]
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
color: #fd9170;
|
color: #fd9170;
|
||||||
}
|
}
|
||||||
|
|
||||||
[class*="language-"] .namespace {
|
[class*='language-'] .namespace {
|
||||||
opacity: 0.7;
|
opacity: 0.7;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -52,30 +52,31 @@ nav ul {
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
font-size: clamp(2.488rem, 1.9240rem + 1.4100vw, 3.052rem);
|
font-size: clamp(2.488rem, 1.924rem + 1.41vw, 3.052rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
font-size: clamp(2.074rem, 1.7070rem + 0.9175vw, 2.441rem);
|
font-size: clamp(2.074rem, 1.707rem + 0.9175vw, 2.441rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
font-size: clamp(1.728rem, 1.5030rem + 0.5625vw, 1.953rem);
|
font-size: clamp(1.728rem, 1.503rem + 0.5625vw, 1.953rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
h4 {
|
h4 {
|
||||||
font-size: clamp(1.44rem, 1.3170rem + 0.3075vw, 1.563rem);
|
font-size: clamp(1.44rem, 1.317rem + 0.3075vw, 1.563rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
h5 {
|
h5 {
|
||||||
font-size: clamp(1.2rem, 1.1500rem + 0.1250vw, 1.25rem);
|
font-size: clamp(1.2rem, 1.15rem + 0.125vw, 1.25rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
color: var(--theme-text-light);
|
color: var(--theme-text-light);
|
||||||
}
|
}
|
||||||
|
|
||||||
small, .text_small {
|
small,
|
||||||
|
.text_small {
|
||||||
font-size: 0.833rem;
|
font-size: 0.833rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -89,14 +90,14 @@ a {
|
||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
a > code:not([class*="language"]) {
|
a > code:not([class*='language']) {
|
||||||
position: relative;
|
position: relative;
|
||||||
color: var(--theme-accent);
|
color: var(--theme-accent);
|
||||||
background: transparent;
|
background: transparent;
|
||||||
text-underline-offset: var(--padding-block);
|
text-underline-offset: var(--padding-block);
|
||||||
}
|
}
|
||||||
|
|
||||||
a > code:not([class*="language"])::before {
|
a > code:not([class*='language'])::before {
|
||||||
content: '';
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
@ -126,13 +127,13 @@ strong {
|
||||||
|
|
||||||
/* Supporting Content */
|
/* Supporting Content */
|
||||||
|
|
||||||
code:not([class*="language"]) {
|
code:not([class*='language']) {
|
||||||
--border-radius: 3px;
|
--border-radius: 3px;
|
||||||
--padding-block: 0.2rem;
|
--padding-block: 0.2rem;
|
||||||
--padding-inline: 0.33rem;
|
--padding-inline: 0.33rem;
|
||||||
|
|
||||||
font-family: var(--font-mono);
|
font-family: var(--font-mono);
|
||||||
font-size: .85em;
|
font-size: 0.85em;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
background-color: var(--theme-code-inline-bg);
|
background-color: var(--theme-code-inline-bg);
|
||||||
padding: var(--padding-block) var(--padding-inline);
|
padding: var(--padding-block) var(--padding-inline);
|
||||||
|
@ -140,7 +141,7 @@ code:not([class*="language"]) {
|
||||||
border-radius: var(--border-radius);
|
border-radius: var(--border-radius);
|
||||||
}
|
}
|
||||||
|
|
||||||
pre > code:not([class*="language"]) {
|
pre > code:not([class*='language']) {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
@ -211,7 +212,6 @@ button {
|
||||||
background-color: var(--theme-bg);
|
background-color: var(--theme-bg);
|
||||||
}
|
}
|
||||||
button:hover {
|
button:hover {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#theme-toggle {
|
#theme-toggle {
|
||||||
|
@ -254,7 +254,7 @@ button:hover {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[name="theme-toggle"] {
|
input[name='theme-toggle'] {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
|
|
@ -3,31 +3,31 @@
|
||||||
--font-body: system-ui, var(--font-fallback);
|
--font-body: system-ui, var(--font-fallback);
|
||||||
--font-mono: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
|
--font-mono: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
|
||||||
|
|
||||||
--color-white: #FFF;
|
--color-white: #fff;
|
||||||
--color-black: #000014;
|
--color-black: #000014;
|
||||||
|
|
||||||
--color-gray-50: #F9FAFB;
|
--color-gray-50: #f9fafb;
|
||||||
--color-gray-100: #F3F4F6;
|
--color-gray-100: #f3f4f6;
|
||||||
--color-gray-200: #E5E7EB;
|
--color-gray-200: #e5e7eb;
|
||||||
--color-gray-300: #D1D5DB;
|
--color-gray-300: #d1d5db;
|
||||||
--color-gray-400: #9CA3AF;
|
--color-gray-400: #9ca3af;
|
||||||
--color-gray-500: #6B7280;
|
--color-gray-500: #6b7280;
|
||||||
--color-gray-600: #4B5563;
|
--color-gray-600: #4b5563;
|
||||||
--color-gray-700: #374151;
|
--color-gray-700: #374151;
|
||||||
--color-gray-800: #1F2937;
|
--color-gray-800: #1f2937;
|
||||||
--color-gray-900: #111827;
|
--color-gray-900: #111827;
|
||||||
|
|
||||||
--color-blue: #3894FF;
|
--color-blue: #3894ff;
|
||||||
--color-blue-rgb: 56, 148, 255;
|
--color-blue-rgb: 56, 148, 255;
|
||||||
--color-green: #17C083;
|
--color-green: #17c083;
|
||||||
--color-green-rgb: 23, 192, 131;
|
--color-green-rgb: 23, 192, 131;
|
||||||
--color-orange: #FF5D01;
|
--color-orange: #ff5d01;
|
||||||
--color-orange-rgb: 255, 93, 1;
|
--color-orange-rgb: 255, 93, 1;
|
||||||
--color-purple: #882DE7;
|
--color-purple: #882de7;
|
||||||
--color-purple-rgb: 136, 45, 231;
|
--color-purple-rgb: 136, 45, 231;
|
||||||
--color-red: #FF1639;
|
--color-red: #ff1639;
|
||||||
--color-red-rgb: 255, 22, 57;
|
--color-red-rgb: 255, 22, 57;
|
||||||
--color-yellow: #FFBE2D;
|
--color-yellow: #ffbe2d;
|
||||||
--color-yellow-rgb: 255, 190, 45;
|
--color-yellow-rgb: 255, 190, 45;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,5 @@ export default {
|
||||||
// port: 3000, // The port to run the dev server on.
|
// port: 3000, // The port to run the dev server on.
|
||||||
// tailwindConfig: '', // Path to tailwind.config.js if used, e.g. './tailwind.config.js'
|
// tailwindConfig: '', // Path to tailwind.config.js if used, e.g. './tailwind.config.js'
|
||||||
},
|
},
|
||||||
renderers: [
|
renderers: ['@astrojs/renderer-lit'],
|
||||||
'@astrojs/renderer-lit'
|
|
||||||
]
|
|
||||||
};
|
};
|
|
@ -1,11 +1,12 @@
|
||||||
:root {
|
:root {
|
||||||
--font-mono: Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace;
|
--font-mono: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Liberation Mono',
|
||||||
--color-light: #F3F4F6;
|
'Nimbus Mono L', Monaco, 'Courier New', Courier, monospace;
|
||||||
|
--color-light: #f3f4f6;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
:root {
|
:root {
|
||||||
--color-light: #1F2937;
|
--color-light: #1f2937;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -11,10 +11,5 @@ export default {
|
||||||
// port: 3000, // The port to run the dev server on.
|
// port: 3000, // The port to run the dev server on.
|
||||||
// tailwindConfig: '', // Path to tailwind.config.js if used, e.g. './tailwind.config.js'
|
// tailwindConfig: '', // Path to tailwind.config.js if used, e.g. './tailwind.config.js'
|
||||||
},
|
},
|
||||||
renderers: [
|
renderers: ['@astrojs/renderer-preact', '@astrojs/renderer-react', '@astrojs/renderer-svelte', '@astrojs/renderer-vue'],
|
||||||
'@astrojs/renderer-preact',
|
|
||||||
'@astrojs/renderer-react',
|
|
||||||
'@astrojs/renderer-svelte',
|
|
||||||
'@astrojs/renderer-vue',
|
|
||||||
]
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -13,15 +13,15 @@
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
export default {
|
export default {
|
||||||
setup() {
|
setup() {
|
||||||
const count = ref(0)
|
const count = ref(0);
|
||||||
const add = () => count.value = count.value + 1;
|
const add = () => (count.value = count.value + 1);
|
||||||
const subtract = () => count.value = count.value - 1;
|
const subtract = () => (count.value = count.value - 1);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
count,
|
count,
|
||||||
add,
|
add,
|
||||||
subtract
|
subtract,
|
||||||
}
|
};
|
||||||
}
|
},
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -11,7 +11,5 @@ export default {
|
||||||
// port: 3000, // The port to run the dev server on.
|
// port: 3000, // The port to run the dev server on.
|
||||||
// tailwindConfig: '', // Path to tailwind.config.js if used, e.g. './tailwind.config.js'
|
// tailwindConfig: '', // Path to tailwind.config.js if used, e.g. './tailwind.config.js'
|
||||||
},
|
},
|
||||||
renderers: [
|
renderers: ['@astrojs/renderer-preact'],
|
||||||
'@astrojs/renderer-preact'
|
|
||||||
]
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -11,7 +11,5 @@ export default {
|
||||||
// port: 3000, // The port to run the dev server on.
|
// port: 3000, // The port to run the dev server on.
|
||||||
// tailwindConfig: '', // Path to tailwind.config.js if used, e.g. './tailwind.config.js'
|
// tailwindConfig: '', // Path to tailwind.config.js if used, e.g. './tailwind.config.js'
|
||||||
},
|
},
|
||||||
renderers: [
|
renderers: ['@astrojs/renderer-react'],
|
||||||
'@astrojs/renderer-react'
|
|
||||||
]
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -11,7 +11,5 @@ export default {
|
||||||
// port: 3000, // The port to run the dev server on.
|
// port: 3000, // The port to run the dev server on.
|
||||||
// tailwindConfig: '', // Path to tailwind.config.js if used, e.g. './tailwind.config.js'
|
// tailwindConfig: '', // Path to tailwind.config.js if used, e.g. './tailwind.config.js'
|
||||||
},
|
},
|
||||||
renderers: [
|
renderers: ['@astrojs/renderer-svelte'],
|
||||||
'@astrojs/renderer-svelte'
|
|
||||||
]
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -11,7 +11,5 @@ export default {
|
||||||
// port: 3000, // The port to run the dev server on.
|
// port: 3000, // The port to run the dev server on.
|
||||||
// tailwindConfig: '', // Path to tailwind.config.js if used, e.g. './tailwind.config.js'
|
// tailwindConfig: '', // Path to tailwind.config.js if used, e.g. './tailwind.config.js'
|
||||||
},
|
},
|
||||||
renderers: [
|
renderers: ['@astrojs/renderer-vue'],
|
||||||
'@astrojs/renderer-vue'
|
|
||||||
]
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -13,15 +13,15 @@
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
export default {
|
export default {
|
||||||
setup() {
|
setup() {
|
||||||
const count = ref(0)
|
const count = ref(0);
|
||||||
const add = () => count.value = count.value + 1;
|
const add = () => (count.value = count.value + 1);
|
||||||
const subtract = () => count.value = count.value - 1;
|
const subtract = () => (count.value = count.value - 1);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
count,
|
count,
|
||||||
add,
|
add,
|
||||||
subtract
|
subtract,
|
||||||
}
|
};
|
||||||
}
|
},
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -11,7 +11,5 @@ export default {
|
||||||
// port: 3000, // The port to run the dev server on.
|
// port: 3000, // The port to run the dev server on.
|
||||||
// tailwindConfig: '', // Path to tailwind.config.js if used, e.g. './tailwind.config.js'
|
// tailwindConfig: '', // Path to tailwind.config.js if used, e.g. './tailwind.config.js'
|
||||||
},
|
},
|
||||||
renderers: [
|
renderers: ['@astrojs/renderer-preact'],
|
||||||
'@astrojs/renderer-preact'
|
|
||||||
]
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -86,35 +86,69 @@ h1 {
|
||||||
$colors: 'black', 'blue', 'white';
|
$colors: 'black', 'blue', 'white';
|
||||||
@each $color in $colors {
|
@each $color in $colors {
|
||||||
// text color
|
// text color
|
||||||
.tc-#{$color} { color: var(--c-#{color}); }
|
.tc-#{$color} {
|
||||||
|
color: var(--c-#{color});
|
||||||
|
}
|
||||||
// background color
|
// background color
|
||||||
.bg-#{$color} { background-color: var(--c-#{color}); }
|
.bg-#{$color} {
|
||||||
|
background-color: var(--c-#{color});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// font size
|
// font size
|
||||||
@for $i from 0 through 18 {
|
@for $i from 0 through 18 {
|
||||||
.f-u#{$i} { font-size: var(--f-u#{$i}); }
|
.f-u#{$i} {
|
||||||
.f-d#{$i} { font-size: var(--f-d#{$i}); }
|
font-size: var(--f-u#{$i});
|
||||||
|
}
|
||||||
|
.f-d#{$i} {
|
||||||
|
font-size: var(--f-d#{$i});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// margin & padding
|
// margin & padding
|
||||||
@for $i from 0 through 36 {
|
@for $i from 0 through 36 {
|
||||||
.ma#{$i} { margin: #{0.5 * $i}rem; }
|
.ma#{$i} {
|
||||||
.mt#{$i} { margin-top: #{0.5 * $i}rem; }
|
margin: #{0.5 * $i}rem;
|
||||||
.mr#{$i} { margin-right: #{0.5 * $i}rem; }
|
}
|
||||||
.mb#{$i} { margin-bottom: #{0.5 * $i}rem; }
|
.mt#{$i} {
|
||||||
.ml#{$i} { margin-left: #{0.5 * $i}rem; }
|
margin-top: #{0.5 * $i}rem;
|
||||||
.pa#{$i} { padding: #{0.5 * $i}rem; }
|
}
|
||||||
.pt#{$i} { padding-top: #{0.5 * $i}rem; }
|
.mr#{$i} {
|
||||||
.pr#{$i} { padding-right: #{0.5 * $i}rem; }
|
margin-right: #{0.5 * $i}rem;
|
||||||
.pb#{$i} { padding-bottom: #{0.5 * $i}rem; }
|
}
|
||||||
.pl#{$i} { padding-left: #{0.5 * $i}rem; }
|
.mb#{$i} {
|
||||||
|
margin-bottom: #{0.5 * $i}rem;
|
||||||
|
}
|
||||||
|
.ml#{$i} {
|
||||||
|
margin-left: #{0.5 * $i}rem;
|
||||||
|
}
|
||||||
|
.pa#{$i} {
|
||||||
|
padding: #{0.5 * $i}rem;
|
||||||
|
}
|
||||||
|
.pt#{$i} {
|
||||||
|
padding-top: #{0.5 * $i}rem;
|
||||||
|
}
|
||||||
|
.pr#{$i} {
|
||||||
|
padding-right: #{0.5 * $i}rem;
|
||||||
|
}
|
||||||
|
.pb#{$i} {
|
||||||
|
padding-bottom: #{0.5 * $i}rem;
|
||||||
|
}
|
||||||
|
.pl#{$i} {
|
||||||
|
padding-left: #{0.5 * $i}rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// text align
|
// text align
|
||||||
.tac { text-align: center; }
|
.tac {
|
||||||
.tal { text-align: left; }
|
text-align: center;
|
||||||
.tar { text-align: right; }
|
}
|
||||||
|
.tal {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
.tar {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
// wrapper
|
// wrapper
|
||||||
.wrapper {
|
.wrapper {
|
||||||
|
|
|
@ -6,6 +6,6 @@ export default {
|
||||||
renderers: [
|
renderers: [
|
||||||
'@astrojs/renderer-vue',
|
'@astrojs/renderer-vue',
|
||||||
'@astrojs/renderer-svelte',
|
'@astrojs/renderer-svelte',
|
||||||
'@astrojs/renderer-preact'
|
'@astrojs/renderer-preact',
|
||||||
]
|
],
|
||||||
};
|
};
|
||||||
|
|
|
@ -1 +1,19 @@
|
||||||
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}
|
{
|
||||||
|
"name": "",
|
||||||
|
"short_name": "",
|
||||||
|
"icons": [
|
||||||
|
{
|
||||||
|
"src": "/android-chrome-192x192.png",
|
||||||
|
"sizes": "192x192",
|
||||||
|
"type": "image/png"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "/android-chrome-512x512.png",
|
||||||
|
"sizes": "512x512",
|
||||||
|
"type": "image/png"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"theme_color": "#ffffff",
|
||||||
|
"background_color": "#ffffff",
|
||||||
|
"display": "standalone"
|
||||||
|
}
|
||||||
|
|
|
@ -4,22 +4,48 @@
|
||||||
|
|
||||||
// margin & padding
|
// margin & padding
|
||||||
@for $i from 0 through 36 {
|
@for $i from 0 through 36 {
|
||||||
.ma#{$i} { margin: #{0.5 * $i}rem; }
|
.ma#{$i} {
|
||||||
.mt#{$i} { margin-top: #{0.5 * $i}rem; }
|
margin: #{0.5 * $i}rem;
|
||||||
.mr#{$i} { margin-right: #{0.5 * $i}rem; }
|
}
|
||||||
.mb#{$i} { margin-bottom: #{0.5 * $i}rem; }
|
.mt#{$i} {
|
||||||
.ml#{$i} { margin-left: #{0.5 * $i}rem; }
|
margin-top: #{0.5 * $i}rem;
|
||||||
.pa#{$i} { padding: #{0.5 * $i}rem; }
|
}
|
||||||
.pt#{$i} { padding-top: #{0.5 * $i}rem; }
|
.mr#{$i} {
|
||||||
.pr#{$i} { padding-right: #{0.5 * $i}rem; }
|
margin-right: #{0.5 * $i}rem;
|
||||||
.pb#{$i} { padding-bottom: #{0.5 * $i}rem; }
|
}
|
||||||
.pl#{$i} { padding-left: #{0.5 * $i}rem; }
|
.mb#{$i} {
|
||||||
|
margin-bottom: #{0.5 * $i}rem;
|
||||||
|
}
|
||||||
|
.ml#{$i} {
|
||||||
|
margin-left: #{0.5 * $i}rem;
|
||||||
|
}
|
||||||
|
.pa#{$i} {
|
||||||
|
padding: #{0.5 * $i}rem;
|
||||||
|
}
|
||||||
|
.pt#{$i} {
|
||||||
|
padding-top: #{0.5 * $i}rem;
|
||||||
|
}
|
||||||
|
.pr#{$i} {
|
||||||
|
padding-right: #{0.5 * $i}rem;
|
||||||
|
}
|
||||||
|
.pb#{$i} {
|
||||||
|
padding-bottom: #{0.5 * $i}rem;
|
||||||
|
}
|
||||||
|
.pl#{$i} {
|
||||||
|
padding-left: #{0.5 * $i}rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// text align
|
// text align
|
||||||
.tac { text-align: center; }
|
.tac {
|
||||||
.tal { text-align: left; }
|
text-align: center;
|
||||||
.tar { text-align: right; }
|
}
|
||||||
|
.tal {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
.tar {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
// wrapper
|
// wrapper
|
||||||
.wrapper {
|
.wrapper {
|
||||||
|
|
|
@ -8,8 +8,8 @@ export default {
|
||||||
props: {
|
props: {
|
||||||
title: {
|
title: {
|
||||||
type: String,
|
type: String,
|
||||||
required: true
|
required: true,
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
:root {
|
:root {
|
||||||
--font-mono: Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace;
|
--font-mono: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Liberation Mono',
|
||||||
--color-light: #F3F4F6;
|
'Nimbus Mono L', Monaco, 'Courier New', Courier, monospace;
|
||||||
|
--color-light: #f3f4f6;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
:root {
|
:root {
|
||||||
--color-light: #1F2937;
|
--color-light: #1f2937;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -8,15 +8,11 @@ export default {
|
||||||
// sitemap: true, // Generate sitemap (set to "false" to disable)
|
// sitemap: true, // Generate sitemap (set to "false" to disable)
|
||||||
},
|
},
|
||||||
markdownOptions: {
|
markdownOptions: {
|
||||||
remarkPlugins: [
|
remarkPlugins: ['remark-code-titles', 'remark-slug', ['remark-autolink-headings', { behavior: 'prepend' }]],
|
||||||
'remark-code-titles',
|
|
||||||
'remark-slug',
|
|
||||||
['remark-autolink-headings', { behavior: 'prepend' }],
|
|
||||||
],
|
|
||||||
rehypePlugins: [
|
rehypePlugins: [
|
||||||
['rehype-toc', { headings: ["h2", "h3"] }],
|
['rehype-toc', { headings: ['h2', 'h3'] }],
|
||||||
['rehype-add-classes', { 'h1,h2,h3': 'title', }],
|
['rehype-add-classes', { 'h1,h2,h3': 'title' }],
|
||||||
]
|
],
|
||||||
},
|
},
|
||||||
devOptions: {
|
devOptions: {
|
||||||
// port: 3000, // The port to run the dev server on.
|
// port: 3000, // The port to run the dev server on.
|
||||||
|
|
|
@ -34,20 +34,20 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
.remark-code-title,
|
.remark-code-title,
|
||||||
pre[class^="language-"] {
|
pre[class^='language-'] {
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.remark-code-title {
|
.remark-code-title {
|
||||||
border-bottom: 1px solid rgba(0,0,0,.05);
|
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
|
||||||
border-radius: 4px 4px 0 0;
|
border-radius: 4px 4px 0 0;
|
||||||
background: rgba(0,0,0,.08);
|
background: rgba(0, 0, 0, 0.08);
|
||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
pre[class^="language-"] {
|
pre[class^='language-'] {
|
||||||
background: rgba(0,0,0,.05);
|
background: rgba(0, 0, 0, 0.05);
|
||||||
border-radius: 0 0 4px 4px;
|
border-radius: 0 0 4px 4px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,15 +13,15 @@
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
export default {
|
export default {
|
||||||
setup() {
|
setup() {
|
||||||
const count = ref(0)
|
const count = ref(0);
|
||||||
const add = () => count.value = count.value + 1;
|
const add = () => (count.value = count.value + 1);
|
||||||
const subtract = () => count.value = count.value - 1;
|
const subtract = () => (count.value = count.value - 1);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
count,
|
count,
|
||||||
add,
|
add,
|
||||||
subtract
|
subtract,
|
||||||
}
|
};
|
||||||
}
|
},
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -11,10 +11,5 @@ export default {
|
||||||
// port: 3000, // The port to run the dev server on.
|
// port: 3000, // The port to run the dev server on.
|
||||||
tailwindConfig: './tailwind.config.js', // Path to tailwind.config.js if used, e.g. './tailwind.config.js'
|
tailwindConfig: './tailwind.config.js', // Path to tailwind.config.js if used, e.g. './tailwind.config.js'
|
||||||
},
|
},
|
||||||
renderers: [
|
renderers: ['@astrojs/renderer-preact', '@astrojs/renderer-react', '@astrojs/renderer-svelte', '@astrojs/renderer-vue'],
|
||||||
'@astrojs/renderer-preact',
|
|
||||||
'@astrojs/renderer-react',
|
|
||||||
'@astrojs/renderer-svelte',
|
|
||||||
'@astrojs/renderer-vue',
|
|
||||||
]
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
:root {
|
:root {
|
||||||
--font-mono: Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace;
|
--font-mono: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Liberation Mono',
|
||||||
--color-light: #F3F4F6;
|
'Nimbus Mono L', Monaco, 'Courier New', Courier, monospace;
|
||||||
|
--color-light: #f3f4f6;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
:root {
|
:root {
|
||||||
--color-light: #1F2937;
|
--color-light: #1f2937;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,16 +15,16 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { useStore } from 'nanostores/vue'
|
import { useStore } from 'nanostores/vue';
|
||||||
|
|
||||||
import { admins } from '../store/admins.js'
|
import { admins } from '../store/admins.js';
|
||||||
import { counter, increaseCounter, decreaseCounter } from '../store/counter.js'
|
import { counter, increaseCounter, decreaseCounter } from '../store/counter.js';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
setup() {
|
setup() {
|
||||||
const list = useStore(admins)
|
const list = useStore(admins);
|
||||||
const count = useStore(counter)
|
const count = useStore(counter);
|
||||||
return { list, count, increaseCounter, decreaseCounter }
|
return { list, count, increaseCounter, decreaseCounter };
|
||||||
}
|
},
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -11,7 +11,5 @@ export default {
|
||||||
// port: 3000, // The port to run the dev server on.
|
// port: 3000, // The port to run the dev server on.
|
||||||
tailwindConfig: './tailwind.config.js', // Path to tailwind.config.js if used, e.g. './tailwind.config.js'
|
tailwindConfig: './tailwind.config.js', // Path to tailwind.config.js if used, e.g. './tailwind.config.js'
|
||||||
},
|
},
|
||||||
renderers: [
|
renderers: ['@astrojs/renderer-preact'],
|
||||||
'@astrojs/renderer-preact'
|
|
||||||
]
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
export function addAstro(Prism) {
|
export function addAstro(Prism) {
|
||||||
if (Prism.languages.astro) {
|
if (Prism.languages.astro) {
|
||||||
return;
|
return;
|
||||||
|
@ -12,7 +11,6 @@ export function addAstro(Prism) {
|
||||||
console.warn('Prism TypeScript language not loaded, Astro scripts will be treated as JavaScript.');
|
console.warn('Prism TypeScript language not loaded, Astro scripts will be treated as JavaScript.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
let script = Prism.util.clone(Prism.languages[scriptLang]);
|
let script = Prism.util.clone(Prism.languages[scriptLang]);
|
||||||
|
|
||||||
let space = /(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source;
|
let space = /(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source;
|
||||||
|
@ -25,47 +23,59 @@ export function addAstro(Prism) {
|
||||||
*/
|
*/
|
||||||
function re(source, flags) {
|
function re(source, flags) {
|
||||||
source = source
|
source = source
|
||||||
.replace(/<S>/g, function () { return space; })
|
.replace(/<S>/g, function () {
|
||||||
.replace(/<BRACES>/g, function () { return braces; })
|
return space;
|
||||||
.replace(/<SPREAD>/g, function () { return spread; });
|
})
|
||||||
|
.replace(/<BRACES>/g, function () {
|
||||||
|
return braces;
|
||||||
|
})
|
||||||
|
.replace(/<SPREAD>/g, function () {
|
||||||
|
return spread;
|
||||||
|
});
|
||||||
return RegExp(source, flags);
|
return RegExp(source, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
spread = re(spread).source;
|
spread = re(spread).source;
|
||||||
|
|
||||||
|
|
||||||
Prism.languages.astro = Prism.languages.extend('markup', script);
|
Prism.languages.astro = Prism.languages.extend('markup', script);
|
||||||
Prism.languages.astro.tag.pattern = re(
|
Prism.languages.astro.tag.pattern = re(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[^]|[^\\"])*"|'(?:\\[^]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source);
|
||||||
/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[^]|[^\\"])*"|'(?:\\[^]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source
|
|
||||||
);
|
|
||||||
|
|
||||||
Prism.languages.astro.tag.inside['tag'].pattern = /^<\/?[^\s>\/]*/i;
|
Prism.languages.astro.tag.inside['tag'].pattern = /^<\/?[^\s>\/]*/i;
|
||||||
Prism.languages.astro.tag.inside['attr-value'].pattern = /=(?!\{)(?:"(?:\\[^]|[^\\"])*"|'(?:\\[^]|[^\\'])*'|[^\s'">]+)/i;
|
Prism.languages.astro.tag.inside['attr-value'].pattern = /=(?!\{)(?:"(?:\\[^]|[^\\"])*"|'(?:\\[^]|[^\\'])*'|[^\s'">]+)/i;
|
||||||
Prism.languages.astro.tag.inside['tag'].inside['class-name'] = /^[A-Z]\w*(?:\.[A-Z]\w*)*$/;
|
Prism.languages.astro.tag.inside['tag'].inside['class-name'] = /^[A-Z]\w*(?:\.[A-Z]\w*)*$/;
|
||||||
Prism.languages.astro.tag.inside['comment'] = script['comment'];
|
Prism.languages.astro.tag.inside['comment'] = script['comment'];
|
||||||
|
|
||||||
Prism.languages.insertBefore('inside', 'attr-name', {
|
Prism.languages.insertBefore(
|
||||||
'spread': {
|
'inside',
|
||||||
|
'attr-name',
|
||||||
|
{
|
||||||
|
spread: {
|
||||||
pattern: re(/<SPREAD>/.source),
|
pattern: re(/<SPREAD>/.source),
|
||||||
inside: Prism.languages.astro
|
inside: Prism.languages.astro,
|
||||||
}
|
},
|
||||||
}, Prism.languages.astro.tag);
|
},
|
||||||
|
Prism.languages.astro.tag
|
||||||
|
);
|
||||||
|
|
||||||
Prism.languages.insertBefore('inside', 'special-attr', {
|
Prism.languages.insertBefore(
|
||||||
'script': {
|
'inside',
|
||||||
|
'special-attr',
|
||||||
|
{
|
||||||
|
script: {
|
||||||
// Allow for two levels of nesting
|
// Allow for two levels of nesting
|
||||||
pattern: re(/=<BRACES>/.source),
|
pattern: re(/=<BRACES>/.source),
|
||||||
inside: {
|
inside: {
|
||||||
'script-punctuation': {
|
'script-punctuation': {
|
||||||
pattern: /^=(?={)/,
|
pattern: /^=(?={)/,
|
||||||
alias: 'punctuation'
|
alias: 'punctuation',
|
||||||
},
|
},
|
||||||
rest: Prism.languages.astro
|
rest: Prism.languages.astro,
|
||||||
},
|
},
|
||||||
'alias': `language-${scriptLang}`
|
alias: `language-${scriptLang}`,
|
||||||
}
|
},
|
||||||
}, Prism.languages.astro.tag);
|
},
|
||||||
|
Prism.languages.astro.tag
|
||||||
|
);
|
||||||
|
|
||||||
// The following will handle plain text inside tags
|
// The following will handle plain text inside tags
|
||||||
let stringifyToken = function (token) {
|
let stringifyToken = function (token) {
|
||||||
|
@ -110,22 +120,18 @@ export function addAstro(Prism) {
|
||||||
// Opening tag
|
// Opening tag
|
||||||
openedTags.push({
|
openedTags.push({
|
||||||
tagName: stringifyToken(token.content[0].content[1]),
|
tagName: stringifyToken(token.content[0].content[1]),
|
||||||
openedBraces: 0
|
openedBraces: 0,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (openedTags.length > 0 && token.type === 'punctuation' && token.content === '{') {
|
} else if (openedTags.length > 0 && token.type === 'punctuation' && token.content === '{') {
|
||||||
|
|
||||||
// Here we might have entered a Astro context inside a tag
|
// Here we might have entered a Astro context inside a tag
|
||||||
openedTags[openedTags.length - 1].openedBraces++;
|
openedTags[openedTags.length - 1].openedBraces++;
|
||||||
|
|
||||||
} else if (openedTags.length > 0 && openedTags[openedTags.length - 1].openedBraces > 0 && token.type === 'punctuation' && token.content === '}') {
|
} else if (openedTags.length > 0 && openedTags[openedTags.length - 1].openedBraces > 0 && token.type === 'punctuation' && token.content === '}') {
|
||||||
|
|
||||||
// Here we might have left a Astro context inside a tag
|
// Here we might have left a Astro context inside a tag
|
||||||
openedTags[openedTags.length - 1].openedBraces--;
|
openedTags[openedTags.length - 1].openedBraces--;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
notTagNorBrace = true
|
notTagNorBrace = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (notTagNorBrace || typeof token === 'string') {
|
if (notTagNorBrace || typeof token === 'string') {
|
||||||
|
@ -161,5 +167,4 @@ export function addAstro(Prism) {
|
||||||
}
|
}
|
||||||
walkTokens(env.tokens);
|
walkTokens(env.tokens);
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
|
@ -7,14 +7,14 @@ const ci = require('ci-info');
|
||||||
const CI_INTRUCTIONS = {
|
const CI_INTRUCTIONS = {
|
||||||
NETLIFY: 'https://docs.netlify.com/configure-builds/manage-dependencies/#node-js-and-javascript',
|
NETLIFY: 'https://docs.netlify.com/configure-builds/manage-dependencies/#node-js-and-javascript',
|
||||||
GITHUB_ACTIONS: 'https://docs.github.com/en/actions/guides/building-and-testing-nodejs#specifying-the-nodejs-version',
|
GITHUB_ACTIONS: 'https://docs.github.com/en/actions/guides/building-and-testing-nodejs#specifying-the-nodejs-version',
|
||||||
VERCEL: 'https://vercel.com/docs/runtimes#official-runtimes/node-js/node-js-version'
|
VERCEL: 'https://vercel.com/docs/runtimes#official-runtimes/node-js/node-js-version',
|
||||||
}
|
};
|
||||||
|
|
||||||
/** Dynamically import the CLI after checking if this version of Node is supported */
|
/** Dynamically import the CLI after checking if this version of Node is supported */
|
||||||
async function main() {
|
async function main() {
|
||||||
const engines = pkg.engines.node;
|
const engines = pkg.engines.node;
|
||||||
const version = process.versions.node;
|
const version = process.versions.node;
|
||||||
const isSupported = semver.satisfies(version, engines)
|
const isSupported = semver.satisfies(version, engines);
|
||||||
|
|
||||||
if (!isSupported) {
|
if (!isSupported) {
|
||||||
console.error(`\nNode.js v${version} is not supported by Astro!
|
console.error(`\nNode.js v${version} is not supported by Astro!
|
||||||
|
@ -27,7 +27,7 @@ Please upgrade to one of Node.js ${engines}.\n`);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log(`To set the Node.js version for ${ci.name}, reference the official documentation`)
|
console.log(`To set the Node.js version for ${ci.name}, reference the official documentation`);
|
||||||
if (CI_INTRUCTIONS[platform]) console.log(CI_INTRUCTIONS[platform]);
|
if (CI_INTRUCTIONS[platform]) console.log(CI_INTRUCTIONS[platform]);
|
||||||
}
|
}
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
|
|
|
@ -15,22 +15,11 @@ const DEFAULT_HMR_PORT = 12321;
|
||||||
* @type {import('snowpack').SnowpackPluginFactory<PluginOptions>}
|
* @type {import('snowpack').SnowpackPluginFactory<PluginOptions>}
|
||||||
*/
|
*/
|
||||||
module.exports = (snowpackConfig, options = {}) => {
|
module.exports = (snowpackConfig, options = {}) => {
|
||||||
const {
|
const { resolvePackageUrl, astroConfig, configManager, mode } = options;
|
||||||
resolvePackageUrl,
|
|
||||||
astroConfig,
|
|
||||||
configManager,
|
|
||||||
mode
|
|
||||||
} = options;
|
|
||||||
let hmrPort = DEFAULT_HMR_PORT;
|
let hmrPort = DEFAULT_HMR_PORT;
|
||||||
return {
|
return {
|
||||||
name: 'snowpack-astro',
|
name: 'snowpack-astro',
|
||||||
knownEntrypoints: [
|
knownEntrypoints: ['astro/dist/internal/h.js', 'astro/components/Prism.astro', 'shorthash', 'estree-util-value-to-estree', 'astring'],
|
||||||
'astro/dist/internal/h.js',
|
|
||||||
'astro/components/Prism.astro',
|
|
||||||
'shorthash',
|
|
||||||
'estree-util-value-to-estree',
|
|
||||||
'astring'
|
|
||||||
],
|
|
||||||
resolve: {
|
resolve: {
|
||||||
input: ['.astro', '.md'],
|
input: ['.astro', '.md'],
|
||||||
output: ['.js', '.css'],
|
output: ['.js', '.css'],
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
export default {
|
export default {
|
||||||
buildOptions: {
|
buildOptions: {
|
||||||
sitemap: true,
|
sitemap: true,
|
||||||
site: 'https://astro.build/'
|
site: 'https://astro.build/',
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
|
|
|
@ -1,36 +1,34 @@
|
||||||
:root {
|
:root {
|
||||||
--font-fallback: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;
|
--font-fallback: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;
|
||||||
--font-body: "IBM Plex Sans", var(--font-fallback);
|
--font-body: 'IBM Plex Sans', var(--font-fallback);
|
||||||
--font-mono: "IBM Plex Mono", Consolas, "Andale Mono WT", "Andale Mono",
|
--font-mono: 'IBM Plex Mono', Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono',
|
||||||
"Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono",
|
'Liberation Mono', 'Nimbus Mono L', Monaco, 'Courier New', Courier, monospace;
|
||||||
"Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco,
|
|
||||||
"Courier New", Courier, monospace;
|
|
||||||
|
|
||||||
--color-white: #FFF;
|
--color-white: #fff;
|
||||||
--color-black: #000014;
|
--color-black: #000014;
|
||||||
|
|
||||||
--color-gray-50: #F9FAFB;
|
--color-gray-50: #f9fafb;
|
||||||
--color-gray-100: #F3F4F6;
|
--color-gray-100: #f3f4f6;
|
||||||
--color-gray-200: #E5E7EB;
|
--color-gray-200: #e5e7eb;
|
||||||
--color-gray-300: #D1D5DB;
|
--color-gray-300: #d1d5db;
|
||||||
--color-gray-400: #9CA3AF;
|
--color-gray-400: #9ca3af;
|
||||||
--color-gray-500: #6B7280;
|
--color-gray-500: #6b7280;
|
||||||
--color-gray-600: #4B5563;
|
--color-gray-600: #4b5563;
|
||||||
--color-gray-700: #374151;
|
--color-gray-700: #374151;
|
||||||
--color-gray-800: #1F2937;
|
--color-gray-800: #1f2937;
|
||||||
--color-gray-900: #111827;
|
--color-gray-900: #111827;
|
||||||
|
|
||||||
--color-blue: #3894FF;
|
--color-blue: #3894ff;
|
||||||
--color-blue-rgb: 56, 148, 255;
|
--color-blue-rgb: 56, 148, 255;
|
||||||
--color-green: #17C083;
|
--color-green: #17c083;
|
||||||
--color-green-rgb: 23, 192, 131;
|
--color-green-rgb: 23, 192, 131;
|
||||||
--color-orange: #FF5D01;
|
--color-orange: #ff5d01;
|
||||||
--color-orange-rgb: 255, 93, 1;
|
--color-orange-rgb: 255, 93, 1;
|
||||||
--color-purple: #882DE7;
|
--color-purple: #882de7;
|
||||||
--color-purple-rgb: 136, 45, 231;
|
--color-purple-rgb: 136, 45, 231;
|
||||||
--color-red: #FF1639;
|
--color-red: #ff1639;
|
||||||
--color-red-rgb: 255, 22, 57;
|
--color-red-rgb: 255, 22, 57;
|
||||||
--color-yellow: #FFBE2D;
|
--color-yellow: #ffbe2d;
|
||||||
--color-yellow-rgb: 255, 190, 45;
|
--color-yellow-rgb: 255, 190, 45;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -140,30 +138,31 @@ nav ul {
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
font-size: clamp(2.488rem, 1.9240rem + 1.4100vw, 3.052rem);
|
font-size: clamp(2.488rem, 1.924rem + 1.41vw, 3.052rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
font-size: clamp(2.074rem, 1.7070rem + 0.9175vw, 2.441rem);
|
font-size: clamp(2.074rem, 1.707rem + 0.9175vw, 2.441rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
font-size: clamp(1.728rem, 1.5030rem + 0.5625vw, 1.953rem);
|
font-size: clamp(1.728rem, 1.503rem + 0.5625vw, 1.953rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
h4 {
|
h4 {
|
||||||
font-size: clamp(1.44rem, 1.3170rem + 0.3075vw, 1.563rem);
|
font-size: clamp(1.44rem, 1.317rem + 0.3075vw, 1.563rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
h5 {
|
h5 {
|
||||||
font-size: clamp(1.2rem, 1.1500rem + 0.1250vw, 1.25rem);
|
font-size: clamp(1.2rem, 1.15rem + 0.125vw, 1.25rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
color: var(--theme-text-light);
|
color: var(--theme-text-light);
|
||||||
}
|
}
|
||||||
|
|
||||||
small, .text_small {
|
small,
|
||||||
|
.text_small {
|
||||||
font-size: 0.833rem;
|
font-size: 0.833rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -176,14 +175,14 @@ a {
|
||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
a > code:not([class*="language"]) {
|
a > code:not([class*='language']) {
|
||||||
position: relative;
|
position: relative;
|
||||||
color: var(--theme-accent);
|
color: var(--theme-accent);
|
||||||
background: transparent;
|
background: transparent;
|
||||||
text-underline-offset: var(--padding-block);
|
text-underline-offset: var(--padding-block);
|
||||||
}
|
}
|
||||||
|
|
||||||
a > code:not([class*="language"])::before {
|
a > code:not([class*='language'])::before {
|
||||||
content: '';
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
@ -213,13 +212,13 @@ strong {
|
||||||
|
|
||||||
/* Supporting Content */
|
/* Supporting Content */
|
||||||
|
|
||||||
code:not([class*="language"]) {
|
code:not([class*='language']) {
|
||||||
--border-radius: 3px;
|
--border-radius: 3px;
|
||||||
--padding-block: 0.2rem;
|
--padding-block: 0.2rem;
|
||||||
--padding-inline: 0.33rem;
|
--padding-inline: 0.33rem;
|
||||||
|
|
||||||
font-family: var(--font-mono);
|
font-family: var(--font-mono);
|
||||||
font-size: .85em;
|
font-size: 0.85em;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
background-color: var(--theme-code-inline-bg);
|
background-color: var(--theme-code-inline-bg);
|
||||||
padding: var(--padding-block) var(--padding-inline);
|
padding: var(--padding-block) var(--padding-inline);
|
||||||
|
@ -227,7 +226,7 @@ code:not([class*="language"]) {
|
||||||
border-radius: var(--border-radius);
|
border-radius: var(--border-radius);
|
||||||
}
|
}
|
||||||
|
|
||||||
pre > code:not([class*="language"]) {
|
pre > code:not([class*='language']) {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
|
@ -1,9 +1,7 @@
|
||||||
:root {
|
:root {
|
||||||
--font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
--font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
||||||
--font-mono: "IBM Plex Mono", Consolas, "Andale Mono WT", "Andale Mono",
|
--font-mono: 'IBM Plex Mono', Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono',
|
||||||
"Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono",
|
'Liberation Mono', 'Nimbus Mono L', Monaco, 'Courier New', Courier, monospace;
|
||||||
"Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco,
|
|
||||||
"Courier New", Courier, monospace;
|
|
||||||
--color-green: #17c083;
|
--color-green: #17c083;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,16 +17,13 @@ html {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background-color: #000014;
|
background-color: #000014;
|
||||||
}
|
}
|
||||||
html, body {
|
html,
|
||||||
|
body {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
font-size: clamp(14px, calc(1rem + (3vw - 1.2rem)), 20px);
|
font-size: clamp(14px, calc(1rem + (3vw - 1.2rem)), 20px);
|
||||||
font-family: var(--font-sans);
|
font-family: var(--font-sans);
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
background-image: radial-gradient(
|
background-image: radial-gradient(87.7% 87.7% at 85.6% 18.14%, #111827 0%, #000014 100%);
|
||||||
87.7% 87.7% at 85.6% 18.14%,
|
|
||||||
#111827 0%,
|
|
||||||
#000014 100%
|
|
||||||
);
|
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
color: #f3f4f6;
|
color: #f3f4f6;
|
||||||
}
|
}
|
||||||
|
@ -56,7 +51,7 @@ a {
|
||||||
color: var(--color-green);
|
color: var(--color-green);
|
||||||
padding: 0.05em 0.125em;
|
padding: 0.05em 0.125em;
|
||||||
margin: -0.05em -0.125em;
|
margin: -0.05em -0.125em;
|
||||||
transition: color 120ms cubic-bezier(0.23, 1, 0.320, 1);
|
transition: color 120ms cubic-bezier(0.23, 1, 0.32, 1);
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
|
||||||
|
@ -92,8 +87,7 @@ a {
|
||||||
background: var(--color-green);
|
background: var(--color-green);
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
transform: scaleY(0.05);
|
transform: scaleY(0.05);
|
||||||
transition: transform 120ms cubic-bezier(0.23, 1, 0.320, 1),
|
transition: transform 120ms cubic-bezier(0.23, 1, 0.32, 1), background 120ms cubic-bezier(0.23, 1, 0.32, 1);
|
||||||
background 120ms cubic-bezier(0.23, 1, 0.320, 1);
|
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue