diff --git a/.gitignore b/.gitignore index fd2e1b3b6..453a38177 100644 --- a/.gitignore +++ b/.gitignore @@ -38,3 +38,5 @@ tmp .codex # Local environment overrides (license keys, secrets) /.env +.superpowers/ +docs/superpowers/ diff --git a/src/css/import/_migrate.scss b/src/css/import/_migrate.scss index d459fa003..d80360d20 100644 --- a/src/css/import/_migrate.scss +++ b/src/css/import/_migrate.scss @@ -1,6 +1,6 @@ .importer-selector-card { - h3 { + h2 { margin: 0 0 1em; } diff --git a/src/css/import/_upload.scss b/src/css/import/_upload.scss index 4c90abb32..37c9ff4eb 100644 --- a/src/css/import/_upload.scss +++ b/src/css/import/_upload.scss @@ -5,7 +5,7 @@ $type-colors: ( ); .import-upload-card { - h3 { + h2 { margin: 0 0 1em; } @@ -105,7 +105,7 @@ $type-colors: ( .selected-files { margin-block-end: 20px; - h4 { + h3 { margin: 0 0 12px; font-size: 14px; font-weight: 600; @@ -162,7 +162,7 @@ $type-colors: ( } .duplicate-action-selector-card { - h3 { + h2 { margin: 0 0 1em; } @@ -199,7 +199,7 @@ $type-colors: ( flex: 1; } - h4 { + h2 { margin: 0 0 8px; font-size: 16px; font-weight: 600 @@ -220,10 +220,10 @@ $type-colors: ( } } - p.import-result-warnings { + .import-result-warnings { margin-block-start: 12px; - h4 { + h3 { margin: 0 0 8px; font-size: 14px; color: #d63638; @@ -280,7 +280,7 @@ $type-colors: ( align-items: center; margin-block-end: 10px; - h4 { + h2 { margin: 0; } diff --git a/src/css/welcome.scss b/src/css/welcome.scss index d15e7c3f8..591d3a6e8 100644 --- a/src/css/welcome.scss +++ b/src/css/welcome.scss @@ -7,7 +7,7 @@ $breakpoint: 1060px; .code-snippets-welcome { - h2 { + h1 { font-size: 32px; font-weight: 510; line-height: 1.25; @@ -38,7 +38,7 @@ $breakpoint: 1060px; padding-block-end: 20px; } - h3 { + h2 { font-size: 18px; margin: 0; } diff --git a/src/js/components/EditMenu/SnippetForm/fields/TagsEditor.tsx b/src/js/components/EditMenu/SnippetForm/fields/TagsEditor.tsx index 33c881618..b5ec99310 100644 --- a/src/js/components/EditMenu/SnippetForm/fields/TagsEditor.tsx +++ b/src/js/components/EditMenu/SnippetForm/fields/TagsEditor.tsx @@ -10,9 +10,9 @@ export const TagsEditor: React.FC = () => { return options?.enabled ?
{__('What should happen if an existing snippet is found with an identical name to an imported snippet?', 'code-snippets')}
diff --git a/src/js/components/ImportMenu/UploadForm/SelectFiles/SelectFiles.tsx b/src/js/components/ImportMenu/UploadForm/SelectFiles/SelectFiles.tsx
index 8ad466d86..551a518e9 100644
--- a/src/js/components/ImportMenu/UploadForm/SelectFiles/SelectFiles.tsx
+++ b/src/js/components/ImportMenu/UploadForm/SelectFiles/SelectFiles.tsx
@@ -57,7 +57,7 @@ export const SelectFiles: React.FC
{__('Choose one or more Code Snippets (.xml or .json) files to parse and preview.', 'code-snippets')}
{message} {__('Select the snippets you would like to import.', 'code-snippets')}{__('Choose files', 'code-snippets')}
+ {__('Choose files', 'code-snippets')}
+
+
{sprintf(
// translators: %d: number of selected files.
__('Selected files: (%d)', 'code-snippets'),
files.length
)}
-
+
+
{'upload' === step && (success
? __('File upload successful', 'code-snippets')
: __('File upload error', 'code-snippets'))}
@@ -35,7 +35,7 @@ export const ImportResultDisplay: React.FC
{__('Warnings:', 'code-snippets')}
+ {__('Warnings:', 'code-snippets')}
{warnings.map(warning =>
diff --git a/src/js/components/ImportMenu/UploadForm/SelectSnippets/SelectSnippets.tsx b/src/js/components/ImportMenu/UploadForm/SelectSnippets/SelectSnippets.tsx
index 008329b66..d9becf264 100644
--- a/src/js/components/ImportMenu/UploadForm/SelectSnippets/SelectSnippets.tsx
+++ b/src/js/components/ImportMenu/UploadForm/SelectSnippets/SelectSnippets.tsx
@@ -67,11 +67,11 @@ const SelectSnippetsForm: React.FC{sprintf(
+
+ )}
{sprintf(
// translators: %d: number of available snippets.
__('Available snippets (%d)', 'code-snippets'),
availableSnippets.length
- )}
{__('Featured Snippets', 'code-snippets')}
- : {__('Search Results', 'code-snippets')}
}
+ ? {__('Featured Snippets', 'code-snippets')}
+ : {__('Search Results', 'code-snippets')}
}