From adeb01043089173f9408993fd295546d2741caca Mon Sep 17 00:00:00 2001 From: Piotr Rogowski Date: Sat, 5 Nov 2022 17:48:29 +0100 Subject: [PATCH] Set up formatters --- .vscode/settings.json | 39 +++++++++++++++++-------------- index.html | 51 ++++++++++++++++++++++------------------- src/css/animations.less | 13 +++++++++-- src/css/overrides.less | 10 +++----- 4 files changed, 64 insertions(+), 49 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index ea0a8b3..0f9267d 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,19 +1,24 @@ { - "typescript.tsdk": "node_modules/typescript/lib", - "[typescriptreact]": { - "editor.codeActionsOnSave": { - "source.fixAll.eslint": true - }, - "editor.formatOnSave": true - }, - "cSpell.words": [ - "hypertuner", - "kbar", - "pocketbase", - "prefs", - "rusefi", - "typegen", - "vite", - "vitejs" - ] + "typescript.tsdk": "node_modules/typescript/lib", + "editor.codeActionsOnSave": { + "source.fixAll.eslint": true + }, + "editor.formatOnSave": true, + "editor.defaultFormatter": "dbaeumer.vscode-eslint", + "cSpell.words": [ + "hypertuner", + "kbar", + "pocketbase", + "prefs", + "rusefi", + "typegen", + "vite", + "vitejs" + ], + "[jsonc]": { + "editor.defaultFormatter": "vscode.json-language-features" + }, + "[less]": { + "editor.defaultFormatter": "vscode.css-language-features" + } } diff --git a/index.html b/index.html index fab605f..64d73c0 100644 --- a/index.html +++ b/index.html @@ -1,30 +1,35 @@ - - - - - - - - <%- metaTitle %> + + + + + + - - - - - + + + <%- metaTitle %> + - - + + + + + + + + + + + + + + +
+ + + - - - - -
- - - diff --git a/src/css/animations.less b/src/css/animations.less index daeb7df..b1a27d8 100644 --- a/src/css/animations.less +++ b/src/css/animations.less @@ -1,23 +1,32 @@ @keyframes wiggle { - 0%, 7% { + + 0%, + 7% { transform: rotateZ(0); } + 15% { transform: rotateZ(-15deg); } + 20% { transform: rotateZ(10deg); } + 25% { transform: rotateZ(-10deg); } + 30% { transform: rotateZ(6deg); } + 35% { transform: rotateZ(-4deg); } - 40%, 100% { + + 40%, + 100% { transform: rotateZ(0); } } diff --git a/src/css/overrides.less b/src/css/overrides.less index cf7f792..477e460 100644 --- a/src/css/overrides.less +++ b/src/css/overrides.less @@ -1,10 +1,6 @@ // ant design -.ant-upload-list-picture-card -.ant-upload-list-item-actions -.anticon-delete, -.ant-upload-list-picture-card -.ant-upload-list-item-actions -.anticon-eye { +.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-delete, +.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-eye { color: @text; } @@ -17,7 +13,7 @@ --shadow: @shadow-2; } -reach-portal > div { +reach-portal>div { z-index: 1; backdrop-filter: blur(3px); }