Skip to content

Commit 54a41cb

Browse files
committed
remove unnecessary styles and update readme;
1 parent 27aef0e commit 54a41cb

File tree

4 files changed

+3
-113
lines changed

4 files changed

+3
-113
lines changed

1.hello-world/13.read-video-react-hooks/README.md

Lines changed: 1 addition & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,6 @@ export default ImgDecode;
238238
display: flex;
239239
justify-content: center;
240240
align-items: center;
241-
width: 100%;
242-
height: 90%;
243241
border: 1px solid black
244242
}
245243
```
@@ -284,7 +282,7 @@ function HelloWorld() {
284282
Hello World for React
285283
<img src={reactLogo} className="App-logo" alt="logo" />
286284
</h1>
287-
<div className="btn-group">
285+
<div>
288286
<button
289287
style={{
290288
marginRight: "10px",
@@ -329,7 +327,6 @@ export default HelloWorld;
329327
flex-direction: column;
330328
align-items: center;
331329
justify-content: center;
332-
overflow: hidden;
333330
width: 100%;
334331
height: 100%;
335332
color: #455A64;
@@ -347,62 +344,10 @@ button {
347344
color: black;
348345
}
349346

350-
span {
351-
font-size: 0.8rem;
352-
}
353-
354-
.latest-result {
355-
display: block;
356-
margin: 0;
357-
padding: 0.4rem 0.8rem;
358-
color: inherit;
359-
width: 80vw;
360-
border: none;
361-
font-size: 1rem;
362-
border-radius: 0.2rem;
363-
text-align: center;
364-
}
365-
366-
.latest-result::placeholder {
367-
color: #B0BEC5;
368-
}
369-
370-
.latest-result:focus {
371-
outline: none;
372-
box-shadow: 0.1rem 0.4rem 0.8rem #fe8e14;
373-
}
374-
375-
#results {
376-
border: 1px dashed grey;
377-
overflow: auto;
378-
width: 80vw;
379-
padding: 2vmin;
380-
margin-bottom: 3vh;
381-
height: 15vh;
382-
}
383-
384-
#results ul {
385-
padding: 0;
386-
margin: 0;
387-
list-style: none;
388-
text-align: left;
389-
font-size: 0.8rem;
390-
}
391-
392-
.resultText {
393-
color: #cE5E04
394-
}
395-
396-
.bigger {
397-
font-size: large;
398-
margin-bottom: 2%;
399-
}
400-
401347
.container {
402348
margin: 2vmin auto;
403349
text-align: center;
404350
font-size: medium;
405-
/* height: 40vh; */
406351
width: 80vw;
407352
}
408353
```

1.hello-world/13.read-video-react-hooks/src/components/HelloWorld/HelloWorld.css

Lines changed: 1 addition & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
flex-direction: column;
44
align-items: center;
55
justify-content: center;
6-
overflow: hidden;
76
width: 100%;
87
height: 100%;
98
color: #455A64;
@@ -21,61 +20,9 @@ button {
2120
color: black;
2221
}
2322

24-
span {
25-
font-size: 0.8rem;
26-
}
27-
28-
.latest-result {
29-
display: block;
30-
margin: 0;
31-
padding: 0.4rem 0.8rem;
32-
color: inherit;
33-
width: 80vw;
34-
border: none;
35-
font-size: 1rem;
36-
border-radius: 0.2rem;
37-
text-align: center;
38-
}
39-
40-
.latest-result::placeholder {
41-
color: #B0BEC5;
42-
}
43-
44-
.latest-result:focus {
45-
outline: none;
46-
box-shadow: 0.1rem 0.4rem 0.8rem #fe8e14;
47-
}
48-
49-
#results {
50-
border: 1px dashed grey;
51-
overflow: auto;
52-
width: 80vw;
53-
padding: 2vmin;
54-
margin-bottom: 3vh;
55-
height: 15vh;
56-
}
57-
58-
#results ul {
59-
padding: 0;
60-
margin: 0;
61-
list-style: none;
62-
text-align: left;
63-
font-size: 0.8rem;
64-
}
65-
66-
.resultText {
67-
color: #cE5E04
68-
}
69-
70-
.bigger {
71-
font-size: large;
72-
margin-bottom: 2%;
73-
}
74-
7523
.container {
7624
margin: 2vmin auto;
7725
text-align: center;
7826
font-size: medium;
79-
/* height: 40vh; */
8027
width: 80vw;
81-
}
28+
}

1.hello-world/13.read-video-react-hooks/src/components/HelloWorld/HelloWorld.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function HelloWorld() {
3131
Hello World for React
3232
<img src={reactLogo} className="App-logo" alt="logo" />
3333
</h1>
34-
<div className="btn-group">
34+
<div>
3535
<button
3636
style={{
3737
marginRight: "10px",

1.hello-world/13.read-video-react-hooks/src/components/ImgDecode/ImgDecode.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,5 @@
22
display: flex;
33
justify-content: center;
44
align-items: center;
5-
width: 100%;
6-
height: 90%;
75
border: 1px solid black
86
}

0 commit comments

Comments
 (0)