fix: fix stylelint warnings

This commit is contained in:
syy11cn 2021-10-29 19:43:00 +08:00
parent ffd5c32f23
commit 8388204813
3 changed files with 3281 additions and 15 deletions

View File

@ -1,19 +1,19 @@
.App { .app {
text-align: center; text-align: center;
} }
.App-logo { .app-logo {
height: 40vmin; height: 40vmin;
pointer-events: none; pointer-events: none;
} }
@media (prefers-reduced-motion: no-preference) { @media (prefers-reduced-motion: no-preference) {
.App-logo { .app-logo {
animation: App-logo-spin infinite 20s linear; animation: app-logo-spin infinite 20s linear;
} }
} }
.App-header { .app-header {
background-color: #282c34; background-color: #282c34;
min-height: 100vh; min-height: 100vh;
display: flex; display: flex;
@ -24,14 +24,15 @@
color: white; color: white;
} }
.App-link { .app-link {
color: #61dafb; color: #61dafb;
} }
@keyframes App-logo-spin { @keyframes app-logo-spin {
from { from {
transform: rotate(0deg); transform: rotate(0deg);
} }
to { to {
transform: rotate(360deg); transform: rotate(360deg);
} }
@ -40,3 +41,7 @@
button { button {
font-size: calc(10px + 2vmin); font-size: calc(10px + 2vmin);
} }
.callout {
color: yellow;
}

View File

@ -7,21 +7,21 @@ const App: React.FC = () => {
const [count, setCount] = useState(0); const [count, setCount] = useState(0);
return ( return (
<div className="App"> <div className="app">
<header className="App-header"> <header className="app-header">
<img src={logo} className="App-logo" alt="logo" /> <img src={logo} className="app-logo" alt="logo" />
<p>Hello Vite + React + Typescript!</p> <p>Hello Vite + React + Typescript!</p>
<p> <p>
<button type="button" onClick={() => setCount((count) => count + 1)}> <button type="button" onClick={() => setCount((count) => count + 1)}>
count is: {count} count is: {count}
</button> </button>
</p> </p>
<p> <p className="callout">
Edit <code>App.jsx</code> and save to test HMR updates. Edit <code>/src/routes/index.ts</code> for routes configuration.
</p> </p>
<p> <p>
<a <a
className="App-link" className="app-link"
href="https://reactjs.org" href="https://reactjs.org"
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"
@ -30,7 +30,7 @@ const App: React.FC = () => {
</a> </a>
{' | '} {' | '}
<a <a
className="App-link" className="app-link"
href="https://vitejs.dev/guide/features.html" href="https://vitejs.dev/guide/features.html"
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"
@ -39,7 +39,7 @@ const App: React.FC = () => {
</a> </a>
{' | '} {' | '}
<a <a
className="App-link" className="app-link"
href="https://github.com/syy11cn/config-router" href="https://github.com/syy11cn/config-router"
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"

3261
yarn-error.log Normal file

File diff suppressed because it is too large Load Diff