Browse Source

feat: 更新评论框样式

node 6 years ago
parent
commit
f896fced76

+ 1
- 1
lib/components/CommentList/index.css View File

@@ -5,7 +5,7 @@
5 5
   background-color: #f8f8f8;
6 6
   cursor: pointer;
7 7
   padding: 10px;
8
-  margin: 40px auto;
8
+  margin: 40px auto 80px auto;
9 9
   transition: all 0.3s;
10 10
 }
11 11
 

+ 10
- 1
src/App.css View File

@@ -2,7 +2,7 @@
2 2
   width: 100%;
3 3
   padding: 10px;
4 4
   margin-bottom: 100px;
5
-  background: rgba(0, 0, 0, 0.59);
5
+  background: rgba(0, 0, 0, 1);
6 6
   color: white;
7 7
 }
8 8
 
@@ -30,3 +30,12 @@
30 30
 .comment-img {
31 31
   max-width: 100%;
32 32
 }
33
+.app-comment {
34
+  position: fixed;
35
+  bottom: 0;
36
+  width: 100%;
37
+  margin: 0;
38
+  padding: 0;
39
+  right: 0;
40
+  left: 0;
41
+}

+ 3
- 1
src/App.js View File

@@ -469,7 +469,9 @@ class App extends Component {
469 469
               </div>
470 470
             )}
471 471
             {this.props.showEditor && (
472
-              <CommentInput content={this.props.children} />
472
+              <div className="app-comment">
473
+                <CommentInput content={this.props.children} />
474
+              </div>
473 475
             )}
474 476
           </div>
475 477
         </CommentContext.Provider>

BIN
src/assets/img.png View File


+ 1
- 1
src/components/CommentBox/index.css View File

@@ -1,5 +1,5 @@
1 1
 .comment-show-more {
2
-  color: #4a90e2;
2
+  color: #d5d5d5;
3 3
   text-align: center;
4 4
   width: 100px;
5 5
   /* background-color: #f8f8f8; */

+ 2
- 2
src/components/CommentBox/index.js View File

@@ -114,7 +114,7 @@ class CommentBox extends Component {
114 114
         <div
115 115
           style={{
116 116
             marginLeft: 50,
117
-            borderTop: "1px solid #e3e3e3",
117
+            borderTop: "1px solid #929292",
118 118
             paddingTop: 15,
119 119
             marginTop: 10,
120 120
             overflow: "auto"
@@ -140,7 +140,7 @@ class CommentBox extends Component {
140 140
                     </span>
141 141
                   )}
142 142
                   <a
143
-                    style={{ float: "right" }}
143
+                    style={{ float: "right", color: "#d5d5d5" }}
144 144
                     onClick={this.handleToggleReply}
145 145
                   >
146 146
                     <Icon type="up" /> 收起

+ 1
- 1
src/components/CommentList/index.css View File

@@ -5,7 +5,7 @@
5 5
   background-color: #f8f8f8;
6 6
   cursor: pointer;
7 7
   padding: 10px;
8
-  margin: 40px auto;
8
+  margin: 40px auto 80px auto;
9 9
   transition: all 0.3s;
10 10
 }
11 11
 

+ 2
- 1
src/components/ContentItem/index.css View File

@@ -1,7 +1,7 @@
1 1
 .comment-item-box {
2 2
   margin: 10px 0 0 0;
3 3
   padding: 15px 5px 0 5px;
4
-  border-top: 1px solid #d5d5d5;
4
+  border-top: 1px solid #929292;
5 5
 }
6 6
 
7 7
 .comment-item-left {
@@ -30,6 +30,7 @@
30 30
 .comment-item-bottom-left {
31 31
   float: left;
32 32
   user-select: none;
33
+  color: #d5d5d5;
33 34
 }
34 35
 
35 36
 .comment-item-bottom-right {