mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-01 12:42:50 +08:00
Simplify boilerplate css
This commit is contained in:
16
src/App.css
16
src/App.css
@@ -1,7 +1,5 @@
|
||||
.App {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100vh;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.App-logo {
|
||||
@@ -10,20 +8,14 @@
|
||||
}
|
||||
|
||||
.App-header {
|
||||
align-items: center;
|
||||
background-color: #222;
|
||||
color: #fff;
|
||||
display: flex;
|
||||
flex: 1;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
height: 150px;
|
||||
padding: 20px;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.App-intro {
|
||||
flex: 7;
|
||||
font-size: large;
|
||||
padding: 50px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
|
||||
@@ -7,7 +7,7 @@ export default function App() {
|
||||
<div className="App">
|
||||
<div className="App-header">
|
||||
<img src={logo} className="App-logo" alt="logo" />
|
||||
<h2>Welcome to React.</h2>
|
||||
<h2>Welcome to React</h2>
|
||||
</div>
|
||||
<p className="App-intro">
|
||||
To get started, edit <code>src/App.js</code> and save to reload.
|
||||
|
||||
Reference in New Issue
Block a user