html - 博客评论小部件的 CSS 帮助

标签 html css comments blogger

我已经更改了我的 Blogger 评论小部件上字体的 CSS,但它仍然停留在我页面的 Arial 上。我已确保在我的模板中安装相应的 Google API 字体,但它似乎只适用于我的常规帖子的评论。这就是我的常规帖子评论的样子:http://thereadinggrotto.blogspot.sg/2014/06/first-post.html?showComment=1403768355383#c2121347278617355835

这是评论在我的页面上的样子:http://thereadinggrotto.blogspot.sg/p/about-mermaid.html?showComment=1403769230075

这是我博客模板中评论的 CSS:

/* =============================
Comment
============================= */
.comments .comments-content {
  font:normal 13px Cabin, sans-serif;
  text-align:left;
  line-height:1.4em;
  margin-bottom:16px;
  color:#305e58;
}
.comments .comments-content .user {
  font:Cabin, sans-serif;
  font-style:normal;
  font-weight:normal;
  text-transform:uppercase;
  color:#305e58;
}
.comments .comments-content .datetime {
  margin-left:10px;
  font:normal 11px Cabin, sans-serif;
  color:#305e58;
}
.comment-replies{
  background:#d3ebe1;
  box-shadow:inset 0 0 0 1px #d3ebe1;
  border-radius:3px;
}
.comments .comment .comment-actions a {
  background:#edf7f2;
  color:#8ba69b;
  padding:2px 5px;
  margin-right:10px;
  font:10px Cabin, sans-serif;
  border-radius:3px;
  -moz-border-radius:3px;
  -webkit-border-radius:3px;
  transition:.2s linear;
  -moz-transition:.2s linear;
  -webkit-transition:.2s linear;
}
.comments .comment .comment-actions a:hover {
  background:#d6f1ec;
  text-decoration:none;
  transition:.2s linear;
  -moz-transition:.2s linear;
  -webkit-transition:.2s linear;
}
.comments .avatar-image-container {
  border-radius:3px;
}  
.comments .thread-toggle a {
  color:#8ba69b;
}
.comments .thread-toggle a:hover {
  padding-left:10px;
  color:#305e58;
  text-decoration:none;
}
.comments .thread-toggle a:hover, .comments .thread-toggle a {
  transition:.2s linear;
  -moz-transition:.2s linear;
  -webkit-transition:.2s linear;
}
#comments h4 {
  margin:1em 0;
  line-height:1.4em;
  letter-spacing:0em;
  color:#305e58;
  text-transform:uppercase;
  font:normal 20px Yanone Kaffeesatz;
}
#comments-block {
  margin:1em 0 1.5em;
  line-height:1.6em;
}
#comments-block .comment-author {
  margin:.5em 0;
}
#comments-block .comment-body {
  margin:.25em 0 0;
}
#comments-block .comment-footer {
  margin:-.25em 0 2em;
  line-height: 1.4em;
  text-transform:uppercase;
  letter-spacing:.1em;
}
#comments-block .comment-body p {
  margin:0 0 .75em;
}
.deleted-comment {
  font-style:italic;
  color:#8ba69b;
}

不胜感激,谢谢!

最佳答案

为评论 block 添加字体系列,如下所示。

 #comments-block {
 margin:1em 0 1.5em;
 line-height:1.6em;
 font:normal 13px Cabin, sans-serif;
 }

如果这行不通,那么应用评论 block 下的所有类,如下所示。

 #comments-block .comment-author {
  margin:.5em 0;
  font:normal 13px Cabin, sans-serif; 
 }
 #comments-block .comment-body {
  margin:.25em 0 0;
  font:normal 13px Cabin, sans-serif;
 }
 #comments-block .comment-footer {
 margin:-.25em 0 2em;
 line-height: 1.4em;
 text-transform:uppercase;
 letter-spacing:.1em;
 font:normal 13px Cabin, sans-serif;
}
#comments-block .comment-body p {
 margin:0 0 .75em;
 font:normal 13px Cabin, sans-serif;
}

关于html - 博客评论小部件的 CSS 帮助,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24424972/

相关文章:

html - 无法在 html 选项标签上添加图像

ruby - ruby中斜杠的作用是什么

regex - HTML5 浏览器密码验证(有效模式属性!): minimum 6 chars and at least 1 number and 1 Capital letter

html - 元素相互漂浮,即使它们是 block ?

html - 两个表本应显示为一个用于固定标题滚动——固定列宽问题

json - 为什么我可以在某些 JSON 文件中添加注释,而不能在其他文件中添加注释?

comments - 为什么在解释语言中 # 通常会引入注释?

css - 如何让一个DIV在页面加载后填满整个屏幕

css - 避免 JSF 中嵌套的 panelGrids/dataTables 中的双边框

jquery - 使用 jquery 在另一个 html 文件中包含 html 文件时遇到错误