1 Star 3 Fork 2

HenryHE/React-comment-app

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
index.css 2.09 KB
一键复制 编辑 原始数据 按行查看 历史
HenryHE 提交于 2017-11-11 19:26 . comment v2 : add comment management
body {
margin: 0;
padding: 0;
font-family: sans-serif;
}
/** comment-app style */
body {
margin: 0;
padding: 0;
font-family: sans-serif;
background-color: #fbfbfb;
}
.wrapper {
width: 500px;
margin: 80px auto;
font-size: 14px;
background-color: #fff;
border: 1px solid #f1f1f1;
padding: 20px;
}
/* 评论框样式 */
.comment-input {
background-color: #fff;
border: 1px solid #f1f1f1;
padding: 20px;
margin-bottom: 10px;
}
.comment-field {
margin-bottom: 15px;
display: flex;
}
.comment-field .comment-field-name {
display: flex;
flex-basis: 100px;
font-size: 14px;
}
.comment-field .comment-field-input {
display: flex;
flex: 1;
}
.comment-field-input input,
.comment-field-input textarea {
border: 1px solid #e6e6e6;
border-radius: 3px;
padding: 5px;
outline: none;
font-size: 14px;
resize: none;
flex: 1;
}
.comment-field-input textarea {
height: 100px;
}
.comment-field-button {
display: flex;
justify-content: flex-end;
}
.comment-field-button button {
padding: 5px 10px;
width: 80px;
border: none;
border-radius: 3px;
background-color: #00a3cf;
color: #fff;
outline: none;
cursor: pointer;
}
.comment-field-button button:active {
background: #13c1f1;
}
/* 评论列表样式 */
.comment-list {
background-color: #fff;
border: 1px solid #f1f1f1;
padding: 20px;
}
/* 评论组件样式 */
.comment {
display: flex;
border-bottom: 1px solid #f1f1f1;
margin-bottom: 10px;
padding-bottom: 10px;
min-height: 50px;
position: relative;
}
.comment .comment-user {
flex-shrink: 0;
}
.comment span {
color: #00a3cf;
font-style: italic;
}
.comment span.comment-createtime {
font-size: small;
margin-top: 40px;
margin-left: 250px;
color: black;
font-style: normal;
position: absolute;
right: 0;
bottom: 0;
padding: 5px;
}
.comment:hover span.comment-delete {
color: #00a3cf;
}
.comment span.comment-delete {
font-size: small;
position: absolute;
top: 0;
right: 0;
padding: 5px;
font-style: normal;
color: transparent;
cursor: pointer;
}
.comment p {
margin: 0;
text-indent: 5px;
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/hongwing/React-comment-app.git
git@gitee.com:hongwing/React-comment-app.git
hongwing
React-comment-app
React-comment-app
master

搜索帮助