Skip to content

Commit

Permalink
[ci] yarn format
Browse files Browse the repository at this point in the history
  • Loading branch information
FredKSchott authored and actions-user committed Jul 20, 2021
1 parent 07e5334 commit 50f82e1
Show file tree
Hide file tree
Showing 46 changed files with 662 additions and 628 deletions.
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/---01-bug-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ body:
value: |
## Quick Checklist
Thank you for taking the time to file a bug report! Please fill out this form as completely as possible.
✅ I am using the **latest version of Astro** and all plugins.
✅ I am using a version of Node that supports ESM (`v12.20.0+`, `v14.13.1+`, or `v16.0.0+`)
- type: input
Expand Down Expand Up @@ -45,5 +45,5 @@ body:
- type: input
attributes:
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'
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/---02-feature-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ body:
- type: checkboxes
attributes:
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:
- 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.
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ contact_links:
about: Our Discord server is active, come join us!
- name: 💁 Support
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!'
12 changes: 6 additions & 6 deletions docs/.prettierrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"singleQuote": true,
"tabWidth": 2,
"endOfLine": "auto",
"trailingComma": "es5",
"printWidth": 80
}
"singleQuote": true,
"tabWidth": 2,
"endOfLine": "auto",
"trailingComma": "es5",
"printWidth": 80
}
44 changes: 21 additions & 23 deletions docs/public/code.css
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
.language-css > code,
.language-sass > code,
.language-scss > code {
color: #fd9170;
color: #fd9170;
}

[class*="language-"] .namespace {
opacity: 0.7;
[class*='language-'] .namespace {
opacity: 0.7;
}

.token.plain-text,
[class*="language-bash"] span.token,
[class*="language-shell"] span.token {
color: var(--color-gray-200);
[class*='language-bash'] span.token,
[class*='language-shell'] span.token {
color: var(--color-gray-200);
}

[class*="language-bash"] span.token,
[class*="language-shell"] span.token {
font-style: bold;
[class*='language-bash'] span.token,
[class*='language-shell'] span.token {
font-style: bold;
}

.token.prolog,
.token.comment,
[class*="language-bash"] span.token.comment,
[class*="language-shell"] span.token.comment {
[class*='language-bash'] span.token.comment,
[class*='language-shell'] span.token.comment {
color: var(--color-gray-400);
}

Expand All @@ -33,7 +33,7 @@
.token.variable,
.token.entity,
.token.deleted {
color: #FA5E5B;
color: #fa5e5b;
}

.token.boolean,
Expand All @@ -46,7 +46,7 @@
.token.hexcode,
.token.class-name,
.token.attr-name {
color: var(--color-yellow);
color: var(--color-yellow);
}

.token.atrule,
Expand All @@ -56,43 +56,41 @@
.token.pseudo-class,
.token.pseudo-element,
.token.string {
color: var(--color-green);
color: var(--color-green);
}

.token.symbol,
.token.function,
.token.id,
.token.important
{
color: var(--color-blue);
.token.important {
color: var(--color-blue);
}

.token.important,
.token.id {
font-weight: bold;
}


.token.cdata,
.token.char,
.token.property {
color: #23B1AF;
color: #23b1af;
}

.token.inserted {
color: var(--color-green);
color: var(--color-green);
}

.token.keyword {
color: #FF657C;
color: #ff657c;
font-style: italic;
}

.token.operator {
color: var(--color-gray-300);
color: var(--color-gray-300);
}

.token.attr-value .token.attr-equals,
.token.punctuation {
color: var(--color-gray-200);
color: var(--color-gray-200);
}
15 changes: 12 additions & 3 deletions docs/public/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
--font-fallback: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial,
sans-serif, Apple Color Emoji, Segoe UI Emoji;
--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-black: #000014;
Expand Down Expand Up @@ -56,7 +59,10 @@
--theme-navbar-height: 3.5rem;
--theme-sidebar-offset: var(--theme-navbar-height);
--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 {
Expand Down Expand Up @@ -87,7 +93,10 @@ body {
--theme-code-text: var(--color-white);
--theme-navbar-bg: var(--color-gray-900);
--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 {
Expand Down
2 changes: 1 addition & 1 deletion docs/snowpack.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ export default {
},
plugins: ['@snowpack/plugin-dotenv'],
workspaceRoot: '../',
};
};
6 changes: 2 additions & 4 deletions examples/blog-multiple-authors/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@ export default {
// public: './public', // A folder of static files Astro will copy to the root. Useful for favicons, images, and other files that don’t need processing.
buildOptions: {
// site: 'http:https://example.com', // Your public domain, e.g.: https://my-site.dev/. Used to generate sitemaps and canonical URLs.
sitemap: true, // Generate sitemap (set to "false" to disable)
sitemap: true, // Generate sitemap (set to "false" to disable)
},
devOptions: {
// port: 3000, // The port to run the dev server on.
// tailwindConfig: '', // Path to tailwind.config.js if used, e.g. './tailwind.config.js'
},
renderers: [
'@astrojs/renderer-preact'
]
renderers: ['@astrojs/renderer-preact'],
};
6 changes: 2 additions & 4 deletions examples/blog/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@ export default {
// public: './public', // A folder of static files Astro will copy to the root. Useful for favicons, images, and other files that don’t need processing.
buildOptions: {
// site: 'http:https://example.com', // Your public domain, e.g.: https://my-site.dev/. Used to generate sitemaps and canonical URLs.
sitemap: true, // Generate sitemap (set to "false" to disable)
sitemap: true, // Generate sitemap (set to "false" to disable)
},
devOptions: {
// port: 3000, // The port to run the dev server on.
// tailwindConfig: '', // Path to tailwind.config.js if used, e.g. './tailwind.config.js'
},
renderers: [
'@astrojs/renderer-preact'
]
renderers: ['@astrojs/renderer-preact'],
};
79 changes: 39 additions & 40 deletions examples/blog/public/blog.scss
Original file line number Diff line number Diff line change
@@ -1,37 +1,35 @@
:root {
--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-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;
--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-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-black: #000014;

--color-gray-50: #F9FAFB;
--color-gray-100: #F3F4F6;
--color-gray-200: #E5E7EB;
--color-gray-300: #D1D5DB;
--color-gray-400: #9CA3AF;
--color-gray-500: #6B7280;
--color-gray-600: #4B5563;
--color-gray-50: #f9fafb;
--color-gray-100: #f3f4f6;
--color-gray-200: #e5e7eb;
--color-gray-300: #d1d5db;
--color-gray-400: #9ca3af;
--color-gray-500: #6b7280;
--color-gray-600: #4b5563;
--color-gray-700: #374151;
--color-gray-800: #1F2937;
--color-gray-800: #1f2937;
--color-gray-900: #111827;

--color-blue: #3894FF;
--color-blue-rgb: 56,148,255;
--color-green: #17C083;
--color-green-rgb: 23,192,131;
--color-orange: #FF5D01;
--color-orange-rgb: 255,93,1;
--color-purple: #882DE7;
--color-purple-rgb: 136,45,231;
--color-red: #FF1639;
--color-red-rgb: 255,22,57;
--color-yellow: #FFBE2D;
--color-yellow-rgb: 255,190,45;
--color-blue: #3894ff;
--color-blue-rgb: 56, 148, 255;
--color-green: #17c083;
--color-green-rgb: 23, 192, 131;
--color-orange: #ff5d01;
--color-orange-rgb: 255, 93, 1;
--color-purple: #882de7;
--color-purple-rgb: 136, 45, 231;
--color-red: #ff1639;
--color-red-rgb: 255, 22, 57;
--color-yellow: #ffbe2d;
--color-yellow-rgb: 255, 190, 45;
}

:root {
Expand Down Expand Up @@ -140,30 +138,31 @@ nav ul {
}

h1 {
font-size: clamp(2.488rem, 1.9240rem + 1.4100vw, 3.052rem);
font-size: clamp(2.488rem, 1.924rem + 1.41vw, 3.052rem);
}

h2 {
font-size: clamp(2.074rem, 1.7070rem + 0.9175vw, 2.441rem);
font-size: clamp(2.074rem, 1.707rem + 0.9175vw, 2.441rem);
}

h3 {
font-size: clamp(1.728rem, 1.5030rem + 0.5625vw, 1.953rem);
font-size: clamp(1.728rem, 1.503rem + 0.5625vw, 1.953rem);
}

h4 {
font-size: clamp(1.44rem, 1.3170rem + 0.3075vw, 1.563rem);
font-size: clamp(1.44rem, 1.317rem + 0.3075vw, 1.563rem);
}

h5 {
font-size: clamp(1.2rem, 1.1500rem + 0.1250vw, 1.25rem);
font-size: clamp(1.2rem, 1.15rem + 0.125vw, 1.25rem);
}

p {
color: var(--theme-text-light);
}

small, .text_small {
small,
.text_small {
font-size: 0.833rem;
}

Expand All @@ -176,14 +175,14 @@ a {
gap: 0.5rem;
}

a > code:not([class*="language"]) {
a > code:not([class*='language']) {
position: relative;
color: var(--theme-accent);
background: transparent;
text-underline-offset: var(--padding-block);
}

a > code:not([class*="language"])::before {
a > code:not([class*='language'])::before {
content: '';
position: absolute;
top: 0;
Expand Down Expand Up @@ -213,21 +212,21 @@ strong {

/* Supporting Content */

code:not([class*="language"]) {
code:not([class*='language']) {
--border-radius: 3px;
--padding-block: 0.2rem;
--padding-inline: 0.33rem;

font-family: var(--font-mono);
font-size: .85em;
font-size: 0.85em;
color: inherit;
background-color: var(--theme-code-inline-bg);
padding: var(--padding-block) var(--padding-inline);
margin: calc(var(--padding-block) * -1) -0.125em;
border-radius: var(--border-radius);
}

pre > code:not([class*="language"]) {
pre > code:not([class*='language']) {
background-color: transparent;
padding: 0;
margin: 0;
Expand All @@ -245,7 +244,7 @@ pre {
padding-right: calc(var(--padding-inline) * 2);
margin-left: calc(50vw - var(--padding-inline));
transform: translateX(-50vw);

line-height: 1.414;
width: calc(100vw + (var(--padding-inline) * 2));
max-width: calc(100% + (var(--padding-inline) * 2));
Expand Down
Loading

2 comments on commit 50f82e1

@vercel
Copy link

@vercel vercel bot commented on 50f82e1 Jul 20, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 50f82e1 Jul 20, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.