更改博主主页中 post 正文的文本大小(即片段)
Change the text size of post body in the blogger homepage (i.e of the snippet)
我正在尝试更改 post 正文的文本大小,即主页中显示的代码段。在默认主题中,有一个选项可以更改正文文本的大小,我这样做了。它更改 post 中文本的大小。我想要的是单个 post 中的文本大小保持默认选项提供的大小,但在主页中,我想更改它。
到目前为止我做了什么?
我尝试修改 HTML 并添加了下面给出的两行:
<Variable name="posts.stream.text.font" description="Post text stream font"
type="font"
default="$(robotoBold20)" value="normal bold 30px Verdana, Geneva, sans-serif"/>
和
<Variable name="robotoBold20" description="Roboto Bold 20" type="font"
default="bold 20px Roboto, sans-serif" hideEditor="true" value="bold 20px Roboto, sans-serif"/>
我用现有的块添加了第一行
<Group description="Posts" selector="div.widget.Blog">
第二行是在主题中添加了一些类似的台词。
但是,它仍然没有改变主页中的文本字体大小。我做错了什么?更改主页(即主页片段)中 post 正文大小的正确方法是什么?
使用的主题:Contempo
我通过反复试验设法解决了这个问题。由于我对 CSS 不太熟悉,这可能不是最好的方法。另外,我相信这可以用更好的方式完成。欢迎回答这个问题,包括修改这段代码。
这是我的代码:
.Blog .blog-posts .post-outer-container .post-outer .container.post-body.entry-content .post-snippet.snippet-container.r-snippet-container .snippet-item.r-snippetized{
font-size: 18px;
}
.r-snippetized{
font-size: 18px;
}
PS:我确实觉得我做了一些多余的事情。
我正在尝试更改 post 正文的文本大小,即主页中显示的代码段。在默认主题中,有一个选项可以更改正文文本的大小,我这样做了。它更改 post 中文本的大小。我想要的是单个 post 中的文本大小保持默认选项提供的大小,但在主页中,我想更改它。
到目前为止我做了什么?
我尝试修改 HTML 并添加了下面给出的两行:
<Variable name="posts.stream.text.font" description="Post text stream font"
type="font"
default="$(robotoBold20)" value="normal bold 30px Verdana, Geneva, sans-serif"/>
和
<Variable name="robotoBold20" description="Roboto Bold 20" type="font"
default="bold 20px Roboto, sans-serif" hideEditor="true" value="bold 20px Roboto, sans-serif"/>
我用现有的块添加了第一行
<Group description="Posts" selector="div.widget.Blog">
第二行是在主题中添加了一些类似的台词。
但是,它仍然没有改变主页中的文本字体大小。我做错了什么?更改主页(即主页片段)中 post 正文大小的正确方法是什么?
使用的主题:Contempo
我通过反复试验设法解决了这个问题。由于我对 CSS 不太熟悉,这可能不是最好的方法。另外,我相信这可以用更好的方式完成。欢迎回答这个问题,包括修改这段代码。
这是我的代码:
.Blog .blog-posts .post-outer-container .post-outer .container.post-body.entry-content .post-snippet.snippet-container.r-snippet-container .snippet-item.r-snippetized{
font-size: 18px;
}
.r-snippetized{
font-size: 18px;
}
PS:我确实觉得我做了一些多余的事情。