Skip to content

Commit 9a9576c

Browse files
committed
remove unnecessary styles and update readme;
1 parent 5fbe933 commit 9a9576c

File tree

4 files changed

+3
-113
lines changed

4 files changed

+3
-113
lines changed

1.hello-world/4.read-video-react/README.md

Lines changed: 1 addition & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,6 @@ export default class ImgDecode extends Component {
204204
display: flex;
205205
justify-content: center;
206206
align-items: center;
207-
width: 100%;
208-
height: 90%;
209207
border: 1px solid black
210208
}
211209
```
@@ -267,7 +265,7 @@ class HelloWorld extends React.Component<any, isState> {
267265
return (
268266
<div className="helloWorld">
269267
<h1>Hello World for React<img src={reactLogo} className="App-logo" alt="logo" /></h1>
270-
<div className="btn-group">
268+
<div>
271269
<button style={{ marginRight: '10px', backgroundColor: this.state.bShowScanner ? 'rgb(255,174,55)' : 'white' }} onClick={this.showScanner}>Video Decode</button>
272270
<button style={{ backgroundColor: this.state.bShowImgDecode ? 'rgb(255,174,55)' : 'white' }} onClick={this.showImgDecode}>Image Decode</button>
273271
</div>
@@ -294,7 +292,6 @@ export default HelloWorld;
294292
flex-direction: column;
295293
align-items: center;
296294
justify-content: center;
297-
overflow: hidden;
298295
width: 100%;
299296
height: 100%;
300297
color: #455A64;
@@ -312,62 +309,10 @@ button {
312309
color: black;
313310
}
314311

315-
span {
316-
font-size: 0.8rem;
317-
}
318-
319-
.latest-result {
320-
display: block;
321-
margin: 0;
322-
padding: 0.4rem 0.8rem;
323-
color: inherit;
324-
width: 80vw;
325-
border: none;
326-
font-size: 1rem;
327-
border-radius: 0.2rem;
328-
text-align: center;
329-
}
330-
331-
.latest-result::placeholder {
332-
color: #B0BEC5;
333-
}
334-
335-
.latest-result:focus {
336-
outline: none;
337-
box-shadow: 0.1rem 0.4rem 0.8rem #fe8e14;
338-
}
339-
340-
#results {
341-
border: 1px dashed grey;
342-
overflow: auto;
343-
width: 80vw;
344-
padding: 2vmin;
345-
margin-bottom: 3vh;
346-
height: 15vh;
347-
}
348-
349-
#results ul {
350-
padding: 0;
351-
margin: 0;
352-
list-style: none;
353-
text-align: left;
354-
font-size: 0.8rem;
355-
}
356-
357-
.resultText {
358-
color: #cE5E04
359-
}
360-
361-
.bigger {
362-
font-size: large;
363-
margin-bottom: 2%;
364-
}
365-
366312
.container {
367313
margin: 2vmin auto;
368314
text-align: center;
369315
font-size: medium;
370-
/* height: 40vh; */
371316
width: 80vw;
372317
}
373318
```

1.hello-world/4.read-video-react/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/4.read-video-react/src/components/HelloWorld/HelloWorld.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class HelloWorld extends React.Component<any, isState> {
4848
return (
4949
<div className="helloWorld">
5050
<h1>Hello World for React<img src={reactLogo} className="App-logo" alt="logo" /></h1>
51-
<div className="btn-group">
51+
<div>
5252
<button style={{ marginRight: '10px', backgroundColor: this.state.bShowScanner ? 'rgb(255,174,55)' : 'white' }} onClick={this.showScanner}>Video Decode</button>
5353
<button style={{ backgroundColor: this.state.bShowImgDecode ? 'rgb(255,174,55)' : 'white' }} onClick={this.showImgDecode}>Image Decode</button>
5454
</div>

1.hello-world/4.read-video-react/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)